using MiniExcelLibs.Attributes; namespace Sinvo.EplanHpD.Plugin.WPFUI.Models { public class LineBomItemModel : LineBomModel { /// /// 机械机构号 /// [ExcelColumnName("机构号")] public string MechanicalNo { get; set; } /// /// 机械机构名称 /// [ExcelColumnName("机构名称")] public string MechanicalName { get; set; } public void Assign(LineBomModel lineBomModel) { DrawingNo = lineBomModel.DrawingNo; SeqNo = lineBomModel.SeqNo; MaterialNo = lineBomModel.MaterialNo; Type = lineBomModel.Type; Name = lineBomModel.Name; Spec = lineBomModel.Spec; Qty = lineBomModel.Qty; Unit = lineBomModel.Unit; IsLength = lineBomModel.IsLength; IsFlexibility = lineBomModel.IsFlexibility; Remark = lineBomModel.Remark; } } }