using MeterVision.FreeAi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MeterVision.model
{
    public class StandValueModel
    {
        //1.1:模板标准值设置 2:任务标准值修改
        public int ModelType { get; set; }
        public string SrcImage { get; set; }
        public string DstImage { get; set; }

        public string StandValue { get; set; }

        public string FinalValue { get; set; }

        public StandValueModel()
        {

        }

        public StandValueModel(StandDetailItem detailItem)
        {
            ModelType = 1;
            SrcImage = detailItem.SrcImage;
            StandValue = detailItem.StandValue;
        }

        public StandValueModel(PatchDetailItem detailItem)
        {
            ModelType = 2;
            SrcImage = detailItem.SrcImage;
            DstImage = detailItem.DstImage;
            StandValue = detailItem.StandValue;
            FinalValue = ((double)detailItem.FinalValue / FaConstant.CUBE_VALUE).ToString();
        }
        //------------------------------------------------
    }
}
