27 Commits

Author SHA1 Message Date
dev
9d000b8407 标签页 标题汉化 2022-03-19 16:14:32 +08:00
dev
a070a6aa0e 1 2022-03-19 15:07:29 +08:00
ehkang
598eaf7bd4 翻译部分控件的 中文 2022-03-19 12:55:20 +08:00
ehkang
55588c0e6e 生成中文语言包 2022-03-19 12:46:23 +08:00
ehkang
e9367f6b29 1 2022-03-19 09:45:09 +08:00
Kangkang
0fc04d5b52 去除每个页面的 语言datatable 2022-03-18 21:25:34 +08:00
ehkang
2b39fb593c 启动 加载语言配置文件 2022-03-18 19:06:26 +08:00
gongxh
0a4fe0907b 1 2022-03-18 10:12:40 +08:00
gongxh
5b47fd6d1a 修改项目结构 2022-03-18 09:23:20 +08:00
gongxh
eceea6f5ba 1 2022-01-19 15:45:57 +08:00
gongxh
7ab0346321 增加是否开启心跳检查 2022-01-19 14:59:16 +08:00
gongxh
f802acfd18 修改线程UI错误 2022-01-19 13:27:34 +08:00
ehkang
e1731268c0 异步日志 2022-01-19 10:31:14 +08:00
gongxh
9cfeb818fa 修改 2022-01-19 09:31:47 +08:00
gongxh
89f1bb0536 添加编译指令 2022-01-18 20:20:10 +08:00
gongxh
a7ef9c7b54 1 2022-01-18 15:57:46 +08:00
gongxh
39c4c20fee 修改逻辑 2022-01-18 14:42:23 +08:00
gongxh
9b3b616f83 修改依赖 2022-01-16 15:35:09 +08:00
gongxh
9e758a951f 修改项目结构 2022-01-13 11:03:20 +08:00
gongxh
a78a6bd334 1 2022-01-13 10:43:45 +08:00
gongxh
7321539b72 修改结构 2021-12-31 19:53:53 +08:00
gongxh
31fe9e834a 修改字段 2021-12-31 16:27:14 +08:00
gongxh
75b42432b9 1 2021-12-27 21:59:01 +08:00
gongxh
a5f3550a5c 1 2021-12-27 21:39:45 +08:00
gongxh
59eec06d5e 1 2021-12-27 14:36:49 +08:00
gongxh
c6260156f8 1 2021-12-27 09:51:57 +08:00
gongxh
d39ac43a08 修改项目结构 2021-12-26 21:30:02 +08:00
192 changed files with 14143 additions and 6775 deletions

View File

@@ -0,0 +1,148 @@
// LEase.AnimateBase
using System;
using LEase;
public class AnimateBase
{
public static double Back(double x, LEaseMode easeMode)
{
switch (easeMode)
{
case LEaseMode.EaseIn:
return 2.70158 * x * x * x - 1.70158 * x * x;
case LEaseMode.EaseOut:
return 1.0 + 2.70158 * Math.Pow(x - 1.0, 3.0) + 1.70158 * Math.Pow(x - 1.0, 2.0);
case LEaseMode.EaseInOut:
return (x < 0.5) ? (Math.Pow(2.0 * x, 2.0) * (7.189819 * x - 2.5949095) / 2.0) : ((Math.Pow(2.0 * x - 2.0, 2.0) * (7.189819 * x - 4.5949095) + 2.0) / 2.0);
default:
return 0.0;
}
}
private static double BounceOut(double x)
{
if (x < 0.36363636363636365)
{
return 7.5625 * x * x;
}
if (x < 0.72727272727272729)
{
return 7.5625 * (x -= 0.54545454545454541) * x + 0.75;
}
if (x < 0.90909090909090906)
{
return 7.5625 * (x -= 0.81818181818181823) * x + 0.9375;
}
return 7.5625 * (x -= 21.0 / 22.0) * x + 63.0 / 64.0;
}
public static double Bounce(double x, LEaseMode easeMode)
{
switch (easeMode)
{
case LEaseMode.EaseIn:
return 1.0 - BounceOut(1.0 - x);
case LEaseMode.EaseOut:
return BounceOut(x);
case LEaseMode.EaseInOut:
return (x < 0.5) ? ((1.0 - BounceOut(1.0 - 2.0 * x)) / 2.0) : ((1.0 + BounceOut(2.0 * x - 1.0)) / 2.0);
default:
return 0.0;
}
}
public static double Circle(double x, LEaseMode easeMode)
{
switch (easeMode)
{
case LEaseMode.EaseIn:
return 1.0 - Math.Sqrt(1.0 - Math.Pow(x, 2.0));
case LEaseMode.EaseOut:
return Math.Sqrt(1.0 - Math.Pow(x - 1.0, 2.0));
case LEaseMode.EaseInOut:
return (x < 0.5) ? ((1.0 - Math.Sqrt(1.0 - Math.Pow(2.0 * x, 2.0))) / 2.0) : ((Math.Sqrt(1.0 - Math.Pow(-2.0 * x + 2.0, 2.0)) + 1.0) / 2.0);
default:
return 0.0;
}
}
public static double Power(double x, LEaseMode easeMode, int power)
{
switch (easeMode)
{
case LEaseMode.EaseIn:
return Math.Pow(x, power);
case LEaseMode.EaseOut:
return 1.0 - Math.Pow(1.0 - x, power);
case LEaseMode.EaseInOut:
return (x < 0.5) ? (Math.Pow(2.0, power - 1) * Math.Pow(x, power)) : (1.0 - Math.Pow(-2.0 * x + 2.0, power) / 2.0);
default:
return 0.0;
}
}
public static double Quadratic(double x, LEaseMode easeMode)
{
return Power(x, easeMode, 2);
}
public static double Cubic(double x, LEaseMode easeMode)
{
return Power(x, easeMode, 3);
}
public static double Quartic(double x, LEaseMode easeMode)
{
return Power(x, easeMode, 4);
}
public static double Quintic(double x, LEaseMode easeMode)
{
return Power(x, easeMode, 5);
}
public static double Elastic(double x, LEaseMode easeMode)
{
switch (easeMode)
{
case LEaseMode.EaseIn:
return (x == 0.0) ? 0.0 : ((x == 1.0) ? 1.0 : ((0.0 - Math.Pow(2.0, 10.0 * x - 10.0)) * Math.Sin((x * 10.0 - 10.75) * 2.0 * Math.PI / 3.0)));
case LEaseMode.EaseOut:
return (x == 0.0) ? 0.0 : ((x == 1.0) ? 1.0 : (Math.Pow(2.0, -10.0 * x) * Math.Sin((x * 10.0 - 0.75) * 2.0 * Math.PI / 3.0) + 1.0));
case LEaseMode.EaseInOut:
return (x == 0.0) ? 0.0 : ((x == 1.0) ? 1.0 : ((x < 0.5) ? ((0.0 - Math.Pow(2.0, 20.0 * x - 10.0) * Math.Sin((x * 20.0 - 11.125) * 2.0 * Math.PI / 4.5)) / 2.0) : (Math.Pow(2.0, -20.0 * x + 10.0) * Math.Sin((x * 20.0 - 11.125) * 2.0 * Math.PI / 4.5) / 2.0 + 1.0)));
default:
return 0.0;
}
}
public static double Exponential(double x, LEaseMode easeMode)
{
switch (easeMode)
{
case LEaseMode.EaseIn:
return (x == 0.0) ? 0.0 : Math.Pow(2.0, 10.0 * x - 10.0);
case LEaseMode.EaseOut:
return (x == 1.0) ? 1.0 : (1.0 - Math.Pow(2.0, -10.0 * x));
case LEaseMode.EaseInOut:
return (x == 0.0) ? 0.0 : ((x == 1.0) ? 1.0 : ((x < 0.5) ? (Math.Pow(2.0, 20.0 * x - 10.0) / 2.0) : ((2.0 - Math.Pow(2.0, -20.0 * x + 10.0)) / 2.0)));
default:
return 0.0;
}
}
public static double Sine(double x, LEaseMode easeMode)
{
switch (easeMode)
{
case LEaseMode.EaseIn:
return 1.0 - Math.Cos(x * Math.PI / 2.0);
case LEaseMode.EaseOut:
return Math.Sin(x * Math.PI / 2.0);
case LEaseMode.EaseInOut:
return (0.0 - (Math.Cos(Math.PI * x) - 1.0)) / 2.0;
default:
return 0.0;
}
}
}

View File

@@ -12,14 +12,26 @@ namespace CleanMachineHMI
[ToolboxItem(true)]
public class CircleButton : Button//继承按钮类 重新生成解决方案就能看见我啦
{
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath();
path.AddEllipse(2, 2, this.Width - 6, this.Height - 6);
Region = new Region(path);
}
protected override void OnPaint(PaintEventArgs e)//重新设置控件的形状
{
base.OnPaint(e);//递归 每次重新都发生此方法,保证其形状为自定义形状
System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath();
path.AddEllipse(2, 2, this.Width - 6, this.Height - 6);
Graphics g = e.Graphics;
g.DrawEllipse(new Pen(Color.White, 0), 2, 2, Width - 6, Height - 6);
Region = new Region(path);
}
}
}

View File

@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Windows.Forms" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,9 @@
namespace LEase
{
public enum LEaseMode
{
EaseIn,
EaseOut,
EaseInOut
}
}

View File

@@ -0,0 +1,16 @@
namespace LEase
{
public enum LEaseType
{
Back,
Bounce,
Circle,
Quadratic,
Cubic,
Quartic,
Quintic,
Elastic,
Exponential,
Sine
}
}

View File

@@ -186,6 +186,8 @@ namespace CleanMachineHMI
private void TTimer_Tick(object sender, EventArgs e)
{
bool b = (_IsOpen?(iNow>=0):(iNow<=iDuration));
if (b)
{
@@ -251,7 +253,7 @@ namespace CleanMachineHMI
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
// e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
Pen penBarBack = new Pen(_CloseColor, _BarHight);
Pen penBarFore = new Pen(_OpenColor, _BarHight);

View File

@@ -0,0 +1,129 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
public class BaseModel
{
private int usedFlag;
private int delFlag;
private int createBy;
private DateTime createTime;
private int updateBy;
private DateTime updateTime;
private int dataVersion;
private string remarks1;
private string remarks2;
private string remarks3;
private string remarks4;
private string remarks5;
/// <summary>
///
/// </summary>
public int UsedFlag
{
get { return this.usedFlag; }
set { this.usedFlag = value; }
}
/// <summary>
///
/// </summary>
public int DelFlag
{
get { return this.delFlag; }
set { this.delFlag = value; }
}
/// <summary>
///
/// </summary>
public int CreateBy
{
get { return this.createBy; }
set { this.createBy = value; }
}
/// <summary>
///
/// </summary>
public DateTime CreateTime
{
get { return this.createTime; }
set { this.createTime = value; }
}
/// <summary>
///
/// </summary>
public int UpdateBy
{
get { return this.updateBy; }
set { this.updateBy = value; }
}
/// <summary>
///
/// </summary>
public DateTime UpdateTime
{
get { return this.updateTime; }
set { this.updateTime = value; }
}
/// <summary>
///
/// </summary>
public int DataVersion
{
get { return this.dataVersion; }
set { this.dataVersion = value; }
}
/// <summary>
///
/// </summary>
public string Remarks1
{
get { return this.remarks1; }
set { this.remarks1 = value; }
}
/// <summary>
///
/// </summary>
public string Remarks2
{
get { return this.remarks2; }
set { this.remarks2 = value; }
}
/// <summary>
///
/// </summary>
public string Remarks3
{
get { return this.remarks3; }
set { this.remarks3 = value; }
}
/// <summary>
///
/// </summary>
public string Remarks4
{
get { return this.remarks4; }
set { this.remarks4 = value; }
}
/// <summary>
///
/// </summary>
public string Remarks5
{
get { return this.remarks5; }
set { this.remarks5 = value; }
}
}
}

View File

@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class CleanMode: BaseModel
{
private string cleanModeId;
private string cleanModeCode;
private string cleanModeName;
/// <summary>
///
/// </summary>
public string CleanModeId
{
get { return this.cleanModeId; }
set { this.cleanModeId = value; }
}
/// <summary>
///
/// </summary>
public string CleanModeCode
{
get { return this.cleanModeCode; }
set { this.cleanModeCode = value; }
}
/// <summary>
///
/// </summary>
public string CleanModeName
{
get { return this.cleanModeName; }
set { this.cleanModeName = value; }
}
}
}

View File

@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class ContaminationDtl: BaseModel
{
private string contaminationDtlId;
private string contaminationTypeCode;
private string contaminationDtlCode;
private string contaminationDtlName;
/// <summary>
///
/// </summary>
public string ContaminationDtlId
{
get { return this.contaminationDtlId; }
set { this.contaminationDtlId = value; }
}
/// <summary>
///
/// </summary>
public string ContaminationTypeCode
{
get { return this.contaminationTypeCode; }
set { this.contaminationTypeCode = value; }
}
/// <summary>
///
/// </summary>
public string ContaminationDtlCode
{
get { return this.contaminationDtlCode; }
set { this.contaminationDtlCode = value; }
}
/// <summary>
///
/// </summary>
public string ContaminationDtlName
{
get { return this.contaminationDtlName; }
set { this.contaminationDtlName = value; }
}
}
}

View File

@@ -0,0 +1,58 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class ContaminationType:BaseModel
{
private string contaminationTypeId;
private string contaminationTypeCode;
private string contaminationTypeName;
private string cleanModeCode;
/// <summary>
///
/// </summary>
public string ContaminationTypeId
{
get { return this.contaminationTypeId; }
set { this.contaminationTypeId = value; }
}
/// <summary>
///
/// </summary>
public string ContaminationTypeCode
{
get { return this.contaminationTypeCode; }
set { this.contaminationTypeCode = value; }
}
/// <summary>
///
/// </summary>
public string ContaminationTypeName
{
get { return this.contaminationTypeName; }
set { this.contaminationTypeName = value; }
}
/// <summary>
///
/// </summary>
public string CleanModeCode
{
get { return this.cleanModeCode; }
set { this.cleanModeCode = value; }
}
}
}

View File

@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class Language:BaseModel
{
private string languageId;
private string languageCode;
private string languageName;
/// <summary>
///
/// </summary>
public string LanguageId
{
get { return this.languageId; }
set { this.languageId = value; }
}
/// <summary>
///
/// </summary>
public string LanguageCode
{
get { return this.languageCode; }
set { this.languageCode = value; }
}
/// <summary>
///
/// </summary>
public string LanguageName
{
get { return this.languageName; }
set { this.languageName = value; }
}
}
}

View File

@@ -0,0 +1,77 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class LanguageControl : BaseModel
{
private string languageControlId;
private string languageCode;
private string formCode;
private string controlCode;
private string controlName;
private string controlType;
/// <summary>
///
/// </summary>
public string LanguageControlId
{
get { return this.languageControlId; }
set { this.languageControlId = value; }
}
/// <summary>
///
/// </summary>
public string LanguageCode
{
get { return this.languageCode; }
set { this.languageCode = value; }
}
/// <summary>
///
/// </summary>
public string FormCode
{
get { return this.formCode; }
set { this.formCode = value; }
}
/// <summary>
///
/// </summary>
public string ControlCode
{
get { return this.controlCode; }
set { this.controlCode = value; }
}
/// <summary>
///
/// </summary>
public string ControlName
{
get { return this.controlName; }
set { this.controlName = value; }
}
/// <summary>
///
/// </summary>
public string ControlType
{
get { return this.controlType; }
set { this.controlType = value; }
}
}
}

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class LastPattleNum:BaseModel
{
private string key;
private string value;
/// <summary>
///
/// </summary>
public string Key
{
get { return this.key; }
set { this.key = value; }
}
/// <summary>
///
/// </summary>
public string Value
{
get { return this.value; }
set { this.value = value; }
}
}
}

67
CleanMachine.Model/Log.cs Normal file
View File

@@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class Log : BaseModel
{
private string sysLogId;
private int userId;
private string operateStatus;
private string resultStatus;
private string message;
/// <summary>
///
/// </summary>
public string SysLogId
{
get { return this.sysLogId; }
set { this.sysLogId = value; }
}
/// <summary>
///
/// </summary>
public int UserId
{
get { return this.userId; }
set { this.userId = value; }
}
/// <summary>
///
/// </summary>
public string OperateStatus
{
get { return this.operateStatus; }
set { this.operateStatus = value; }
}
/// <summary>
///
/// </summary>
public string ResultStatus
{
get { return this.resultStatus; }
set { this.resultStatus = value; }
}
/// <summary>
///
/// </summary>
public string Message
{
get { return this.message; }
set { this.message = value; }
}
}
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class Menu : BaseModel
{
private string menuId;
private string menuCode;
private string menuName;
private string menuUrl;
private int menuPid;
private int menuOrder;
private int usedFlag;
}
}

View File

@@ -0,0 +1,79 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class Parameter : BaseModel
{
private string parameterId;
private string parameterCode;
private string parameterName;
private string parameterValue;
private string parameterType;
private int usedFlag;
private int delFlag;
private int createBy;
private DateTime createTime;
private int updateBy;
private DateTime updateTime;
private int dataVersion;
private string remarks1;
private string remarks2;
private string remarks3;
private string remarks4;
private string remarks5;
/// <summary>
///
/// </summary>
public string ParameterId
{
get { return this.parameterId; }
set { this.parameterId = value; }
}
/// <summary>
///
/// </summary>
public string ParameterCode
{
get { return this.parameterCode; }
set { this.parameterCode = value; }
}
/// <summary>
///
/// </summary>
public string ParameterName
{
get { return this.parameterName; }
set { this.parameterName = value; }
}
/// <summary>
///
/// </summary>
public string ParameterValue
{
get { return this.parameterValue; }
set { this.parameterValue = value; }
}
/// <summary>
///
/// </summary>
public string ParameterType
{
get { return this.parameterType; }
set { this.parameterType = value; }
}
}
}

View File

@@ -0,0 +1,117 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class PlcItem : BaseModel
{
private string plcItemId;
private string plcItemCode;
private string plcItemName;
private int plcItemType;
private int plcItemDataType;
private int plcItemDataLength;
private string plcItemPriAddress;
private string plcItemModbusAddress;
private string plcItemDeviationAddress;
private string plcItemValue;
/// <summary>
///
/// </summary>
public string PlcItemId
{
get { return this.plcItemId; }
set { this.plcItemId = value; }
}
/// <summary>
///
/// </summary>
public string PlcItemCode
{
get { return this.plcItemCode; }
set { this.plcItemCode = value; }
}
/// <summary>
///
/// </summary>
public string PlcItemName
{
get { return this.plcItemName; }
set { this.plcItemName = value; }
}
/// <summary>
///
/// </summary>
public int PlcItemType
{
get { return this.plcItemType; }
set { this.plcItemType = value; }
}
/// <summary>
///
/// </summary>
public int PlcItemDataType
{
get { return this.plcItemDataType; }
set { this.plcItemDataType = value; }
}
/// <summary>
///
/// </summary>
public int PlcItemDataLength
{
get { return this.plcItemDataLength; }
set { this.plcItemDataLength = value; }
}
/// <summary>
///
/// </summary>
public string PlcItemPriAddress
{
get { return this.plcItemPriAddress; }
set { this.plcItemPriAddress = value; }
}
/// <summary>
///
/// </summary>
public string PlcItemModbusAddress
{
get { return this.plcItemModbusAddress; }
set { this.plcItemModbusAddress = value; }
}
/// <summary>
///
/// </summary>
public string PlcItemDeviationAddress
{
get { return this.plcItemDeviationAddress; }
set { this.plcItemDeviationAddress = value; }
}
/// <summary>
///
/// </summary>
public string PlcItemValue
{
get { return this.plcItemValue; }
set { this.plcItemValue = value; }
}
}
}

View File

@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class Role : BaseModel
{
private string roleId;
private string roleCode;
private string roleName;
private int roleGrade;
/// <summary>
///
/// </summary>
public string RoleId
{
get { return this.roleId; }
set { this.roleId = value; }
}
/// <summary>
///
/// </summary>
public string RoleCode
{
get { return this.roleCode; }
set { this.roleCode = value; }
}
/// <summary>
///
/// </summary>
public string RoleName
{
get { return this.roleName; }
set { this.roleName = value; }
}
/// <summary>
///
/// </summary>
public int RoleGrade
{
get { return this.roleGrade; }
set { this.roleGrade = value; }
}
}
}

View File

@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class RoleMenuPermission : BaseModel
{
private string roleMenuPermissionId;
private string roleId;
private string menuId;
/// <summary>
///
/// </summary>
public string RoleMenuPermissionId
{
get { return this.roleMenuPermissionId; }
set { this.roleMenuPermissionId = value; }
}
/// <summary>
///
/// </summary>
public string RoleId
{
get { return this.roleId; }
set { this.roleId = value; }
}
/// <summary>
///
/// </summary>
public string MenuId
{
get { return this.menuId; }
set { this.menuId = value; }
}
}
}

View File

@@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class ScheduleDtl : BaseModel
{
private string scheduleDtlId;
private string scheduleCode;
private string scheduleName;
private string beginTime;
private string endTime;
/// <summary>
///
/// </summary>
public string ScheduleDtlId
{
get { return this.scheduleDtlId; }
set { this.scheduleDtlId = value; }
}
/// <summary>
///
/// </summary>
public string ScheduleCode
{
get { return this.scheduleCode; }
set { this.scheduleCode = value; }
}
/// <summary>
///
/// </summary>
public string ScheduleName
{
get { return this.scheduleName; }
set { this.scheduleName = value; }
}
/// <summary>
///
/// </summary>
public string BeginTime
{
get { return this.beginTime; }
set { this.beginTime = value; }
}
/// <summary>
///
/// </summary>
public string EndTime
{
get { return this.endTime; }
set { this.endTime = value; }
}
}
}

View File

@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class SheetType : BaseModel
{
private string sheetTypeId;
private string sheetTypeCode;
private string sheetTypeName;
/// <summary>
///
/// </summary>
public string SheetTypeId
{
get { return this.sheetTypeId; }
set { this.sheetTypeId = value; }
}
/// <summary>
///
/// </summary>
public string SheetTypeCode
{
get { return this.sheetTypeCode; }
set { this.sheetTypeCode = value; }
}
/// <summary>
///
/// </summary>
public string SheetTypeName
{
get { return this.sheetTypeName; }
set { this.sheetTypeName = value; }
}
}
}

View File

@@ -0,0 +1,88 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class User : BaseModel
{
private string userId;
private string userCode;
private string userName;
private string password;
private int gender;
private string roleId;
private string scheduleCode;
/// <summary>
///
/// </summary>
public string UserId
{
get { return this.userId; }
set { this.userId = value; }
}
/// <summary>
///
/// </summary>
public string UserCode
{
get { return this.userCode; }
set { this.userCode = value; }
}
/// <summary>
///
/// </summary>
public string UserName
{
get { return this.userName; }
set { this.userName = value; }
}
/// <summary>
///
/// </summary>
public string Password
{
get { return this.password; }
set { this.password = value; }
}
/// <summary>
///
/// </summary>
public int Gender
{
get { return this.gender; }
set { this.gender = value; }
}
/// <summary>
///
/// </summary>
public string RoleId
{
get { return this.roleId; }
set { this.roleId = value; }
}
/// <summary>
///
/// </summary>
public string ScheduleCode
{
get { return this.scheduleCode; }
set { this.scheduleCode = value; }
}
}
}

View File

@@ -0,0 +1,78 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class Warning : BaseModel
{
private string warningId;
private string warningCode;
private string warningName;
private string plcItemCode;
private string warningType;
private string warningMessage;
/// <summary>
///
/// </summary>
public string WarningId
{
get { return this.warningId; }
set { this.warningId = value; }
}
/// <summary>
///
/// </summary>
public string WarningCode
{
get { return this.warningCode; }
set { this.warningCode = value; }
}
/// <summary>
///
/// </summary>
public string WarningName
{
get { return this.warningName; }
set { this.warningName = value; }
}
/// <summary>
///
/// </summary>
public string PlcItemCode
{
get { return this.plcItemCode; }
set { this.plcItemCode = value; }
}
/// <summary>
///
/// </summary>
public string WarningType
{
get { return this.warningType; }
set { this.warningType = value; }
}
/// <summary>
///
/// </summary>
public string WarningMessage
{
get { return this.warningMessage; }
set { this.warningMessage = value; }
}
}
}

View File

@@ -0,0 +1,118 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class WarningLog : BaseModel
{
private string warningLogId;
private string warningCode;
private string warningName;
private string warningType;
private string warningMessage;
private DateTime warningTime;
private string plcItemCode;
private int waringStatus;
private int warningHandleResult;
private DateTime warningHandleTime;
/// <summary>
///
/// </summary>
public string WarningLogId
{
get { return this.warningLogId; }
set { this.warningLogId = value; }
}
/// <summary>
///
/// </summary>
public string WarningCode
{
get { return this.warningCode; }
set { this.warningCode = value; }
}
/// <summary>
///
/// </summary>
public string WarningName
{
get { return this.warningName; }
set { this.warningName = value; }
}
/// <summary>
///
/// </summary>
public string WarningType
{
get { return this.warningType; }
set { this.warningType = value; }
}
/// <summary>
///
/// </summary>
public string WarningMessage
{
get { return this.warningMessage; }
set { this.warningMessage = value; }
}
/// <summary>
///
/// </summary>
public DateTime WarningTime
{
get { return this.warningTime; }
set { this.warningTime = value; }
}
/// <summary>
///
/// </summary>
public string PlcItemCode
{
get { return this.plcItemCode; }
set { this.plcItemCode = value; }
}
/// <summary>
///
/// </summary>
public int WaringStatus
{
get { return this.waringStatus; }
set { this.waringStatus = value; }
}
/// <summary>
///
/// </summary>
public int WarningHandleResult
{
get { return this.warningHandleResult; }
set { this.warningHandleResult = value; }
}
/// <summary>
///
/// </summary>
public DateTime WarningHandleTime
{
get { return this.warningHandleTime; }
set { this.warningHandleTime = value; }
}
}
}

