| | |
| | | //ééç»å« |
| | | wplog.QualityOP80To9 = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Weight Class")).FirstOrDefault()?.ç¶æ; |
| | | //wplog.Remarks = (wplog.Remarks ?? "") + $"OP80ä¸çº¿å®æè¯»åæä»¶{file.FullName},æ°æ®ã{wplog.OP80NewCode??"空"}ãã{wplog.QualityOP80To1 ?? "空"}ãã{wplog.QualityOP80To2 ?? "空"}ãã{wplog.QualityOP80To3 ?? "空"}ãã{wplog.QualityOP80To4 ?? "空"}ãã{wplog.QualityOP80To5 ?? "空"}ã"; |
| | | |
| | | //æ°å¢OP80çä¸äºè´¨éæ°æ® ãEditby shaocx,2024-06-13ã |
| | | wplog.QualityOP80_Houdu = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Big_End_Thickness")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_ZXJ = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Distance of Two Head")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_DTKYZD = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Big_End_Cylindricity")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_XTSMYD = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Small_End_Top_Roundn")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_XTXMYD = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Small_End_Bot_Roundn")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | |
| | | |
| | | wplog.QualityOP80_D_S_X = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Big_End_Top_X_Dia.")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_D_S_Y = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Big_End_Top_Y_Dia.")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_D_X_X = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Big_End_Bot_X_Dia.")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_D_X_Y = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Big_End_Bot_Y_Dia.")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | //计ç®å¤§å¤´åç´å¾,大头åç´å¾=ï¼å¤§å¤´ä¸é¢Xæ¹åç´å¾+大头ä¸é¢Yæ¹åç´å¾+大头ä¸é¢Xæ¹åç´å¾+大头ä¸é¢Yæ¹åç´å¾ï¼/4 |
| | | List<decimal> valueList = new List<decimal>() { |
| | | SystemHelper.GetDecimal(wplog.QualityOP80_D_S_X), |
| | | SystemHelper.GetDecimal(wplog.QualityOP80_D_S_Y), |
| | | SystemHelper.GetDecimal(wplog.QualityOP80_D_X_X), |
| | | SystemHelper.GetDecimal(wplog.QualityOP80_D_X_Y), |
| | | }; |
| | | wplog.QualityOP80_D_TKZJ = SystemHelper.CalcDecimalAvg(valueList, 3); |
| | | |
| | | |
| | | wplog.QualityOP80_X_S_X = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Small_End_Top_X_Dia.")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_X_S_Y = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Small_End_Top_Y_Dia.")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_X_X_X = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Small_End_Bot_X_Dia.")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | wplog.QualityOP80_X_X_Y = oP80Info.OP80ItemInfolist.Where(o => o.åç§°.Equals("Small_End_Bot_Y_Dia.")).FirstOrDefault()?.ç»å¯¹å¼; |
| | | //计ç®å°å¤´åç´å¾,å°å¤´åç´å¾=ï¼å°å¤´ä¸é¢Xæ¹åç´å¾+å°å¤´ä¸é¢Yæ¹åç´å¾+å°å¤´ä¸é¢Xæ¹åç´å¾+å°å¤´ä¸é¢Yæ¹åç´å¾ï¼/4 |
| | | valueList = new List<decimal>(); |
| | | valueList = new List<decimal>() { |
| | | SystemHelper.GetDecimal(wplog.QualityOP80_X_S_X), |
| | | SystemHelper.GetDecimal(wplog.QualityOP80_X_S_Y), |
| | | SystemHelper.GetDecimal(wplog.QualityOP80_X_X_X), |
| | | SystemHelper.GetDecimal(wplog.QualityOP80_X_X_Y), |
| | | }; |
| | | wplog.QualityOP80_X_TKZJ = SystemHelper.CalcDecimalAvg(valueList, 3); |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
¶Ô±ÈÐÂÎļþ |
| | |
| | |  |
| | | using iWare_SCADA_Model; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace iWare_SCADA_BusinessLogical.Utils |
| | | { |
| | | /// <summary> |
| | | /// ç³»ç»å¸®å©ç±» |
| | | /// </summary> |
| | | public class SystemHelper |
| | | { |
| | | /// <summary> |
| | | /// å符串转æ¢decimalç±»å |
| | | /// </summary> |
| | | /// <param name="value"></param> |
| | | /// <returns></returns> |
| | | public static decimal GetDecimal(string value) |
| | | { |
| | | if (string.IsNullOrEmpty(value)) |
| | | { |
| | | return 0; |
| | | } |
| | | decimal decimalValue = 0; |
| | | var isRight = decimal.TryParse(value, out decimalValue); |
| | | if (isRight) |
| | | { |
| | | return decimalValue; |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// decimaléå计ç®å¹³åå¼ |
| | | /// </summary> |
| | | /// <param name="valueList">éå</param> |
| | | /// <param name="digits">精度</param> |
| | | /// <returns></returns> |
| | | public static string CalcDecimalAvg(List<decimal> valueList, int digits) |
| | | { |
| | | var sum = valueList.Sum(); |
| | | var count = valueList.Count; |
| | | var bb = Convert.ToDecimal((sum / (decimal)count).ToString("f" + digits.ToString())); |
| | | return bb.ToString(); |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | <DesignTime>True</DesignTime> |
| | | <DependentUpon>Resources.resx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Utils\SystemHelper.cs" /> |
| | | <Compile Include="Utils\ComboBoxHelper.cs" /> |
| | | <Compile Include="Utils\ConfigHelper.cs" /> |
| | | <Compile Include="Utils\CSVHelper.cs" /> |
| | |
| | | EndProject |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "iWare_SCADA_BusinessLogical", "iWare_SCADA_BusinessLogical\iWare_SCADA_BusinessLogical.csproj", "{32708F19-FE1A-48F5-B373-8E1C776F216C}" |
| | | EndProject |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "iWare_SCADA_Test", "iWare_SCADA_Test\iWare_SCADA_Test.csproj", "{A3F6EBB4-D019-4246-9789-337B860BA31E}" |
| | | EndProject |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "iWare_SCADA_FormTest2", "iWare_SCADA_FormTest\iWare_SCADA_FormTest2.csproj", "{3B160435-00C6-4321-9D3A-A30FD23F2D4B}" |
| | | EndProject |
| | | Global |
| | | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
| | | Debug|Any CPU = Debug|Any CPU |
| | |
| | | {32708F19-FE1A-48F5-B373-8E1C776F216C}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {32708F19-FE1A-48F5-B373-8E1C776F216C}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {32708F19-FE1A-48F5-B373-8E1C776F216C}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | {A3F6EBB4-D019-4246-9789-337B860BA31E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
| | | {A3F6EBB4-D019-4246-9789-337B860BA31E}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {A3F6EBB4-D019-4246-9789-337B860BA31E}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {A3F6EBB4-D019-4246-9789-337B860BA31E}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | {3B160435-00C6-4321-9D3A-A30FD23F2D4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
| | | {3B160435-00C6-4321-9D3A-A30FD23F2D4B}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {3B160435-00C6-4321-9D3A-A30FD23F2D4B}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {3B160435-00C6-4321-9D3A-A30FD23F2D4B}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | EndGlobalSection |
| | | GlobalSection(SolutionProperties) = preSolution |
| | | HideSolutionNode = FALSE |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <configuration> |
| | | <startup> |
| | | <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/> |
| | | </startup> |
| | | <appSettings> |
| | | <add key="OP80QualityData_Test" value="X:\CA4GC20TD_Test\"/> |
| | | </appSettings> |
| | | </configuration> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace iWare_SCADA_FormTest |
| | | { |
| | | partial class Form1 |
| | | { |
| | | /// <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 Windows çªä½è®¾è®¡å¨çæç代ç |
| | | |
| | | /// <summary> |
| | | /// è®¾è®¡å¨æ¯ææéçæ¹æ³ - ä¸è¦ä¿®æ¹ |
| | | /// 使ç¨ä»£ç ç¼è¾å¨ä¿®æ¹æ¤æ¹æ³çå
容ã |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | this.button1 = new System.Windows.Forms.Button(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // button1 |
| | | // |
| | | this.button1.Location = new System.Drawing.Point(76, 55); |
| | | this.button1.Name = "button1"; |
| | | this.button1.Size = new System.Drawing.Size(135, 54); |
| | | this.button1.TabIndex = 0; |
| | | this.button1.Text = "æµè¯ç§»å¨æä»¶"; |
| | | this.button1.UseVisualStyleBackColor = true; |
| | | this.button1.Click += new System.EventHandler(this.button1_Click); |
| | | // |
| | | // Form1 |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(800, 450); |
| | | this.Controls.Add(this.button1); |
| | | this.Name = "Form1"; |
| | | this.Text = "Form1"; |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.Button button1; |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using iWare_SCADA_BusinessLogical.Utils; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace iWare_SCADA_FormTest |
| | | { |
| | | public partial class Form1 : Form |
| | | { |
| | | public Form1() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | private void button1_Click(object sender, EventArgs e) |
| | | { |
| | | try |
| | | { |
| | | string path = ConfigHelper.GetConfigString("OP80QualityData_Test");//OP80çå°å |
| | | |
| | | var newFiles = FileHelper.DetectNewFilesCSV(path, 300, DateTime.Now.AddDays(-100), DateTime.Now.AddDays(1)); |
| | | |
| | | foreach (System.IO.FileInfo file in newFiles) |
| | | { |
| | | MessageBox.Show("æ¾å°æä»¶:" + file.FullName); |
| | | var toPath = file.FullName.Replace("CA4GC20TD_Test", "CA4GC20TD_COPY"); |
| | | MessageBox.Show("è¦ç§»å¨å°:" + file.FullName); |
| | | File.Move(file.FullName, toPath);//ç§»å¨ |
| | | } |
| | | |
| | | MessageBox.Show("æå"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MessageBox.Show("å¼å¸¸:" + ex.Message); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | </root> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace iWare_SCADA_FormTest |
| | | { |
| | | internal static class Program |
| | | { |
| | | /// <summary> |
| | | /// åºç¨ç¨åºç主å
¥å£ç¹ã |
| | | /// </summary> |
| | | [STAThread] |
| | | static void Main() |
| | | { |
| | | Application.EnableVisualStyles(); |
| | | Application.SetCompatibleTextRenderingDefault(false); |
| | | Application.Run(new Form1()); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System.Reflection; |
| | | using System.Runtime.CompilerServices; |
| | | using System.Runtime.InteropServices; |
| | | |
| | | // æå
³ç¨åºéçä¸è¬ä¿¡æ¯ç±ä»¥ä¸ |
| | | // æ§å¶ãæ´æ¹è¿äºç¹æ§å¼å¯ä¿®æ¹ |
| | | // ä¸ç¨åºéå
³èçä¿¡æ¯ã |
| | | [assembly: AssemblyTitle("iWare_SCADA_FormTest")] |
| | | [assembly: AssemblyDescription("")] |
| | | [assembly: AssemblyConfiguration("")] |
| | | [assembly: AssemblyCompany("微软ä¸å½")] |
| | | [assembly: AssemblyProduct("iWare_SCADA_FormTest")] |
| | | [assembly: AssemblyCopyright("Copyright © 微软ä¸å½ 2024")] |
| | | [assembly: AssemblyTrademark("")] |
| | | [assembly: AssemblyCulture("")] |
| | | |
| | | // å° ComVisible 设置为 false ä¼ä½¿æ¤ç¨åºéä¸çç±»å |
| | | //对 COM ç»ä»¶ä¸å¯è§ã妿éè¦ä» COM è®¿é®æ¤ç¨åºéä¸çç±»å |
| | | //è¯·å°æ¤ç±»åç ComVisible ç¹æ§è®¾ç½®ä¸º trueã |
| | | [assembly: ComVisible(false)] |
| | | |
| | | // 妿æ¤é¡¹ç®å COM å
¬å¼ï¼åä¸å GUID ç¨äºç±»ååºç ID |
| | | [assembly: Guid("3b160435-00c6-4321-9d3a-a30fd23f2d4b")] |
| | | |
| | | // ç¨åºéççæ¬ä¿¡æ¯ç±ä¸åå个å¼ç»æ: |
| | | // |
| | | // ä¸»çæ¬ |
| | | // æ¬¡çæ¬ |
| | | // çæå· |
| | | // ä¿®è®¢å· |
| | | // |
| | | //å¯ä»¥æå®ææè¿äºå¼ï¼ä¹å¯ä»¥ä½¿ç¨âçæå·âåâ修订å·âçé»è®¤å¼ |
| | | //éè¿ä½¿ç¨ "*"ï¼å¦ä¸æç¤º: |
| | | // [assembly: AssemblyVersion("1.0.*")] |
| | | [assembly: AssemblyVersion("1.0.0.0")] |
| | | [assembly: AssemblyFileVersion("1.0.0.0")] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <auto-generated> |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // è¿è¡æ¶çæ¬:4.0.30319.42000 |
| | | // |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ |
| | | // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã |
| | | // </auto-generated> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace iWare_SCADA_FormTest.Properties { |
| | | using System; |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¸ä¸ªå¼ºç±»åçèµæºç±»ï¼ç¨äºæ¥æ¾æ¬å°åçå符串çã |
| | | /// </summary> |
| | | // æ¤ç±»æ¯ç± StronglyTypedResourceBuilder |
| | | // ç±»éè¿ç±»ä¼¼äº ResGen æ Visual Studio çå·¥å
·èªå¨çæçã |
| | | // è¥è¦æ·»å æç§»é¤æåï¼è¯·ç¼è¾ .ResX æä»¶ï¼ç¶åéæ°è¿è¡ ResGen |
| | | // (以 /str ä½ä¸ºå½ä»¤é项)ï¼æéæ°çæ VS 项ç®ã |
| | | [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 { |
| | | |
| | | private static global::System.Resources.ResourceManager resourceMan; |
| | | |
| | | private static global::System.Globalization.CultureInfo resourceCulture; |
| | | |
| | | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
| | | internal Resources() { |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è¿åæ¤ç±»ä½¿ç¨çç¼åç ResourceManager å®ä¾ã |
| | | /// </summary> |
| | | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
| | | internal static global::System.Resources.ResourceManager ResourceManager { |
| | | get { |
| | | if (object.ReferenceEquals(resourceMan, null)) { |
| | | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("iWare_SCADA_FormTest.Properties.Resources", typeof(Resources).Assembly); |
| | | resourceMan = temp; |
| | | } |
| | | return resourceMan; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// éåå½å线ç¨ç CurrentUICulture 屿§ï¼å¯¹ |
| | | /// ä½¿ç¨æ¤å¼ºç±»åèµæºç±»çææèµæºæ¥æ¾æ§è¡éåã |
| | | /// </summary> |
| | | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
| | | internal static global::System.Globalization.CultureInfo Culture { |
| | | get { |
| | | return resourceCulture; |
| | | } |
| | | set { |
| | | resourceCulture = value; |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | </root> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <auto-generated> |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // è¿è¡æ¶çæ¬:4.0.30319.42000 |
| | | // |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½ä¼å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¹¶ä¸å¦æ |
| | | // éæ°çæä»£ç ï¼è¿äºæ´æ¹å°ä¼ä¸¢å¤±ã |
| | | // </auto-generated> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace iWare_SCADA_FormTest.Properties { |
| | | |
| | | |
| | | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")] |
| | | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { |
| | | |
| | | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
| | | |
| | | public static Settings Default { |
| | | get { |
| | | return defaultInstance; |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version='1.0' encoding='utf-8'?> |
| | | <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> |
| | | <Profiles> |
| | | <Profile Name="(Default)" /> |
| | | </Profiles> |
| | | <Settings /> |
| | | </SettingsFile> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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')" /> |
| | | <PropertyGroup> |
| | | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
| | | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
| | | <ProjectGuid>{3B160435-00C6-4321-9D3A-A30FD23F2D4B}</ProjectGuid> |
| | | <OutputType>WinExe</OutputType> |
| | | <RootNamespace>iWare_SCADA_FormTest</RootNamespace> |
| | | <AssemblyName>iWare_SCADA_FormTest</AssemblyName> |
| | | <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> |
| | | <FileAlignment>512</FileAlignment> |
| | | <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> |
| | | <Deterministic>true</Deterministic> |
| | | <TargetFrameworkProfile /> |
| | | </PropertyGroup> |
| | | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
| | | <PlatformTarget>AnyCPU</PlatformTarget> |
| | | <DebugSymbols>true</DebugSymbols> |
| | | <DebugType>full</DebugType> |
| | | <Optimize>false</Optimize> |
| | | <OutputPath>bin\Debug\</OutputPath> |
| | | <DefineConstants>DEBUG;TRACE</DefineConstants> |
| | | <ErrorReport>prompt</ErrorReport> |
| | | <WarningLevel>4</WarningLevel> |
| | | </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> |
| | | </PropertyGroup> |
| | | <ItemGroup> |
| | | <Reference Include="System" /> |
| | | <Reference Include="System.Core" /> |
| | | <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.Net.Http" /> |
| | | <Reference Include="System.Windows.Forms" /> |
| | | <Reference Include="System.Xml" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Compile Include="Form1.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Form1.Designer.cs"> |
| | | <DependentUpon>Form1.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Program.cs" /> |
| | | <Compile Include="Properties\AssemblyInfo.cs" /> |
| | | <EmbeddedResource Include="Form1.resx"> |
| | | <DependentUpon>Form1.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"> |
| | | <AutoGen>True</AutoGen> |
| | | <DependentUpon>Resources.resx</DependentUpon> |
| | | <DesignTime>True</DesignTime> |
| | | </Compile> |
| | | <None Include="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> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <None Include="App.config" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ProjectReference Include="..\iWare_SCADA_BusinessLogical\iWare_SCADA_BusinessLogical.csproj"> |
| | | <Project>{32708f19-fe1a-48f5-b373-8e1c776f216c}</Project> |
| | | <Name>iWare_SCADA_BusinessLogical</Name> |
| | | </ProjectReference> |
| | | </ItemGroup> |
| | | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| | | </Project> |
| | |
| | | public string QualityOP80To10 { get; set; } |
| | | |
| | | |
| | | #region æ°å¢OP80çä¸äºè´¨éæ°æ® ãEditby shaocx,2024-06-13ã |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å度 |
| | | /// </summary> |
| | | public string QualityOP80_Houdu { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-ä¸å¿è· |
| | | /// </summary> |
| | | public string QualityOP80_ZXJ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ååæ±åº¦ |
| | | /// </summary> |
| | | public string QualityOP80_DTKYZD { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢å度 |
| | | /// </summary> |
| | | public string QualityOP80_XTSMYD { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢å度 |
| | | /// </summary> |
| | | public string QualityOP80_XTXMYD { get; set; } |
| | | |
| | | |
| | | #region 大头åç´å¾ |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头åç´å¾,大头åç´å¾=ï¼å¤§å¤´ä¸é¢Xæ¹åç´å¾+大头ä¸é¢Yæ¹åç´å¾+大头ä¸é¢Xæ¹åç´å¾+大头ä¸é¢Yæ¹åç´å¾ï¼/4 |
| | | /// </summary> |
| | | public string QualityOP80_D_TKZJ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ä¸é¢Xæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_D_S_X { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ä¸é¢Yæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_D_S_Y { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ä¸é¢Xæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_D_X_X { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ä¸é¢Yæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_D_X_Y { get; set; } |
| | | |
| | | #endregion |
| | | |
| | | #region å°å¤´åç´å¾ |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´åç´å¾,å°å¤´åç´å¾=ï¼å°å¤´ä¸é¢Xæ¹åç´å¾+å°å¤´ä¸é¢Yæ¹åç´å¾+å°å¤´ä¸é¢Xæ¹åç´å¾+å°å¤´ä¸é¢Yæ¹åç´å¾ï¼/4 |
| | | /// </summary> |
| | | public string QualityOP80_X_TKZJ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢Xæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_X_S_X { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢Yæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_X_S_Y { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢Xæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_X_X_X { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢Yæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_X_X_Y { get; set; } |
| | | |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | public string EquipmentCurrentState { get; set; } |
| | | } |
| | | //[NotMapped] |
| | |
| | | public string UpdatedUserName { get; set; } |
| | | |
| | | public bool IsDeleted { get; set; } |
| | | |
| | | |
| | | #region æ°å¢OP80çä¸äºè´¨éæ°æ® ãEditby shaocx,2024-06-13ã |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å度 |
| | | /// </summary> |
| | | public string QualityOP80_Houdu { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-ä¸å¿è· |
| | | /// </summary> |
| | | public string QualityOP80_ZXJ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ååæ±åº¦ |
| | | /// </summary> |
| | | public string QualityOP80_DTKYZD { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢å度 |
| | | /// </summary> |
| | | public string QualityOP80_XTSMYD { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢å度 |
| | | /// </summary> |
| | | public string QualityOP80_XTXMYD { get; set; } |
| | | |
| | | |
| | | #region 大头åç´å¾ |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头åç´å¾,大头åç´å¾=ï¼å¤§å¤´ä¸é¢Xæ¹åç´å¾+大头ä¸é¢Yæ¹åç´å¾+大头ä¸é¢Xæ¹åç´å¾+大头ä¸é¢Yæ¹åç´å¾ï¼/4 |
| | | /// </summary> |
| | | public string QualityOP80_D_TKZJ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ä¸é¢Xæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_D_S_X { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ä¸é¢Yæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_D_S_Y { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ä¸é¢Xæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_D_X_X { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-大头ä¸é¢Yæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_D_X_Y { get; set; } |
| | | |
| | | #endregion |
| | | |
| | | #region å°å¤´åç´å¾ |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´åç´å¾,å°å¤´åç´å¾=ï¼å°å¤´ä¸é¢Xæ¹åç´å¾+å°å¤´ä¸é¢Yæ¹åç´å¾+å°å¤´ä¸é¢Xæ¹åç´å¾+å°å¤´ä¸é¢Yæ¹åç´å¾ï¼/4 |
| | | /// </summary> |
| | | public string QualityOP80_X_TKZJ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢Xæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_X_S_X { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢Yæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_X_S_Y { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢Xæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_X_X_X { get; set; } |
| | | |
| | | /// <summary> |
| | | /// OP80 è´¨éæ°æ®-å°å¤´ä¸é¢Yæ¹åç´å¾ |
| | | /// </summary> |
| | | public string QualityOP80_X_X_Y { get; set; } |
| | | |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | } |
| | | |
| | | /// <summary> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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> |
| | | |
| | | <appSettings> |
| | | |
| | | <!--net use x: \\192.168.216.133\Destination /savecred /persistent:yes |
| | | net use z: \\192.168.216.130\kistler /savecred /persistent:yes |
| | | net use y: \\192.168.216.6\data /savecred /persistent:yes |
| | | net use u: \\192.168.216.130\NutrunnerData /savecred /persistent:yes--> |
| | | |
| | | <!-- å¤æå·¥åºæ¯å¦è·³åºçåºåé
ç½® --> |
| | | <add key="WorkingProcedureAllStr" value="OP05OP10OP20OP30OP35OP40OP50OP60OP70OP80" /> |
| | | <add key="WorkPeiceIDPath" value="Y:\qualified" /> |
| | | <!-- op30å·¥åºçå·¥ä½è´¨éä¿¡æ¯ --> |
| | | <add key="OP30QualityDataFor36Station" value="Z:\" /> |
| | | <add key="OP30QualityDataFor45Station" value="U:\" /> |
| | | <add key="OP60QualityData" value="V:\" /> |
| | | <add key="OP20QualityData" value="W:\" /> |
| | | <add key="OP80QualityData_Test" value="X:\CA4GC20TD_Test\" /> |
| | | <!--<add key="WorkPeiceIDPath" value="C:\Users\13650\Desktop\yiqi" />--> |
| | | <add key="HeartBeatAlertInterval" value="2000" /> |
| | | </appSettings> |
| | | <startup> |
| | | <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> |
| | | </startup> |
| | | <entityFramework> |
| | | <providers> |
| | | <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> |
| | | </providers> |
| | | </entityFramework> |
| | | <connectionStrings> |
| | | <!--<add name="SCADA_DF22001_CORE" connectionString="Server=.;Database=iWare.SCADA;User=sa;Password=123abc.com;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />--> |
| | | <!--<add name="SCADA_DF22001_CORE" connectionString="Server=10.10.40.166;Database=iWare.SCADA;User=sa;Password=123abc.com;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />--> |
| | | <add name="SCADA_DF22001_CORE" connectionString="Server=.;Database=iWare.SCADA;User=sa;Password=123abc.com;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" /> |
| | | <add name="SCModel" connectionString="data source=.;initial catalog=SCTest_new;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" /> |
| | | </connectionStrings> |
| | | <runtime> |
| | | <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| | | <dependentAssembly> |
| | | <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> |
| | | <bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" /> |
| | | </dependentAssembly> |
| | | </assemblyBinding> |
| | | </runtime> |
| | | </configuration> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using System.Reflection; |
| | | using System.Runtime.CompilerServices; |
| | | using System.Runtime.InteropServices; |
| | | |
| | | [assembly: AssemblyTitle("iWare_SCADA_Test")] |
| | | [assembly: AssemblyDescription("")] |
| | | [assembly: AssemblyConfiguration("")] |
| | | [assembly: AssemblyCompany("微软ä¸å½")] |
| | | [assembly: AssemblyProduct("iWare_SCADA_Test")] |
| | | [assembly: AssemblyCopyright("Copyright © 微软ä¸å½ 2024")] |
| | | [assembly: AssemblyTrademark("")] |
| | | [assembly: AssemblyCulture("")] |
| | | |
| | | [assembly: ComVisible(false)] |
| | | |
| | | [assembly: Guid("a3f6ebb4-d019-4246-9789-337b860ba31e")] |
| | | |
| | | // [assembly: AssemblyVersion("1.0.*")] |
| | | [assembly: AssemblyVersion("1.0.0.0")] |
| | | [assembly: AssemblyFileVersion("1.0.0.0")] |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using iWare_SCADA_BusinessLogical.Utils; |
| | | using Microsoft.VisualStudio.TestTools.UnitTesting; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | |
| | | namespace iWare_SCADA_Test |
| | | { |
| | | [TestClass] |
| | | public class UnitTest1 |
| | | { |
| | | [TestMethod] |
| | | public void TestMethod1() |
| | | { |
| | | |
| | | //计ç®å¤§å¤´åç´å¾,大头åç´å¾=ï¼å¤§å¤´ä¸é¢Xæ¹åç´å¾+大头ä¸é¢Yæ¹åç´å¾+大头ä¸é¢Xæ¹åç´å¾+大头ä¸é¢Yæ¹åç´å¾ï¼/4 |
| | | List<decimal> valueList = new List<decimal>() { |
| | | SystemHelper.GetDecimal(""), |
| | | SystemHelper.GetDecimal("sss"), |
| | | SystemHelper.GetDecimal("12.365"), |
| | | SystemHelper.GetDecimal("201.24557"), |
| | | SystemHelper.GetDecimal("100"), |
| | | }; |
| | | var bb = SystemHelper.CalcDecimalAvg(valueList, 3); |
| | | Assert.Fail(); |
| | | } |
| | | |
| | | [TestMethod] |
| | | public void xx() |
| | | { |
| | | string path = ConfigHelper.GetConfigString("OP80QualityData_Test");//OP80çå°å |
| | | |
| | | var newFiles = FileHelper.DetectNewFilesCSV(path, 300, DateTime.Now.AddDays(-10), DateTime.Now.AddDays(1)); |
| | | |
| | | foreach (System.IO.FileInfo file in newFiles) |
| | | { |
| | | File.Move(file.FullName, "../CA4GC20TD_COPY/" + file.Name);//ç§»å¨ |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <Import Project="..\packages\MSTest.TestAdapter.2.2.7\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.2.2.7\build\net45\MSTest.TestAdapter.props')" /> |
| | | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
| | | <PropertyGroup> |
| | | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
| | | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
| | | <ProjectGuid>{A3F6EBB4-D019-4246-9789-337B860BA31E}</ProjectGuid> |
| | | <OutputType>Library</OutputType> |
| | | <AppDesignerFolder>Properties</AppDesignerFolder> |
| | | <RootNamespace>iWare_SCADA_Test</RootNamespace> |
| | | <AssemblyName>iWare_SCADA_Test</AssemblyName> |
| | | <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> |
| | | <FileAlignment>512</FileAlignment> |
| | | <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
| | | <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion> |
| | | <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> |
| | | <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath> |
| | | <IsCodedUITest>False</IsCodedUITest> |
| | | <TestProjectType>UnitTest</TestProjectType> |
| | | <NuGetPackageImportStamp> |
| | | </NuGetPackageImportStamp> |
| | | </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> |
| | | </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> |
| | | </PropertyGroup> |
| | | <ItemGroup> |
| | | <Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
| | | <HintPath>..\packages\MSTest.TestFramework.2.2.7\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
| | | <HintPath>..\packages\MSTest.TestFramework.2.2.7\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="System" /> |
| | | <Reference Include="System.Core" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Compile Include="UnitTest1.cs" /> |
| | | <Compile Include="Properties\AssemblyInfo.cs" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <None Include="App.config" /> |
| | | <None Include="packages.config" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ProjectReference Include="..\iWare_SCADA_BusinessLogical\iWare_SCADA_BusinessLogical.csproj"> |
| | | <Project>{32708f19-fe1a-48f5-b373-8e1c776f216c}</Project> |
| | | <Name>iWare_SCADA_BusinessLogical</Name> |
| | | </ProjectReference> |
| | | </ItemGroup> |
| | | <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" /> |
| | | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| | | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| | | <PropertyGroup> |
| | | <ErrorText>è¿å°è®¡ç®æºä¸ç¼ºå°æ¤é¡¹ç®å¼ç¨ç NuGet ç¨åºå
ã使ç¨âNuGet ç¨åºå
è¿åâå¯ä¸è½½è¿äºç¨åºå
ãæå
³æ´å¤ä¿¡æ¯ï¼è¯·åè§ http://go.microsoft.com/fwlink/?LinkID=322105ã缺å°çæä»¶æ¯ {0}ã</ErrorText> |
| | | </PropertyGroup> |
| | | <Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.2.7\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.2.7\build\net45\MSTest.TestAdapter.props'))" /> |
| | | <Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.2.7\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.2.7\build\net45\MSTest.TestAdapter.targets'))" /> |
| | | </Target> |
| | | <Import Project="..\packages\MSTest.TestAdapter.2.2.7\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.2.2.7\build\net45\MSTest.TestAdapter.targets')" /> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <packages> |
| | | <package id="MSTest.TestAdapter" version="2.2.7" targetFramework="net48" /> |
| | | <package id="MSTest.TestFramework" version="2.2.7" targetFramework="net48" /> |
| | | </packages> |