Prefix BOM file with job number and drawing number.

This commit is contained in:
AJ
2018-05-02 06:46:30 -04:00
parent a6f1ebce34
commit 7c30d36fe3

View File

@@ -322,7 +322,9 @@ namespace ExportDXF.Forms
try
{
var bomFile = Path.Combine(savePath, "BOM.xlsx");
var drawingInfo = DrawingInfo.Parse(prefix);
var bomName = drawingInfo != null ? string.Format("{0} {1} BOM", drawingInfo.JobNo, drawingInfo.DrawingNo) : "BOM";
var bomFile = Path.Combine(savePath, bomName + ".xlsx");
CreateBOMExcelFile(bomFile, items.ToList());
}
catch (Exception ex)