View File

@@ -0,0 +1,58 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class WorkingPallet : BaseModel
{
private string workingPalletId;
private string workingPalletCode;
private string workingPalletDesc;
private string workingStatus;
/// <summary>
///
/// </summary>
public string WorkingPalletId
{
get { return this.workingPalletId; }
set { this.workingPalletId = value; }
}
/// <summary>
///
/// </summary>
public string WorkingPalletCode
{
get { return this.workingPalletCode; }
set { this.workingPalletCode = value; }
}
/// <summary>
///
/// </summary>
public string WorkingPalletDesc
{
get { return this.workingPalletDesc; }
set { this.workingPalletDesc = value; }
}
/// <summary>
///
/// </summary>
public string WorkingStatus
{
get { return this.workingStatus; }
set { this.workingStatus = value; }
}
}
}

View File

@@ -0,0 +1,138 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class WorkingPalletDtl : BaseModel
{
private string workingPalletDtlId;
private string workingPalletCode;
private string irCode;
private string sheetTypeCode;
private DateTime inputTime;
private string cleanModeCode;
private string contaminationTypeCode;
private string contaminationDtlCode;
private int currentNumber;
private int operateUserId;
private DateTime operateUserTime;
private int workingDtlStatus;
/// <summary>
///
/// </summary>
public string WorkingPalletDtlId
{
get { return this.workingPalletDtlId; }
set { this.workingPalletDtlId = value; }
}
/// <summary>
///
/// </summary>
public string WorkingPalletCode
{
get { return this.workingPalletCode; }
set { this.workingPalletCode = value; }
}
/// <summary>
///
/// </summary>
public string IrCode
{
get { return this.irCode; }
set { this.irCode = value; }
}
/// <summary>
///
/// </summary>
public string SheetTypeCode
{
get { return this.sheetTypeCode; }
set { this.sheetTypeCode = value; }
}
/// <summary>
///
/// </summary>
public DateTime InputTime
{
get { return this.inputTime; }
set { this.inputTime = value; }
}
/// <summary>
///
/// </summary>
public string CleanModeCode
{
get { return this.cleanModeCode; }
set { this.cleanModeCode = value; }
}
/// <summary>
///
/// </summary>
public string ContaminationTypeCode
{
get { return this.contaminationTypeCode; }
set { this.contaminationTypeCode = value; }
}
/// <summary>
///
/// </summary>
public string ContaminationDtlCode
{
get { return this.contaminationDtlCode; }
set { this.contaminationDtlCode = value; }
}
/// <summary>
///
/// </summary>
public int CurrentNumber
{
get { return this.currentNumber; }
set { this.currentNumber = value; }
}
/// <summary>
///
/// </summary>
public int OperateUserId
{
get { return this.operateUserId; }
set { this.operateUserId = value; }
}
/// <summary>
///
/// </summary>
public DateTime OperateUserTime
{
get { return this.operateUserTime; }
set { this.operateUserTime = value; }
}
/// <summary>
///
/// </summary>
public int WorkingDtlStatus
{
get { return this.workingDtlStatus; }
set { this.workingDtlStatus = value; }
}
}
}

View File

@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class ZbkWorkingPallet:BaseModel
{
private string workingPalletId;
private string workingPalletCode;
private string workingPalletDesc;
private int workingStatus;
/// <summary>
///
/// </summary>
public string WorkingPalletId
{
get { return this.workingPalletId; }
set { this.workingPalletId = value; }
}
/// <summary>
///
/// </summary>
public string WorkingPalletCode
{
get { return this.workingPalletCode; }
set { this.workingPalletCode = value; }
}
/// <summary>
///
/// </summary>
public string WorkingPalletDesc
{
get { return this.workingPalletDesc; }
set { this.workingPalletDesc = value; }
}
/// <summary>
///
/// </summary>
public int WorkingStatus
{
get { return this.workingStatus; }
set { this.workingStatus = value; }
}
}
}

View File

@@ -0,0 +1,137 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace CleanMachine.Model
{
/// <summary>
///
/// </summary>
public class ZbkWorkingPalletDtl : BaseModel
{
private string workingPalletDtlId;
private string workingPalletCode;
private string irCode;
private string sheetTypeCode;
private DateTime inputTime;
private string cleanModeCode;
private string contaminationTypeCode;
private string contaminationDtlCode;
private int currentNumber;
private int operateUserId;
private DateTime operateUserTime;
private int workingDtlStatus;
/// <summary>
///
/// </summary>
public string WorkingPalletDtlId
{
get { return this.workingPalletDtlId; }
set { this.workingPalletDtlId = value; }
}
/// <summary>
///
/// </summary>
public string WorkingPalletCode
{
get { return this.workingPalletCode; }
set { this.workingPalletCode = value; }
}
/// <summary>
///
/// </summary>
public string IrCode
{
get { return this.irCode; }
set { this.irCode = value; }
}
/// <summary>
///
/// </summary>
public string SheetTypeCode
{
get { return this.sheetTypeCode; }
set { this.sheetTypeCode = value; }
}
/// <summary>
///
/// </summary>
public DateTime InputTime
{
get { return this.inputTime; }
set { this.inputTime = value; }
}
/// <summary>
///
/// </summary>
public string CleanModeCode
{
get { return this.cleanModeCode; }
set { this.cleanModeCode = value; }
}
/// <summary>
///
/// </summary>
public string ContaminationTypeCode
{
get { return this.contaminationTypeCode; }
set { this.contaminationTypeCode = value; }
}
/// <summary>
///
/// </summary>
public string ContaminationDtlCode
{
get { return this.contaminationDtlCode; }
set { this.contaminationDtlCode = value; }
}
/// <summary>
///
/// </summary>
public int CurrentNumber
{
get { return this.currentNumber; }
set { this.currentNumber = value; }
}
/// <summary>
///
/// </summary>
public int OperateUserId
{
get { return this.operateUserId; }
set { this.operateUserId = value; }
}
/// <summary>
///
/// </summary>
public DateTime OperateUserTime
{
get { return this.operateUserTime; }
set { this.operateUserTime = value; }
}
/// <summary>
///
/// </summary>
public int WorkingDtlStatus
{
get { return this.workingDtlStatus; }
set { this.workingDtlStatus = value; }
}
}
}

View File

@@ -1,99 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F7AF907B-5DDC-469F-956C-08C5FD110448}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CleanMachineHMI.Domain</RootNamespace>
<AssemblyName>CleanMachineHMI.Domain</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<TargetFramework>netstandard1.3</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="ComponentFactory.Krypton.Toolkit, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\public\ComponentFactory.Krypton.Toolkit.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Compile Include="Enums\EnumFormType.cs" />
<Compile Include="Enums\EnumOperateType.cs" />
<Compile Include="Models\ViewModels\FormModel.cs" />
<Compile Include="Models\ViewModels\UserInfo.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Models\ConditionModels\" />
<Folder Include="Models\ResultModels\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>

View File

@@ -1,10 +1,10 @@
using CleanMachineHMI.Domain.Enums;
using ComponentFactory.Krypton.Toolkit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace CleanMachineHMI.Domain.Models.ViewModels
{

View File

@@ -1,4 +1,4 @@
using ComponentFactory.Krypton.Toolkit;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -12,21 +12,21 @@ namespace CleanMachineHMI.Domain.Models.ViewModels
/// </summary>
public class UserInfo
{
public int USER_ID { get; set; }
public int UserId { get; set; }
public string USER_CODE { get; set; }
public string UserCode { get; set; }
public string USER_NAME { get; set; }
public string UserName { get; set; }
/// <summary>
/// 性别.0:男;1:女。
/// </summary>
public int GENDER { get; set; }
public int Gender { get; set; }
public string SCHEDULE_CODE { get; set; }
public int ROLE_ID { get; set; }
public string ScheduleCode { get; set; }
public int RoleId { get; set; }
public int ROLE_GRADE { get; set; }
public int RoleGrade { get; set; }
}
}

View File

@@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CleanMachineHMI.Domain")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CleanMachineHMI.Domain")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("f7af907b-5ddc-469f-956c-08c5fd110448")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -1,18 +1,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30330.147
# Visual Studio Version 17
VisualStudioVersion = 17.0.32014.148
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanMachineHMI", "CleanMachineHMI\CleanMachineHMI.csproj", "{9CF77369-B471-4476-9F42-779945113EA5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachineHMI", "CleanMachineHMI\CleanMachineHMI.csproj", "{9CF77369-B471-4476-9F42-779945113EA5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanMachineHMI.Domain", "CleanMachineHMI.Model\CleanMachineHMI.Domain.csproj", "{F7AF907B-5DDC-469F-956C-08C5FD110448}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachineHMI.Domain", "CleanMachineHMI.Model\CleanMachineHMI.Domain.csproj", "{F7AF907B-5DDC-469F-956C-08C5FD110448}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LeadDataBaseUtility", "LeadDataBaseUtility\LeadDataBaseUtility.csproj", "{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LeadDataBaseUtility", "LeadDataBaseUtility\LeadDataBaseUtility.csproj", "{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NX_LogUtility", "NX_LogUtility\NX_LogUtility.csproj", "{925057D8-7EE8-42ED-8AA0-628AF82F10B2}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NX_LogUtility", "NX_LogUtility\NX_LogUtility.csproj", "{925057D8-7EE8-42ED-8AA0-628AF82F10B2}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "CleanMachineSoftware_Setup", "CleanMachineSoftware_Setup\CleanMachineSoftware_Setup.vdproj", "{497A7E73-E2E8-4134-93CA-8F6A5B72D992}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.Control", "CleanMachine.Control\CleanMachine.Control.csproj", "{6891D010-F826-49C9-A087-2717A264BC16}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.Model", "CleanMachine.Model\CleanMachine.Model.csproj", "{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -25,64 +29,82 @@ Global
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.ActiveCfg = Debug|x64
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.Build.0 = Debug|x64
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.ActiveCfg = Debug|x86
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.Build.0 = Debug|x86
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.ActiveCfg = Debug|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.Build.0 = Debug|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.ActiveCfg = Debug|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.Build.0 = Debug|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Release|Any CPU.Build.0 = Release|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x64.ActiveCfg = Release|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x64.Build.0 = Release|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.ActiveCfg = Release|x86
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.Build.0 = Release|x86
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.ActiveCfg = Release|Any CPU
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.Build.0 = Release|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.ActiveCfg = Debug|x64
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.Build.0 = Debug|x64
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.ActiveCfg = Debug|x86
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.Build.0 = Debug|x86
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.ActiveCfg = Debug|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.Build.0 = Debug|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.ActiveCfg = Debug|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.Build.0 = Debug|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|Any CPU.Build.0 = Release|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x64.ActiveCfg = Release|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x64.Build.0 = Release|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.ActiveCfg = Release|x86
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.Build.0 = Release|x86
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.ActiveCfg = Release|Any CPU
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.Build.0 = Release|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.ActiveCfg = Debug|x64
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.Build.0 = Debug|x64
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.ActiveCfg = Debug|x86
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.Build.0 = Debug|x86
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.ActiveCfg = Debug|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.Build.0 = Debug|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.ActiveCfg = Debug|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.Build.0 = Debug|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|Any CPU.Build.0 = Release|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x64.ActiveCfg = Release|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x64.Build.0 = Release|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.ActiveCfg = Release|x86
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.Build.0 = Release|x86
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.ActiveCfg = Release|Any CPU
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.Build.0 = Release|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.ActiveCfg = Debug|x64
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.Build.0 = Debug|x64
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.ActiveCfg = Debug|x86
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.Build.0 = Debug|x86
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.ActiveCfg = Debug|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.Build.0 = Debug|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.ActiveCfg = Debug|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.Build.0 = Debug|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|Any CPU.Build.0 = Release|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x64.ActiveCfg = Release|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x64.Build.0 = Release|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.ActiveCfg = Release|x86
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.Build.0 = Release|x86
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|Any CPU.ActiveCfg = Debug
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|x64.ActiveCfg = Debug
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|x86.ActiveCfg = Debug
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|Any CPU.ActiveCfg = Release
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|x64.ActiveCfg = Release
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|x86.ActiveCfg = Release
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.ActiveCfg = Release|Any CPU
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.Build.0 = Release|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x64.ActiveCfg = Debug|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x64.Build.0 = Debug|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x86.ActiveCfg = Debug|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x86.Build.0 = Debug|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Release|Any CPU.Build.0 = Release|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Release|x64.ActiveCfg = Release|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Release|x64.Build.0 = Release|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Release|x86.ActiveCfg = Release|Any CPU
{6891D010-F826-49C9-A087-2717A264BC16}.Release|x86.Build.0 = Release|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|x64.ActiveCfg = Debug|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|x64.Build.0 = Debug|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|x86.ActiveCfg = Debug|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|x86.Build.0 = Debug|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|Any CPU.Build.0 = Release|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|x64.ActiveCfg = Release|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|x64.Build.0 = Release|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|x86.ActiveCfg = Release|Any CPU
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
VisualSVNWorkingCopyRoot = .
SolutionGuid = {09FA6A17-2C18-418A-81E3-612D52950830}
VisualSVNWorkingCopyRoot = .
EndGlobalSection
EndGlobal

View File

@@ -1,64 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="NX_CLEAR_MAC_20200915Entities" connectionString="metadata=res://*/Entitys.Model1.csdl|res://*/Entitys.Model1.ssdl|res://*/Entitys.Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.;initial catalog=NX_CLEAR_MAC_20200915;persist security info=True;user id=sa;password=1q2w3e4r!@;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
<add name="CleanMachineHMI.Properties.Settings.NX_CLEAR_MAC_20200915ConnectionString" connectionString="Data Source=.;Initial Catalog=NX_CLEAR_MAC_20200915;Persist Security Info=True;User ID=sa;Password=1q2w3e4r!@" providerName="System.Data.SqlClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<appSettings>
<add key="GlobalPaletteMode" value="Professionaloffice2003" />
<!--<add key="LanguageCode" value="Chinese"/>-->
<add key="LanguageCode" value="English" />
<add key="sqlmapConfigPath" value="Config/sqlmap.config" />
<add key="GlobalPaletteMode" value="Professionaloffice2003"/>
<add key="LanguageCode" value="zh-CN"/>
<!--<add key="LanguageCode" value="en-US"/>-->
<add key="sqlmapConfigPath" value="Config/sqlmap.config"/>
<!--MySql数据库连接字符串-->
<add key="LeadMySql" value="Data Source = localhost; Port=3306;Initial Catalog = testasrs; Persist Security Info=True;User ID = root; Password=sa1234567;" />
<add key="LeadMySql" value="Data Source = localhost; Port=3306;Initial Catalog = testasrs; Persist Security Info=True;User ID = root; Password=sa1234567;"/>
<!--SqlServer数据库连接字符串-->
<add key="LeadSqlServer" value="Data Source =localhost;Initial Catalog =NX_CLEAR_MAC;User Id = sa;Password =syl.syl503601;" />
<add key="LeadSqlServer" value="Data Source =localhost;Initial Catalog =NX_CLEAR_MAC;User Id = sa;Password =syl.syl503601;"/>
<!--Oracle数据库连接字符串-->
<add key="LeadOracle" value="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCL)));User Id=LEADASRS; Password=LEADASRS;" />
<add key="LeadOracle" value="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCL)));User Id=LEADASRS; Password=LEADASRS;"/>
<!--SQLite数据库连接字符串-->
<!--<add key="LeadSQLite" value="Data Source=|DataDirectory|\\clearMac.db;Pooling=true;FailIfMissing=false"/>-->
<add key="LeadSQLite" value="Data Source=DataBase/clearMac.db" />
<add key="LeadSQLite" value="Data Source=DataBase/clearMac.db"/>
<!--串口名称-->
<add key="PortName" value="COM3" />
<add key="PortName" value="COM3"/>
<!--串口波特率-->
<add key="BaudRate" value="9600" />
<add key="BaudRate" value="9600"/>
<!--串口数据位-->
<add key="DataBits" value="8" />
<add key="DataBits" value="8"/>
<!--停止位。 0:不使用停止位;1:使用一个停止位;2:使用两个停止位;3:使用 1.5 个停止位。-->
<add key="StopBits" value="1" />
<add key="StopBits" value="1"/>
<!--奇偶校验。0:无校验;1:奇校验;2:偶校验;-->
<add key="ParityMsg" value="2" />
<add key="ParityMsg" value="2"/>
<!--托盘序列号前缀-->
<add key="PalletIndexPrefix" value="Pallet" />
<add key="PalletIndexPrefix" value="Pallet"/>
<!--托盘序列号生成日期-->
<add key="PalletIndexDateMsg" value="20201107" />
<add key="PalletIndexDateMsg" value="20201107"/>
<!--托盘序列号长度-->
<add key="PalletIndexLen" value="6" />
<add key="PalletIndexLen" value="6"/>
<!--当前托盘序列号值-->
<add key="PalletIndexValue" value="1" />
<add key="PalletIndexValue" value="1"/>
<!--记录上一次登录用户名-->
<add key="LastTimeUserCode" value="" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
<add key="LastTimeUserCode" value=""/>
<add key="ClientSettingsProvider.ServiceUri" value=""/>
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
</configuration>
</configuration>

View File

@@ -1,665 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{9CF77369-B471-4476-9F42-779945113EA5}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>CleanMachineHMI</RootNamespace>
<AssemblyName>CleanMachineHMI</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>x64</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>Resources\cleaner_128px_1238161_easyicon.net.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<TargetFramework>net472</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
<ItemGroup>
<Reference Include="ComponentFactory.Krypton.Navigator, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Compile Remove="forms\**" />
<EmbeddedResource Remove="forms\**" />
<None Remove="forms\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Krypton.Navigator" Version="60.22.2.32" />
<PackageReference Include="Krypton.Toolkit" Version="60.22.2.32" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NModbus" Version="3.0.72" />
<PackageReference Include="NModbus.Serial" Version="3.0.72" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CleanMachine.Control\CleanMachine.Control.csproj" />
<ProjectReference Include="..\CleanMachine.Model\CleanMachine.Model.csproj" />
<ProjectReference Include="..\CleanMachineHMI.Model\CleanMachineHMI.Domain.csproj" />
<ProjectReference Include="..\LeadDataBaseUtility\LeadDataBaseUtility.csproj" />
<ProjectReference Include="..\NX_LogUtility\NX_LogUtility.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="ComponentFactory.Krypton.Navigator">
<HintPath>..\public\ComponentFactory.Krypton.Navigator.dll</HintPath>
</Reference>
<Reference Include="ComponentFactory.Krypton.Toolkit, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="ComponentFactory.Krypton.Toolkit">
<HintPath>..\public\ComponentFactory.Krypton.Toolkit.dll</HintPath>
</Reference>
<Reference Include="FastReport, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="FastReport">
<HintPath>..\public\FastReport.dll</HintPath>
</Reference>
<Reference Include="FastReport.Bars, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\public\FastReport.Bars.dll</HintPath>
</Reference>
<Reference Include="FastReport.Editor, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\public\FastReport.Editor.dll</HintPath>
</Reference>
<Reference Include="FastReport.Install, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\public\FastReport.Install.dll</HintPath>
</Reference>
<Reference Include="FastReport.Service, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\public\FastReport.Service.dll</HintPath>
</Reference>
<Reference Include="FastReport.Web, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\public\FastReport.Web.dll</HintPath>
</Reference>
<Reference Include="LEase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\public\LEase.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.Common, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.Common.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.DataVisualization, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.DataVisualization.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.Design, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.Design.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.ProcessingObjectModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.ProcessingObjectModel.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.WinForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.WinForms.dll</HintPath>
</Reference>
<Reference Include="Microsoft.SqlServer.Types, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.SqlServer.Types.14.0.314.76\lib\net40\Microsoft.SqlServer.Types.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="Microsoft.VisualBasic.PowerPacks">
<HintPath>..\public\Microsoft.VisualBasic.PowerPacks.dll</HintPath>
</Reference>
<Reference Include="NModbus4, Version=2.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\public\NModbus4.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Design" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Management" />
</ItemGroup>
<ItemGroup>
<Compile Include="frmChild\frmPopupWarningMsg.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmPopupWarningMsg.Designer.cs">
<DependentUpon>frmPopupWarningMsg.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmSwitchRunDirection.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmSwitchRunDirection.Designer.cs">
<DependentUpon>frmSwitchRunDirection.cs</DependentUpon>
</Compile>
<Compile Include="frmIoMonitorNew.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmIoMonitorNew.Designer.cs">
<DependentUpon>frmIoMonitorNew.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmMainDetail.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmMainDetail.Designer.cs">
<DependentUpon>frmMainDetail.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmMaintenance.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmMaintenance.Designer.cs">
<DependentUpon>frmMaintenance.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmMechineCheck.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmMechineCheck.Designer.cs">
<DependentUpon>frmMechineCheck.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmPrinterMain.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmPrinterMain.Designer.cs">
<DependentUpon>frmPrinterMain.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmPlcItemConfig.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmPlcItemConfig.Designer.cs">
<DependentUpon>frmPlcItemConfig.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmPlcAlarmLog.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmPlcAlarmLog.Designer.cs">
<DependentUpon>frmPlcAlarmLog.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmManual.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmManual.Designer.cs">
<DependentUpon>frmManual.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmIOMonitor.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmIOMonitor.Designer.cs">
<DependentUpon>frmIOMonitor.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmCurrWorkingIrMsg.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmCurrWorkingIrMsg.Designer.cs">
<DependentUpon>frmCurrWorkingIrMsg.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\Base\frmCleanMode.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\Base\frmCleanMode.Designer.cs">
<DependentUpon>frmCleanMode.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\Base\frmContaminationDTL.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\Base\frmContaminationDTL.Designer.cs">
<DependentUpon>frmContaminationDTL.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\Base\frmContaminationType.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\Base\frmContaminationType.Designer.cs">
<DependentUpon>frmContaminationType.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\frmParamater.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\frmParamater.Designer.cs">
<DependentUpon>frmParamater.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\Base\frmRole.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\Base\frmRole.Designer.cs">
<DependentUpon>frmRole.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\Base\frmSheetType.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\Base\frmSheetType.Designer.cs">
<DependentUpon>frmSheetType.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\Base\frmUser.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\Base\frmUser.Designer.cs">
<DependentUpon>frmUser.cs</DependentUpon>
</Compile>
<Compile Include="FrmUserControl\Base\frmWarning.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="FrmUserControl\Base\frmWarning.Designer.cs">
<DependentUpon>frmWarning.cs</DependentUpon>
</Compile>
<Compile Include="Utils\GlobalHelper.cs" />
<Compile Include="Model\BasCleanTypeMsg.cs" />
<Compile Include="Model\BasPlcItemMd.cs" />
<Compile Include="Model\Bas_WarningMd.cs" />
<Compile Include="Utils\CircleButton.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Model\CM_WarningLogMd.cs" />
<Compile Include="frmSysExitAlarm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmSysExitAlarm.Designer.cs">
<DependentUpon>frmSysExitAlarm.cs</DependentUpon>
</Compile>
<Compile Include="Form2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmAddRole.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmAddRole.Designer.cs">
<DependentUpon>frmAddRole.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditRole.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditRole.Designer.cs">
<DependentUpon>frmEditRole.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditWorkingPalletData.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditWorkingPalletData.Designer.cs">
<DependentUpon>frmEditWorkingPalletData.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmSetRoleMenuPermission.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmSetRoleMenuPermission.Designer.cs">
<DependentUpon>frmSetRoleMenuPermission.cs</DependentUpon>
</Compile>
<Compile Include="frmBase.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmBase.Designer.cs">
<DependentUpon>frmBase.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmAddCleanCode.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmAddCleanCode.Designer.cs">
<DependentUpon>frmAddCleanCode.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditCleanCode.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditCleanCode.Designer.cs">
<DependentUpon>frmEditCleanCode.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmAddContaminationType.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmAddContaminationType.Designer.cs">
<DependentUpon>frmAddContaminationType.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditContaminationType.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditContaminationType.Designer.cs">
<DependentUpon>frmEditContaminationType.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmAddContaminationDtl.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmAddContaminationDtl.Designer.cs">
<DependentUpon>frmAddContaminationDtl.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditContaminationDtl.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditContaminationDtl.Designer.cs">
<DependentUpon>frmEditContaminationDtl.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmAddWaringMsg.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmAddWaringMsg.Designer.cs">
<DependentUpon>frmAddWaringMsg.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditParamater.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditParamater.Designer.cs">
<DependentUpon>frmEditParamater.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditWaringMsg.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditWaringMsg.Designer.cs">
<DependentUpon>frmEditWaringMsg.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmAddSheetType.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmAddSheetType.Designer.cs">
<DependentUpon>frmAddSheetType.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditSheetType.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditSheetType.Designer.cs">
<DependentUpon>frmEditSheetType.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditUser.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditUser.Designer.cs">
<DependentUpon>frmEditUser.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmAddPlcItem.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmAddPlcItem.Designer.cs">
<DependentUpon>frmAddPlcItem.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmAddUser.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmAddUser.Designer.cs">
<DependentUpon>frmAddUser.cs</DependentUpon>
</Compile>
<Compile Include="frmChild\frmEditPlcItem.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmChild\frmEditPlcItem.Designer.cs">
<DependentUpon>frmEditPlcItem.cs</DependentUpon>
</Compile>
<Compile Include="frmIOMonitor_Old.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmIOMonitor_Old.Designer.cs">
<DependentUpon>frmIOMonitor_Old.cs</DependentUpon>
</Compile>
<Compile Include="frmLogin.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmLogin.Designer.cs">
<DependentUpon>frmLogin.cs</DependentUpon>
</Compile>
<Compile Include="frmMainNew.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="frmMainNew.Designer.cs">
<DependentUpon>frmMainNew.cs</DependentUpon>
</Compile>
<Compile Include="Utils\LEnum.cs" />
<Compile Include="Utils\LEventArgs.cs" />
<Compile Include="Utils\LSwitchButton.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Utils\PlcOperationHelper.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utils\KeyboardAutoPopUp.cs" />
<Compile Include="Utils\AppConfigHelper.cs" />
<Compile Include="Utils\FormTypeAttribute.cs" />
<Compile Include="Utils\frmUtil.cs" />
<EmbeddedResource Include="frmChild\frmPopupWarningMsg.resx">
<DependentUpon>frmPopupWarningMsg.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmSwitchRunDirection.resx">
<DependentUpon>frmSwitchRunDirection.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmIoMonitorNew.resx">
<DependentUpon>frmIoMonitorNew.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmSysExitAlarm.resx">
<DependentUpon>frmSysExitAlarm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmAddRole.resx">
<DependentUpon>frmAddRole.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditRole.resx">
<DependentUpon>frmEditRole.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditWorkingPalletData.resx">
<DependentUpon>frmEditWorkingPalletData.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmSetRoleMenuPermission.resx">
<DependentUpon>frmSetRoleMenuPermission.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmAddCleanCode.resx">
<DependentUpon>frmAddCleanCode.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmAddContaminationDtl.resx">
<DependentUpon>frmAddContaminationDtl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmAddContaminationType.resx">
<DependentUpon>frmAddContaminationType.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmAddWaringMsg.resx">
<DependentUpon>frmAddWaringMsg.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditCleanCode.resx">
<DependentUpon>frmEditCleanCode.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditContaminationDtl.resx">
<DependentUpon>frmEditContaminationDtl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditContaminationType.resx">
<DependentUpon>frmEditContaminationType.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditParamater.resx">
<DependentUpon>frmEditParamater.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditWaringMsg.resx">
<DependentUpon>frmEditWaringMsg.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmAddSheetType.resx">
<DependentUpon>frmAddSheetType.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmAddUser.resx">
<DependentUpon>frmAddUser.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditSheetType.resx">
<DependentUpon>frmEditSheetType.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditUser.resx">
<DependentUpon>frmEditUser.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmIOMonitor_Old.resx">
<DependentUpon>frmIOMonitor_Old.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmLogin.resx">
<DependentUpon>frmLogin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmMainNew.resx">
<DependentUpon>frmMainNew.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmBase.resx">
<DependentUpon>frmBase.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmAddPlcItem.resx">
<DependentUpon>frmAddPlcItem.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmChild\frmEditPlcItem.resx">
<DependentUpon>frmEditPlcItem.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\Base\frmCleanMode.resx">
<DependentUpon>frmCleanMode.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\Base\frmContaminationDTL.resx">
<DependentUpon>frmContaminationDTL.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\Base\frmContaminationType.resx">
<DependentUpon>frmContaminationType.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\Base\frmRole.resx">
<DependentUpon>frmRole.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\Base\frmSheetType.resx">
<DependentUpon>frmSheetType.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\Base\frmUser.resx">
<DependentUpon>frmUser.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\Base\frmWarning.resx">
<DependentUpon>frmWarning.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmCurrWorkingIrMsg.resx">
<DependentUpon>frmCurrWorkingIrMsg.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmIOMonitor.resx">
<DependentUpon>frmIOMonitor.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmMainDetail.resx">
<DependentUpon>frmMainDetail.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmMaintenance.resx">
<DependentUpon>frmMaintenance.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmManual.resx">
<DependentUpon>frmManual.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmMechineCheck.resx">
<DependentUpon>frmMechineCheck.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmParamater.resx">
<DependentUpon>frmParamater.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmPlcAlarmLog.resx">
<DependentUpon>frmPlcAlarmLog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmPlcItemConfig.resx">
<DependentUpon>frmPlcItemConfig.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmUserControl\frmPrinterMain.resx">
<DependentUpon>frmPrinterMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<Compile Update="Properties\Settings.Designer.cs">
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<None Include="App.config" />
<None Include="DataBase\clearMac.db">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</ItemGroup>
<ItemGroup>
<None Update="DataBase\clearMac.db">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<None Update="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="ReportMd\CleanMac_IRMsg_PrintMd.frd">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="ReportMd\CleanMac_IRMsg_PrintMd.frx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Content Include="Resources\cleaner_128px_1238161_easyicon.net.ico" />
<Content Include="Resources\cleaning_spray.ico" />
<Content Include="Resources\favicon.ico" />
<Content Include="Resources\add.png" />
<Content Include="Resources\conn.png" />
<None Include="Resources\上升.png" />
<None Include="Resources\下降.png" />
<None Include="Resources\下降_1.png" />
<None Include="Resources\上升_1.png" />
<Content Include="Resources\客情维护.png" />
<Content Include="Resources\报警 %281%29.png" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CleanMachineHMI.Model\CleanMachineHMI.Domain.csproj">
<Project>{f7af907b-5ddc-469f-956c-08c5fd110448}</Project>
<Name>CleanMachineHMI.Domain</Name>
</ProjectReference>
<ProjectReference Include="..\LeadDataBaseUtility\LeadDataBaseUtility.csproj">
<Project>{824348a6-ffff-4c1b-bbf5-8b507a8c8ce5}</Project>
<Name>LeadDataBaseUtility</Name>
</ProjectReference>
<ProjectReference Include="..\NX_LogUtility\NX_LogUtility.csproj">
<Project>{925057d8-7ee8-42ed-8aa0-628af82f10b2}</Project>
<Name>NX_LogUtility</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -29,28 +29,28 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.kryptonNavigator1 = new ComponentFactory.Krypton.Navigator.KryptonNavigator();
this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton3 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton4 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton5 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton6 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton7 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton8 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton9 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton10 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonNavigator1 = new Krypton.Navigator.KryptonNavigator();
this.kryptonButton1 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton2 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton3 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton4 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton5 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton6 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton7 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton8 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton9 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton10 = new Krypton.Toolkit.KryptonButton();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.kryptonButton11 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonTextBox1 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonButton11 = new Krypton.Toolkit.KryptonButton();
this.kryptonTextBox1 = new Krypton.Toolkit.KryptonTextBox();
((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit();
this.kryptonNavigator1.SuspendLayout();
this.SuspendLayout();
//
// kryptonNavigator1
//
this.kryptonNavigator1.Button.ButtonDisplayLogic = ComponentFactory.Krypton.Navigator.ButtonDisplayLogic.ContextNextPrevious;
this.kryptonNavigator1.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide;
this.kryptonNavigator1.Button.ButtonDisplayLogic = Krypton.Navigator.ButtonDisplayLogic.ContextNextPrevious;
this.kryptonNavigator1.Button.CloseButtonDisplay = Krypton.Navigator.ButtonDisplay.Hide;
this.kryptonNavigator1.Location = new System.Drawing.Point(326, 45);
this.kryptonNavigator1.Name = "kryptonNavigator1";
this.kryptonNavigator1.Size = new System.Drawing.Size(589, 418);
@@ -206,19 +206,19 @@
}
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton3;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton4;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton5;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton6;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton7;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton8;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton9;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton10;
private Krypton.Toolkit.KryptonButton kryptonButton1;
private Krypton.Toolkit.KryptonButton kryptonButton2;
private Krypton.Toolkit.KryptonButton kryptonButton3;
private Krypton.Toolkit.KryptonButton kryptonButton4;
private Krypton.Toolkit.KryptonButton kryptonButton5;
private Krypton.Toolkit.KryptonButton kryptonButton6;
private Krypton.Toolkit.KryptonButton kryptonButton7;
private Krypton.Toolkit.KryptonButton kryptonButton8;
private Krypton.Toolkit.KryptonButton kryptonButton9;
private Krypton.Toolkit.KryptonButton kryptonButton10;
private System.Windows.Forms.Timer timer1;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton11;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
private ComponentFactory.Krypton.Navigator.KryptonNavigator kryptonNavigator1;
private Krypton.Toolkit.KryptonButton kryptonButton11;
private Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
private Krypton.Navigator.KryptonNavigator kryptonNavigator1;
}
}

View File

@@ -1,5 +1,6 @@
using ComponentFactory.Krypton.Navigator;
using ComponentFactory.Krypton.Toolkit;
using CleanMachine.Model;
using Krypton.Navigator;
using Krypton.Toolkit;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -23,7 +24,7 @@ namespace CleanMachineHMI
{
kryptonNavigator1.Pages.Clear();
AddFrmPage(null, null);
GlobalHelper.CmWarningLogMd_List_1 = new List<CM_WarningLogMd>();
GlobalHelper.CmWarningLogMd_List_1 = new List<WarningLog>();
}
private void kryptonButton8_BackColorChanged(object sender, EventArgs e)
@@ -85,14 +86,14 @@ namespace CleanMachineHMI
private void kryptonButton9_Click(object sender, EventArgs e)
{
GlobalHelper.CmWarningLogMd_List_1.Add(new CM_WarningLogMd {
GlobalHelper.CmWarningLogMd_List_1.Add(new WarningLog {
WarningCode = "TestAlarm001",
WarningName = "TestAlarm001",
WarningType = "TestAlarm001",
WarningMessage = "TestAlarm001",
WarningTime = DateTime.Now,
PlcItemCode = "TestAlarm001",
WarningStatus = 0,
WaringStatus = 0,
WarningHandleResult = 0,
CreateBy = 1,
CreateTime = DateTime.Now,
@@ -104,10 +105,10 @@ namespace CleanMachineHMI
private void kryptonButton10_Click(object sender, EventArgs e)
{
CM_WarningLogMd tmpWarn = GlobalHelper.CmWarningLogMd_List_1.Find(x => x.WarningStatus == 0);
WarningLog tmpWarn = GlobalHelper.CmWarningLogMd_List_1.Find(x => x.WaringStatus == 0);
if (tmpWarn != null)
{
tmpWarn.WarningStatus = 1;
tmpWarn.WaringStatus = 1;
}
}
private void timer1_Tick(object sender, EventArgs e)

View File

@@ -0,0 +1,44 @@
namespace CleanMachineHMI.FrmUserControl.Base
{
partial class UserControl1
{
/// <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.SuspendLayout();
//
// UserControl1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Name = "UserControl1";
this.ResumeLayout(false);
}
#endregion
}
}

View File

@@ -0,0 +1,20 @@
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 CleanMachineHMI.FrmUserControl.Base
{
public partial class UserControl1 : UserControl
{
public UserControl1()
{
InitializeComponent();
}
}
}

View File

@@ -1,7 +1,7 @@
namespace CleanMachineHMI.FrmUserControl
{
partial class frmCleanMode
public partial class frmCleanMode
{
/// <summary>
/// 必需的设计器变量。
@@ -29,25 +29,25 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_CleanModeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_CleanModeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_CleanModeCode = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.ktb_CleanModeName = new Krypton.Toolkit.KryptonTextBox();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
this.kryptonGroupBox2.Panel.SuspendLayout();
@@ -67,7 +67,7 @@ namespace CleanMachineHMI.FrmUserControl
//
this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox2.CaptionOverlap = 0D;
this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 131);
this.kryptonGroupBox2.Name = "kryptonGroupBox2";
@@ -88,7 +88,7 @@ namespace CleanMachineHMI.FrmUserControl
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -335,24 +335,24 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Add;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CleanModeCode;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CleanModeName;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_CleanModeCode;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonTextBox ktb_CleanModeName;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -18,15 +18,12 @@ namespace CleanMachineHMI.FrmUserControl
[FormType(EnumFormType.CleanMode)]
public partial class frmCleanMode : UserControl
{
private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
public frmCleanMode()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
protected override CreateParams CreateParams
{
@@ -62,7 +59,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -87,7 +84,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
@@ -117,7 +114,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载清洁方式界面发生异常", "LoadFrmCleanModeExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载清洁方式界面发生异常", "LoadFrmCleanModeExp") + $":【{ex.Message}】!");
}
}
@@ -129,7 +126,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询清洁方式数据发生异常", "QueryCleanModeData") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("查询清洁方式数据发生异常", "QueryCleanModeData") + $":【{ex.Message}】!");
}
}
@@ -159,7 +156,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的清洗方式数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的清洗方式数据行!", "SelectWantToEditRow"));
}
}
@@ -169,7 +166,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的清洗方式数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的清洗方式数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string CleanModeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -177,23 +174,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据成功!", "DeleteSuccessInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除清洗方式数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据失败!", "DeleteFailInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除清洗方式数据失败!", "DeleteFailInfo"));
}
}
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的清洗方式数据行!", "SelectWantToDeleteRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要删除的清洗方式数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洁方式数据发生异常", "DeleteCleanModeDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("删除清洁方式数据发生异常", "DeleteCleanModeDataExp") + $":【{ex.Message}】!");
}
}
}

