using IStation.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Application
{
///
/// 流量计业务Dto
///
public class FlowMeterLogicDto
{
///
///
///
public FlowMeterLogicDto() { }
///
///
///
public FlowMeterLogicDto(Model.Product rhs, string manufacturerName = null)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.Name = rhs.Name;
this.NO = rhs.NO;
this.Code = rhs.Code;
this.Specification = rhs.Specification;
this.Material = rhs.Material;
this.Manufacturer = manufacturerName;
this.Address = rhs.Address;
var ratedParas = Model.FlowMeter.ToModel(rhs.RatedParas);
if (ratedParas != null)
{
this.IsRemote = ratedParas.IsRemote;
this.PowerMode = ratedParas.PowerMode;
}
}
///
/// 标识
///
public long ID { get; set; }
///
/// 客户标识
///
public long CorpID { get; set; }
///
/// 名称
///
public string Name { get; set; }
///
/// 编号
///
public string NO { get; set; }
///
/// 型号
///
public string Code { get; set; }
///
/// 规格
///
public string Specification { get; set; }
///
/// 材质
///
public string Material { get; set; }
///
/// 生产厂家
///
public string Manufacturer { get; set; }
///
/// 地址
///
public string Address { get; set; }
///
/// 供电方式
///
public ePowerMode PowerMode { get; set; }
///
/// 是否支持远传
///
public bool IsRemote { get; set; }
///
/// 流入
///
public string FlowIn { get; set; }
///
/// 流出
///
public string FlowOut { get; set; }
}
}