public override void OnParamterChanged(object parameter) { this.EquMaintenancePlanInfo = parameter as EquMaintenancePlanInfoModel; this.EntDepartmentInfo = EntDepartmentInfoList.Where(x => x.Id == Guid.Parse(EquMaintenancePlanInfo.CheckDepartmentID)).FirstOrDefault(); this.EquipmentModel = EquipmentInfoList.Where(x => x.Id == Guid.Parse(EquMaintenancePlanInfo.EquipmentInfo_Id)).FirstOrDefault(); }
public override void OnParamterChanged(object parameter) { this.EquRepairsInfo = parameter as EquRepairsInfoModel; this.EquipmentModel = EquipmentInfoList.Where(x => x.Id == Guid.Parse(EquRepairsInfo.EquipmentInfo_Id)).FirstOrDefault(); this.EquSparePartsInfo = EquSparePartsInfoList.Where(x => x.Id == Guid.Parse(EquRepairsInfo.SparePartsInfo_Id)).FirstOrDefault(); }