View File

@@ -29,27 +29,27 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonPanel3 = new Krypton.Toolkit.KryptonPanel();
this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_ContaminationDtlMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kcmb_ContaminationType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_ContaminationDtlMsg = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.kcmb_ContaminationType = new Krypton.Toolkit.KryptonComboBox();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
this.kryptonPanel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
@@ -93,7 +93,7 @@ namespace CleanMachineHMI.FrmUserControl
//
this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox2.CaptionOverlap = 0D;
this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 131);
this.kryptonGroupBox2.Name = "kryptonGroupBox2";
@@ -114,7 +114,7 @@ namespace CleanMachineHMI.FrmUserControl
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -366,26 +366,26 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonPanel kryptonPanel3;
private Krypton.Toolkit.KryptonPanel kryptonPanel2;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Add;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ContaminationDtlMsg;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_ContaminationType;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_ContaminationDtlMsg;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonComboBox kcmb_ContaminationType;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI.WebControls;
using System.Windows.Forms;
namespace CleanMachineHMI.FrmUserControl
@@ -26,7 +26,6 @@ namespace CleanMachineHMI.FrmUserControl
public frmContaminationDTL()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
public void Init()
@@ -53,7 +52,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -76,7 +75,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
string sql = $@"select CONTAMINATION_TYPE_CODE,CONTAMINATION_TYPE_NAME from BAS_CONTAMINATION_TYPE where DEL_FLAG=0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -122,7 +121,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载污染明细界面发生异常", "LoadContaminationDTLExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载污染明细界面发生异常", "LoadContaminationDTLExp") + $":【{ex.Message}】!");
}
}
@@ -134,7 +133,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询污染明细数据发生异常", "QueryContaminationDTLData") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("查询污染明细数据发生异常", "QueryContaminationDTLData") + $":【{ex.Message}】!");
}
}
@@ -164,7 +163,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的污染明细数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的污染明细数据行!", "SelectWantToEditRow"));
}
}
@@ -174,7 +173,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的污染明细数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的污染明细数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string ContaminationDtlId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -182,23 +181,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据成功!", "DeleteSuccessInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除污染明细数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据失败!", "DeleteFailInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除污染明细数据失败!", "DeleteFailInfo"));
}
}
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的污染明细数据行!", "SelectWantToDeleteRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要删除的污染明细数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据发生异常", "DeleteContaminationDTLDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("删除污染明细数据发生异常", "DeleteContaminationDTLDataExp") + $":【{ex.Message}】!");
}
}
}

View File

@@ -29,27 +29,27 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
this.kryptonPanel3 = new Krypton.Toolkit.KryptonPanel();
this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_ContaminationTypeMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kcmb_CleanMode = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_ContaminationTypeMsg = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.kcmb_CleanMode = new Krypton.Toolkit.KryptonComboBox();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
this.kryptonPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
@@ -102,7 +102,7 @@ namespace CleanMachineHMI.FrmUserControl
//
this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox2.CaptionOverlap = 0D;
this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 129);
this.kryptonGroupBox2.Name = "kryptonGroupBox2";
@@ -123,7 +123,7 @@ namespace CleanMachineHMI.FrmUserControl
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -366,26 +366,26 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonPanel kryptonPanel3;
private Krypton.Toolkit.KryptonPanel kryptonPanel2;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Add;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ContaminationTypeMsg;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_CleanMode;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_ContaminationTypeMsg;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonComboBox kcmb_CleanMode;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI.WebControls;
using System.Windows.Forms;
namespace CleanMachineHMI.FrmUserControl
@@ -26,7 +26,6 @@ namespace CleanMachineHMI.FrmUserControl
public frmContaminationType()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
protected override CreateParams CreateParams
@@ -63,7 +62,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -86,7 +85,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
string sql = $@"select CLEAN_MODE_CODE,CLEAN_MODE_NAME from BAS_CLEAN_MODE where DEL_FLAG=0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -132,7 +131,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载污染类型界面发生异常", "LoadContaminationTypeExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载污染类型界面发生异常", "LoadContaminationTypeExp") + $":【{ex.Message}】!");
}
}
@@ -144,7 +143,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询污染类型数据发生异常", "QueryContaminationTypeData") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("查询污染类型数据发生异常", "QueryContaminationTypeData") + $":【{ex.Message}】!");
}
}
@@ -174,7 +173,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的污染类型数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的污染类型数据行!", "SelectWantToEditRow"));
}
}
@@ -184,7 +183,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的污染类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的污染类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string ContaminationId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -192,23 +191,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据成功!", "DeleteSuccessInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除污染类型数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据失败!", "DeleteFailInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除污染类型数据失败!", "DeleteFailInfo"));
}
}
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的污染类型数据行!", "SelectWantToDeleteRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要删除的污染类型数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据发生异常", "DeleteContaminationTypeDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("删除污染类型数据发生异常", "DeleteContaminationTypeDataExp") + $":【{ex.Message}】!");
}
}
}

View File

@@ -29,26 +29,26 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonPanel6 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.ktb_setRoleMenuPermission = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.ktb_setRoleMenuPermission = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kcmb_roleGrade = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.ktb_roleMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.kcmb_roleGrade = new Krypton.Toolkit.KryptonComboBox();
this.ktb_roleMsg = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -84,7 +84,7 @@ namespace CleanMachineHMI.FrmUserControl
//
this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox1.CaptionOverlap = 0D;
this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 129);
this.kryptonGroupBox1.Name = "kryptonGroupBox1";
@@ -105,7 +105,7 @@ namespace CleanMachineHMI.FrmUserControl
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -385,26 +385,26 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonPanel kryptonPanel6;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private ComponentFactory.Krypton.Toolkit.KryptonButton ktb_setRoleMenuPermission;
private Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonButton ktb_setRoleMenuPermission;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_roleGrade;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_roleMsg;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonComboBox kcmb_roleGrade;
private Krypton.Toolkit.KryptonTextBox ktb_roleMsg;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -21,11 +21,7 @@ namespace CleanMachineHMI.FrmUserControl
public frmRole()
{
InitializeComponent();
_ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
private DataTable _ComboBoxLanguageTextList;
private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
public void Init()
@@ -58,7 +54,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -80,13 +76,13 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
if (GlobalHelper.LanguageCode == "English")
this.SetFormControlText();
{
kcmb_roleGrade.Items.Clear();
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_roleGrade.Name, "KryptonComboBox"))
foreach (string item in this.GetComBoboxItemArr(kcmb_roleGrade.Name))
{
kcmb_roleGrade.Items.Add(item["CONTROL_NAME"].ToString());
kcmb_roleGrade.Items.Add(item);
}
kcmb_roleGrade.SelectedIndex = 0;
}
@@ -116,7 +112,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载角色信息界面发生异常", "LoadRoleMsgExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载角色信息界面发生异常", "LoadRoleMsgExp") + $":【{ex.Message}】!");
}
}
@@ -136,7 +132,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的角色数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的角色数据行!", "SelectWantToEditRow"));
}
}
@@ -146,7 +142,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的角色信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的角色信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -154,30 +150,30 @@ namespace CleanMachineHMI.FrmUserControl
DataTable dtIsExistAdmin = LeadDbHelperSQLite.Query(sqlIsExistAdmin).Tables[0];
if (dtIsExistAdmin != null && dtIsExistAdmin.Rows.Count > 0)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("管理员角色不允许删除!", "DeleteAdminRoleInfo"));
KryptonMessageBox.Show(this.GetInfoText("管理员角色不允许删除!", "DeleteAdminRoleInfo"));
return;
}
string sql = $@"DELETE FROM SYS_ROLE WHERE ROLE_ID = '{UserId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据成功!", "DeleteSuccessInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除角色数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据失败!", "DeleteFailInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除角色数据失败!", "DeleteFailInfo"));
}
}
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的角色数据行!", "SelectWantToDeleteRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要删除的角色数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据发生异常", "DeleteRoleDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("删除角色数据发生异常", "DeleteRoleDataExp") + $":【{ex.Message}】!");
}
}
@@ -189,7 +185,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询角色信息数据发生异常", "QueryRoleMsgData") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("查询角色信息数据发生异常", "QueryRoleMsgData") + $":【{ex.Message}】!");
}
}
@@ -213,7 +209,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要授权菜单权限的角色数据行!", "SelectWantToPermissionRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要授权菜单权限的角色数据行!", "SelectWantToPermissionRow"));
}
}
}

View File

@@ -29,25 +29,25 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_SheetTypeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_SheetTypeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_SheetTypeCode = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.ktb_SheetTypeName = new Krypton.Toolkit.KryptonTextBox();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
this.tableLayoutPanel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
@@ -270,7 +270,7 @@ namespace CleanMachineHMI.FrmUserControl
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -285,7 +285,7 @@ namespace CleanMachineHMI.FrmUserControl
//
this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox2.CaptionOverlap = 0D;
this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 129);
this.kryptonGroupBox2.Name = "kryptonGroupBox2";
@@ -335,24 +335,24 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_SheetTypeCode;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_SheetTypeName;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_SheetTypeCode;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonTextBox ktb_SheetTypeName;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -21,9 +21,8 @@ namespace CleanMachineHMI.FrmUserControl
public frmSheetType()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
protected override CreateParams CreateParams
@@ -59,7 +58,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -83,7 +82,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
@@ -112,7 +111,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载板材类型界面发生异常", "LoadSheetTypeExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载板材类型界面发生异常", "LoadSheetTypeExp") + $":【{ex.Message}】!");
}
}
@@ -124,7 +123,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询板材类型数据发生异常", "QuerySheetTypeData") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("查询板材类型数据发生异常", "QuerySheetTypeData") + $":【{ex.Message}】!");
}
}
@@ -154,7 +153,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的板材类型数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的板材类型数据行!", "SelectWantToEditRow"));
}
}
@@ -164,7 +163,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的板材类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的板材类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string SheetTypeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -172,23 +171,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除板材类型数据成功!", "DeleteSuccessInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除板材类型数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除板材类型数据失败!", "DeleteFailInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除板材类型数据失败!", "DeleteFailInfo"));
}
}
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的板材类型数据行!", "SelectWantToDeleteRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要删除的板材类型数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染板材类型数据发生异常", "DeleteSheetTypeDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("删除污染板材类型数据发生异常", "DeleteSheetTypeDataExp") + $":【{ex.Message}】!");
}
}
}

View File

