개정판 e49e1de9
dev issue #1226 : end converter form
Change-Id: Ic0264cac9d5e46c9348bd0a49aa18d3f83baa52a
DTI_PID/APIDConverter/Form/APIDConverter.cs | ||
---|---|---|
172 | 172 |
foreach (int rowHandle in gridViewConverter.GetSelectedRows()) |
173 | 173 |
{ |
174 | 174 |
string _FilePath = gridViewConverter.GetRowCellDisplayText(rowHandle, "colDrawingFilePath"); |
175 |
string _ID = gridViewConverter.GetRowCellValue(rowHandle, "colTemplate").ToString(); |
|
176 |
string _TemplateName = gridViewConverter.GetRowCellDisplayText(rowHandle, "colTemplate"); |
|
177 |
string _DrawingNumber = gridViewConverter.GetRowCellDisplayText(rowHandle, "colDrawingNumber"); |
|
178 |
string _SheetNumber = gridViewConverter.GetRowCellDisplayText(rowHandle, "colSheetNumber"); |
|
175 | 179 |
|
176 | 180 |
DataRow[] rows = tDrawing.Select(string.Format("NAME = '{0}'", Path.GetFileNameWithoutExtension(_FilePath) + ".png")); |
177 | 181 |
if (rows.Length != 1) |
... | ... | |
179 | 183 |
|
180 | 184 |
Document document = _DicDocuments[_FilePath]; |
181 | 185 |
document.UID = rows[0]["UID"].ToString(); |
186 |
document.AvevaDrawingNumber = _DrawingNumber; |
|
187 |
document.AvevaSheetNumber = _SheetNumber; |
|
188 |
document.AvevaTemplateID = _ID; |
|
189 |
document.AvevaTemplateName = _TemplateName; |
|
182 | 190 |
Documents.Add(document); |
183 | 191 |
} |
184 | 192 |
|
내보내기 Unified diff