| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.IO;
- using System.Linq;
- using System.Runtime.Serialization;
- using System.Runtime.Serialization.Formatters.Binary;
- using System.Text;
- using Core.Mes.Client.Comm.Attribute;
- namespace Core.StlMes.Client.Mcp.Control.Entity
- {
- [Serializable]
- /// <summary>
- /// 数据库表MCH_LEN_WEIGHT所对应的实体类(生成工具:代码生成工具3.0)
- /// 作者:朱少波 时间:2018-12-06
- /// </summary>
- public class MchLenWeightEntity
- {
- public bool Chk { get; set; }
- /// <summary>
- /// 长度
- /// </summary>
- private decimal? actLen = null;
- /// <summary>
- /// 重量
- /// </summary>
- private decimal? actWeight = null;
- /// <summary>
- /// 支数
- /// </summary>
- private decimal? actCount = null;
- /// <summary>
- /// 长度
- /// </summary>
- [Description("总长度(m)")]
- [Nullable(true)]
- [DataLength(22)]
- public decimal? ActLen
- {
- get { return actLen; }
- set { actLen = value; }
- }
- /// <summary>
- /// 重量
- /// </summary>
- [Description("总重量(t)")]
- [Nullable(true)]
- [DataLength(22)]
- public decimal? ActWeight
- {
- get { return actWeight; }
- set { actWeight = value; }
- }
- /// <summary>
- /// 支数
- /// </summary>
- [Description("支数")]
- [Nullable(true)]
- [DataLength(22)]
- public decimal? ActCount
- {
- get { return actCount; }
- set { actCount = value; }
- }
- public MchLenWeightEntity Clone()
- {
- using (var memStream = new MemoryStream())
- {
- var binaryFormatter = new BinaryFormatter(null,
- new StreamingContext(StreamingContextStates.Clone));
- binaryFormatter.Serialize(memStream, this);
- memStream.Seek(0, SeekOrigin.Begin);
- return binaryFormatter.Deserialize(memStream) as MchLenWeightEntity;
- }
- }
- }
- }
|