@@ -34,24 +34,24 @@ namespace CleanMachineHMI.FrmUserControl
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kcmb_gender = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.ktb_userMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.kcmb_gender = new Krypton.Toolkit.KryptonComboBox();
this.ktb_userMsg = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonPanel6 = new Krypton.Toolkit.KryptonPanel();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kcmb_gender)).BeginInit();
this.tableLayoutPanel2.SuspendLayout();
@@ -304,7 +304,7 @@ namespace CleanMachineHMI.FrmUserControl
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -319,7 +319,7 @@ namespace CleanMachineHMI.FrmUserControl
//
this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox1.CaptionOverlap = 0D;
this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 129);
this.kryptonGroupBox1.Name = "kryptonGroupBox1";
@@ -376,23 +376,23 @@ namespace CleanMachineHMI.FrmUserControl
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_gender;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_userMsg;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonComboBox kcmb_gender;
private Krypton.Toolkit.KryptonTextBox ktb_userMsg;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonPanel kryptonPanel6;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -21,11 +21,7 @@ namespace CleanMachineHMI.FrmUserControl
public frmUser()
{
InitializeComponent();
_ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
private DataTable _ComboBoxLanguageTextList;
private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
@@ -48,15 +44,15 @@ namespace CleanMachineHMI.FrmUserControl
{
sql += $" AND CREATE_TIME <= '{kdtp_CreateEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss")}'";
}
if (GlobalHelper.UserInfo.ROLE_GRADE != 100)
if (GlobalHelper.UserInfo.RoleGrade != 100)
{
sql += $" AND USER_ID = '{GlobalHelper.UserInfo.USER_ID}'";
sql += $" AND USER_ID = '{GlobalHelper.UserInfo.UserId}'";
}
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -79,19 +75,19 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
kdtp_CreateStartTime.Checked = false;
kdtp_CreateEndTime.Checked = false;
if (GlobalHelper.LanguageCode == "English")
{
kcmb_gender.Items.Clear();
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_gender.Name, "KryptonComboBox"))
foreach (string item in this.GetComBoboxItemArr(kcmb_gender.Name))
{
kcmb_gender.Items.Add(item["CONTROL_NAME"].ToString());
kcmb_gender.Items.Add(item);
}
}
kcmb_gender.SelectedIndex = 0;
@@ -117,7 +113,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载用户信息界面发生异常", "LoadUserMsgExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载用户信息界面发生异常", "LoadUserMsgExp") + $":【{ex.Message}】!");
}
}
@@ -129,7 +125,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询用户信息数据发生异常", "QueryUserMsgData") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("查询用户信息数据发生异常", "QueryUserMsgData") + $":【{ex.Message}】!");
}
}
@@ -159,7 +155,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的用户信息数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的用户信息数据行!", "SelectWantToEditRow"));
}
}
@@ -169,7 +165,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的用户信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的用户信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -177,23 +173,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户数据成功!", "DeleteSuccessInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除用户数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户数据失败!", "DeleteFailInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除用户数据失败!", "DeleteFailInfo"));
}
}
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的用户数据行!", "SelectWantToDeleteRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要删除的用户数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户信息数据发生异常", "DeleteUserMsgDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("删除用户信息数据发生异常", "DeleteUserMsgDataExp") + $":【{ex.Message}】!");
}
}
}

View File

@@ -29,25 +29,25 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonPanel6 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonPanel6 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_WarningMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kcmb_WarningType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_WarningMsg = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.kcmb_WarningType = new Krypton.Toolkit.KryptonComboBox();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -77,7 +77,7 @@ namespace CleanMachineHMI.FrmUserControl
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -102,7 +102,7 @@ namespace CleanMachineHMI.FrmUserControl
//
this.kryptonGroupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox1.CaptionOverlap = 0D;
this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 128);
this.kryptonGroupBox1.Name = "kryptonGroupBox1";
@@ -370,25 +370,25 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel6;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonPanel kryptonPanel6;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Add;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_WarningMsg;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_WarningType;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_WarningMsg;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonComboBox kcmb_WarningType;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -24,11 +24,7 @@ namespace CleanMachineHMI.FrmUserControl
public frmWarning()
{
InitializeComponent();
_ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
private DataTable _ComboBoxLanguageTextList;
private DataTable _InfoLanguageTextList;
public void Init()
{
var sql = $@"select WARNING_ID 序号,WARNING_CODE 报警编码,WARNING_NAME 报警名称,PLC_ITEM_CODE 'PLC信息',CASE WARNING_TYPE WHEN '1' THEN 'Cleaning machine alarm' ELSE 'Frequency converter alarm' END '报警类型',WARNING_MESSAGE 报警描述,CREATE_TIME 创建时间 from BAS_WARNING where DEL_FLAG=0";
@@ -53,7 +49,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
dataGridView.SetDataViewColumnText(this.Name);
}
@@ -86,19 +82,19 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
kdtp_CreateStartTime.Checked = false;
kdtp_CreateEndTime.Checked = false;
if (GlobalHelper.LanguageCode == "English")
{
kcmb_WarningType.Items.Clear();
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
foreach (string item in this.GetComBoboxItemArr(kcmb_WarningType.Name))
{
kcmb_WarningType.Items.Add(item["CONTROL_NAME"].ToString());
kcmb_WarningType.Items.Add(item);
}
}
kcmb_WarningType.SelectedIndex = 0;
@@ -125,7 +121,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载报警信息界面发生异常", "LoadWarningMsgExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载报警信息界面发生异常", "LoadWarningMsgExp") + $":【{ex.Message}】!");
}
}
@@ -137,7 +133,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询报警信息数据发生异常", "QueryWarningMsgDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("查询报警信息数据发生异常", "QueryWarningMsgDataExp") + $":【{ex.Message}】!");
}
}
@@ -167,7 +163,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的报警信息数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的报警信息数据行!", "SelectWantToEditRow"));
}
}
@@ -177,7 +173,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的报警信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的报警信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string WarningId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -185,23 +181,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警数据成功!", "DeleteSuccessInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除报警数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警数据失败!", "DeleteFailInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除报警数据失败!", "DeleteFailInfo"));
}
}
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的报警数据行!", "SelectWantToDeleteRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要删除的报警数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警信息数据发生异常", "DeleteWarningMsgDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("删除报警信息数据发生异常", "DeleteWarningMsgDataExp") + $":【{ex.Message}】!");
}
}
}

View File

@@ -30,15 +30,15 @@ namespace CleanMachineHMI.FrmUserControl
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonTextBox2 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonTextBox1 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonDataGridView1 = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton1 = new Krypton.Toolkit.KryptonButton();
this.kryptonTextBox2 = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonTextBox1 = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel();
this.timer1 = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
@@ -189,15 +189,15 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonButton kryptonButton1;
private Krypton.Toolkit.KryptonTextBox kryptonTextBox2;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
private Krypton.Toolkit.KryptonLabel kryptonLabel1;
private System.Windows.Forms.Timer timer1;
}
}

View File

@@ -1,6 +1,6 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -27,7 +27,7 @@ namespace CleanMachineHMI.FrmUserControl
{
try
{
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
string sql = $@"SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -55,7 +55,7 @@ namespace CleanMachineHMI.FrmUserControl
kryptonTextBox1.Text = currPalletMsg;
kryptonTextBox2.Text = currIrMsg;
kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
kryptonDataGridView1.SetDataViewColumnText(this.Name);
}
else
{
@@ -88,8 +88,8 @@ namespace CleanMachineHMI.FrmUserControl
DialogResult dr = KryptonMessageBox.Show("Are you sure you want to clear the IR data for the current job? If you continue to reset the current job information, you will need to enter new IR and sheet information. please carefully operation!!!", "Prompt", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dr == DialogResult.Yes)
{
string sqlUpdateWorkingPallet = $@"UPDATE CM_WORKING_PALLET SET WORKING_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{kryptonTextBox1.Text.Trim()}';";
string sqlUpdateWorkingPalletDtl = $@"UPDATE CM_WORKING_PALLET_DTL SET WORKING_DTL_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.USER_ID}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{kryptonTextBox1.Text.Trim()}';";
string sqlUpdateWorkingPallet = $@"UPDATE CM_WORKING_PALLET SET WORKING_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{kryptonTextBox1.Text.Trim()}';";
string sqlUpdateWorkingPalletDtl = $@"UPDATE CM_WORKING_PALLET_DTL SET WORKING_DTL_STATUS = 1,UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime'),DATA_VERSION = DATA_VERSION + 1 where WORKING_PALLET_CODE = '{kryptonTextBox1.Text.Trim()}';";
string sqlInsertZbkWorkingPallet = $@"INSERT INTO ZBK_WORKING_PALLET SELECT * FROM CM_WORKING_PALLET WHERE WORKING_STATUS = 1 and WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where WORKING_DTL_STATUS = 1 and IR_CODE = '{kryptonTextBox2.Text.Trim()}');";
string sqlInsertZbkWorkingPalletDtl = $@"INSERT INTO ZBK_WORKING_PALLET_DTL SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 1 and IR_CODE = '{kryptonTextBox2.Text.Trim()}';";
string sqlDeleteWorkingPallet = $@"delete from CM_WORKING_PALLET where WORKING_STATUS = 1 and WORKING_PALLET_CODE in (select WORKING_PALLET_CODE from CM_WORKING_PALLET_DTL where WORKING_DTL_STATUS = 1 and IR_CODE = '{kryptonTextBox2.Text.Trim()}');";

View File

@@ -29,256 +29,256 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.klb_X15 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X33 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X15 = new Krypton.Toolkit.KryptonLabel();
this.klb_X33 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X33 = new CleanMachineHMI.CircleButton();
this.kryptonLabel46 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel46 = new Krypton.Toolkit.KryptonLabel();
this.panel23 = new System.Windows.Forms.Panel();
this.klb_X13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X13 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X13 = new CleanMachineHMI.CircleButton();
this.kryptonLabel44 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel44 = new Krypton.Toolkit.KryptonLabel();
this.panel22 = new System.Windows.Forms.Panel();
this.klb_X32 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X32 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X32 = new CleanMachineHMI.CircleButton();
this.kryptonLabel42 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel42 = new Krypton.Toolkit.KryptonLabel();
this.panel21 = new System.Windows.Forms.Panel();
this.klb_X12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X12 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X12 = new CleanMachineHMI.CircleButton();
this.kryptonLabel40 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel40 = new Krypton.Toolkit.KryptonLabel();
this.panel24 = new System.Windows.Forms.Panel();
this.panel20 = new System.Windows.Forms.Panel();
this.klb_X31 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X31 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X31 = new CleanMachineHMI.CircleButton();
this.kryptonLabel38 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel38 = new Krypton.Toolkit.KryptonLabel();
this.panel19 = new System.Windows.Forms.Panel();
this.klb_X11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X11 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X11 = new CleanMachineHMI.CircleButton();
this.kryptonLabel36 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel36 = new Krypton.Toolkit.KryptonLabel();
this.panel18 = new System.Windows.Forms.Panel();
this.klb_X30 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X30 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X30 = new CleanMachineHMI.CircleButton();
this.kryptonLabel34 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel34 = new Krypton.Toolkit.KryptonLabel();
this.panel17 = new System.Windows.Forms.Panel();
this.klb_X10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X10 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X10 = new CleanMachineHMI.CircleButton();
this.kryptonLabel32 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel32 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X15 = new CleanMachineHMI.CircleButton();
this.panel32 = new System.Windows.Forms.Panel();
this.klb_X37 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X37 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X37 = new CleanMachineHMI.CircleButton();
this.kryptonLabel62 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y27 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel62 = new Krypton.Toolkit.KryptonLabel();
this.klb_Y27 = new Krypton.Toolkit.KryptonLabel();
this.panel30 = new System.Windows.Forms.Panel();
this.klb_X36 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X36 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X36 = new CleanMachineHMI.CircleButton();
this.kryptonLabel58 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel58 = new Krypton.Toolkit.KryptonLabel();
this.panel31 = new System.Windows.Forms.Panel();
this.klb_X17 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X17 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X17 = new CleanMachineHMI.CircleButton();
this.kryptonLabel60 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel60 = new Krypton.Toolkit.KryptonLabel();
this.panel26 = new System.Windows.Forms.Panel();
this.klb_X34 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X34 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X34 = new CleanMachineHMI.CircleButton();
this.kryptonLabel50 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel50 = new Krypton.Toolkit.KryptonLabel();
this.panel29 = new System.Windows.Forms.Panel();
this.klb_X16 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X16 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X16 = new CleanMachineHMI.CircleButton();
this.kryptonLabel56 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel56 = new Krypton.Toolkit.KryptonLabel();
this.panel25 = new System.Windows.Forms.Panel();
this.klb_X14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X14 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X14 = new CleanMachineHMI.CircleButton();
this.kryptonLabel48 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel48 = new Krypton.Toolkit.KryptonLabel();
this.panel28 = new System.Windows.Forms.Panel();
this.klb_X35 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X35 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X35 = new CleanMachineHMI.CircleButton();
this.kryptonLabel54 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel54 = new Krypton.Toolkit.KryptonLabel();
this.panel27 = new System.Windows.Forms.Panel();
this.kryptonLabel52 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X04 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel16 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel52 = new Krypton.Toolkit.KryptonLabel();
this.klb_X04 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel16 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y27 = new CleanMachineHMI.CircleButton();
this.klb_X23 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X23 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X23 = new CleanMachineHMI.CircleButton();
this.kryptonLabel14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X03 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel14 = new Krypton.Toolkit.KryptonLabel();
this.klb_X03 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X03 = new CleanMachineHMI.CircleButton();
this.kryptonLabel12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X22 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel12 = new Krypton.Toolkit.KryptonLabel();
this.klb_X22 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X22 = new CleanMachineHMI.CircleButton();
this.kryptonLabel10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X02 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel10 = new Krypton.Toolkit.KryptonLabel();
this.klb_X02 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X02 = new CleanMachineHMI.CircleButton();
this.kryptonLabel8 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X21 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel8 = new Krypton.Toolkit.KryptonLabel();
this.klb_X21 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X21 = new CleanMachineHMI.CircleButton();
this.kryptonLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X01 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel6 = new Krypton.Toolkit.KryptonLabel();
this.klb_X01 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X01 = new CleanMachineHMI.CircleButton();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X20 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.klb_X20 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X20 = new CleanMachineHMI.CircleButton();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X00 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.klb_X00 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X00 = new CleanMachineHMI.CircleButton();
this.cbt_X04 = new CleanMachineHMI.CircleButton();
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonPanel3 = new Krypton.Toolkit.KryptonPanel();
this.panel64 = new System.Windows.Forms.Panel();
this.klb_Y37 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y37 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y37 = new CleanMachineHMI.CircleButton();
this.kryptonLabel126 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel126 = new Krypton.Toolkit.KryptonLabel();
this.panel36 = new System.Windows.Forms.Panel();
this.klb_Y21 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y21 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y21 = new CleanMachineHMI.CircleButton();
this.kryptonLabel70 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel70 = new Krypton.Toolkit.KryptonLabel();
this.panel63 = new System.Windows.Forms.Panel();
this.klb_Y36 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y36 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y36 = new CleanMachineHMI.CircleButton();
this.kryptonLabel124 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel124 = new Krypton.Toolkit.KryptonLabel();
this.panel33 = new System.Windows.Forms.Panel();
this.klb_Y00 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y00 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y00 = new CleanMachineHMI.CircleButton();
this.kryptonLabel64 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel64 = new Krypton.Toolkit.KryptonLabel();
this.panel62 = new System.Windows.Forms.Panel();
this.klb_Y17 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y17 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y17 = new CleanMachineHMI.CircleButton();
this.kryptonLabel122 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel122 = new Krypton.Toolkit.KryptonLabel();
this.panel34 = new System.Windows.Forms.Panel();
this.klb_Y20 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y20 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y20 = new CleanMachineHMI.CircleButton();
this.kryptonLabel66 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel66 = new Krypton.Toolkit.KryptonLabel();
this.panel61 = new System.Windows.Forms.Panel();
this.klb_Y34 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y34 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y34 = new CleanMachineHMI.CircleButton();
this.kryptonLabel120 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel120 = new Krypton.Toolkit.KryptonLabel();
this.panel35 = new System.Windows.Forms.Panel();
this.klb_Y01 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y01 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y01 = new CleanMachineHMI.CircleButton();
this.kryptonLabel68 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel68 = new Krypton.Toolkit.KryptonLabel();
this.panel60 = new System.Windows.Forms.Panel();
this.klb_Y16 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y16 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y16 = new CleanMachineHMI.CircleButton();
this.kryptonLabel118 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel118 = new Krypton.Toolkit.KryptonLabel();
this.panel37 = new System.Windows.Forms.Panel();
this.klb_Y02 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y02 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y02 = new CleanMachineHMI.CircleButton();
this.kryptonLabel72 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel72 = new Krypton.Toolkit.KryptonLabel();
this.panel59 = new System.Windows.Forms.Panel();
this.klb_Y14 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y14 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y14 = new CleanMachineHMI.CircleButton();
this.kryptonLabel116 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel116 = new Krypton.Toolkit.KryptonLabel();
this.panel38 = new System.Windows.Forms.Panel();
this.klb_Y22 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y22 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y22 = new CleanMachineHMI.CircleButton();
this.kryptonLabel74 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel74 = new Krypton.Toolkit.KryptonLabel();
this.panel58 = new System.Windows.Forms.Panel();
this.klb_Y35 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y35 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y35 = new CleanMachineHMI.CircleButton();
this.kryptonLabel114 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel114 = new Krypton.Toolkit.KryptonLabel();
this.panel39 = new System.Windows.Forms.Panel();
this.klb_Y03 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y03 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y03 = new CleanMachineHMI.CircleButton();
this.kryptonLabel76 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel76 = new Krypton.Toolkit.KryptonLabel();
this.panel57 = new System.Windows.Forms.Panel();
this.klb_Y15 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y15 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y15 = new CleanMachineHMI.CircleButton();
this.kryptonLabel112 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel112 = new Krypton.Toolkit.KryptonLabel();
this.panel40 = new System.Windows.Forms.Panel();
this.klb_Y23 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y23 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y23 = new CleanMachineHMI.CircleButton();
this.kryptonLabel78 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel78 = new Krypton.Toolkit.KryptonLabel();
this.panel56 = new System.Windows.Forms.Panel();
this.klb_Y33 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y33 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y33 = new CleanMachineHMI.CircleButton();
this.kryptonLabel110 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel110 = new Krypton.Toolkit.KryptonLabel();
this.panel41 = new System.Windows.Forms.Panel();
this.klb_Y04 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y04 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y04 = new CleanMachineHMI.CircleButton();
this.kryptonLabel80 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel80 = new Krypton.Toolkit.KryptonLabel();
this.panel55 = new System.Windows.Forms.Panel();
this.klb_Y13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y13 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y13 = new CleanMachineHMI.CircleButton();
this.kryptonLabel108 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel108 = new Krypton.Toolkit.KryptonLabel();
this.panel42 = new System.Windows.Forms.Panel();
this.klb_Y24 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y24 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y24 = new CleanMachineHMI.CircleButton();
this.kryptonLabel82 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel82 = new Krypton.Toolkit.KryptonLabel();
this.panel54 = new System.Windows.Forms.Panel();
this.klb_Y32 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y32 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y32 = new CleanMachineHMI.CircleButton();
this.kryptonLabel106 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel106 = new Krypton.Toolkit.KryptonLabel();
this.panel43 = new System.Windows.Forms.Panel();
this.klb_Y05 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y05 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y05 = new CleanMachineHMI.CircleButton();
this.kryptonLabel84 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel84 = new Krypton.Toolkit.KryptonLabel();
this.panel53 = new System.Windows.Forms.Panel();
this.klb_Y12 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y12 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y12 = new CleanMachineHMI.CircleButton();
this.kryptonLabel104 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel104 = new Krypton.Toolkit.KryptonLabel();
this.panel44 = new System.Windows.Forms.Panel();
this.klb_Y25 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y25 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y25 = new CleanMachineHMI.CircleButton();
this.kryptonLabel86 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel86 = new Krypton.Toolkit.KryptonLabel();
this.panel52 = new System.Windows.Forms.Panel();
this.klb_Y31 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y31 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y31 = new CleanMachineHMI.CircleButton();
this.kryptonLabel102 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel102 = new Krypton.Toolkit.KryptonLabel();
this.panel45 = new System.Windows.Forms.Panel();
this.klb_Y06 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y06 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y06 = new CleanMachineHMI.CircleButton();
this.kryptonLabel88 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel88 = new Krypton.Toolkit.KryptonLabel();
this.panel51 = new System.Windows.Forms.Panel();
this.klb_Y11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y11 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y11 = new CleanMachineHMI.CircleButton();
this.kryptonLabel100 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel100 = new Krypton.Toolkit.KryptonLabel();
this.panel46 = new System.Windows.Forms.Panel();
this.klb_Y26 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y26 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y26 = new CleanMachineHMI.CircleButton();
this.kryptonLabel90 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel90 = new Krypton.Toolkit.KryptonLabel();
this.panel50 = new System.Windows.Forms.Panel();
this.klb_Y30 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y30 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y30 = new CleanMachineHMI.CircleButton();
this.kryptonLabel98 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel98 = new Krypton.Toolkit.KryptonLabel();
this.panel47 = new System.Windows.Forms.Panel();
this.klb_Y07 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y07 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y07 = new CleanMachineHMI.CircleButton();
this.kryptonLabel92 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel92 = new Krypton.Toolkit.KryptonLabel();
this.panel49 = new System.Windows.Forms.Panel();
this.klb_Y10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_Y10 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Y10 = new CleanMachineHMI.CircleButton();
this.kryptonLabel96 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel96 = new Krypton.Toolkit.KryptonLabel();
this.panel48 = new System.Windows.Forms.Panel();
this.kryptonLabel94 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonLabel94 = new Krypton.Toolkit.KryptonLabel();
this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
this.panel16 = new System.Windows.Forms.Panel();
this.klb_X27 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X27 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X27 = new CleanMachineHMI.CircleButton();
this.kryptonLabel30 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel30 = new Krypton.Toolkit.KryptonLabel();
this.panel15 = new System.Windows.Forms.Panel();
this.klb_X07 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X07 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X07 = new CleanMachineHMI.CircleButton();
this.kryptonLabel28 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel28 = new Krypton.Toolkit.KryptonLabel();
this.panel14 = new System.Windows.Forms.Panel();
this.klb_X26 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X26 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X26 = new CleanMachineHMI.CircleButton();
this.kryptonLabel26 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel26 = new Krypton.Toolkit.KryptonLabel();
this.panel13 = new System.Windows.Forms.Panel();
this.klb_X06 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X06 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X06 = new CleanMachineHMI.CircleButton();
this.kryptonLabel24 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel24 = new Krypton.Toolkit.KryptonLabel();
this.panel12 = new System.Windows.Forms.Panel();
this.klb_X25 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X25 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X25 = new CleanMachineHMI.CircleButton();
this.kryptonLabel22 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel22 = new Krypton.Toolkit.KryptonLabel();
this.panel11 = new System.Windows.Forms.Panel();
this.klb_X05 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X05 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X05 = new CleanMachineHMI.CircleButton();
this.kryptonLabel20 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel20 = new Krypton.Toolkit.KryptonLabel();
this.panel10 = new System.Windows.Forms.Panel();
this.klb_X24 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.klb_X24 = new Krypton.Toolkit.KryptonLabel();
this.cbt_X24 = new CleanMachineHMI.CircleButton();
this.kryptonLabel18 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel18 = new Krypton.Toolkit.KryptonLabel();
this.panel9 = new System.Windows.Forms.Panel();
this.panel8 = new System.Windows.Forms.Panel();
this.panel7 = new System.Windows.Forms.Panel();
@@ -288,7 +288,7 @@ namespace CleanMachineHMI.FrmUserControl
this.panel3 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel();
this.panel23.SuspendLayout();
this.panel22.SuspendLayout();
this.panel21.SuspendLayout();
@@ -3117,256 +3117,256 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X15;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X33;
private Krypton.Toolkit.KryptonLabel klb_X15;
private Krypton.Toolkit.KryptonLabel klb_X33;
private CircleButton cbt_X33;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel46;
private Krypton.Toolkit.KryptonLabel kryptonLabel46;
private System.Windows.Forms.Panel panel23;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X13;
private Krypton.Toolkit.KryptonLabel klb_X13;
private CircleButton cbt_X13;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel44;
private Krypton.Toolkit.KryptonLabel kryptonLabel44;
private System.Windows.Forms.Panel panel22;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X32;
private Krypton.Toolkit.KryptonLabel klb_X32;
private CircleButton cbt_X32;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel42;
private Krypton.Toolkit.KryptonLabel kryptonLabel42;
private System.Windows.Forms.Panel panel21;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X12;
private Krypton.Toolkit.KryptonLabel klb_X12;
private CircleButton cbt_X12;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel40;
private Krypton.Toolkit.KryptonLabel kryptonLabel40;
private System.Windows.Forms.Panel panel24;
private System.Windows.Forms.Panel panel20;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X31;
private Krypton.Toolkit.KryptonLabel klb_X31;
private CircleButton cbt_X31;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel38;
private Krypton.Toolkit.KryptonLabel kryptonLabel38;
private System.Windows.Forms.Panel panel19;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X11;
private Krypton.Toolkit.KryptonLabel klb_X11;
private CircleButton cbt_X11;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel36;
private Krypton.Toolkit.KryptonLabel kryptonLabel36;
private System.Windows.Forms.Panel panel18;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X30;
private Krypton.Toolkit.KryptonLabel klb_X30;
private CircleButton cbt_X30;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel34;
private Krypton.Toolkit.KryptonLabel kryptonLabel34;
private System.Windows.Forms.Panel panel17;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X10;
private Krypton.Toolkit.KryptonLabel klb_X10;
private CircleButton cbt_X10;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel32;
private Krypton.Toolkit.KryptonLabel kryptonLabel32;
private CircleButton cbt_X15;
private System.Windows.Forms.Panel panel32;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X37;
private Krypton.Toolkit.KryptonLabel klb_X37;
private CircleButton cbt_X37;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel62;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y27;
private Krypton.Toolkit.KryptonLabel kryptonLabel62;
private Krypton.Toolkit.KryptonLabel klb_Y27;
private System.Windows.Forms.Panel panel30;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X36;
private Krypton.Toolkit.KryptonLabel klb_X36;
private CircleButton cbt_X36;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel58;
private Krypton.Toolkit.KryptonLabel kryptonLabel58;
private System.Windows.Forms.Panel panel31;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X17;
private Krypton.Toolkit.KryptonLabel klb_X17;
private CircleButton cbt_X17;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel60;
private Krypton.Toolkit.KryptonLabel kryptonLabel60;
private System.Windows.Forms.Panel panel26;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X34;
private Krypton.Toolkit.KryptonLabel klb_X34;
private CircleButton cbt_X34;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel50;
private Krypton.Toolkit.KryptonLabel kryptonLabel50;
private System.Windows.Forms.Panel panel29;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X16;
private Krypton.Toolkit.KryptonLabel klb_X16;
private CircleButton cbt_X16;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel56;
private Krypton.Toolkit.KryptonLabel kryptonLabel56;
private System.Windows.Forms.Panel panel25;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X14;
private Krypton.Toolkit.KryptonLabel klb_X14;
private CircleButton cbt_X14;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel48;
private Krypton.Toolkit.KryptonLabel kryptonLabel48;
private System.Windows.Forms.Panel panel28;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X35;
private Krypton.Toolkit.KryptonLabel klb_X35;
private CircleButton cbt_X35;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel54;
private Krypton.Toolkit.KryptonLabel kryptonLabel54;
private System.Windows.Forms.Panel panel27;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel52;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X04;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel16;
private Krypton.Toolkit.KryptonLabel kryptonLabel52;
private Krypton.Toolkit.KryptonLabel klb_X04;
private Krypton.Toolkit.KryptonLabel kryptonLabel16;
private CircleButton cbt_Y27;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X23;
private Krypton.Toolkit.KryptonLabel klb_X23;
private CircleButton cbt_X23;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel14;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X03;
private Krypton.Toolkit.KryptonLabel kryptonLabel14;
private Krypton.Toolkit.KryptonLabel klb_X03;
private CircleButton cbt_X03;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel12;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X22;
private Krypton.Toolkit.KryptonLabel kryptonLabel12;
private Krypton.Toolkit.KryptonLabel klb_X22;
private CircleButton cbt_X22;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel10;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X02;
private Krypton.Toolkit.KryptonLabel kryptonLabel10;
private Krypton.Toolkit.KryptonLabel klb_X02;
private CircleButton cbt_X02;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel8;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X21;
private Krypton.Toolkit.KryptonLabel kryptonLabel8;
private Krypton.Toolkit.KryptonLabel klb_X21;
private CircleButton cbt_X21;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel6;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X01;
private Krypton.Toolkit.KryptonLabel kryptonLabel6;
private Krypton.Toolkit.KryptonLabel klb_X01;
private CircleButton cbt_X01;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X20;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonLabel klb_X20;
private CircleButton cbt_X20;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X00;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel klb_X00;
private CircleButton cbt_X00;
private CircleButton cbt_X04;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
private Krypton.Toolkit.KryptonPanel kryptonPanel3;
private System.Windows.Forms.Panel panel64;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y37;
private Krypton.Toolkit.KryptonLabel klb_Y37;
private CircleButton cbt_Y37;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel126;
private Krypton.Toolkit.KryptonLabel kryptonLabel126;
private System.Windows.Forms.Panel panel36;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y21;
private Krypton.Toolkit.KryptonLabel klb_Y21;
private CircleButton cbt_Y21;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel70;
private Krypton.Toolkit.KryptonLabel kryptonLabel70;
private System.Windows.Forms.Panel panel63;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y36;
private Krypton.Toolkit.KryptonLabel klb_Y36;
private CircleButton cbt_Y36;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel124;
private Krypton.Toolkit.KryptonLabel kryptonLabel124;
private System.Windows.Forms.Panel panel33;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y00;
private Krypton.Toolkit.KryptonLabel klb_Y00;
private CircleButton cbt_Y00;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel64;
private Krypton.Toolkit.KryptonLabel kryptonLabel64;
private System.Windows.Forms.Panel panel62;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y17;
private Krypton.Toolkit.KryptonLabel klb_Y17;
private CircleButton cbt_Y17;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel122;
private Krypton.Toolkit.KryptonLabel kryptonLabel122;
private System.Windows.Forms.Panel panel34;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y20;
private Krypton.Toolkit.KryptonLabel klb_Y20;
private CircleButton cbt_Y20;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel66;
private Krypton.Toolkit.KryptonLabel kryptonLabel66;
private System.Windows.Forms.Panel panel61;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y34;
private Krypton.Toolkit.KryptonLabel klb_Y34;
private CircleButton cbt_Y34;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel120;
private Krypton.Toolkit.KryptonLabel kryptonLabel120;
private System.Windows.Forms.Panel panel35;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y01;
private Krypton.Toolkit.KryptonLabel klb_Y01;
private CircleButton cbt_Y01;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel68;
private Krypton.Toolkit.KryptonLabel kryptonLabel68;
private System.Windows.Forms.Panel panel60;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y16;
private Krypton.Toolkit.KryptonLabel klb_Y16;
private CircleButton cbt_Y16;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel118;
private Krypton.Toolkit.KryptonLabel kryptonLabel118;
private System.Windows.Forms.Panel panel37;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y02;
private Krypton.Toolkit.KryptonLabel klb_Y02;
private CircleButton cbt_Y02;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel72;
private Krypton.Toolkit.KryptonLabel kryptonLabel72;
private System.Windows.Forms.Panel panel59;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y14;
private Krypton.Toolkit.KryptonLabel klb_Y14;
private CircleButton cbt_Y14;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel116;
private Krypton.Toolkit.KryptonLabel kryptonLabel116;
private System.Windows.Forms.Panel panel38;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y22;
private Krypton.Toolkit.KryptonLabel klb_Y22;
private CircleButton cbt_Y22;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel74;
private Krypton.Toolkit.KryptonLabel kryptonLabel74;
private System.Windows.Forms.Panel panel58;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y35;
private Krypton.Toolkit.KryptonLabel klb_Y35;
private CircleButton cbt_Y35;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel114;
private Krypton.Toolkit.KryptonLabel kryptonLabel114;
private System.Windows.Forms.Panel panel39;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y03;
private Krypton.Toolkit.KryptonLabel klb_Y03;
private CircleButton cbt_Y03;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel76;
private Krypton.Toolkit.KryptonLabel kryptonLabel76;
private System.Windows.Forms.Panel panel57;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y15;
private Krypton.Toolkit.KryptonLabel klb_Y15;
private CircleButton cbt_Y15;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel112;
private Krypton.Toolkit.KryptonLabel kryptonLabel112;
private System.Windows.Forms.Panel panel40;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y23;
private Krypton.Toolkit.KryptonLabel klb_Y23;
private CircleButton cbt_Y23;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel78;
private Krypton.Toolkit.KryptonLabel kryptonLabel78;
private System.Windows.Forms.Panel panel56;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y33;
private Krypton.Toolkit.KryptonLabel klb_Y33;
private CircleButton cbt_Y33;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel110;
private Krypton.Toolkit.KryptonLabel kryptonLabel110;
private System.Windows.Forms.Panel panel41;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y04;
private Krypton.Toolkit.KryptonLabel klb_Y04;
private CircleButton cbt_Y04;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel80;
private Krypton.Toolkit.KryptonLabel kryptonLabel80;
private System.Windows.Forms.Panel panel55;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y13;
private Krypton.Toolkit.KryptonLabel klb_Y13;
private CircleButton cbt_Y13;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel108;
private Krypton.Toolkit.KryptonLabel kryptonLabel108;
private System.Windows.Forms.Panel panel42;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y24;
private Krypton.Toolkit.KryptonLabel klb_Y24;
private CircleButton cbt_Y24;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel82;
private Krypton.Toolkit.KryptonLabel kryptonLabel82;
private System.Windows.Forms.Panel panel54;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y32;
private Krypton.Toolkit.KryptonLabel klb_Y32;
private CircleButton cbt_Y32;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel106;
private Krypton.Toolkit.KryptonLabel kryptonLabel106;
private System.Windows.Forms.Panel panel43;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y05;
private Krypton.Toolkit.KryptonLabel klb_Y05;
private CircleButton cbt_Y05;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel84;
private Krypton.Toolkit.KryptonLabel kryptonLabel84;
private System.Windows.Forms.Panel panel53;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y12;
private Krypton.Toolkit.KryptonLabel klb_Y12;
private CircleButton cbt_Y12;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel104;
private Krypton.Toolkit.KryptonLabel kryptonLabel104;
private System.Windows.Forms.Panel panel44;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y25;
private Krypton.Toolkit.KryptonLabel klb_Y25;
private CircleButton cbt_Y25;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel86;
private Krypton.Toolkit.KryptonLabel kryptonLabel86;
private System.Windows.Forms.Panel panel52;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y31;
private Krypton.Toolkit.KryptonLabel klb_Y31;
private CircleButton cbt_Y31;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel102;
private Krypton.Toolkit.KryptonLabel kryptonLabel102;
private System.Windows.Forms.Panel panel45;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y06;
private Krypton.Toolkit.KryptonLabel klb_Y06;
private CircleButton cbt_Y06;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel88;
private Krypton.Toolkit.KryptonLabel kryptonLabel88;
private System.Windows.Forms.Panel panel51;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y11;
private Krypton.Toolkit.KryptonLabel klb_Y11;
private CircleButton cbt_Y11;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel100;
private Krypton.Toolkit.KryptonLabel kryptonLabel100;
private System.Windows.Forms.Panel panel46;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y26;
private Krypton.Toolkit.KryptonLabel klb_Y26;
private CircleButton cbt_Y26;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel90;
private Krypton.Toolkit.KryptonLabel kryptonLabel90;
private System.Windows.Forms.Panel panel50;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y30;
private Krypton.Toolkit.KryptonLabel klb_Y30;
private CircleButton cbt_Y30;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel98;
private Krypton.Toolkit.KryptonLabel kryptonLabel98;
private System.Windows.Forms.Panel panel47;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y07;
private Krypton.Toolkit.KryptonLabel klb_Y07;
private CircleButton cbt_Y07;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel92;
private Krypton.Toolkit.KryptonLabel kryptonLabel92;
private System.Windows.Forms.Panel panel49;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_Y10;
private Krypton.Toolkit.KryptonLabel klb_Y10;
private CircleButton cbt_Y10;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel96;
private Krypton.Toolkit.KryptonLabel kryptonLabel96;
private System.Windows.Forms.Panel panel48;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel94;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel94;
private Krypton.Toolkit.KryptonPanel kryptonPanel2;
private System.Windows.Forms.Panel panel16;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X27;
private Krypton.Toolkit.KryptonLabel klb_X27;
private CircleButton cbt_X27;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel30;
private Krypton.Toolkit.KryptonLabel kryptonLabel30;
private System.Windows.Forms.Panel panel15;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X07;
private Krypton.Toolkit.KryptonLabel klb_X07;
private CircleButton cbt_X07;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel28;
private Krypton.Toolkit.KryptonLabel kryptonLabel28;
private System.Windows.Forms.Panel panel14;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X26;
private Krypton.Toolkit.KryptonLabel klb_X26;
private CircleButton cbt_X26;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel26;
private Krypton.Toolkit.KryptonLabel kryptonLabel26;
private System.Windows.Forms.Panel panel13;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X06;
private Krypton.Toolkit.KryptonLabel klb_X06;
private CircleButton cbt_X06;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel24;
private Krypton.Toolkit.KryptonLabel kryptonLabel24;
private System.Windows.Forms.Panel panel12;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X25;
private Krypton.Toolkit.KryptonLabel klb_X25;
private CircleButton cbt_X25;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel22;
private Krypton.Toolkit.KryptonLabel kryptonLabel22;
private System.Windows.Forms.Panel panel11;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X05;
private Krypton.Toolkit.KryptonLabel klb_X05;
private CircleButton cbt_X05;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel20;
private Krypton.Toolkit.KryptonLabel kryptonLabel20;
private System.Windows.Forms.Panel panel10;
private ComponentFactory.Krypton.Toolkit.KryptonLabel klb_X24;
private Krypton.Toolkit.KryptonLabel klb_X24;
private CircleButton cbt_X24;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel18;
private Krypton.Toolkit.KryptonLabel kryptonLabel18;
private System.Windows.Forms.Panel panel9;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.Panel panel7;
@@ -3376,6 +3376,6 @@ namespace CleanMachineHMI.FrmUserControl
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel1;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
private Krypton.Toolkit.KryptonLabel kryptonLabel1;
}
}

View File

@@ -1,6 +1,6 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -11,21 +11,17 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using CleanMachine.Model;
namespace CleanMachineHMI.FrmUserControl
{
//[FormType(EnumFormType.IoMonitor)]
[FormType(EnumFormType.IoMonitor)]
public partial class frmIOMonitor : UserControl
{
public frmIOMonitor()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
}
/// <summary>
/// 页面信息语言文本列表
/// </summary>
private DataTable _InfoLanguageTextList;
private void frmIOMonitorNew_Load(object sender, EventArgs e)
{
initControl();
@@ -33,8 +29,8 @@ namespace CleanMachineHMI.FrmUserControl
}
private void Show_X_Y_Status(object sender, EventArgs e)
{
BasPlcItemMd item = sender as BasPlcItemMd;
Invoke(new Action(() =>
PlcItem item = sender as PlcItem;
BeginInvoke(new Action(() =>
{
if (item.PlcItemDataType == 2)
{
@@ -82,16 +78,16 @@ namespace CleanMachineHMI.FrmUserControl
{
if (GlobalHelper.PlcItemMd_X_List != null && GlobalHelper.PlcItemMd_X_List.Count > 0)
{
List<BasPlcItemMd> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (BasPlcItemMd item in tempLst)
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_X_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (PlcItem item in tempLst)
{
Invoke(new Action(() =>
BeginInvoke(new Action(() =>
{
if (this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
{
KryptonLabel label1 = this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
}
}));
}
@@ -99,16 +95,16 @@ namespace CleanMachineHMI.FrmUserControl
if (GlobalHelper.PlcItemMd_Y_List != null && GlobalHelper.PlcItemMd_Y_List.Count > 0)
{
List<BasPlcItemMd> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (BasPlcItemMd item in tempLst)
List<PlcItem> tempLst = GlobalHelper.PlcItemMd_Y_List.OrderBy(x => Convert.ToInt32(x.PlcItemPriAddress)).ToList();
foreach (PlcItem item in tempLst)
{
Invoke(new Action(() =>
BeginInvoke(new Action(() =>
{
if (this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true).Length > 0)
{
KryptonLabel label1 = this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
}
}));
}
@@ -118,6 +114,6 @@ namespace CleanMachineHMI.FrmUserControl
{
KryptonMessageBox.Show(ex.Message);
}
}
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -29,15 +29,15 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.btn_logout = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.btn_logout = new Krypton.Toolkit.KryptonButton();
this.lbtitle = new System.Windows.Forms.Label();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kbtn_Pass_Yes = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonLabel55 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox4 = new Krypton.Toolkit.KryptonGroupBox();
this.kbtn_Pass_Yes = new Krypton.Toolkit.KryptonButton();
this.kryptonLabel55 = new Krypton.Toolkit.KryptonLabel();
this.lbwarning = new System.Windows.Forms.Label();
this.kryptonTextBox1 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonTextBox1 = new Krypton.Toolkit.KryptonTextBox();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
this.kryptonGroupBox1.Panel.SuspendLayout();
@@ -55,7 +55,7 @@ namespace CleanMachineHMI.FrmUserControl
// kryptonGroupBox1
//
this.kryptonGroupBox1.CaptionOverlap = 0D;
this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.TitleControl;
this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
this.kryptonGroupBox1.Name = "kryptonGroupBox1";
@@ -127,9 +127,9 @@ namespace CleanMachineHMI.FrmUserControl
this.kbtn_Pass_Yes.StateCommon.Back.Color1 = System.Drawing.Color.Lime;
this.kbtn_Pass_Yes.StateCommon.Back.Color2 = System.Drawing.Color.Lime;
this.kbtn_Pass_Yes.StateCommon.Border.Color1 = System.Drawing.Color.Black;
this.kbtn_Pass_Yes.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom)
| ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left)
| ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right)));
this.kbtn_Pass_Yes.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom)
| Krypton.Toolkit.PaletteDrawBorders.Left)
| Krypton.Toolkit.PaletteDrawBorders.Right)));
this.kbtn_Pass_Yes.StateCommon.Border.Width = 2;
this.kbtn_Pass_Yes.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.kbtn_Pass_Yes.TabIndex = 26;
@@ -163,9 +163,9 @@ namespace CleanMachineHMI.FrmUserControl
this.kryptonTextBox1.Location = new System.Drawing.Point(213, 117);
this.kryptonTextBox1.Name = "kryptonTextBox1";
this.kryptonTextBox1.Size = new System.Drawing.Size(433, 37);
this.kryptonTextBox1.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom)
| ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left)
| ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right)));
this.kryptonTextBox1.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom)
| Krypton.Toolkit.PaletteDrawBorders.Left)
| Krypton.Toolkit.PaletteDrawBorders.Right)));
this.kryptonTextBox1.StateCommon.Border.Width = 2;
this.kryptonTextBox1.StateCommon.Content.Color1 = System.Drawing.Color.Black;
this.kryptonTextBox1.StateCommon.Content.Font = new System.Drawing.Font("新宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -201,14 +201,14 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private ComponentFactory.Krypton.Toolkit.KryptonButton btn_logout;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonButton btn_logout;
private System.Windows.Forms.Label lbtitle;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Pass_Yes;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel55;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
private Krypton.Toolkit.KryptonButton kbtn_Pass_Yes;
private Krypton.Toolkit.KryptonLabel kryptonLabel55;
private System.Windows.Forms.Label lbwarning;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
private Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
}
}

