using System.Xml.Linq;
using System;
using System.Collections.Generic;
using PdmSwPlugin.Common.Entity;
namespace PdmSwPlugin.PriceCheck.Param
{
///
/// 材料工艺对象
///
public class Technology
{
public string materialNumber { get; set; }
public string materialName { get; set; }
public string materialType { get; set; }
public List surfaceProcesses { get; set; }
public List heatProcesses { get; set; }
public List props { get; set; }
public List techProcesses { get; set; }
}
///
/// 工艺要求
///
public class TechCraft
{
private string treatmentCode { get; set; }
public string treatmentInfoId { get; set; }
public string processName { get; set; }
public string parameter { get; set; }
public string value { get; set; }
}
///
/// 材料工艺属性
///
public class TechProp
{
public string name { get; set; }
public string value { get; set; }
}
///
/// 加工工序
///
public class TechProcess :NotifyBase
{
public string name { get; set; }
public string value { get; set; }
private string _workhour;
public string workhour
{
get => _workhour;
set
{
RaiseAndSetIfChanged(ref _workhour, value);
Count();
}
}
public double _price;
public double price
{
get => _price;
set => RaiseAndSetIfChanged(ref _price, value);
}
private void Count()
{
double.TryParse(workhour, out double w);
double.TryParse(value, out double v);
price = w * v;
}
}
}