개정판 f9cc5190
dev issue #000 : fix bug
Change-Id: If776f77b2e5603539c18a825404de4c4a364bb21
DTI_PID/SPPIDConverter/ConverterForm.cs | ||
---|---|---|
467 | 467 |
SPPID_Document document = new SPPID_Document(fileName); |
468 | 468 |
|
469 | 469 |
DataRow[] rows = _ConverterDT.Select(string.Format("colDrawingFilePath = '{0}'", fileName)); |
470 |
DataRow row; |
|
471 | 470 |
if (rows.Length == 0) |
472 | 471 |
{ |
473 |
row = _ConverterDT.NewRow(); |
|
472 |
DataRow row = _ConverterDT.NewRow();
|
|
474 | 473 |
row["colDrawingFileName"] = Path.GetFileNameWithoutExtension(fileName); |
475 | 474 |
row["colDrawingFilePath"] = fileName; |
476 | 475 |
row["colDrawingNumber"] = document.DWGNAME; |
... | ... | |
482 | 481 |
row["colUID"] = ""; |
483 | 482 |
_ConverterDT.Rows.Add(row); |
484 | 483 |
} |
484 |
else |
|
485 |
{ |
|
486 |
foreach (DataRow row in rows) |
|
487 |
{ |
|
488 |
if (document.Enable) |
|
489 |
row["colStatus"] = "Ready"; |
|
490 |
else |
|
491 |
row["colStatus"] = "Error"; |
|
492 |
} |
|
493 |
} |
|
485 | 494 |
if (!_DicDocuments.ContainsKey(fileName)) |
486 | 495 |
_DicDocuments.Add(fileName, null); |
487 | 496 |
|
내보내기 Unified diff