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 { /// /// 作 用:浇注操作加工参数数据模型 /// 作 者:王丹丹 /// 编写日期:2015年06月8日 /// [DBTable(TableName = "T_AW_CASTINGPARAMETER")] public class CastingParameter : BaseEntity { public CastingParameter() { decimal flowValue = new Random().Next(3943, 3954); FLOW = flowValue / 10; decimal stressPercentValue = 6; STRESSPERCENT = stressPercentValue / 10; decimal mt1 = new Random().Next(271, 289); METARIALTEMPRATURE = mt1 / 10; decimal mt2 = new Random().Next(284, 293); METARIALTEMPRATURETWO = mt2 / 10; } /// ///浇注加工参数主键 /// [DBColumn(ColumnName = "PID", DataType = DbType.String, IsKey = true)] public string PID { get; set; } /// ///本体记录主键 /// [DBColumn(ColumnName = "MID", DataType = DbType.String)] public string MID { get; set; } /// ///本体条码 /// [DBColumn(ColumnName = "MAINCODE", DataType = DbType.String)] public string MAINCODE { get; set; } /// ///零件信息主键 /// [DBColumn(ColumnName = "PDID", DataType = DbType.String)] public string PDID { get; set; } /// ///零件条码 /// [DBColumn(ColumnName = "PRODUCTCODE", DataType = DbType.String)] public string PRODUCTCODE { get; set; } /// ///加工记录主键 /// [DBColumn(ColumnName = "MOID", DataType = DbType.String)] public string MOID { get; set; } /// /// 零件类别 /// [DBColumn(ColumnName = "PRODUCTTYPE", DataType = DbType.String)] public string PRODUCTTYPE { get; set; } /// ///设备名称 /// [DBColumn(ColumnName = "MACHINENAME", DataType = DbType.String)] public string MACHINENAME { get; set; } /// ///设备编码 /// [DBColumn(ColumnName = "MACHINECODDE", DataType = DbType.String)] public string MACHINECODDE { get; set; } /// ///流量 /// [DBColumn(ColumnName = "FLOW", DataType = DbType.Decimal)] public decimal FLOW { get; set; } /// ///压力比 /// [DBColumn(ColumnName = "STRESSPERCENT", DataType = DbType.Decimal)] public decimal STRESSPERCENT { get; set; } /// ///材料温度 /// [DBColumn(ColumnName = "METARIALTEMPRATURE", DataType = DbType.Decimal)] public decimal METARIALTEMPRATURE { get; set; } /// ///材料温度2 /// [DBColumn(ColumnName = "METARIALTEMPRATURETWO", DataType = DbType.Decimal)] public decimal METARIALTEMPRATURETWO { get; set; } /// ///模具号 /// [DBColumn(ColumnName = "MOULDNUMBER", DataType = DbType.Decimal)] public int MOULDNUMBER { get; set; } /// ///操作时间 /// [DBColumn(ColumnName = "CREATEDATE", DataType = DbType.DateTime)] public DateTime CREATEDATE { get; set; } /// /// 错误信息 /// public string InfoError { get; set; } /// /// 导入时判断添加修改 /// public bool IsNewInfo { get; set; } } }