以下字段全部定义成C# public string 类型的属性Equip_Code Equipname ProcessName Upload_Time modelCode BatchNo Out_Lot_No planCode Operator Start_Time End_Time Shift Speed WidthMax WidthMin RollLength PieceLength PieceLengthResult PieceAResult PieceBResult KnifeUseMeter ALengthMax ALengthMin BLengthMax BLengthMin SetUnwTen SetUnw1Ten SetUnw2Ten RealUnwindTension RealWindupTension1 RealWindupTension2 LeftOutterKnifeNO LeftOutterKnifeTimes LeftInnerKnifeNO LeftInnerKnifeTimes RightOutterKnifeNO RightOutterKnifeTimes RightInnerKnifeNO RightInnerKnifeTimes InnerMarkKnifeNO InnerMarkKnifeTimes OutterMarkKnifeNO OuterMarkKnifeTimes PieceLengthStandard PieceJRNumberStandard PieceJRNumber PieceWidthStandard DCSsendtime isbushuju ToolmoldrepairTests UnwindingCleanliness MQCleanliness FQCleanliness RewindingCleanlines
时间: 2024-03-03 22:51:43 浏览: 43
半导体上位机,C#实现Secs_Gem通信,内含Equip设备端和EAP Host主机端程序基本实现
5星 · 资源好评率100%
以下是将这些字段定义为 C# public string 类型属性的示例代码:
```csharp
public class Equipment
{
public string Equip_Code { get; set; }
public string Equipname { get; set; }
public string ProcessName { get; set; }
public string Upload_Time { get; set; }
public string modelCode { get; set; }
public string BatchNo { get; set; }
public string Out_Lot_No { get; set; }
public string planCode { get; set; }
public string Operator { get; set; }
public string Start_Time { get; set; }
public string End_Time { get; set; }
public string Shift { get; set; }
public string Speed { get; set; }
public string WidthMax { get; set; }
public string WidthMin { get; set; }
public string RollLength { get; set; }
public string PieceLength { get; set; }
public string PieceLengthResult { get; set; }
public string PieceAResult { get; set; }
public string PieceBResult { get; set; }
public string KnifeUseMeter { get; set; }
public string ALengthMax { get; set; }
public string ALengthMin { get; set; }
public string BLengthMax { get; set; }
public string BLengthMin { get; set; }
public string SetUnwTen { get; set; }
public string SetUnw1Ten { get; set; }
public string SetUnw2Ten { get; set; }
public string RealUnwindTension { get; set; }
public string RealWindupTension1 { get; set; }
public string RealWindupTension2 { get; set; }
public string LeftOutterKnifeNO { get; set; }
public string LeftOutterKnifeTimes { get; set; }
public string LeftInnerKnifeNO { get; set; }
public string LeftInnerKnifeTimes { get; set; }
public string RightOutterKnifeNO { get; set; }
public string RightOutterKnifeTimes { get; set; }
public string RightInnerKnifeNO { get; set; }
public string RightInnerKnifeTimes { get; set; }
public string InnerMarkKnifeNO { get; set; }
public string InnerMarkKnifeTimes { get; set; }
public string OutterMarkKnifeNO { get; set; }
public string OuterMarkKnifeTimes { get; set; }
public string PieceLengthStandard { get; set; }
public string PieceJRNumberStandard { get; set; }
public string PieceJRNumber { get; set; }
public string PieceWidthStandard { get; set; }
public string DCSsendtime { get; set; }
public string isbushuju { get; set; }
public string ToolmoldrepairTests { get; set; }
public string UnwindingCleanliness { get; set; }
public string MQCleanliness { get; set; }
public string FQCleanliness { get; set; }
public string RewindingCleanliness { get; set; }
}
```
使用该类时,可以通过属性的方式访问这些字段的值,例如:
```csharp
var equipment = new Equipment();
equipment.Equip_Code = "001";
equipment.Start_Time = "2022-01-01 08:00:00";
```
需要注意的是,属性名应该使用 PascalCase(每个单词首字母大写)的命名方式,以符合 C# 的命名规范。
阅读全文