using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WinFormControl
|
|
{
|
|
public class WeightConfig
|
|
{
|
|
public string WeightSet { get; set; }
|
|
|
|
public string ComSet { get; set; }
|
|
|
|
public int? RateSet { get; set; }
|
|
|
|
public int? BitSet { get; set; }
|
|
|
|
public string Format { get; set; }
|
|
|
|
public decimal? Discont { get; set; }
|
|
|
|
public int WeightType { get; set; }
|
|
|
|
public decimal MinWeight { get; set; }
|
|
|
|
public decimal MaxWeight { get; set; }
|
|
|
|
public static WeightConfig Init(string flag)
|
|
{
|
|
return XmlUtil.DeserializeFromFile<WeightConfig>(flag + "WeightConfig");
|
|
}
|
|
|
|
public void Save(string flag)
|
|
{
|
|
XmlUtil.SerializerObjToFile(this, flag + "WeightConfig");
|
|
}
|
|
}
|
|
}
|