You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

319 lines
9.8 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Models
{
/// <summary>
/// 工位表
///</summary>
[SugarTable("cfgstationattr")]
public class Cfgstationattr
{
/// <summary>
/// 备 注:
/// 默认值:
///</summary>
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true,IsIdentity = true) ]
public int Id { get; set; }
/// <summary>
/// 备 注:工位配置顺序号
/// 默认值:
///</summary>
[SugarColumn(ColumnName="operid" ) ]
public int? Operid { get; set; }
/// <summary>
/// 备 注:工位代码
/// 默认值:
///</summary>
[SugarColumn(ColumnName="opercode" ) ]
public string? Opercode { get; set; }
/// <summary>
/// 备 注:工位名称
/// 默认值:
///</summary>
[SugarColumn(ColumnName="opername" ) ]
public string? Opername { get; set; }
/// <summary>
/// 备 注:工位类别:起始工位、普通工位、换线工位、停止工位、半成品停止工位
/// 默认值:
///</summary>
[SugarColumn(ColumnName="opertype" ) ]
public string? Opertype { get; set; }
/// <summary>
/// 备 注:线路id
/// 默认值:
///</summary>
[SugarColumn(ColumnName="lineid" ) ]
public int? Lineid { get; set; }
/// <summary>
/// 备 注:参数模板id
/// 默认值:
///</summary>
[SugarColumn(ColumnName="tempid" ) ]
public int? Tempid { get; set; }
/// <summary>
/// 备 注:工位流水线顺序号(缺省)
/// 默认值:
///</summary>
[SugarColumn(ColumnName="no" ) ]
public int? No { get; set; }
/// <summary>
/// 备 注:是否排出工位 0 -不是 1- 是
/// 默认值:
///</summary>
[SugarColumn(ColumnName="outng" ) ]
public SByte? Outng { get; set; }
/// <summary>
/// 备 注:是否是半成品投入位 0 -不是 1- 是
/// 默认值:
///</summary>
[SugarColumn(ColumnName="semistart" ) ]
public SByte? Semistart { get; set; }
/// <summary>
/// 备 注:半成品结束工位
/// 默认值:
///</summary>
[SugarColumn(ColumnName="semifinish" ) ]
public SByte? Semifinish { get; set; }
/// <summary>
/// 备 注:离线工位
/// 默认值:
///</summary>
[SugarColumn(ColumnName="bloffline" ) ]
public SByte? Bloffline { get; set; }
/// <summary>
/// 备 注:所属机种idmodelid
/// 默认值:
///</summary>
[SugarColumn(ColumnName="productid" ) ]
public int? Productid { get; set; }
/// <summary>
/// 备 注:当前状态:0 - 未启用,1-空闲
/// 默认值:
///</summary>
[SugarColumn(ColumnName="status" ) ]
public int? Status { get; set; }
/// <summary>
/// 备 注:PLC连接类型:0-三菱mc/slmp UDP协议; 1-欧姆龙 UDP协议3-西门子
/// 默认值:
///</summary>
[SugarColumn(ColumnName="plctype" ) ]
public int? Plctype { get; set; }
/// <summary>
/// 备 注:PLC数据区起始地址
/// 默认值:
///</summary>
[SugarColumn(ColumnName="addrstart" ) ]
public int? Addrstart { get; set; }
/// <summary>
/// 备 注:PLC ip地址
/// 默认值:
///</summary>
[SugarColumn(ColumnName="ip" ) ]
public string? Ip { get; set; }
/// <summary>
/// 备 注:tcp/udp 端口
/// 默认值:
///</summary>
[SugarColumn(ColumnName="port" ) ]
public int? Port { get; set; }
/// <summary>
/// 备 注:串口设备名
/// 默认值:
///</summary>
[SugarColumn(ColumnName="com" ) ]
public string? Com { get; set; }
/// <summary>
/// 备 注:波特率
/// 默认值:
///</summary>
[SugarColumn(ColumnName="baudrate" ) ]
public int? Baudrate { get; set; }
/// <summary>
/// 备 注:数据位
/// 默认值:
///</summary>
[SugarColumn(ColumnName="databits" ) ]
public int? Databits { get; set; }
/// <summary>
/// 备 注:校验位
/// 默认值:
///</summary>
[SugarColumn(ColumnName="parity" ) ]
public int? Parity { get; set; }
/// <summary>
/// 备 注:组态图用。当前操作状态: 正常生产,NG品排出NG品非排出等 -- 外键cfgoperstatus
/// 默认值:
///</summary>
[SugarColumn(ColumnName="curOperStatus" ) ]
public int? CurOperStatus { get; set; }
/// <summary>
/// 备 注:生产合格品数量
/// 默认值:
///</summary>
[SugarColumn(ColumnName="statNormalNum" ) ]
public int? StatNormalNum { get; set; }
/// <summary>
/// 备 注:生产非合格品数量
/// 默认值:
///</summary>
[SugarColumn(ColumnName="statNGNum" ) ]
public int? StatNGNum { get; set; }
/// <summary>
/// 备 注:当前操作生产人员ID
/// 默认值:
///</summary>
[SugarColumn(ColumnName="curoperid" ) ]
public string? Curoperid { get; set; }
/// <summary>
/// 备 注:连接方式 : 0 -网络;1-excel通过excel传递数据
/// 默认值:
///</summary>
[SugarColumn(ColumnName="auto" ) ]
public int? Auto { get; set; }
/// <summary>
/// 备 注:最后状态改变时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName="ltime" ) ]
public DateTime? Ltime { get; set; }
/// <summary>
/// 备 注:最后读取的PLC数据区号
/// 默认值:
///</summary>
[SugarColumn(ColumnName="lastRegIndex" ) ]
public int? LastRegIndex { get; set; }
/// <summary>
/// 备 注:当前是否未连接;0-否,1-是
/// 默认值:
///</summary>
[SugarColumn(ColumnName="bcon" ) ]
public SByte? Bcon { get; set; }
/// <summary>
/// 备 注:当前是否自动:0-否,1-是
/// 默认值:
///</summary>
[SugarColumn(ColumnName="bauto" ) ]
public SByte? Bauto { get; set; }
/// <summary>
/// 备 注:当前产品是否重投:0-否,1-是
/// 默认值:
///</summary>
[SugarColumn(ColumnName="bret" ) ]
public SByte? Bret { get; set; }
/// <summary>
/// 备 注:适用机种用逗号分割例如机种1,机种2,机种3
/// 默认值:
///</summary>
[SugarColumn(ColumnName="appmode" ) ]
public string? Appmode { get; set; }
/// <summary>
/// 备 注:节拍指标(单位秒)
/// 默认值:
///</summary>
[SugarColumn(ColumnName="rhythm" ) ]
public int? Rhythm { get; set; }
/// <summary>
/// 备 注:PLC数据块编号
/// 默认值:
///</summary>
[SugarColumn(ColumnName="dbcode" ) ]
public int? Dbcode { get; set; }
/// <summary>
/// 备 注:PLC上报物料区起始地址
/// 默认值:
///</summary>
[SugarColumn(ColumnName="matstartaddr" ) ]
public int? Matstartaddr { get; set; }
/// <summary>
/// 备 注:该工位PLC挂接扫描枪只为本工位投料还是为全产线投料共用。0该工位独用1产线共用。
/// 默认值:
///</summary>
[SugarColumn(ColumnName="fulllinescan" ) ]
public UInt32? Fulllinescan { get; set; }
/// <summary>
/// 备 注:上位机与PLC通信连接正常与否0连接断开1建立连接
/// 默认值:
///</summary>
[SugarColumn(ColumnName="commstatus" ) ]
public int? Commstatus { get; set; }
/// <summary>
/// 备 注:建立连接的时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName="connecttime" ) ]
public DateTime? Connecttime { get; set; }
/// <summary>
/// 备 注:连接断开的时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName="disconnecttime" ) ]
public DateTime? Disconnecttime { get; set; }
/// <summary>
/// 备 注:超时未连接的次数累计默认大于2秒为超时界面可清零
/// 默认值:
///</summary>
[SugarColumn(ColumnName="timeoutnum" ) ]
public int? Timeoutnum { get; set; }
/// <summary>
/// 备 注:连接断开的次数累计,界面可清零
/// 默认值:
///</summary>
[SugarColumn(ColumnName="disconectnum" ) ]
public int? Disconectnum { get; set; }
/// <summary>
/// 备 注:暂不用预留。该工位产品类别针对机种下的首工位是主产品还是部件1主产品2一级部件3二级部件4其他。
/// 默认值:
///</summary>
[SugarColumn(ColumnName="statpdtype" ) ]
public int? Statpdtype { get; set; }
}
}