using SqlSugar; namespace RIZO.Admin.WebApi.PLC.Model { /// /// 产线PLC生产参数数据表 /// [SugarTable("plc_production_data")] public class PlcProductionData { /// /// 主键ID /// [SugarColumn(IsPrimaryKey = false, IsIdentity = true)] public int Id { get; set; } /// /// 产线编号(如line2) /// [SugarColumn(ColumnName = "line_code")] public string LineCode { get; set; } /// /// PLC IP地址 /// [SugarColumn(ColumnName = "plc_ip")] public string PlcIp { get; set; } /// /// 产品编码 /// [SugarColumn(ColumnName = "product_code")] public string ProductCode { get; set; } /// /// 产品名称 /// [SugarColumn(ColumnName = "product_name")] public string ProductName { get; set; } /// /// 参数名称 /// [SugarColumn(ColumnName = "param_name")] public string ParamName { get; set; } /// /// 参数值(兼容数值/字符串类型) /// [SugarColumn(ColumnName = "param_value")] public string ParamValue { get; set; } /// /// 数据发生时间(系统时间) /// [SugarColumn(ColumnName = "occur_time")] public DateTime? OccurTime { get; set; } /// /// 合格标志:站位结果1,OK,2,NG /// [SugarColumn(ColumnName = "qualification_flag")] public string QualificationFlag { get; set; } /// /// 返工标志:0-正常,1-返工 /// [SugarColumn(ColumnName = "rework_flag")] public string ReworkFlag { get; set; } /// /// 生产节拍(秒) /// [SugarColumn(ColumnName = "production_cycle")] public int? ProductionCycle { get; set; } /// /// 备注 /// [SugarColumn(ColumnName = "remark")] public string Remark { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "cREATED_BY")] public string CreatedBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "cREATED_TIME")] public DateTime? CreatedTime { get; set; } /// /// 更新人 /// [SugarColumn(ColumnName = "uPDATED_BY")] public string UpdatedBy { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "uPDATED_TIME")] public DateTime? UpdatedTime { get; set; } /// /// 设备模式:0-自动,1-手动 /// [SugarColumn(ColumnName = "automanual")] public int? Automanual { get; set; } /// /// 运行状态:1=空闲,2=运行中,3=故障; /// [SugarColumn(ColumnName = "runstatus")] public int? Runstatus { get; set; } /// /// 托盘号 /// [SugarColumn(ColumnName = "trayNo")] public string TrayNo { get; set; } /// /// 生产模式模式(1:正常模式;2:清线模式;4:返工模式;8:换型模式;16:预热模式) /// [SugarColumn(ColumnName = "produceModel")] public string ProduceModel { get; set; } /// /// 设备在线状态1=离线,0=在线 /// [SugarColumn(ColumnName = "onlineStatus")] public string OnlineStatus { get; set; } /// /// 工站编码 /// [SugarColumn(ColumnName = "workstationCode")] public string WorkstationCode { get; set; } /// /// 产品型号 /// [SugarColumn(ColumnName = "productModel")] public string ProductModel { get; set; } /// /// 工站名称 /// [SugarColumn(ColumnName = "workstationName")] public string WorkstationName { get; set; } /// /// 条码查询 /// [SugarColumn(ColumnName = "SN_1")] public string SN1 { get; set; } /// /// 结果上传条码 /// [SugarColumn(ColumnName = "SN_2")] public string SN2 { get; set; } /// /// 相机结果1,OK,2,NG /// [SugarColumn(ColumnName = "cameraResult")] public string CameraResult { get; set; } /// /// 合装位机壳 SN /// [SugarColumn(ColumnName = "AssemblyHousingSN")] public string AssemblyHousingSN { get; set; } /// /// 合装位 PCB SN /// [SugarColumn(ColumnName = "AssemblyPCBSN")] public string AssemblyPCBSN { get; set; } /// /// 拧紧位机壳 SN /// [SugarColumn(ColumnName = "TightenHousingSN")] public string TightenHousingSN { get; set; } /// /// 拧紧位 PCB SN /// [SugarColumn(ColumnName = "TightenPCBSN")] public string TightenPCBSN { get; set; } /// /// 合装位托盘号 /// [SugarColumn(ColumnName = "AssemblyTrayNo")] public string AssemblyTrayNo { get; set; } /// /// 拧紧位托盘号 /// [SugarColumn(ColumnName = "TightenTrayNo")] public string TightenTrayNo { get; set; } /// /// 1 号螺钉拧紧结果(1 = 合格,0 = 不合格) /// [SugarColumn(ColumnName = "Screw1Result")] public string Screw1Result { get; set; } /// /// 1 号螺钉扭矩Nm /// [SugarColumn(ColumnName = "Screw1Torque")] public string Screw1Torque { get; set; } /// /// 1 号螺钉深度mm /// [SugarColumn(ColumnName = "Screw1Depth")] public string Screw1Depth { get; set; } /// /// 1 号螺钉角度° /// [SugarColumn(ColumnName = "Screw1Angle")] public string Screw1Angle { get; set; } /// /// 1 号螺钉拧紧时间秒 /// [SugarColumn(ColumnName = "Screw1TightenTime")] public string Screw1TightenTime { get; set; } /// /// 2 号螺钉拧紧结果(1 = 合格,0 = 不合格) /// [SugarColumn(ColumnName = "Screw2Result")] public string Screw2Result { get; set; } /// /// 2 号螺钉扭矩Nm /// [SugarColumn(ColumnName = "Screw2Torque")] public string Screw2Torque { get; set; } /// /// 2号螺钉深度mm /// [SugarColumn(ColumnName = "Screw2Depth")] public string Screw2Depth { get; set; } /// /// 2号螺钉角度° /// [SugarColumn(ColumnName = "Screw2Angle")] public string Screw2Angle { get; set; } /// /// 2 号螺钉拧紧时间秒 /// [SugarColumn(ColumnName = "Screw2TightenTime")] public string Screw2TightenTime { get; set; } /// /// 3 号螺钉拧紧结果(1 = 合格,0 = 不合格) /// [SugarColumn(ColumnName = "Screw3Result")] public string Screw3Result { get; set; } /// /// 3 号螺钉扭矩Nm /// [SugarColumn(ColumnName = "Screw3Torque")] public string Screw3Torque { get; set; } /// /// 3 号螺钉深度mm /// [SugarColumn(ColumnName = "Screw3Depth")] public string Screw3Depth { get; set; } /// /// 3 号螺钉角度° /// [SugarColumn(ColumnName = "Screw3Angle")] public string Screw3Angle { get; set; } /// /// 3号螺钉拧紧时间秒 /// [SugarColumn(ColumnName = "Screw3TightenTime")] public string Screw3TightenTime { get; set; } /// /// 4号螺钉拧紧结果(1 = 合格,0 = 不合格) /// [SugarColumn(ColumnName = "Screw4Result")] public string Screw4Result { get; set; } /// /// 4号螺钉扭矩Nm /// [SugarColumn(ColumnName = "Screw4Torque")] public string Screw4Torque { get; set; } /// /// 4号螺钉深度mm /// [SugarColumn(ColumnName = "Screw4Depth")] public string Screw4Depth { get; set; } /// /// 4 号螺钉角度° /// [SugarColumn(ColumnName = "Screw4Angle")] public string Screw4Angle { get; set; } /// /// 4号螺钉拧紧时间秒 /// [SugarColumn(ColumnName = "Screw4TightenTime")] public string Screw4TightenTime { get; set; } /// /// 5 号螺钉拧紧结果(1 = 合格,0 = 不合格) /// [SugarColumn(ColumnName = "Screw5Result")] public string Screw5Result { get; set; } /// /// 5号螺钉扭矩Nm /// [SugarColumn(ColumnName = "Screw5Torque")] public string Screw5Torque { get; set; } /// /// 5号螺钉深度mm /// [SugarColumn(ColumnName = "Screw5Depth")] public string Screw5Depth { get; set; } /// /// 5 号螺钉角度° /// [SugarColumn(ColumnName = "Screw5Angle")] public string Screw5Angle { get; set; } /// /// 5号螺钉拧紧时间秒 /// [SugarColumn(ColumnName = "Screw5TightenTime")] public string Screw5TightenTime { get; set; } /// /// 6 号螺钉拧紧结果(1 = 合格,0 = 不合格) /// [SugarColumn(ColumnName = "Screw6Result")] public string Screw6Result { get; set; } /// /// 6号螺钉扭矩Nm /// [SugarColumn(ColumnName = "Screw6Torque")] public string Screw6Torque { get; set; } /// /// 6 号螺钉深度mm /// [SugarColumn(ColumnName = "Screw6Depth")] public string Screw6Depth { get; set; } /// /// 6 号螺钉角度° /// [SugarColumn(ColumnName = "Screw6Angle")] public string Screw6Angle { get; set; } /// /// 6号螺钉拧紧时间秒 /// [SugarColumn(ColumnName = "Screw6TightenTime")] public string Screw6TightenTime { get; set; } /// /// 7号螺钉拧紧结果(1 = 合格,0 = 不合格) /// [SugarColumn(ColumnName = "Screw7Result")] public string Screw7Result { get; set; } /// /// 7 号螺钉扭矩Nm /// [SugarColumn(ColumnName = "Screw7Torque")] public string Screw7Torque { get; set; } /// /// 7号螺钉深度mm /// [SugarColumn(ColumnName = "Screw7Depth")] public string Screw7Depth { get; set; } /// /// 7号螺钉角度° /// [SugarColumn(ColumnName = "Screw7Angle")] public string Screw7Angle { get; set; } /// /// 7 号螺钉拧紧时间秒 /// [SugarColumn(ColumnName = "Screw7TightenTime")] public string Screw7TightenTime { get; set; } /// /// 芯片 SN(PWM 条码) /// [SugarColumn(ColumnName = "Screw7TightenTime")] public string ChipSN { get; set; } } }