StandValueModel.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace MeterVision.model
  7. {
  8. public class StandValueModel
  9. {
  10. //1.1:模板标准值设置 2:任务标准值修改
  11. public int ModelType { get; set; }
  12. public string SrcImage { get; set; }
  13. public string DstImage { get; set; }
  14. public string StandValue { get; set; }
  15. public string FinalValue { get; set; }
  16. public StandValueModel()
  17. {
  18. }
  19. public StandValueModel(StandDetailItem detailItem)
  20. {
  21. ModelType = 1;
  22. SrcImage = detailItem.SrcImage;
  23. StandValue = detailItem.StandValue;
  24. }
  25. public StandValueModel(PatchDetailItem detailItem)
  26. {
  27. ModelType = 2;
  28. SrcImage = detailItem.SrcImage;
  29. DstImage = detailItem.DstImage;
  30. StandValue = detailItem.StandValue;
  31. FinalValue = detailItem.FinalValue;
  32. }
  33. //------------------------------------------------
  34. }
  35. }