View File

@@ -1,6 +1,6 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;

View File

@@ -29,74 +29,74 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonLabel9 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel11 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel10 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel8 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel7 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel6 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeLiftingDrumTime = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_WorkedFullPalletNum = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_DrumTimeOut = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_CleanMacOutDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_FrequencyOfFeedingLiftingDrum = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_CleanMacInDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeOutDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_FrequencyOfDischargeLiftingDrum = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_FeedingDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.panMain = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonPanel4 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox8 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton8 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton9 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton7 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton6 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton3 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton4 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton5 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton12 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_PushPalletValve = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.ktb_DischargeInTrayStartMac = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton10 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_BlockingSolenoidValve = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeLiftingDrumRise = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeLiftingDrumDecline = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton13 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_FeedingLiftingDrumDecline = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton14 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton11 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_FeedingLiftingDrumRise = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton15 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.ktb_FeedingStartMac = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.knud_WorkedFullPalletNum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.knud_FrequencyOfDischargeLiftingDrum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.knud_DischargeOutDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.knud_DischargeDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.knud_DischargeLiftingDrumTime = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.knud_DrumTimeOut = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.knud_AlarmDelayedTime = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.knud_FullPalletDelayTime = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.knud_CleanMacOutDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kbtn_AlarmDelayedTime = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.knud_CleanMacInDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.knud_FrequencyOfFeedingLiftingDrum = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.knud_FeedingDrumFrequency = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel9 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel11 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel10 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel8 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel7 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel6 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel();
this.kryptonButton1 = new Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeLiftingDrumTime = new Krypton.Toolkit.KryptonButton();
this.kbtn_WorkedFullPalletNum = new Krypton.Toolkit.KryptonButton();
this.kbtn_DrumTimeOut = new Krypton.Toolkit.KryptonButton();
this.kbtn_CleanMacOutDrumFrequency = new Krypton.Toolkit.KryptonButton();
this.kbtn_FrequencyOfFeedingLiftingDrum = new Krypton.Toolkit.KryptonButton();
this.kbtn_CleanMacInDrumFrequency = new Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeOutDrumFrequency = new Krypton.Toolkit.KryptonButton();
this.kbtn_FrequencyOfDischargeLiftingDrum = new Krypton.Toolkit.KryptonButton();
this.kbtn_FeedingDrumFrequency = new Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeDrumFrequency = new Krypton.Toolkit.KryptonButton();
this.panMain = new Krypton.Toolkit.KryptonPanel();
this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
this.kryptonPanel4 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox8 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton8 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton9 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton7 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton2 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton6 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton3 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton4 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton5 = new Krypton.Toolkit.KryptonButton();
this.kryptonPanel3 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox4 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox3 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton12 = new Krypton.Toolkit.KryptonButton();
this.kbt_PushPalletValve = new Krypton.Toolkit.KryptonButton();
this.ktb_DischargeInTrayStartMac = new Krypton.Toolkit.KryptonButton();
this.kryptonButton10 = new Krypton.Toolkit.KryptonButton();
this.kbtn_BlockingSolenoidValve = new Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeLiftingDrumRise = new Krypton.Toolkit.KryptonButton();
this.kbtn_DischargeLiftingDrumDecline = new Krypton.Toolkit.KryptonButton();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton13 = new Krypton.Toolkit.KryptonButton();
this.kbtn_FeedingLiftingDrumDecline = new Krypton.Toolkit.KryptonButton();
this.kryptonButton14 = new Krypton.Toolkit.KryptonButton();
this.kryptonButton11 = new Krypton.Toolkit.KryptonButton();
this.kbtn_FeedingLiftingDrumRise = new Krypton.Toolkit.KryptonButton();
this.kryptonButton15 = new Krypton.Toolkit.KryptonButton();
this.ktb_FeedingStartMac = new Krypton.Toolkit.KryptonButton();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.knud_WorkedFullPalletNum = new Krypton.Toolkit.KryptonTextBox();
this.knud_FrequencyOfDischargeLiftingDrum = new Krypton.Toolkit.KryptonTextBox();
this.knud_DischargeOutDrumFrequency = new Krypton.Toolkit.KryptonTextBox();
this.knud_DischargeDrumFrequency = new Krypton.Toolkit.KryptonTextBox();
this.knud_DischargeLiftingDrumTime = new Krypton.Toolkit.KryptonTextBox();
this.knud_DrumTimeOut = new Krypton.Toolkit.KryptonTextBox();
this.knud_AlarmDelayedTime = new Krypton.Toolkit.KryptonTextBox();
this.knud_FullPalletDelayTime = new Krypton.Toolkit.KryptonTextBox();
this.knud_CleanMacOutDrumFrequency = new Krypton.Toolkit.KryptonTextBox();
this.kbtn_AlarmDelayedTime = new Krypton.Toolkit.KryptonButton();
this.knud_CleanMacInDrumFrequency = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel13 = new Krypton.Toolkit.KryptonLabel();
this.knud_FrequencyOfFeedingLiftingDrum = new Krypton.Toolkit.KryptonTextBox();
this.knud_FeedingDrumFrequency = new Krypton.Toolkit.KryptonTextBox();
((System.ComponentModel.ISupportInitialize)(this.panMain)).BeginInit();
this.panMain.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
@@ -932,73 +932,73 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel9;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel11;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel10;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel8;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel7;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel6;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeLiftingDrumTime;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_WorkedFullPalletNum;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DrumTimeOut;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_CleanMacOutDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FrequencyOfFeedingLiftingDrum;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_CleanMacInDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeOutDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FrequencyOfDischargeLiftingDrum;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FeedingDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonPanel panMain;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel4;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox8;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton8;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton9;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton7;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton6;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton3;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton4;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton5;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton12;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_PushPalletValve;
private ComponentFactory.Krypton.Toolkit.KryptonButton ktb_DischargeInTrayStartMac;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton10;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_BlockingSolenoidValve;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeLiftingDrumRise;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_DischargeLiftingDrumDecline;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton13;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FeedingLiftingDrumDecline;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton11;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_FeedingLiftingDrumRise;
private ComponentFactory.Krypton.Toolkit.KryptonButton ktb_FeedingStartMac;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_FeedingDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_FrequencyOfFeedingLiftingDrum;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_CleanMacInDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_CleanMacOutDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_DischargeDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_DischargeOutDrumFrequency;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_FrequencyOfDischargeLiftingDrum;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_WorkedFullPalletNum;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_FullPalletDelayTime;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_DrumTimeOut;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_DischargeLiftingDrumTime;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton14;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton15;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox knud_AlarmDelayedTime;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_AlarmDelayedTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel13;
private Krypton.Toolkit.KryptonLabel kryptonLabel9;
private Krypton.Toolkit.KryptonLabel kryptonLabel11;
private Krypton.Toolkit.KryptonLabel kryptonLabel10;
private Krypton.Toolkit.KryptonLabel kryptonLabel8;
private Krypton.Toolkit.KryptonLabel kryptonLabel7;
private Krypton.Toolkit.KryptonLabel kryptonLabel6;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel1;
private Krypton.Toolkit.KryptonButton kryptonButton1;
private Krypton.Toolkit.KryptonButton kbtn_DischargeLiftingDrumTime;
private Krypton.Toolkit.KryptonButton kbtn_WorkedFullPalletNum;
private Krypton.Toolkit.KryptonButton kbtn_DrumTimeOut;
private Krypton.Toolkit.KryptonButton kbtn_CleanMacOutDrumFrequency;
private Krypton.Toolkit.KryptonButton kbtn_FrequencyOfFeedingLiftingDrum;
private Krypton.Toolkit.KryptonButton kbtn_CleanMacInDrumFrequency;
private Krypton.Toolkit.KryptonButton kbtn_DischargeOutDrumFrequency;
private Krypton.Toolkit.KryptonButton kbtn_FrequencyOfDischargeLiftingDrum;
private Krypton.Toolkit.KryptonButton kbtn_FeedingDrumFrequency;
private Krypton.Toolkit.KryptonButton kbtn_DischargeDrumFrequency;
private Krypton.Toolkit.KryptonPanel panMain;
private Krypton.Toolkit.KryptonPanel kryptonPanel2;
private Krypton.Toolkit.KryptonPanel kryptonPanel4;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox8;
private Krypton.Toolkit.KryptonButton kryptonButton8;
private Krypton.Toolkit.KryptonButton kryptonButton9;
private Krypton.Toolkit.KryptonButton kryptonButton7;
private Krypton.Toolkit.KryptonButton kryptonButton2;
private Krypton.Toolkit.KryptonButton kryptonButton6;
private Krypton.Toolkit.KryptonButton kryptonButton3;
private Krypton.Toolkit.KryptonButton kryptonButton4;
private Krypton.Toolkit.KryptonButton kryptonButton5;
private Krypton.Toolkit.KryptonPanel kryptonPanel3;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
private Krypton.Toolkit.KryptonButton kryptonButton12;
private Krypton.Toolkit.KryptonButton kbt_PushPalletValve;
private Krypton.Toolkit.KryptonButton ktb_DischargeInTrayStartMac;
private Krypton.Toolkit.KryptonButton kryptonButton10;
private Krypton.Toolkit.KryptonButton kbtn_BlockingSolenoidValve;
private Krypton.Toolkit.KryptonButton kbtn_DischargeLiftingDrumRise;
private Krypton.Toolkit.KryptonButton kbtn_DischargeLiftingDrumDecline;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonButton kryptonButton13;
private Krypton.Toolkit.KryptonButton kbtn_FeedingLiftingDrumDecline;
private Krypton.Toolkit.KryptonButton kryptonButton11;
private Krypton.Toolkit.KryptonButton kbtn_FeedingLiftingDrumRise;
private Krypton.Toolkit.KryptonButton ktb_FeedingStartMac;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonTextBox knud_FeedingDrumFrequency;
private Krypton.Toolkit.KryptonTextBox knud_FrequencyOfFeedingLiftingDrum;
private Krypton.Toolkit.KryptonTextBox knud_CleanMacInDrumFrequency;
private Krypton.Toolkit.KryptonTextBox knud_CleanMacOutDrumFrequency;
private Krypton.Toolkit.KryptonTextBox knud_DischargeDrumFrequency;
private Krypton.Toolkit.KryptonTextBox knud_DischargeOutDrumFrequency;
private Krypton.Toolkit.KryptonTextBox knud_FrequencyOfDischargeLiftingDrum;
private Krypton.Toolkit.KryptonTextBox knud_WorkedFullPalletNum;
private Krypton.Toolkit.KryptonTextBox knud_FullPalletDelayTime;
private Krypton.Toolkit.KryptonTextBox knud_DrumTimeOut;
private Krypton.Toolkit.KryptonTextBox knud_DischargeLiftingDrumTime;
private Krypton.Toolkit.KryptonButton kryptonButton14;
private Krypton.Toolkit.KryptonButton kryptonButton15;
private Krypton.Toolkit.KryptonTextBox knud_AlarmDelayedTime;
private Krypton.Toolkit.KryptonButton kbtn_AlarmDelayedTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel13;
}
}

