개정판 a999464f
dev issue #1225 : end line mapping
Change-Id: I458ff370c089709148de81c3d918680a09eedfbd
DTI_PID/APIDConverter/Form/APIDConverter.cs | ||
---|---|---|
167 | 167 |
return; |
168 | 168 |
} |
169 | 169 |
|
170 |
DataTable lineMappingTable = Project_DB.GetLineMappingTable(); |
|
170 | 171 |
DataTable tDrawing = Project_DB.SelectDrawings(); |
171 | 172 |
Documents.Clear(); |
172 | 173 |
foreach (int rowHandle in gridViewConverter.GetSelectedRows()) |
... | ... | |
187 | 188 |
document.AvevaSheetNumber = _SheetNumber; |
188 | 189 |
document.AvevaTemplateID = _ID; |
189 | 190 |
document.AvevaTemplateName = _TemplateName; |
190 |
Documents.Add(document); |
|
191 |
// validation check |
|
192 |
if (document.SetAvevaInfo(lineMappingTable)) |
|
193 |
Documents.Add(document); |
|
191 | 194 |
} |
192 | 195 |
|
193 |
DialogResult = DialogResult.OK; |
|
196 |
lineMappingTable.Dispose(); |
|
197 |
|
|
198 |
if (Documents.Count > 0) |
|
199 |
{ |
|
200 |
DialogResult = DialogResult.OK; |
|
201 |
} |
|
202 |
else |
|
203 |
{ |
|
204 |
|
|
205 |
} |
|
194 | 206 |
} |
195 | 207 |
|
196 | 208 |
private void btnRefresh_Click(object sender, EventArgs e) |
내보내기 Unified diff