天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

175 lines
4.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.Entity;
using QMFrameWork.Data.Attributes;
using System.Data;
namespace QMAPP.FJC.Entity.ProcessParameter
{
/// <summary>
/// 作 用:冲切加工参数数据模型
/// 作 者:王丹丹
/// 编写日期:2015年06月8日
///</summary>
[DBTable(TableName = "T_AW_PUNCHPARAMETER")]
public class PunchParameter : BaseEntity
{
public PunchParameter()
{
}
/// <summary>
/// 构造函数
/// </summary>
public PunchParameter(string barcode)
{
//冲切设备的参数固定不变
decimal i = new Random().Next(10);
decimal decadeValue = new Random().Next(39, 45);
WORKTIME = decadeValue + i / 10;
PRESSURECIRCUIT1 = 140;
PRESSURECIRCUIT2 = 150;
PRESSURECIRCUIT3 = 180;
PRESSUREMAINZYL = 100;
if (barcode.Substring(12, 1) == "H")
{
PRESSURECIRCUIT4 = 140;
}
else
{
PRESSURECIRCUIT4 = 0;
}
RESULT = "OK";
}
///<summary>
///冲切加工参数主键
///</summary>
[DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)]
public string PID { get; set; }
///<summary>
///本体记录主键
///</summary>
[DBColumn(ColumnName = "MID", DataType = DbType.String)]
public string MID { get; set; }
///<summary>
///本体条码
///</summary>
[DBColumn(ColumnName = "MAINCODE", DataType = DbType.String)]
public string MAINCODE { get; set; }
///<summary>
///零件信息主键
///</summary>
[DBColumn(ColumnName = "PDID", DataType = DbType.String)]
public string PDID { get; set; }
///<summary>
///零件条码
///</summary>
[DBColumn(ColumnName = "PRODUCTCODE", DataType = DbType.String)]
public string PRODUCTCODE { get; set; }
///<summary>
///加工记录主键
///</summary>
[DBColumn(ColumnName = "MOID", DataType = DbType.String)]
public string MOID { get; set; }
///<summary>
/// 零件类别
///</summary>
[DBColumn(ColumnName = "PRODUCTTYPE", DataType = DbType.String)]
public string PRODUCTTYPE { get; set; }
///<summary>
///设备名称
///</summary>
[DBColumn(ColumnName = "MACHINENAME", DataType = DbType.String)]
public string MACHINENAME { get; set; }
///<summary>
///设备编码
///</summary>
[DBColumn(ColumnName = "MACHINECODDE", DataType = DbType.String)]
public string MACHINECODDE { get; set; }
///<summary>
///机油压力1
///</summary>
[DBColumn(ColumnName = "PRESSURECIRCUIT1", DataType = DbType.Int32)]
public int PRESSURECIRCUIT1 { get; set; }
///<summary>
///机油压力2
///</summary>
[DBColumn(ColumnName = "PRESSURECIRCUIT2", DataType = DbType.Int32)]
public int PRESSURECIRCUIT2 { get; set; }
///<summary>
///机油压力3
///</summary>
[DBColumn(ColumnName = "PRESSURECIRCUIT3", DataType = DbType.Int32)]
public int PRESSURECIRCUIT3 { get; set; }
///<summary>
///机油压力4
///</summary>
[DBColumn(ColumnName = "PRESSURECIRCUIT4", DataType = DbType.Int32)]
public int PRESSURECIRCUIT4 { get; set; }
///<summary>
///机油压力
///</summary>
[DBColumn(ColumnName = "PRESSUREMAINZYL", DataType = DbType.Int32)]
public int PRESSUREMAINZYL { get; set; }
///<summary>
///加工结果
///</summary>
[DBColumn(ColumnName = "RESULT", DataType = DbType.String)]
public string RESULT { get; set; }
///<summary>
///加工结果
///</summary>
[DBColumn(ColumnName = "WORKTIME", DataType = DbType.Decimal)]
public Decimal WORKTIME { get; set; }
///<summary>
///操作时间
///</summary>
[DBColumn(ColumnName = "CREATEDATE", DataType = DbType.DateTime)]
public DateTime CREATEDATE { get; set; }
/// <summary>
/// 错误信息
/// </summary>
public string InfoError { get; set; }
/// <summary>
/// 导入时判断添加修改
/// </summary>
public bool IsNewInfo { get; set; }
}
}