1 Commits

Author SHA1 Message Date
杰 朱
b1f7a52fd7 1 2022-03-17 16:22:08 +08:00
12 changed files with 39 additions and 195 deletions

View File

@@ -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.6</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic> <Deterministic>true</Deterministic>
<TargetFrameworkProfile /> <TargetFrameworkProfile />

View File

@@ -122,6 +122,10 @@
<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>
@@ -140,6 +144,10 @@
<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>
@@ -280,7 +288,6 @@
<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" />
@@ -439,8 +446,6 @@
<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">

View File

@@ -68,7 +68,8 @@ 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();
@@ -514,7 +515,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 = "";
@@ -810,10 +811,23 @@ 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
// //
@@ -2901,7 +2915,8 @@ 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;

View File

@@ -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", "17.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.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 {

View File

@@ -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", "17.0.3.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.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())));

View File

@@ -1,148 +0,0 @@
// 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

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

View File

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

View File

@@ -186,8 +186,6 @@ 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)
{ {
@@ -253,7 +251,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);

View File

@@ -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>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/></startup></configuration> </configuration>

View File

@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>LeadDataBaseUtility</RootNamespace> <RootNamespace>LeadDataBaseUtility</RootNamespace>
<AssemblyName>LeadDataBaseUtility</AssemblyName> <AssemblyName>LeadDataBaseUtility</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<TargetFrameworkProfile /> <TargetFrameworkProfile />
<NuGetPackageImportStamp> <NuGetPackageImportStamp>

View File

@@ -9,10 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NX_LogUtility</RootNamespace> <RootNamespace>NX_LogUtility</RootNamespace>
<AssemblyName>NX_LogUtility</AssemblyName> <AssemblyName>NX_LogUtility</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> <TargetFrameworkVersion>v4.5</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>