using System.Xml.Linq;
|
using System;
|
using System.Collections.Generic;
|
using PdmSwPlugin.Common.Entity;
|
|
namespace PdmSwPlugin.PriceCheck.Param
|
{
|
/// <summary>
|
/// 材料工艺对象
|
/// </summary>
|
public class Technology
|
{
|
public string materialNumber { get; set; }
|
public string materialName { get; set; }
|
public string materialType { get; set; }
|
|
public List<TechCraft> surfaceProcesses { get; set; }
|
public List<TechCraft> heatProcesses { get; set; }
|
public List<TechProp> props { get; set; }
|
public List<TechProcess> techProcesses { get; set; }
|
}
|
/// <summary>
|
/// 工艺要求
|
/// </summary>
|
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; }
|
}
|
|
/// <summary>
|
/// 材料工艺属性
|
/// </summary>
|
public class TechProp
|
{
|
public string name { get; set; }
|
public string value { get; set; }
|
}
|
|
/// <summary>
|
/// 加工工序
|
/// </summary>
|
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;
|
}
|
}
|
}
|