View File

@@ -1,6 +1,6 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using NX_LogUtility;
using System;
using System.Collections;
@@ -31,7 +31,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
LoadManualFrmData = new dlgLoadManualFrmData(GetManualPlcItemVlaue);
GetManualPlcItemVlaue();
GlobalHelper.OnSyncFinishPalletData += SyncFinishPalletData;
@@ -443,7 +443,7 @@ namespace CleanMachineHMI.FrmUserControl
//{
if (PlcOperationHelper.Instance.WritePlcItem("FeedingDrumFrequency", (Convert.ToInt32(knud_FeedingDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改上料进滚筒频率成功,修改值:【{knud_FeedingDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改上料进滚筒频率成功,修改值:【{knud_FeedingDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -473,7 +473,7 @@ namespace CleanMachineHMI.FrmUserControl
if (PlcOperationHelper.Instance.WritePlcItem("CleanMacOutDrumFrequency", (Convert.ToInt32(knud_CleanMacOutDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改清洁机出滚筒频率成功,修改值:【{knud_CleanMacOutDrumFrequency.Text}】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改清洁机出滚筒频率成功,修改值:【{knud_CleanMacOutDrumFrequency.Text}】!", LogTypeEum.Run);
}
//}
//else
@@ -503,7 +503,7 @@ namespace CleanMachineHMI.FrmUserControl
if (PlcOperationHelper.Instance.WritePlcItem("CleanMacInDrumFrequency", (Convert.ToInt32(knud_CleanMacInDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改清洁机进滚筒频率成功,修改值:【{knud_CleanMacInDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改清洁机进滚筒频率成功,修改值:【{knud_CleanMacInDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -532,7 +532,7 @@ namespace CleanMachineHMI.FrmUserControl
//{
if (PlcOperationHelper.Instance.WritePlcItem("FrequencyOfDischargeLiftingDrum", (Convert.ToInt32(knud_FrequencyOfDischargeLiftingDrum.Text) * 100).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改出料升降台滚筒频率成功,修改值:【{knud_FrequencyOfDischargeLiftingDrum.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改出料升降台滚筒频率成功,修改值:【{knud_FrequencyOfDischargeLiftingDrum.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -561,7 +561,7 @@ namespace CleanMachineHMI.FrmUserControl
//{
if (PlcOperationHelper.Instance.WritePlcItem("FrequencyOfFeedingLiftingDrum", (Convert.ToInt32(knud_FrequencyOfFeedingLiftingDrum.Text) * 100).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改上料升降台滚筒频率成功,修改值:【{knud_FrequencyOfFeedingLiftingDrum.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改上料升降台滚筒频率成功,修改值:【{knud_FrequencyOfFeedingLiftingDrum.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -590,7 +590,7 @@ namespace CleanMachineHMI.FrmUserControl
//{
if (PlcOperationHelper.Instance.WritePlcItem("DischargeOutDrumFrequency", (Convert.ToInt32(knud_DischargeOutDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改出料出滚筒频率成功,修改值:【{knud_DischargeOutDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改出料出滚筒频率成功,修改值:【{knud_DischargeOutDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -620,7 +620,7 @@ namespace CleanMachineHMI.FrmUserControl
if (PlcOperationHelper.Instance.WritePlcItem("DischargeDrumFrequency", (Convert.ToInt32(knud_DischargeDrumFrequency.Text) * 100).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改出料进滚筒频率成功,修改值:【{knud_DischargeDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改出料进滚筒频率成功,修改值:【{knud_DischargeDrumFrequency.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -652,7 +652,7 @@ namespace CleanMachineHMI.FrmUserControl
//}
if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumRise", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降台上升信号成功。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料升降台上升信号成功。操作模式:【手动】!", LogTypeEum.Run);
}
}
catch (Exception ex)
@@ -715,7 +715,7 @@ namespace CleanMachineHMI.FrmUserControl
//{
if (PlcOperationHelper.Instance.WritePlcItem("DrumTimeOut", (Convert.ToInt32(knud_DrumTimeOut.Text) * 10).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改滚筒超时时间戳成功,修改值:【{knud_DrumTimeOut.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改滚筒超时时间戳成功,修改值:【{knud_DrumTimeOut.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -744,7 +744,7 @@ namespace CleanMachineHMI.FrmUserControl
//{
if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumTime", (Convert.ToInt32(knud_DischargeLiftingDrumTime.Text) * 10).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改出料升降台滚筒超时时间成功,修改值:【{knud_DischargeLiftingDrumTime.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改出料升降台滚筒超时时间成功,修改值:【{knud_DischargeLiftingDrumTime.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -774,7 +774,7 @@ namespace CleanMachineHMI.FrmUserControl
if (PlcOperationHelper.Instance.WritePlcItem("WorkedFullPalletNum", knud_WorkedFullPalletNum.Text, PlcItemTypeDesc.D))
{
GlobalHelper.SyncFinishPalletData(knud_WorkedFullPalletNum.Text, EventArgs.Empty);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改满托数量成功,修改值:【{knud_WorkedFullPalletNum.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改满托数量成功,修改值:【{knud_WorkedFullPalletNum.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -891,7 +891,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FeedingInDrum", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料进滚筒正转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料进滚筒正转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
ktb_FeedingStartMac.StateCommon.Back.Color1 = Color.Lime;
kryptonButton15.Enabled = false;
}
@@ -900,7 +900,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FeedingInDrum", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料进滚筒正转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料进滚筒正转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
ktb_FeedingStartMac.StateCommon.Back.Color1 = Color.Empty;
kryptonButton15.Enabled = true;
}
@@ -928,7 +928,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrum", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降滚筒正转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料升降滚筒正转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton11.StateCommon.Back.Color1 = Color.Lime;
kryptonButton14.Enabled = false;
}
@@ -937,7 +937,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrum", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降滚筒正转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料升降滚筒正转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton11.StateCommon.Back.Color1 = Color.Empty;
kryptonButton14.Enabled = true;
}
@@ -966,7 +966,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("DischargeInDrum", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料进滚筒运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC出料进滚筒运行信号成功!操作模式:【手动】", LogTypeEum.Run);
ktb_DischargeInTrayStartMac.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -974,7 +974,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("DischargeInDrum", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料进滚筒停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC出料进滚筒停止信号成功!操作模式:【手动】", LogTypeEum.Run);
ktb_DischargeInTrayStartMac.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1001,7 +1001,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("DischargeOutDrum", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料出滚筒运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC出料出滚筒运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton10.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1009,7 +1009,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("DischargeOutDrum", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料出滚筒停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC出料出滚筒停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton10.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1036,7 +1036,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("BlockingSolenoidValve", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC挡料气缸运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC挡料气缸运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kbtn_BlockingSolenoidValve.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1044,7 +1044,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("BlockingSolenoidValve", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC挡料气缸停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC挡料气缸停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kbtn_BlockingSolenoidValve.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1071,7 +1071,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("PushingCylinderSolenoidValve", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC推料气缸运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC推料气缸运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kbt_PushPalletValve.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1079,7 +1079,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("PushingCylinderSolenoidValve", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC推料气缸停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC推料气缸停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kbt_PushPalletValve.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1106,7 +1106,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrum", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料升降滚筒运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC出料升降滚筒运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton12.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1114,7 +1114,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrum", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料升降滚筒停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC出料升降滚筒停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton12.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1141,7 +1141,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMac1BrushMotor", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷1运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机毛刷1运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton2.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1149,7 +1149,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMac1BrushMotor", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷1停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机毛刷1停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton2.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1176,7 +1176,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMac2BrushMotor", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷2运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机毛刷2运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton3.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1184,7 +1184,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMac2BrushMotor", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷2停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机毛刷2停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton3.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1211,7 +1211,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMac3BrushMotor", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷3运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机毛刷3运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton4.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1219,7 +1219,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMac3BrushMotor", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机毛刷3停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机毛刷3停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton4.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1246,7 +1246,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("NozzleSolenoidValve", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁喷头运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁喷头运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton7.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1254,7 +1254,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("NozzleSolenoidValve", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁喷头停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁喷头停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton7.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1281,7 +1281,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FranklinismStartOrStop", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC静电启停 运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC静电启停 运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton8.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1289,7 +1289,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FranklinismStartOrStop", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC静电启停 停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC静电启停 停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton8.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1316,7 +1316,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("VacuumingStartOrStop", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC吸尘电机运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC吸尘电机运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton9.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1324,7 +1324,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("VacuumingStartOrStop", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC吸尘电机停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC吸尘电机停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton9.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1351,7 +1351,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMacInDrum", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机进料运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机进料运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton5.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1359,7 +1359,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMacInDrum", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机进料停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机进料停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton5.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1386,7 +1386,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMacOutDrum", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机出料运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机出料运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton6.StateCommon.Back.Color1 = Color.Lime;
}
}
@@ -1394,7 +1394,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("CleanMacOutDrum", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC清洁机出料停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC清洁机出料停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton6.StateCommon.Back.Color1 = Color.Empty;
}
}
@@ -1421,7 +1421,7 @@ namespace CleanMachineHMI.FrmUserControl
if (PlcOperationHelper.Instance.WritePlcItem("FullPalletDelayTime", (Convert.ToInt32(knud_FullPalletDelayTime.Text) * 10).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改满料延时时间成功,修改值:【{knud_FullPalletDelayTime.Text}】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改满料延时时间成功,修改值:【{knud_FullPalletDelayTime.Text}】。操作模式:【手动】!", LogTypeEum.Run);
}
//}
//else
@@ -1453,7 +1453,7 @@ namespace CleanMachineHMI.FrmUserControl
}
if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumDecline", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降台下降信号成功。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料升降台下降信号成功。操作模式:【手动】!", LogTypeEum.Run);
}
}
catch (Exception ex)
@@ -1488,7 +1488,7 @@ namespace CleanMachineHMI.FrmUserControl
}
if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumRise", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料升降台上升信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC出料升降台上升信号成功!操作模式:【手动】", LogTypeEum.Run);
}
}
catch (Exception ex)
@@ -1523,7 +1523,7 @@ namespace CleanMachineHMI.FrmUserControl
}
if (PlcOperationHelper.Instance.WritePlcItem("DischargeLiftingDrumDecline", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC出料升降台下降信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC出料升降台下降信号成功!操作模式:【手动】", LogTypeEum.Run);
}
}
catch (Exception ex)
@@ -1555,7 +1555,7 @@ namespace CleanMachineHMI.FrmUserControl
}
if (PlcOperationHelper.Instance.WritePlcItem("NozzleNum", "0", PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC计数清零信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC计数清零信号成功!操作模式:【手动】", LogTypeEum.Run);
}
}
@@ -1647,7 +1647,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FeedingDrumARollback", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料进滚筒反转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料进滚筒反转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton15.StateCommon.Back.Color1 = Color.Lime;
ktb_FeedingStartMac.Enabled = false;
}
@@ -1656,7 +1656,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FeedingDrumARollback", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料进滚筒反转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料进滚筒反转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton15.StateCommon.Back.Color1 = Color.Empty;
ktb_FeedingStartMac.Enabled = true;
}
@@ -1683,7 +1683,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumBRollback", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降滚筒正转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料升降滚筒正转运行信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton14.StateCommon.Back.Color1 = Color.Lime;
kryptonButton11.Enabled = false;
}
@@ -1692,7 +1692,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (PlcOperationHelper.Instance.WritePlcItem("FeedingLiftingDrumBRollback", "False", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC上料升降滚筒正转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC上料升降滚筒正转停止信号成功!操作模式:【手动】", LogTypeEum.Run);
kryptonButton14.StateCommon.Back.Color1 = Color.Empty;
kryptonButton11.Enabled = true;
}
@@ -1717,7 +1717,7 @@ namespace CleanMachineHMI.FrmUserControl
}
if (PlcOperationHelper.Instance.WritePlcItem("AlarmDelayedTime", (Convert.ToInt32(knud_AlarmDelayedTime.Text) * 10).ToString(), PlcItemTypeDesc.D))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】修改报警延迟时间成功,修改值:【{knud_AlarmDelayedTime.Text}】。操作模式:【手动】。操作模式:【手动】!", LogTypeEum.Run);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】修改报警延迟时间成功,修改值:【{knud_AlarmDelayedTime.Text}】。操作模式:【手动】。操作模式:【手动】!", LogTypeEum.Run);
}
}
catch (Exception ex)

View File

@@ -29,31 +29,31 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.cbt_Brush3StatusTran = new CleanMachineHMI.CircleButton();
this.swtbtn_brush1 = new CleanMachineHMI.LSwitchButton();
this.swtbtn_brush3 = new CleanMachineHMI.LSwitchButton();
this.kryptonLabel7 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel7 = new Krypton.Toolkit.KryptonLabel();
this.swtbtn_brush2 = new CleanMachineHMI.LSwitchButton();
this.cbt_Brush2StatusTran = new CleanMachineHMI.CircleButton();
this.cbt_Brush1StatusTran = new CleanMachineHMI.CircleButton();
this.kryptonGroupBox5 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonGroupBox5 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.cbt_RunStatusTran = new CleanMachineHMI.CircleButton();
this.lbwarning = new System.Windows.Forms.Label();
this.cbt_ResetSys = new CleanMachineHMI.CircleButton();
this.cbt_StartTran = new CleanMachineHMI.CircleButton();
this.kbtn_Pass_No = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_Pass_Yes = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonLabel66 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel55 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.btn_logout = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_Pass_No = new Krypton.Toolkit.KryptonButton();
this.kbtn_Pass_Yes = new Krypton.Toolkit.KryptonButton();
this.kryptonLabel66 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel55 = new Krypton.Toolkit.KryptonLabel();
this.kryptonGroupBox4 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox3 = new Krypton.Toolkit.KryptonGroupBox();
this.btn_logout = new Krypton.Toolkit.KryptonButton();
this.lbtitle = new System.Windows.Forms.Label();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox5.Panel)).BeginInit();
this.kryptonGroupBox5.Panel.SuspendLayout();
@@ -264,9 +264,9 @@ namespace CleanMachineHMI.FrmUserControl
this.kbtn_Pass_No.StateCommon.Back.Color1 = System.Drawing.Color.Red;
this.kbtn_Pass_No.StateCommon.Back.Color2 = System.Drawing.Color.Red;
this.kbtn_Pass_No.StateCommon.Border.Color1 = System.Drawing.Color.Black;
this.kbtn_Pass_No.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom)
| ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left)
| ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right)));
this.kbtn_Pass_No.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom)
| Krypton.Toolkit.PaletteDrawBorders.Left)
| Krypton.Toolkit.PaletteDrawBorders.Right)));
this.kbtn_Pass_No.StateCommon.Border.Width = 2;
this.kbtn_Pass_No.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.kbtn_Pass_No.TabIndex = 26;
@@ -281,9 +281,9 @@ namespace CleanMachineHMI.FrmUserControl
this.kbtn_Pass_Yes.StateCommon.Back.Color1 = System.Drawing.Color.Lime;
this.kbtn_Pass_Yes.StateCommon.Back.Color2 = System.Drawing.Color.Lime;
this.kbtn_Pass_Yes.StateCommon.Border.Color1 = System.Drawing.Color.Black;
this.kbtn_Pass_Yes.StateCommon.Border.DrawBorders = ((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders)((((ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Top | ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Bottom)
| ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Left)
| ComponentFactory.Krypton.Toolkit.PaletteDrawBorders.Right)));
this.kbtn_Pass_Yes.StateCommon.Border.DrawBorders = ((Krypton.Toolkit.PaletteDrawBorders)((((Krypton.Toolkit.PaletteDrawBorders.Top | Krypton.Toolkit.PaletteDrawBorders.Bottom)
| Krypton.Toolkit.PaletteDrawBorders.Left)
| Krypton.Toolkit.PaletteDrawBorders.Right)));
this.kbtn_Pass_Yes.StateCommon.Border.Width = 2;
this.kbtn_Pass_Yes.StateCommon.Content.ShortText.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.kbtn_Pass_Yes.TabIndex = 26;
@@ -384,7 +384,7 @@ namespace CleanMachineHMI.FrmUserControl
// kryptonGroupBox1
//
this.kryptonGroupBox1.CaptionOverlap = 0D;
this.kryptonGroupBox1.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.TitleControl;
this.kryptonGroupBox1.CaptionStyle = Krypton.Toolkit.LabelStyle.TitleControl;
this.kryptonGroupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.kryptonGroupBox1.Location = new System.Drawing.Point(0, 0);
this.kryptonGroupBox1.Name = "kryptonGroupBox1";
@@ -437,30 +437,30 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private CircleButton cbt_Brush3StatusTran;
private LSwitchButton swtbtn_brush1;
private LSwitchButton swtbtn_brush3;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel7;
private Krypton.Toolkit.KryptonLabel kryptonLabel7;
private LSwitchButton swtbtn_brush2;
private CircleButton cbt_Brush2StatusTran;
private CircleButton cbt_Brush1StatusTran;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox5;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox5;
private Krypton.Toolkit.KryptonLabel kryptonLabel1;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private CircleButton cbt_RunStatusTran;
private System.Windows.Forms.Label lbwarning;
private CircleButton cbt_ResetSys;
private CircleButton cbt_StartTran;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Pass_No;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_Pass_Yes;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel66;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel55;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
private ComponentFactory.Krypton.Toolkit.KryptonButton btn_logout;
private Krypton.Toolkit.KryptonButton kbtn_Pass_No;
private Krypton.Toolkit.KryptonButton kbtn_Pass_Yes;
private Krypton.Toolkit.KryptonLabel kryptonLabel66;
private Krypton.Toolkit.KryptonLabel kryptonLabel55;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
private Krypton.Toolkit.KryptonButton btn_logout;
private System.Windows.Forms.Label lbtitle;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
}
}

View File

@@ -1,6 +1,6 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -17,14 +17,9 @@ namespace CleanMachineHMI.FrmUserControl
[FormType(EnumFormType.MechineCheck)]
public partial class frmMechineCheck : UserControl
{
/// <summary>
/// 页面信息语言文本列表
/// </summary>
private DataTable _InfoLanguageTextList;
public frmMechineCheck()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
//注销退出
@@ -118,7 +113,7 @@ namespace CleanMachineHMI.FrmUserControl
private void frmMechineCheck_Load(object sender, EventArgs e)
{
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
Thread th1 = new Thread(MainDtlRunTh);
th1.IsBackground = true;
th1.Start();
@@ -246,7 +241,7 @@ namespace CleanMachineHMI.FrmUserControl
PlcOperationHelper.Instance.WritePlcItem("SelfCheckPassFlag", "False", PlcItemTypeDesc.M);
//测试未通过,请检查并重新测试
GlobalHelper.CanOperate = false;
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("测试未通过,请检查设备并重新测试!!", "NoPassShowMsg"));
KryptonMessageBox.Show(this.GetInfoText("测试未通过,请检查设备并重新测试!!", "NoPassShowMsg"));
}
catch (Exception ex)
{

View File

@@ -29,24 +29,24 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox4 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox3 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonDataGridView1 = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox4 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton1 = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_ParamaterCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_ParamaterName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_ParamaterCode = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.ktb_ParamaterName = new Krypton.Toolkit.KryptonTextBox();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
this.kryptonPanel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox3)).BeginInit();
@@ -76,7 +76,7 @@ namespace CleanMachineHMI.FrmUserControl
//
this.kryptonGroupBox3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox3.CaptionOverlap = 0D;
this.kryptonGroupBox3.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox3.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox3.Location = new System.Drawing.Point(0, 150);
this.kryptonGroupBox3.Name = "kryptonGroupBox3";
@@ -96,7 +96,7 @@ namespace CleanMachineHMI.FrmUserControl
this.kryptonDataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
this.kryptonDataGridView1.DataMember = "TestData";
this.kryptonDataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonDataGridView1.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.kryptonDataGridView1.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.kryptonDataGridView1.Location = new System.Drawing.Point(0, 0);
this.kryptonDataGridView1.MultiSelect = false;
this.kryptonDataGridView1.Name = "kryptonDataGridView1";
@@ -317,23 +317,23 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
private Krypton.Toolkit.KryptonPanel kryptonPanel2;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox4;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ParamaterCode;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ParamaterName;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_ParamaterCode;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonTextBox ktb_ParamaterName;
private Krypton.Toolkit.KryptonButton kryptonButton1;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -25,7 +25,6 @@ namespace CleanMachineHMI.FrmUserControl
public frmParamater()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
@@ -53,7 +52,7 @@ namespace CleanMachineHMI.FrmUserControl
kryptonDataGridView1.Columns.Clear();
kryptonDataGridView1.DataSource = dt;
kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
kryptonDataGridView1.SetDataViewColumnText(this.Name);
}
@@ -83,7 +82,7 @@ namespace CleanMachineHMI.FrmUserControl
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
kdtp_CreateStartTime.Checked = false;
kdtp_CreateEndTime.Checked = false;
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
RefreshFrmHost = new dlgRefreshFrmHost(Init);
Init();
foreach (Control item in tableLayoutPanel2.Controls)
@@ -106,7 +105,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载系统参数界面发生异常", "LoadSysParamaterExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载系统参数界面发生异常", "LoadSysParamaterExp") + $":【{ex.Message}】!");
}
}
@@ -119,7 +118,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询系统参数数据发生异常", "QuerySysParamaterData") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("查询系统参数数据发生异常", "QuerySysParamaterData") + $":【{ex.Message}】!");
}
}
@@ -143,7 +142,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的参数信息数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的参数信息数据行!", "SelectWantToEditRow"));
}
}

View File

@@ -29,20 +29,20 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonDataGridView1 = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_plcMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kcmb_plcAlarmStatus = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kcmb_plcAlarmHandleResult = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.ktb_plcMsg = new Krypton.Toolkit.KryptonTextBox();
this.kcmb_plcAlarmStatus = new Krypton.Toolkit.KryptonComboBox();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kcmb_plcAlarmHandleResult = new Krypton.Toolkit.KryptonComboBox();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbtn_UuivertorAlarmClear = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kbtn_UuivertorAlarmClear = new Krypton.Toolkit.KryptonButton();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
@@ -144,8 +144,10 @@ namespace CleanMachineHMI.FrmUserControl
// kcmb_plcAlarmStatus
//
this.kcmb_plcAlarmStatus.Anchor = System.Windows.Forms.AnchorStyles.None;
this.kcmb_plcAlarmStatus.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.kcmb_plcAlarmStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.kcmb_plcAlarmStatus.DropDownWidth = 248;
this.kcmb_plcAlarmStatus.IntegralHeight = false;
this.kcmb_plcAlarmStatus.Items.AddRange(new object[] {
"请选择",
"正在报警",
@@ -167,8 +169,10 @@ namespace CleanMachineHMI.FrmUserControl
// kcmb_plcAlarmHandleResult
//
this.kcmb_plcAlarmHandleResult.Anchor = System.Windows.Forms.AnchorStyles.None;
this.kcmb_plcAlarmHandleResult.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.kcmb_plcAlarmHandleResult.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.kcmb_plcAlarmHandleResult.DropDownWidth = 248;
this.kcmb_plcAlarmHandleResult.IntegralHeight = false;
this.kcmb_plcAlarmHandleResult.Items.AddRange(new object[] {
"请选择",
"未处理",
@@ -232,6 +236,7 @@ namespace CleanMachineHMI.FrmUserControl
this.kbtn_UuivertorAlarmClear.Size = new System.Drawing.Size(135, 35);
this.kbtn_UuivertorAlarmClear.TabIndex = 2;
this.kbtn_UuivertorAlarmClear.Values.Text = "变频器报警清除";
this.kbtn_UuivertorAlarmClear.Click += new System.EventHandler(this.kbtn_UuivertorAlarmClear_Click);
this.kbtn_UuivertorAlarmClear.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kbtn_UuivertorAlarmClear_MouseDown);
this.kbtn_UuivertorAlarmClear.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kbtn_UuivertorAlarmClear_MouseUp);
//
@@ -279,19 +284,19 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcMsg;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcAlarmStatus;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcAlarmHandleResult;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonLabel kryptonLabel1;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonTextBox ktb_plcMsg;
private Krypton.Toolkit.KryptonComboBox kcmb_plcAlarmStatus;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonComboBox kcmb_plcAlarmHandleResult;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Query;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_UuivertorAlarmClear;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonButton kbtn_UuivertorAlarmClear;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
}
}

View File

@@ -1,6 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachine.Model;
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using NX_LogUtility;
using System;
@@ -21,11 +22,7 @@ namespace CleanMachineHMI.FrmUserControl
public frmPlcAlarmLog()
{
InitializeComponent();
_ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
private DataTable _ComboBoxLanguageTextList;
private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost(bool isContainHisData);
public static dlgRefreshFrmHost RefreshFrmHost;
@@ -37,7 +34,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载报警数据界面发生异常", "LoadFrmPlcAlarmExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载报警数据界面发生异常", "LoadFrmPlcAlarmExp") + $":【{ex.Message}】!");
}
}
@@ -64,19 +61,17 @@ namespace CleanMachineHMI.FrmUserControl
private void frmPlcAlarmLog_Load(object sender, EventArgs e)
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
kcmb_plcAlarmStatus.Items.Clear();
if (GlobalHelper.LanguageCode == "English")
foreach (string item in this.GetComBoboxItemArr(kcmb_plcAlarmStatus.Name))
{
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcAlarmStatus.Name, "KryptonComboBox"))
{
kcmb_plcAlarmStatus.Items.Add(item["CONTROL_NAME"].ToString());
}
kcmb_plcAlarmHandleResult.Items.Clear();
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcAlarmHandleResult.Name, "KryptonComboBox"))
{
kcmb_plcAlarmHandleResult.Items.Add(item["CONTROL_NAME"].ToString());
}
kcmb_plcAlarmStatus.Items.Add(item);
}
kcmb_plcAlarmHandleResult.Items.Clear();
foreach (string item in this.GetComBoboxItemArr(kcmb_plcAlarmHandleResult.Name))
{
kcmb_plcAlarmHandleResult.Items.Add(item);
}
kcmb_plcAlarmStatus.SelectedIndex = 0;
kcmb_plcAlarmHandleResult.SelectedIndex = 0;
@@ -101,7 +96,7 @@ namespace CleanMachineHMI.FrmUserControl
}
private void RefreshPlcData(bool isContainHisData)
{
List<CM_WarningLogMd> tmpWarningLogList = new List<CM_WarningLogMd>();
List<WarningLog> tmpWarningLogList = new List<WarningLog>();
tmpWarningLogList.AddRange(GlobalHelper.CmWarningLogMd_List);
if (isContainHisData)
{
@@ -109,7 +104,7 @@ namespace CleanMachineHMI.FrmUserControl
DataTable dtHis = LeadDbHelperSQLite.Query(sql).Tables[0];
foreach (DataRow item in dtHis.Rows)
{
tmpWarningLogList.Add(new CM_WarningLogMd
tmpWarningLogList.Add(new WarningLog
{
WarningCode = item["WARNING_CODE"].ToString(),
WarningName = item["WARNING_NAME"].ToString(),
@@ -117,7 +112,7 @@ namespace CleanMachineHMI.FrmUserControl
WarningMessage = item["WARNING_MESSAGE"].ToString(),
WarningTime = Convert.ToDateTime(item["WARNING_TIME"]),
PlcItemCode = item["PLC_ITEM_CODE"].ToString(),
WarningStatus = Convert.ToInt32(item["WARING_STATUS"]),
WaringStatus = Convert.ToInt32(item["WARING_STATUS"]),
WarningHandleResult = Convert.ToInt32(item["WARNING_HANDLE_RESULT"]),
WarningHandleTime = Convert.ToDateTime(item["WARNING_HANDLE_TIME"]),
CreateBy = Convert.ToInt32(item["CREATE_BY"]),
@@ -136,7 +131,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (kcmb_plcAlarmStatus.SelectedIndex != 0)
{
tmpWarningLogList = tmpWarningLogList.FindAll(x => x.WarningStatus == (kcmb_plcAlarmStatus.SelectedIndex - 1));
tmpWarningLogList = tmpWarningLogList.FindAll(x => x.WaringStatus == (kcmb_plcAlarmStatus.SelectedIndex - 1));
}
if (tmpWarningLogList == null && tmpWarningLogList.Count > 0)
{
@@ -150,15 +145,17 @@ namespace CleanMachineHMI.FrmUserControl
{
tmpWarningLogList.OrderByDescending(x => x.WarningTime);
DataTable dt = new DataTable();
DataColumn dc1 = new DataColumn("序号", Type.GetType("System.Int32"));
DataColumn dc2 = new DataColumn("PLC变量地址", Type.GetType("System.String"));
DataColumn dc3 = new DataColumn("报警条码", Type.GetType("System.String"));
DataColumn dc4 = new DataColumn("报警内容", Type.GetType("System.String"));
DataColumn dc5 = new DataColumn("报警时间", Type.GetType("System.String"));
DataColumn dc6 = new DataColumn("报警状态", Type.GetType("System.String"));
DataColumn dc7 = new DataColumn("处理结果", Type.GetType("System.String"));
DataColumn dc8 = new DataColumn("处理时间", Type.GetType("System.String"));
DataColumn dc9 = new DataColumn("报警时长", Type.GetType("System.String"));
DataColumn dc1 = new DataColumn("序号", typeof(int));
DataColumn dc2 = new DataColumn("PLC变量地址", typeof(string));
DataColumn dc3 = new DataColumn("报警条码", typeof(string));
DataColumn dc4 = new DataColumn("报警内容", typeof(string));
DataColumn dc5 = new DataColumn("报警时间", typeof(string));
DataColumn dc6 = new DataColumn("报警状态", typeof(string));
DataColumn dc7 = new DataColumn("处理结果", typeof(string));
DataColumn dc8 = new DataColumn("处理时间", typeof(string));
DataColumn dc9 = new DataColumn("报警时长", typeof(string));
dt.Columns.Add(dc1);
dt.Columns.Add(dc2);
@@ -170,7 +167,7 @@ namespace CleanMachineHMI.FrmUserControl
dt.Columns.Add(dc8);
dt.Columns.Add(dc9);
int index = 1;
foreach (CM_WarningLogMd item in tmpWarningLogList)
foreach (WarningLog item in tmpWarningLogList)
{
DataRow dr = dt.NewRow();
dr["序号"] = index;
@@ -178,7 +175,7 @@ namespace CleanMachineHMI.FrmUserControl
dr["报警条码"] = item.WarningCode;
dr["报警内容"] = item.WarningName;
dr["报警时间"] = item.WarningTime;
if (item.WarningStatus == 0)
if (item.WaringStatus == 0)
{
//dr["报警状态"] = "正在报警";
dr["报警状态"] = "Occurrent Alarm";
@@ -226,7 +223,7 @@ namespace CleanMachineHMI.FrmUserControl
dt.DefaultView.Sort = "报警时间 DESC";
dt = dt.DefaultView.ToTable();
kryptonDataGridView1.DataSource = dt;
kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
kryptonDataGridView1.SetDataViewColumnText(this.Name);
}
else
{
@@ -245,7 +242,7 @@ namespace CleanMachineHMI.FrmUserControl
}
if (PlcOperationHelper.Instance.WritePlcItem("FrequencyMacAlarmClear", "True", PlcItemTypeDesc.M))
{
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.USER_NAME}】发送PLC变频器报警清除信号成功。", LogTypeEum.Err);
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC变频器报警清除信号成功。", LogTypeEum.Err);
}
}
catch (Exception ex)
@@ -268,5 +265,10 @@ namespace CleanMachineHMI.FrmUserControl
KryptonMessageBox.Show(ex.Message);
}
}
private void kbtn_UuivertorAlarmClear_Click(object sender, EventArgs e)
{
}
}
}

View File

@@ -29,26 +29,26 @@ namespace CleanMachineHMI.FrmUserControl
/// </summary>
private void InitializeComponent()
{
this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonDataGridView1 = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_plcMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kcmb_plcItemType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.kcmb_plcItemDateType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.ktb_plcItemModbusAddress = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.ktb_plcItemPriAddress = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_plcMsg = new Krypton.Toolkit.KryptonTextBox();
this.kcmb_plcItemType = new Krypton.Toolkit.KryptonComboBox();
this.kcmb_plcItemDateType = new Krypton.Toolkit.KryptonComboBox();
this.ktb_plcItemModbusAddress = new Krypton.Toolkit.KryptonTextBox();
this.ktb_plcItemPriAddress = new Krypton.Toolkit.KryptonTextBox();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
@@ -353,25 +353,25 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonLabel kryptonLabel1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcMsg;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcItemType;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_plcItemDateType;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcItemModbusAddress;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_plcItemPriAddress;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_plcMsg;
private Krypton.Toolkit.KryptonComboBox kcmb_plcItemType;
private Krypton.Toolkit.KryptonComboBox kcmb_plcItemDateType;
private Krypton.Toolkit.KryptonTextBox ktb_plcItemModbusAddress;
private Krypton.Toolkit.KryptonTextBox ktb_plcItemPriAddress;
private Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -12,7 +12,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CleanMachine.Model;
namespace CleanMachineHMI.FrmUserControl
{
[FormType(EnumFormType.PlcItemConfig)]
@@ -21,11 +21,8 @@ namespace CleanMachineHMI.FrmUserControl
public frmPlcItemConfig()
{
InitializeComponent();
_ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
private DataTable _ComboBoxLanguageTextList;
private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
private void txt_GotFocus(object sender, EventArgs e)
@@ -50,18 +47,18 @@ namespace CleanMachineHMI.FrmUserControl
private void frmPlcItemConfig_Load(object sender, EventArgs e)
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
if (GlobalHelper.LanguageCode == "English")
this.SetFormControlText();
{
kcmb_plcItemType.Items.Clear();
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemType.Name, "KryptonComboBox"))
foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemType.Name))
{
kcmb_plcItemType.Items.Add(item["CONTROL_NAME"].ToString());
kcmb_plcItemType.Items.Add(item);
}
kcmb_plcItemDateType.Items.Clear();
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemDateType.Name, "KryptonComboBox"))
foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemDateType.Name))
{
kcmb_plcItemDateType.Items.Add(item["CONTROL_NAME"].ToString());
kcmb_plcItemDateType.Items.Add(item);
}
}
kcmb_plcItemType.SelectedIndex = 0;
@@ -146,7 +143,7 @@ namespace CleanMachineHMI.FrmUserControl
//DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
#endregion
List<BasPlcItemMd> tmpMdList;
List<PlcItem> tmpMdList;
if (!string.IsNullOrEmpty(ktb_plcMsg.Text.Trim()))
{
tmpMdList = GlobalHelper.PlcItemMdList.FindAll(x => x.PlcItemCode.Contains(ktb_plcMsg.Text.Trim()) || x.PlcItemName.Contains(ktb_plcMsg.Text.Trim()));
@@ -205,7 +202,7 @@ namespace CleanMachineHMI.FrmUserControl
dt.Columns.Add(dc5);
dt.Columns.Add(dc6);
dt.Columns.Add(dc7);
foreach (BasPlcItemMd item in tmpMdList)
foreach (PlcItem item in tmpMdList)
{
DataRow dr = dt.NewRow();
dr["序号"] = item.PlcItemId;
@@ -247,7 +244,7 @@ namespace CleanMachineHMI.FrmUserControl
}
kryptonDataGridView1.DataSource = dt;
kryptonDataGridView1.ClearSelection();
kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
kryptonDataGridView1.SetDataViewColumnText(this.Name);
}
else
{
@@ -256,7 +253,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载PLC变量数据界面发生异常", "LoadFrmPlcItemExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载PLC变量数据界面发生异常", "LoadFrmPlcItemExp") + $":【{ex.Message}】!");
}
}
private void kbt_Query_Click(object sender, EventArgs e)
@@ -290,7 +287,7 @@ namespace CleanMachineHMI.FrmUserControl
else
{
//KryptonMessageBox.Show("请选择要编辑的PLC变量数据行!");
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的PLC变量数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的PLC变量数据行!", "SelectWantToEditRow"));
}
}
@@ -300,7 +297,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (kryptonDataGridView1.SelectedRows.Count > 0)
{
DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的PLC变量信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的PLC变量信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string PlcItemId = kryptonDataGridView1.SelectedRows[0].Cells[0].Value.ToString();
@@ -309,25 +306,25 @@ namespace CleanMachineHMI.FrmUserControl
if (row > 0)
{
//KryptonMessageBox.Show("删除PLC变量数据成功!");
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除PLC变量数据成功!", "DeleteSuccessInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除PLC变量数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
//KryptonMessageBox.Show("删除PLC变量数据失败!");
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除PLC变量数据失败!", "DeleteFailInfo"));
KryptonMessageBox.Show(this.GetInfoText("删除PLC变量数据失败!", "DeleteFailInfo"));
}
}
}
else
{
//KryptonMessageBox.Show("请选择要删除的PLC变量数据行!");
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的PLC变量数据行!", "SelectWantToDeleteRow"));
KryptonMessageBox.Show(this.GetInfoText("请选择要删除的PLC变量数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除PLC变量数据发生异常", "DeletePlcItemDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("删除PLC变量数据发生异常", "DeletePlcItemDataExp") + $":【{ex.Message}】!");
}
}
}

