Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ca18b0b3f |
@@ -9,7 +9,7 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>CleanMachineHMI.Domain</RootNamespace>
|
<RootNamespace>CleanMachineHMI.Domain</RootNamespace>
|
||||||
<AssemblyName>CleanMachineHMI.Domain</AssemblyName>
|
<AssemblyName>CleanMachineHMI.Domain</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
|
|||||||
@@ -2,62 +2,62 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<configSections>
|
||||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
<!-- 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" />
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
||||||
</configSections>
|
</configSections>
|
||||||
<connectionStrings>
|
<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="data source=.;initial catalog=NX_CLEAR_MAC_20200915;persist security info=True;user id=sa;password=1q2w3e4r!@;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
<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="data source=.;initial catalog=NX_CLEAR_MAC_20200915;persist security info=True;user id=sa;password=1q2w3e4r!@;MultipleActiveResultSets=True;App=EntityFramework"" 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" />
|
<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>
|
</connectionStrings>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
|
||||||
</startup>
|
</startup>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
|
|
||||||
|
|
||||||
<add key="GlobalPaletteMode" value="Professionaloffice2003" />
|
<add key="GlobalPaletteMode" value="Professionaloffice2003"/>
|
||||||
<!--<add key="LanguageCode" value="Chinese"/>-->
|
<!--<add key="LanguageCode" value="Chinese"/>-->
|
||||||
<add key="LanguageCode" value="English" />
|
<add key="LanguageCode" value="English"/>
|
||||||
<add key="sqlmapConfigPath" value="Config/sqlmap.config" />
|
<add key="sqlmapConfigPath" value="Config/sqlmap.config"/>
|
||||||
<!--MySql数据库连接字符串-->
|
<!--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数据库连接字符串-->
|
<!--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数据库连接字符串-->
|
<!--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数据库连接字符串-->
|
<!--SQLite数据库连接字符串-->
|
||||||
<!--<add key="LeadSQLite" value="Data Source=|DataDirectory|\\clearMac.db;Pooling=true;FailIfMissing=false"/>-->
|
<!--<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 个停止位。-->
|
<!--停止位。 0:不使用停止位;1:使用一个停止位;2:使用两个停止位;3:使用 1.5 个停止位。-->
|
||||||
<add key="StopBits" value="1" />
|
<add key="StopBits" value="1"/>
|
||||||
<!--奇偶校验。0:无校验;1:奇校验;2:偶校验;-->
|
<!--奇偶校验。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="LastTimeUserCode" value=""/>
|
||||||
<add key="ClientSettingsProvider.ServiceUri" value="" />
|
<add key="ClientSettingsProvider.ServiceUri" value=""/>
|
||||||
</appSettings>
|
</appSettings>
|
||||||
<system.web>
|
<system.web>
|
||||||
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
||||||
<providers>
|
<providers>
|
||||||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
|
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
|
||||||
</providers>
|
</providers>
|
||||||
</membership>
|
</membership>
|
||||||
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
||||||
<providers>
|
<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" />
|
<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>
|
</providers>
|
||||||
</roleManager>
|
</roleManager>
|
||||||
</system.web>
|
</system.web>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<OutputType>WinExe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<RootNamespace>CleanMachineHMI</RootNamespace>
|
<RootNamespace>CleanMachineHMI</RootNamespace>
|
||||||
<AssemblyName>CleanMachineHMI</AssemblyName>
|
<AssemblyName>CleanMachineHMI</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
@@ -122,10 +122,6 @@
|
|||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\public\FastReport.Web.dll</HintPath>
|
<HintPath>..\public\FastReport.Web.dll</HintPath>
|
||||||
</Reference>
|
</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">
|
<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>
|
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.Common.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
@@ -144,10 +140,6 @@
|
|||||||
<Reference Include="Microsoft.SqlServer.Types, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
<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>
|
<HintPath>..\packages\Microsoft.SqlServer.Types.14.0.314.76\lib\net40\Microsoft.SqlServer.Types.dll</HintPath>
|
||||||
</Reference>
|
</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">
|
<Reference Include="NModbus4, Version=2.1.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\public\NModbus4.dll</HintPath>
|
<HintPath>..\public\NModbus4.dll</HintPath>
|
||||||
@@ -288,6 +280,7 @@
|
|||||||
<Compile Include="FrmUserControl\Base\frmWarning.Designer.cs">
|
<Compile Include="FrmUserControl\Base\frmWarning.Designer.cs">
|
||||||
<DependentUpon>frmWarning.cs</DependentUpon>
|
<DependentUpon>frmWarning.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Utils\AnimateBase.cs" />
|
||||||
<Compile Include="Utils\GlobalHelper.cs" />
|
<Compile Include="Utils\GlobalHelper.cs" />
|
||||||
<Compile Include="Model\BasCleanTypeMsg.cs" />
|
<Compile Include="Model\BasCleanTypeMsg.cs" />
|
||||||
<Compile Include="Model\BasPlcItemMd.cs" />
|
<Compile Include="Model\BasPlcItemMd.cs" />
|
||||||
@@ -446,6 +439,8 @@
|
|||||||
<Compile Include="frmMainNew.Designer.cs">
|
<Compile Include="frmMainNew.Designer.cs">
|
||||||
<DependentUpon>frmMainNew.cs</DependentUpon>
|
<DependentUpon>frmMainNew.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Utils\LEaseMode.cs" />
|
||||||
|
<Compile Include="Utils\LEaseType.cs" />
|
||||||
<Compile Include="Utils\LEnum.cs" />
|
<Compile Include="Utils\LEnum.cs" />
|
||||||
<Compile Include="Utils\LEventArgs.cs" />
|
<Compile Include="Utils\LEventArgs.cs" />
|
||||||
<Compile Include="Utils\LSwitchButton.cs">
|
<Compile Include="Utils\LSwitchButton.cs">
|
||||||
|
|||||||
@@ -68,8 +68,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonLabel9 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel9 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
|
||||||
this.swtbtn_brush2 = new CleanMachineHMI.LSwitchButton();
|
this.swtbtn_brush2 = new CleanMachineHMI.LSwitchButton();
|
||||||
this.cbt_Brush2StatusTran = new CleanMachineHMI.CircleButton();
|
this.cbt_Brush2StatusTran = new CleanMachineHMI.CircleButton();
|
||||||
this.shapeContainer1 = new Microsoft.VisualBasic.PowerPacks.ShapeContainer();
|
|
||||||
this.lineShape1 = new Microsoft.VisualBasic.PowerPacks.LineShape();
|
|
||||||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
||||||
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
|
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
|
||||||
this.kryptonLabel13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel13 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
|
||||||
@@ -515,7 +514,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel9);
|
this.kryptonGroupBox7.Panel.Controls.Add(this.kryptonLabel9);
|
||||||
this.kryptonGroupBox7.Panel.Controls.Add(this.swtbtn_brush2);
|
this.kryptonGroupBox7.Panel.Controls.Add(this.swtbtn_brush2);
|
||||||
this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_Brush2StatusTran);
|
this.kryptonGroupBox7.Panel.Controls.Add(this.cbt_Brush2StatusTran);
|
||||||
this.kryptonGroupBox7.Panel.Controls.Add(this.shapeContainer1);
|
|
||||||
this.kryptonGroupBox7.Size = new System.Drawing.Size(260, 338);
|
this.kryptonGroupBox7.Size = new System.Drawing.Size(260, 338);
|
||||||
this.kryptonGroupBox7.TabIndex = 5;
|
this.kryptonGroupBox7.TabIndex = 5;
|
||||||
this.kryptonGroupBox7.Values.Heading = "";
|
this.kryptonGroupBox7.Values.Heading = "";
|
||||||
@@ -811,23 +810,10 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.cbt_Brush2StatusTran.UseVisualStyleBackColor = false;
|
this.cbt_Brush2StatusTran.UseVisualStyleBackColor = false;
|
||||||
//
|
//
|
||||||
// shapeContainer1
|
// shapeContainer1
|
||||||
//
|
|
||||||
this.shapeContainer1.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.shapeContainer1.Margin = new System.Windows.Forms.Padding(0);
|
|
||||||
this.shapeContainer1.Name = "shapeContainer1";
|
|
||||||
this.shapeContainer1.Shapes.AddRange(new Microsoft.VisualBasic.PowerPacks.Shape[] {
|
|
||||||
this.lineShape1});
|
|
||||||
this.shapeContainer1.Size = new System.Drawing.Size(256, 334);
|
|
||||||
this.shapeContainer1.TabIndex = 45;
|
|
||||||
this.shapeContainer1.TabStop = false;
|
|
||||||
//
|
//
|
||||||
// lineShape1
|
// lineShape1
|
||||||
//
|
|
||||||
this.lineShape1.Name = "lineShape1";
|
|
||||||
this.lineShape1.X1 = 20;
|
|
||||||
this.lineShape1.X2 = 235;
|
|
||||||
this.lineShape1.Y1 = 117;
|
|
||||||
this.lineShape1.Y2 = 117;
|
|
||||||
//
|
//
|
||||||
// tableLayoutPanel2
|
// tableLayoutPanel2
|
||||||
//
|
//
|
||||||
@@ -2915,8 +2901,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel9;
|
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel9;
|
||||||
private LSwitchButton swtbtn_brush2;
|
private LSwitchButton swtbtn_brush2;
|
||||||
private CircleButton cbt_Brush2StatusTran;
|
private CircleButton cbt_Brush2StatusTran;
|
||||||
private Microsoft.VisualBasic.PowerPacks.ShapeContainer shapeContainer1;
|
|
||||||
private Microsoft.VisualBasic.PowerPacks.LineShape lineShape1;
|
|
||||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
|
||||||
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
|
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
|
||||||
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_SheetType;
|
private ComponentFactory.Krypton.Toolkit.KryptonComboBox kcmb_SheetType;
|
||||||
|
|||||||
@@ -1267,7 +1267,8 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
{
|
{
|
||||||
while (GlobalHelper.SysThIsRunFlag)
|
while (GlobalHelper.SysThIsRunFlag)
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacRunStatusNew", PlcItemTypeDesc.M)))
|
if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("CleanMacRunStatusNew", PlcItemTypeDesc.M)))
|
||||||
{
|
{
|
||||||
Invoke(new Action(() => { cbt_RunStatusTran.BackColor = Color.Lime; }));
|
Invoke(new Action(() => { cbt_RunStatusTran.BackColor = Color.Lime; }));
|
||||||
@@ -1530,8 +1531,11 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
//autoCleanNum = 0;
|
//autoCleanNum = 0;
|
||||||
}
|
}
|
||||||
FinishWorkingPallet();
|
FinishWorkingPallet();
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
Thread.Sleep(200);
|
Thread.Sleep(200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
CleanMachineHMI/Properties/Resources.Designer.cs
generated
2
CleanMachineHMI/Properties/Resources.Designer.cs
generated
@@ -19,7 +19,7 @@ namespace CleanMachineHMI.Properties {
|
|||||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
// (以 /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.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources {
|
internal class Resources {
|
||||||
|
|||||||
2
CleanMachineHMI/Properties/Settings.Designer.cs
generated
2
CleanMachineHMI/Properties/Settings.Designer.cs
generated
@@ -12,7 +12,7 @@ namespace CleanMachineHMI.Properties {
|
|||||||
|
|
||||||
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[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.0.3.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|||||||
148
CleanMachineHMI/Utils/AnimateBase.cs
Normal file
148
CleanMachineHMI/Utils/AnimateBase.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
CleanMachineHMI/Utils/LEaseMode.cs
Normal file
9
CleanMachineHMI/Utils/LEaseMode.cs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
namespace LEase
|
||||||
|
{
|
||||||
|
public enum LEaseMode
|
||||||
|
{
|
||||||
|
EaseIn,
|
||||||
|
EaseOut,
|
||||||
|
EaseInOut
|
||||||
|
}
|
||||||
|
}
|
||||||
16
CleanMachineHMI/Utils/LEaseType.cs
Normal file
16
CleanMachineHMI/Utils/LEaseType.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
namespace LEase
|
||||||
|
{
|
||||||
|
public enum LEaseType
|
||||||
|
{
|
||||||
|
Back,
|
||||||
|
Bounce,
|
||||||
|
Circle,
|
||||||
|
Quadratic,
|
||||||
|
Cubic,
|
||||||
|
Quartic,
|
||||||
|
Quintic,
|
||||||
|
Elastic,
|
||||||
|
Exponential,
|
||||||
|
Sine
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -186,6 +186,8 @@ namespace CleanMachineHMI
|
|||||||
|
|
||||||
private void TTimer_Tick(object sender, EventArgs e)
|
private void TTimer_Tick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
bool b = (_IsOpen?(iNow>=0):(iNow<=iDuration));
|
bool b = (_IsOpen?(iNow>=0):(iNow<=iDuration));
|
||||||
if (b)
|
if (b)
|
||||||
{
|
{
|
||||||
@@ -251,7 +253,7 @@ namespace CleanMachineHMI
|
|||||||
protected override void OnPaint(PaintEventArgs e)
|
protected override void OnPaint(PaintEventArgs e)
|
||||||
{
|
{
|
||||||
base.OnPaint(e);
|
base.OnPaint(e);
|
||||||
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
|
// e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
|
||||||
|
|
||||||
Pen penBarBack = new Pen(_CloseColor, _BarHight);
|
Pen penBarBack = new Pen(_CloseColor, _BarHight);
|
||||||
Pen penBarFore = new Pen(_OpenColor, _BarHight);
|
Pen penBarFore = new Pen(_OpenColor, _BarHight);
|
||||||
|
|||||||
@@ -792,7 +792,18 @@ namespace CleanMachineHMI
|
|||||||
WritePlcItem("PlcHeartbeatWriteData", wcsToPlcHeartDataNew.ToString(), PlcItemTypeDesc.D);
|
WritePlcItem("PlcHeartbeatWriteData", wcsToPlcHeartDataNew.ToString(), PlcItemTypeDesc.D);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (DateTime.Now > HeartbeatTime.AddSeconds(5))//心跳超时
|
||||||
|
{
|
||||||
|
isConn = false;
|
||||||
|
//报警处理。
|
||||||
|
frmMainNew.Show_Plc_Alarm("PLC heartbeat data is abnormal, PLC loses connection!");
|
||||||
|
if (ReConnNum % 5 == 0)
|
||||||
|
{
|
||||||
|
ClosePlcConn();
|
||||||
|
PlcInit();
|
||||||
|
}
|
||||||
|
ReConnNum++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<configSections>
|
||||||
|
|
||||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
||||||
</configSections>
|
</configSections>
|
||||||
<entityFramework>
|
<entityFramework>
|
||||||
<providers>
|
<providers>
|
||||||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
|
||||||
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
|
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6"/>
|
||||||
</providers>
|
</providers>
|
||||||
</entityFramework>
|
</entityFramework>
|
||||||
|
|
||||||
</configuration>
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/></startup></configuration>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>LeadDataBaseUtility</RootNamespace>
|
<RootNamespace>LeadDataBaseUtility</RootNamespace>
|
||||||
<AssemblyName>LeadDataBaseUtility</AssemblyName>
|
<AssemblyName>LeadDataBaseUtility</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
<NuGetPackageImportStamp>
|
<NuGetPackageImportStamp>
|
||||||
|
|||||||
@@ -9,9 +9,10 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>NX_LogUtility</RootNamespace>
|
<RootNamespace>NX_LogUtility</RootNamespace>
|
||||||
<AssemblyName>NX_LogUtility</AssemblyName>
|
<AssemblyName>NX_LogUtility</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<Deterministic>true</Deterministic>
|
<Deterministic>true</Deterministic>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
|||||||
Reference in New Issue
Block a user