using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WIDESEA_DTO.Base
{
///
///
///
public class UnitConvertResultDTO
{
///
///
///
public string MaterialCode { get; set; }
///
///
///
public string FromUnit { get; set; }
///
///
///
public string ToUnit { get; set; }
///
///
///
public decimal FromQuantity { get; set; }
///
///
///
public decimal ToQuantity { get; }
///
///
///
public decimal UnitRatio { get; set; } = 1;
///
///
///
///
///
///
///
///
public UnitConvertResultDTO(string materialCode, string fromUnit, string toUnit, decimal fromQuantity, decimal unitRatio)
{
MaterialCode = materialCode;
FromUnit = fromUnit;
ToUnit = toUnit;
FromQuantity = fromQuantity;
ToQuantity = fromQuantity * unitRatio;
UnitRatio = unitRatio;
}
}
}