View File

@@ -30,34 +30,34 @@ namespace CleanMachineHMI.FrmUserControl
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
this.kryptonDataGridView2 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonDataGridView2 = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbtn_EditWorkingPalletData = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kryptonButton2 = new Krypton.Toolkit.KryptonButton();
this.kbtn_EditWorkingPalletData = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_InputStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_palletMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kcmb_sheetType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_irMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kdtp_InputEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonGroupBox3 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.创建时间 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.创建人 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.作业状态 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.托盘号 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.序号 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.Column1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridViewCheckBoxColumn();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonDataGridView1 = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kdtp_InputStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.ktb_palletMsg = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kcmb_sheetType = new Krypton.Toolkit.KryptonComboBox();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_irMsg = new Krypton.Toolkit.KryptonTextBox();
this.kdtp_InputEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonGroupBox3 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonButton1 = new Krypton.Toolkit.KryptonButton();
this.创建时间 = new Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.创建人 = new Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.作业状态 = new Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.托盘号 = new Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.序号 = new Krypton.Toolkit.KryptonDataGridViewTextBoxColumn();
this.Column1 = new Krypton.Toolkit.KryptonDataGridViewCheckBoxColumn();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.kryptonDataGridView1 = new Krypton.Toolkit.KryptonDataGridView();
((System.ComponentModel.ISupportInitialize)(this.kryptonDataGridView2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
@@ -267,8 +267,10 @@ namespace CleanMachineHMI.FrmUserControl
// kcmb_sheetType
//
this.kcmb_sheetType.Anchor = System.Windows.Forms.AnchorStyles.None;
this.kcmb_sheetType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.kcmb_sheetType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.kcmb_sheetType.DropDownWidth = 248;
this.kcmb_sheetType.IntegralHeight = false;
this.kcmb_sheetType.Location = new System.Drawing.Point(821, 3);
this.kcmb_sheetType.Name = "kcmb_sheetType";
this.kcmb_sheetType.Size = new System.Drawing.Size(187, 21);
@@ -443,33 +445,33 @@ namespace CleanMachineHMI.FrmUserControl
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView2;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView2;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbtn_EditWorkingPalletData;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kryptonButton2;
private Krypton.Toolkit.KryptonButton kbtn_EditWorkingPalletData;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_InputStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel1;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_palletMsg;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_sheetType;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_irMsg;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_InputEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 创建时间;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 创建人;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 作业状态;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 托盘号;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 序号;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridViewCheckBoxColumn Column1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_InputStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonLabel kryptonLabel1;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonTextBox ktb_palletMsg;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonComboBox kcmb_sheetType;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_irMsg;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_InputEndTime;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox3;
private Krypton.Toolkit.KryptonButton kryptonButton1;
private Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 创建时间;
private Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 创建人;
private Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 作业状态;
private Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 托盘号;
private Krypton.Toolkit.KryptonDataGridViewTextBoxColumn 序号;
private Krypton.Toolkit.KryptonDataGridViewCheckBoxColumn Column1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using FastReport;
using LeadDataBaseUtility;
using NX_LogUtility;
@@ -13,7 +13,7 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI.WebControls;
using System.Windows.Forms;
namespace CleanMachineHMI.FrmUserControl
@@ -33,7 +33,6 @@ namespace CleanMachineHMI.FrmUserControl
public frmPrinterMain()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
@@ -44,7 +43,7 @@ namespace CleanMachineHMI.FrmUserControl
if (dt != null && dt.Rows.Count > 0)
{
kryptonDataGridView2.DataSource = dt;
kryptonDataGridView2.SetDataViewColumnText(this.Name + "." + kryptonDataGridView2.Name, GlobalHelper.LanguageCode);
kryptonDataGridView2.SetDataViewColumnText(this.Name + "." + kryptonDataGridView2.Name);
}
else
{
@@ -100,13 +99,13 @@ namespace CleanMachineHMI.FrmUserControl
kryptonDataGridView1.Rows[index].Cells[4].Value = item["创建人"].ToString();
kryptonDataGridView1.Rows[index].Cells[5].Value = item["创建时间"].ToString();
}
kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name, GlobalHelper.LanguageCode);
kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name);
isSlectRow = true;
kryptonDataGridView1_SelectionChanged(kryptonDataGridView1, new EventArgs());
}
else
{
kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name, GlobalHelper.LanguageCode);
kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name);
kryptonDataGridView1.Rows.Clear();
}
}
@@ -132,7 +131,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
string sqlQuerySheetType = $@"SELECT SHEET_TYPE_CODE,SHEET_TYPE_NAME FROM BAS_SHEET_TYPE WHERE USED_FLAG = 1 and DEL_FLAG = 0 ORDER BY SHEET_TYPE_ID";
DataTable dtQuerySheetType = LeadDbHelperSQLite.Query(sqlQuerySheetType).Tables[0];
if (dtQuerySheetType != null && dtQuerySheetType.Rows.Count > 0)
@@ -180,7 +179,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载作业数据查询界面发生异常", "LoadQueryWorkingDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("加载作业数据查询界面发生异常", "LoadQueryWorkingDataExp") + $":【{ex.Message}】!");
}
}
#region 打印测试代码
@@ -334,7 +333,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询作业托盘数据发生异常", "QueryWorkingPalletDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("查询作业托盘数据发生异常", "QueryWorkingPalletDataExp") + $":【{ex.Message}】!");
}
}
@@ -409,12 +408,12 @@ namespace CleanMachineHMI.FrmUserControl
else
{
//KryptonMessageBox.Show("请勾选要打印的托盘数据行!!");
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请勾选要打印的托盘数据行!", "SelectWantToPrintRow"));
KryptonMessageBox.Show(this.GetInfoText("请勾选要打印的托盘数据行!", "SelectWantToPrintRow"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("打印作业托盘数据发生异常", "PrintWorkingPalletDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("打印作业托盘数据发生异常", "PrintWorkingPalletDataExp") + $":【{ex.Message}】!");
}
}
private void PrintWorkedIrMsg(string workingIrCodeMsg)
@@ -697,7 +696,7 @@ namespace CleanMachineHMI.FrmUserControl
else
{
//KryptonMessageBox.Show("请勾选要编辑的作业托盘数据行!!");
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请勾选要编辑的作业托盘数据行!", "SelectWantToEditRow"));
KryptonMessageBox.Show(this.GetInfoText("请勾选要编辑的作业托盘数据行!", "SelectWantToEditRow"));
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CleanMachineHMI
{
public class ListItem
{
public string Value { get; set; }
public string Text { get; set; }
}
}

View File

@@ -8,11 +8,11 @@ namespace CleanMachineHMI
{
public class BasCleanTypeMsg
{
public string CLEAN_MODE_CODE { get; set; }
public string CLEAN_MODE_NAME { get; set; }
public string CONTAMINATION_TYPE_CODE { get; set; }
public string CONTAMINATION_TYPE_NAME { get; set; }
public string CONTAMINATION_DTL_CODE { get; set; }
public string CONTAMINATION_DTL_NAME { get; set; }
public string CleanModeCode { get; set; }
public string CleanModeName { get; set; }
public string ContaminationTypeCode { get; set; }
public string ContaminationTypeName { get; set; }
public string ContaminationDtlCode { get; set; }
public string ContaminationDtlName { get; set; }
}
}

View File

@@ -6,17 +6,5 @@ using System.Threading.Tasks;
namespace CleanMachineHMI
{
public class BasPlcItemMd
{
public int PlcItemId { get; set; }
public string PlcItemCode { get; set; }
public string PlcItemName { get; set; }
public int PlcItemType { get; set; }
public int PlcItemDataType { get; set; }
public string PlcItemPriAddress { get; set; }
public string PlcItemModbusAddress { get; set; }
public string PlcItemDeviationAddress { get; set; }
public string PlcItemValue { get; set; }
public int PlcItemDataLen { get; set; }
}
}

View File

@@ -1,29 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CleanMachineHMI
{
public class CM_WarningLogMd
{
public string WarningCode { get; set; }
public string WarningName { get; set; }
public string WarningType { get; set; }
public string WarningMessage { get; set; }
public DateTime WarningTime { get; set; }
public string PlcItemCode { get; set; }
public int WarningStatus { get; set; }
public int WarningHandleResult { get; set; }
public DateTime WarningHandleTime { get; set; }
public int CreateBy { get; set; }
public DateTime CreateTime { get; set; }
public int UpdateBy { get; set; }
public DateTime UpdateTime { get; set; }
public int DataVersion { get; set; }
}
}

View File

@@ -2,7 +2,7 @@
using CleanMachineHMI.Domain.Models.ViewModels;
using CleanMachineHMI.forms;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -25,6 +25,9 @@ namespace CleanMachineHMI
if (canCreateNew)
{
Application.EnableVisualStyles();
//frmUtil.DB2Json();//语言字典从数据库转json
GlobalHelper.LoadTheme();
GlobalHelper.LoadzhCN();
Application.SetCompatibleTextRenderingDefault(false);
GlobalHelper.LoadAllFormData();
Application.Run(GlobalHelper.LoginForm);

View File

@@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("CleanMachineHMI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CleanMachineHMI")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("9cf77369-b471-4476-9f42-779945113ea5")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.35")]
[assembly: AssemblyFileVersion("1.0.0.35")]

View File

@@ -19,7 +19,7 @@ namespace CleanMachineHMI.Properties {
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {

View File

@@ -12,7 +12,7 @@ namespace CleanMachineHMI.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

View File

@@ -1,12 +1,14 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachine.Model;
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.Domain.Models.ViewModels;
using CleanMachineHMI.forms;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
@@ -21,7 +23,7 @@ namespace CleanMachineHMI
/// <summary>
/// 主窗体_New
/// </summary>
public static frmMainNew MainFormNew{ get; set; }
public static frmMainNew MainFormNew { get; set; }
/// <summary>
/// 登陆窗体
@@ -43,7 +45,12 @@ namespace CleanMachineHMI
/// <summary>
/// 语言编码
/// </summary>
public static string LanguageCode { get; set; } = AppConfigHelper.Get("LanguageCode");
public static string LanguageCode { get; set; } = AppConfigHelper.Get("LanguageCode");
/// <summary>
/// 语言字典
/// </summary>
public static Dictionary<string, string> ThemeLanguage = null;
/// <summary>
/// 用户信息
@@ -62,20 +69,20 @@ namespace CleanMachineHMI
/// <summary>
///
/// </summary>
public static List<BasPlcItemMd> PlcItemMdList { get; set; }
public static List<BasPlcItemMd> PlcItemMd_D_List { get; set; }
public static List<PlcItem> PlcItemMdList { get; set; }
public static List<PlcItem> PlcItemMd_D_List { get; set; }
public static List<BasPlcItemMd> PlcItemMd_M_List { get; set; }
public static List<PlcItem> PlcItemMd_M_List { get; set; }
public static List<BasPlcItemMd> PlcItemMd_X_List { get; set; }
public static List<PlcItem> PlcItemMd_X_List { get; set; }
public static List<BasPlcItemMd> PlcItemMd_Y_List { get; set; }
public static List<PlcItem> PlcItemMd_Y_List { get; set; }
public static List<Bas_WarningMd> BasWarningMd_List { get; set; }
public static List<CM_WarningLogMd> CmWarningLogMd_List { get; set; }
public static List<WarningLog> CmWarningLogMd_List { get; set; }
public static List<CM_WarningLogMd> CmWarningLogMd_List_1 { get; set; }
public static List<WarningLog> CmWarningLogMd_List_1 { get; set; }
/// <summary>
/// 参数列表
@@ -130,8 +137,8 @@ namespace CleanMachineHMI
public static string GetPalletCode()
{
string currDateStr = DateTime.Now.ToString("yyyyMMdd");
string PalletIndexPrefix = AppConfigHelper.Get("PalletIndexPrefix");
string PalletIndexDateMsg = AppConfigHelper.Get("PalletIndexDateMsg");
string PalletIndexPrefix = AppConfigHelper.Get("PalletIndexPrefix");
string PalletIndexDateMsg = AppConfigHelper.Get("PalletIndexDateMsg");
int PalletIndexLen = Convert.ToInt32(AppConfigHelper.Get("PalletIndexLen"));
int PalletIndexValue = Convert.ToInt32(AppConfigHelper.Get("PalletIndexValue"));
if (currDateStr == PalletIndexDateMsg)
@@ -154,7 +161,7 @@ namespace CleanMachineHMI
/// 根据自定义特性和窗体的绑定原理,
/// 自动加载所有的窗体数据。
/// </summary>
public static void LoadAllFormData()
public static void LoadAllFormData()
{
var types = Assembly.GetExecutingAssembly().GetTypes().Where(x => x.GetCustomAttributes(typeof(FormTypeAttribute), false).Count() > 0);
FrmModelList = new List<FormModel<Type>>();
@@ -175,5 +182,47 @@ namespace CleanMachineHMI
CanOperate = false;
}
/// <summary>
/// 加载主题
/// </summary>
public static void LoadTheme()
{
if (ThemeLanguage == null || ThemeLanguage.Count == 0)
{
var appPath = System.Windows.Forms.Application.StartupPath.Split(new string[] { @"bin\Debug" }, StringSplitOptions.RemoveEmptyEntries)[0];
var filePath = appPath + $"Lang\\{GlobalHelper.LanguageCode}.json";
var str = File.ReadAllText(filePath);
var lstLanguage = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ThemeLanguage>>(str);
var tmpThemeLanguage = new Dictionary<string, string>();
lstLanguage.ForEach(item =>
{
if (item.options != null && item.options.Count > 0)
{
tmpThemeLanguage.Add(item.formCode + "|" + item.controlCode, string.Join(",", item.options));
}
else
{
tmpThemeLanguage.Add(item.formCode + "|" + item.controlCode, item.controlName);
}
});
ThemeLanguage = tmpThemeLanguage;
}
}
public static void LoadzhCN()
{
if (Utils.frmUtil.znCNLang == null || Utils.frmUtil.znCNLang.Count == 0)
{
var appPath = System.Windows.Forms.Application.StartupPath.Split(new string[] { @"bin\Debug" }, StringSplitOptions.RemoveEmptyEntries)[0];
var filePath = appPath + $"Lang\\zh-CN.json";
if (!File.Exists(filePath))
{
return;
}
var str = File.ReadAllText(filePath);
Utils.frmUtil.znCNLang = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ThemeLanguage>>(str);
}
}
}
}

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Management;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
@@ -23,11 +24,48 @@ namespace CleanMachineHMI
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern int RegisterWindowMessage(string lpString);
private static bool hasKeyboard=false;
private static readonly string USB = "USB";
static KeyboardAutoPopUp()
{
hasKeyboard = GetKeyboardPresent();
}
private static bool GetKeyboardPresent()
{
bool keyboardPresent = false;
ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select * from Win32_Keyboard");
foreach (ManagementObject keyboard in searcher.Get())
{
foreach (PropertyData prop in keyboard.Properties)
{
if (Convert.ToString(prop.Value).Contains(USB))
{
keyboardPresent = true;
break;
}
}
}
return keyboardPresent;
}
//显示屏幕键盘
public static int ShowInputPanel()
{
if (hasKeyboard) return 0;
try
{
dynamic file = "C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe";
if (!System.IO.File.Exists(file))
return -1;

View File

@@ -0,0 +1,36 @@
namespace CleanMachineHMI.Utils
{
partial class KeyboardTextBox
{
/// <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()
{
components = new System.ComponentModel.Container();
}
#endregion
}
}

View File

@@ -0,0 +1,41 @@
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 CleanMachineHMI.Utils
{
public partial class KeyboardTextBox : Krypton.Toolkit.KryptonTextBox
{
public KeyboardTextBox()
{
InitializeComponent();
}
protected override void OnPaint(PaintEventArgs pe)
{
base.OnPaint(pe);
}
protected override void OnGotFocus(EventArgs e)
{
base.OnGotFocus(e);
KeyboardAutoPopUp.ShowInputPanel();
}
protected override void OnLostFocus(EventArgs e)
{
base.OnLostFocus(e);
KeyboardAutoPopUp.HideInputPanel();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +1,13 @@
using CleanMachineHMI.Domain.Enums;
using ComponentFactory.Krypton.Navigator;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Navigator;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using Newtonsoft.Json;
using NX_LogUtility;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
@@ -19,6 +21,8 @@ namespace CleanMachineHMI.Utils
/// </summary>
public static class frmUtil
{
public static List<ThemeLanguage> znCNLang = new List<ThemeLanguage>();
/// <summary>
/// 给一个字符串进行MD5加密
/// </summary>
@@ -116,22 +120,25 @@ namespace CleanMachineHMI.Utils
}
}
/// <summary>
/// object 选择返回值
/// 递归获取子控件
/// </summary>
/// <param name="obj"></param>
/// <param name="control"></param>
/// <returns></returns>
public static string GetObjToString(this object obj)
public static List<Control> GetAllControls(Control control)
{
if (obj == null)
var list = new List<Control>();
foreach (Control con in control.Controls)
{
return string.Empty;
list.Add(con);
if (con.Controls.Count > 0)
{
list.AddRange(GetAllControls(con));
}
}
if (obj.ToString() == "")
{
return string.Empty;
}
return obj.ToString();
return list;
}
/// <summary>
@@ -139,56 +146,51 @@ namespace CleanMachineHMI.Utils
/// </summary>
/// <param name="form">窗体对象</param>
/// <param name="languageCode">语言编码</param>
public static void SetFormControlText(this Form form,string languageCode)
public static void SetFormControlText(this Control form)
{
try
{
var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
WHERE USED_FLAG = 1 AND DEL_FLAG = 0
AND FORM_CODE='{form.Name}' AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE !='DataSource'";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
ErgodicControlsText(form, dt);
var lstControls = GetAllControls(form);
lstControls.Add(form);
foreach (Control item in lstControls)
{
var key = form.Name + "|" + item.Name;
if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
{
continue;
}
AddzhCN(key, item.Text, "");
if (item is KryptonGroupBox)
{
((KryptonGroupBox)item).Values.Heading = GlobalHelper.ThemeLanguage[key];
}
else
{
item.Text = GlobalHelper.ThemeLanguage[key];
}
}
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
}
}
public static void SetFormControlText(this UserControl form, string languageCode)
{
public static void SetSingleControlText(this Control form, Control control)
{
try
{
var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
WHERE USED_FLAG = 1 AND DEL_FLAG = 0
AND FORM_CODE='{form.Name}' AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE !='DataSource'";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
ErgodicControlsText(form, dt);
var key = form.Name + "|" + control.Name;
if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
{
control.Text = control.Name;
}
AddzhCN(key, control.Text, "");
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
}
}
/// <summary>
/// 设定数据视图列文本
/// </summary>
/// <param name="dataGrid"></param>
/// <param name="formName"></param>
/// <param name="languageCode"></param>
public static void SetDataViewColumnText(this DataGridView dataGrid ,string formName, string languageCode)
{
control.Text = GlobalHelper.ThemeLanguage[key];
try
{
var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
WHERE USED_FLAG = 1 AND DEL_FLAG = 0
AND FORM_CODE='{formName}' AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE ='DataSource'";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
ErgodicColumnsText(dataGrid, dt);
}
catch (Exception ex)
{
@@ -202,119 +204,27 @@ namespace CleanMachineHMI.Utils
/// <param name="dataGrid"></param>
/// <param name="formName"></param>
/// <param name="languageCode"></param>
public static DataTable GetInfoLanguageText(this Form form, string languageCode, string controlType = "Info")
public static void SetDataViewColumnText(this DataGridView dataGrid, string formName)
{
try
{
var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
WHERE USED_FLAG = 1 AND DEL_FLAG = 0
AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE = '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
return LeadDbHelperSQLite.Query(sql).Tables[0];
foreach (DataGridViewColumn item in dataGrid.Columns)
{
var key = formName + "|" + item.Name;
if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
{
continue;
}
AddzhCN(key, item.HeaderText, "");
item.HeaderText = GlobalHelper.ThemeLanguage[key];
}
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
return null;
}
}
public static DataTable GetInfoLanguageText(this UserControl form, string languageCode, string controlType = "Info")
{
try
{
var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
WHERE USED_FLAG = 1 AND DEL_FLAG = 0
AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE = '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
return LeadDbHelperSQLite.Query(sql).Tables[0];
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
return null;
}
}
public static DataTable GetInfoLanguageText_1(this Form form, string languageCode, string controlType = "Info")
{
try
{
var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
WHERE USED_FLAG = 1 AND DEL_FLAG = 0
AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE like '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
return LeadDbHelperSQLite.Query(sql).Tables[0];
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
return null;
}
}
public static DataTable GetInfoLanguageText_1(this UserControl form, string languageCode, string controlType = "Info")
{
try
{
var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
WHERE USED_FLAG = 1 AND DEL_FLAG = 0
AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE like '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
return LeadDbHelperSQLite.Query(sql).Tables[0];
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
return null;
}
}
/// <summary>
/// 获取等于查询行
/// </summary>
/// <param name="dataTable"></param>
/// <param name="key"></param>
/// <param name="value"></param>
/// <returns></returns>
public static DataRow[] GetEqualSelectRow(this DataTable dataTable,string key,string value)
{
try
{
var likeSql = $"`{key}` = '{value}'";
DataRow[] dataRow = dataTable.Select(likeSql);
return dataRow;
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
return null;
}
}
/// <summary>
/// 获取包含查询行
/// </summary>
/// <param name="dataTable"></param>
/// <param name="key"></param>
/// <param name="value"></param>
/// <returns></returns>
public static DataRow[] GetContainSelectRow(this DataTable dataTable, string key, string value)
{
try
{
var likeSql = $"`{key}` like '%{value}%'";
DataRow[] dataRow = dataTable.Select(likeSql);
return dataRow;
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
return null;
}
}
/// <summary>
/// 获取信息文本
@@ -322,20 +232,19 @@ namespace CleanMachineHMI.Utils
/// <param name="dataTable"></param>
/// <param name="key"></param>
/// <returns></returns>
public static string GetInfoText(this DataTable dataTable,string defaultValue,string key)
public static string GetInfoText(this Control form, string defaultValue, string infoCode)
{
try
{
var likeSql = $"`CONTROL_CODE` = '{key}' and `CONTROL_TYPE` = 'Info'";
DataRow[] dataRow = dataTable.Select(likeSql);
if (dataRow == null || !dataRow.Any())
var key = form.Name + "|" + infoCode;
if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
{
return defaultValue;
}
else
{
return dataRow[0]["CONTROL_NAME"].ToString();
AddzhCN(key, defaultValue, "");
return GlobalHelper.ThemeLanguage[key];
}
}
catch (Exception ex)
@@ -344,21 +253,28 @@ namespace CleanMachineHMI.Utils
return null;
}
}
public static string GetInfoText_1(this DataTable dataTable, string defaultValue, string key, string controlType)
{
public static List<string> GetComBoboxItemArr(this Control form, string controlCode)
{
try
{
var likeSql = $"`CONTROL_CODE` = '{key}' and `CONTROL_TYPE` = '{controlType}'";
DataRow[] dataRow = dataTable.Select(likeSql);
if (dataRow == null || !dataRow.Any())
var key = form.Name + "|" + controlCode;
if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
{
return defaultValue;
return new List<string>();
}
else
{
return dataRow[0]["CONTROL_NAME"].ToString();
var control = (KryptonComboBox)form.Controls.Find(controlCode,true)[0];
var str = "";
foreach (var item in control.Items) {
str += $"{item},";
}
AddzhCN(key, "", string.IsNullOrEmpty(str) ? GlobalHelper.ThemeLanguage[key] : str.TrimEnd(new char[] { ',' }));
return GlobalHelper.ThemeLanguage[key].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
}
}
catch (Exception ex)
{
@@ -366,69 +282,104 @@ namespace CleanMachineHMI.Utils
return null;
}
}
public static DataRow[] GetComBoboxItemArr(this DataTable dataTable, string key, string controlType)
{
public static void DB2Json()
{
var tmpThemeLanguage = new List<ThemeLanguage>();
var table = LeadDbHelperSQLite.Query("SELECT FORM_CODE,CONTROL_CODE,CONTROL_NAME FROM SYS_LANGUAGE_CONTROL WHERE FORM_CODE <> 'frmMain'").Tables[0];
foreach (DataRow row in table.Rows)
{
var part = tmpThemeLanguage.FirstOrDefault(x => x.formCode == row["FORM_CODE"].ToString() && x.controlCode == row["CONTROL_CODE"].ToString());
if (part == null)
{
tmpThemeLanguage.Add(new ThemeLanguage
{
formCode = row["FORM_CODE"].ToString(),
controlCode = row["CONTROL_CODE"].ToString(),
controlName = row["CONTROL_NAME"].ToString(),
});
}
else
{
if (part.options == null)
{
part.options = new List<string> { part.controlName, row["CONTROL_NAME"].ToString() };
part.controlName = null;
}
else
{
part.options.Add(row["CONTROL_NAME"].ToString());
}
}
}
var str1 = Newtonsoft.Json.JsonConvert.SerializeObject(tmpThemeLanguage);
WriteLangFile("en.json", str1);
}
/// <summary>
/// 写文本文件
/// </summary>
/// <param name="fileName"></param>
/// <param name="txt"></param>
private static void WriteLangFile(string fileName, string txt)
{
var fileDir = System.Windows.Forms.Application.StartupPath.Split(new string[] { @"bin\Debug" }, StringSplitOptions.RemoveEmptyEntries)[0] + "Lang\\";
try
{
var likeSql = $"`CONTROL_CODE` = '{key}' and `CONTROL_TYPE` = '{controlType}'";
DataRow[] dataRow = dataTable.Select(likeSql);
return dataRow;
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
return null;
}
}
/// <summary>
/// 遍历控制界面
/// </summary>
/// <param name="container"></param>
/// <param name="dataTable"></param>
private static void ErgodicControlsText(Control container,DataTable dataTable)
{
for (int i = 0; i < dataTable.Rows.Count; i++)
{
Control[] tmpC = container.Controls.Find(dataTable.Rows[i]["CONTROL_CODE"].ToString(), true);
if (tmpC.Length>0)
if (!Directory.Exists(fileDir))//如果文件夹不存在,就新建一个文件夹。
{
if (tmpC[0] is KryptonGroupBox)
{
//Console.Write("模块名称"+ ((KryptonGroupBox)tmpC[0]).Values.Heading);
//Console.Write("\r\n");
((KryptonGroupBox)tmpC[0]).Values.Heading = dataTable.Rows[i]["CONTROL_NAME"].ToString();
continue;
}
//Console.Write("控件名称:"+ tmpC[0].Name+ ":控件中文名:" + tmpC[0].Text);
//Console.Write("\r\n");
tmpC[0].Text = dataTable.Rows[i]["CONTROL_NAME"].ToString();
Directory.CreateDirectory(fileDir);
}
File.WriteAllText(fileDir + fileName, txt);
}
catch (Exception)
{
}
}
/// <summary>
/// 遍历数据视图控件
/// </summary>
/// <param name="dataGrid"></param>
/// <param name="dataTable"></param>
private static void ErgodicColumnsText(DataGridView dataGrid, DataTable dataTable)
private static void AddzhCN(string key, string name, string options)
{
for(int k = 0; k < dataGrid.Columns.Count; k++)
if (string.IsNullOrEmpty(name) && string.IsNullOrEmpty(options)) {
Console.WriteLine(key+"空");
return;
}
var codes = key.Split(new string[] { "|" }, StringSplitOptions.RemoveEmptyEntries);
if (znCNLang.Any(x => x.formCode == codes[0] && x.controlCode == codes[1]))
{
for (int i = 0; i < dataTable.Rows.Count; i++)
{
if (dataGrid.Columns[k].Name == dataTable.Rows[i]["CONTROL_CODE"].ToString())
{
dataGrid.Columns[k].HeaderText = dataTable.Rows[i]["CONTROL_NAME"].ToString();
break;
}
}
}
return;
}
znCNLang.Add(new ThemeLanguage
{
formCode = codes[0],
controlCode = codes[1],
controlName = string.IsNullOrEmpty(options) ? name : null,
options = string.IsNullOrEmpty(options) ? null : options.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList(),
});
var str1 = Newtonsoft.Json.JsonConvert.SerializeObject(znCNLang);
WriteLangFile("zh-CN.json", str1);
}
}
public class ThemeLanguage
{
/// <summary>
/// 窗体编码
/// </summary>
public string formCode { get; set; }
/// <summary>
/// 控件编码
/// </summary>
public string controlCode { get; set; }
/// <summary>
/// 控件名称
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string controlName { get; set; }
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public List<string> options { get; set; }
}
}

View File

@@ -1,4 +0,0 @@
[ViewState]
Mode=
Vid=
FolderType=Generic

View File

@@ -28,25 +28,25 @@
/// </summary>
private void InitializeComponent()
{
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_CleanModeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_CleanModeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_CleanModeCode = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.ktb_CleanModeName = new Krypton.Toolkit.KryptonTextBox();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
this.kryptonGroupBox1.Panel.SuspendLayout();
@@ -274,7 +274,7 @@
//
this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox2.CaptionOverlap = 0D;
this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 131);
this.kryptonGroupBox2.Name = "kryptonGroupBox2";
@@ -295,7 +295,7 @@
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -334,24 +334,24 @@
}
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CleanModeCode;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CleanModeName;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_CleanModeCode;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonTextBox ktb_CleanModeName;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;

View File

@@ -28,27 +28,27 @@
/// </summary>
private void InitializeComponent()
{
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_ContaminationDtlMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kcmb_ContaminationType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_ContaminationDtlMsg = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.kcmb_ContaminationType = new Krypton.Toolkit.KryptonComboBox();
this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
this.kryptonPanel3 = new Krypton.Toolkit.KryptonPanel();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit();
this.kryptonGroupBox1.Panel.SuspendLayout();
@@ -282,7 +282,7 @@
//
this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox2.CaptionOverlap = 0D;
this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 131);
this.kryptonGroupBox2.Name = "kryptonGroupBox2";
@@ -303,7 +303,7 @@
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -365,26 +365,26 @@
}
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonPanel kryptonPanel2;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonPanel kryptonPanel3;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ContaminationDtlMsg;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_ContaminationType;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_ContaminationDtlMsg;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonComboBox kcmb_ContaminationType;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI.WebControls;
using System.Windows.Forms;
namespace CleanMachineHMI.forms

View File

@@ -28,27 +28,27 @@
/// </summary>
private void InitializeComponent()
{
this.kryptonPanel3 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
this.kryptonPanel3 = new Krypton.Toolkit.KryptonPanel();
this.kryptonPanel2 = new Krypton.Toolkit.KryptonPanel();
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.ktb_ContaminationTypeMsg = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
this.kcmb_CleanMode = new ComponentFactory.Krypton.Toolkit.KryptonComboBox();
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
this.ktb_ContaminationTypeMsg = new Krypton.Toolkit.KryptonTextBox();
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
this.kcmb_CleanMode = new Krypton.Toolkit.KryptonComboBox();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel3)).BeginInit();
this.kryptonPanel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit();
@@ -92,7 +92,7 @@
//
this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
this.kryptonGroupBox2.CaptionOverlap = 0D;
this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 129);
this.kryptonGroupBox2.Name = "kryptonGroupBox2";
@@ -113,7 +113,7 @@
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
this.dataGridView.DataMember = "TestData";
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
this.dataGridView.Location = new System.Drawing.Point(0, 0);
this.dataGridView.MultiSelect = false;
this.dataGridView.Name = "dataGridView";
@@ -365,26 +365,26 @@
}
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel3;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
private Krypton.Toolkit.KryptonPanel kryptonPanel3;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonPanel kryptonPanel2;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
private Krypton.Toolkit.KryptonDataGridView dataGridView;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
private Krypton.Toolkit.KryptonButton kbt_Query;
private Krypton.Toolkit.KryptonButton kbt_Reset;
private Krypton.Toolkit.KryptonButton kbt_Add;
private Krypton.Toolkit.KryptonButton kbt_Edit;
private Krypton.Toolkit.KryptonButton kbt_Delete;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_ContaminationTypeMsg;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_CleanMode;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
private Krypton.Toolkit.KryptonTextBox ktb_ContaminationTypeMsg;
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
private Krypton.Toolkit.KryptonComboBox kcmb_CleanMode;
}
}

View File

@@ -1,7 +1,7 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using ComponentFactory.Krypton.Toolkit;
using Krypton.Toolkit;
using LeadDataBaseUtility;
using System;
using System.Collections.Generic;
@@ -11,7 +11,7 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI.WebControls;
using System.Windows.Forms;
namespace CleanMachineHMI.forms

View File

@@ -28,9 +28,9 @@
/// </summary>
private void InitializeComponent()
{
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
this.btnWork = new ComponentFactory.Krypton.Toolkit.KryptonButton();
this.navigatorMain = new ComponentFactory.Krypton.Navigator.KryptonNavigator();
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
this.btnWork = new Krypton.Toolkit.KryptonButton();
this.navigatorMain = new Krypton.Navigator.KryptonNavigator();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
this.kryptonPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.navigatorMain)).BeginInit();
@@ -59,16 +59,16 @@
//
// navigatorMain
//
this.navigatorMain.Bar.ItemAlignment = ComponentFactory.Krypton.Toolkit.RelativePositionAlign.Center;
this.navigatorMain.Bar.ItemSizing = ComponentFactory.Krypton.Navigator.BarItemSizing.Individual;
this.navigatorMain.Button.ButtonDisplayLogic = ComponentFactory.Krypton.Navigator.ButtonDisplayLogic.None;
this.navigatorMain.Button.CloseButtonAction = ComponentFactory.Krypton.Navigator.CloseButtonAction.None;
this.navigatorMain.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide;
this.navigatorMain.Bar.ItemAlignment = Krypton.Toolkit.RelativePositionAlign.Center;
this.navigatorMain.Bar.ItemSizing = Krypton.Navigator.BarItemSizing.Individual;
this.navigatorMain.Button.ButtonDisplayLogic = Krypton.Navigator.ButtonDisplayLogic.None;
this.navigatorMain.Button.CloseButtonAction = Krypton.Navigator.CloseButtonAction.None;
this.navigatorMain.Button.CloseButtonDisplay = Krypton.Navigator.ButtonDisplay.Hide;
this.navigatorMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.navigatorMain.Location = new System.Drawing.Point(321, 0);
this.navigatorMain.Name = "navigatorMain";
this.navigatorMain.NavigatorMode = ComponentFactory.Krypton.Navigator.NavigatorMode.Group;
this.navigatorMain.PageBackStyle = ComponentFactory.Krypton.Toolkit.PaletteBackStyle.PanelClient;
this.navigatorMain.NavigatorMode = Krypton.Navigator.NavigatorMode.Group;
this.navigatorMain.PageBackStyle = Krypton.Toolkit.PaletteBackStyle.PanelClient;
this.navigatorMain.Size = new System.Drawing.Size(837, 715);
this.navigatorMain.TabIndex = 6;
this.navigatorMain.Text = "kryptonNavigator1";
@@ -93,8 +93,8 @@
#endregion
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
private ComponentFactory.Krypton.Toolkit.KryptonButton btnWork;
public ComponentFactory.Krypton.Navigator.KryptonNavigator navigatorMain;
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
private Krypton.Toolkit.KryptonButton btnWork;
public Krypton.Navigator.KryptonNavigator navigatorMain;
}
}

Some files were not shown because too many files have changed in this diff Show More