Extract referenced configuration name with part.

This commit is contained in:
AJ
2020-02-14 14:25:49 -05:00
parent 3b19fc39a2
commit eb13323d9d
5 changed files with 11 additions and 6 deletions

View File

@@ -12,10 +12,10 @@
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<IsWebBootstrapper>false</IsWebBootstrapper> <IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>publish\</PublishUrl> <PublishUrl>\\SERVER4\Data\Software\ExportDXF\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Unc</InstallFrom>
<UpdateEnabled>false</UpdateEnabled> <UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode> <UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval> <UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits> <UpdateIntervalUnits>Days</UpdateIntervalUnits>
@@ -23,8 +23,8 @@
<UpdateRequired>false</UpdateRequired> <UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions> <MapFileExtensions>true</MapFileExtensions>
<PublisherName>Rogers Engineering</PublisherName> <PublisherName>Rogers Engineering</PublisherName>
<ApplicationRevision>3</ApplicationRevision> <ApplicationRevision>6</ApplicationRevision>
<ApplicationVersion>1.0.2.%2a</ApplicationVersion> <ApplicationVersion>1.0.3.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted> <PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled> <BootstrapperEnabled>true</BootstrapperEnabled>

View File

@@ -584,6 +584,7 @@ namespace ExportDXF.Forms
partsSheet.Cells[row, col++].Value = item.Quantity; partsSheet.Cells[row, col++].Value = item.Quantity;
partsSheet.Cells[row, col++].Value = item.Description; partsSheet.Cells[row, col++].Value = item.Description;
partsSheet.Cells[row, col++].Value = item.PartName; partsSheet.Cells[row, col++].Value = item.PartName;
partsSheet.Cells[row, col++].Value = item.Configuration;
if (item.Thickness > 0) if (item.Thickness > 0)
partsSheet.Cells[row, col].Value = item.Thickness; partsSheet.Cells[row, col].Value = item.Thickness;

View File

@@ -10,6 +10,8 @@ namespace ExportDXF
public string PartName { get; set; } public string PartName { get; set; }
public string Configuration { get; set; }
public int Quantity { get; set; } public int Quantity { get; set; }
public string Description { get; set; } public string Description { get; set; }

View File

@@ -81,6 +81,7 @@ namespace ExportDXF
} }
item.Component = GetComponent(rowIndex); item.Component = GetComponent(rowIndex);
item.Configuration = item.Component.ReferencedConfiguration;
return item; return item;
} }
@@ -185,7 +186,8 @@ namespace ExportDXF
{ {
PartName = name, PartName = name,
Quantity = group.Count(), Quantity = group.Count(),
Component = component Component = component,
Configuration = component.ReferencedConfiguration
}); });
} }

Binary file not shown.