개정판 bfbc9f6c
issue #000:
Change-Id: I11d4ffc99b26ccefaf7012c2336afa4e0a71983d
DTI_PID/ID2PSN/Form/ValveGroupingSetting.cs | ||
---|---|---|
76 | 76 |
|
77 | 77 |
|
78 | 78 |
repositoryGroupType = new RepositoryItemComboBox(); |
79 |
repositoryGroupType.Items.AddRange(new string[] { "Valves (CV, PRV..)", "Traps (ST, DT..)", "Reliefs (PSV..)", "Pumps", "Scope Break" });
|
|
79 |
repositoryGroupType.Items.AddRange(new string[] { "Valves (CV, PRV..)", "Traps (ST, DT..)", "Reliefs (PSV..)", "Scope Break" }); |
|
80 | 80 |
repositoryGroupType.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
81 | 81 |
//repositoryGroupType.EditValueChanging += RepositoryGroupType_EditValueChanging; |
82 | 82 |
// repositoryGroupType.SelectedIndexChanged += RepositoryGroupType_SelectedIndexChanged; |
... | ... | |
354 | 354 |
{ |
355 | 355 |
dt.Rows[columnView.FocusedRowHandle]["TagIdentifier"] = "PSV"; |
356 | 356 |
} |
357 |
else if(selectItem.Contains("Pumps")) |
|
358 |
{ |
|
359 |
dt.Rows[columnView.FocusedRowHandle]["TagIdentifier"] = "Pump"; |
|
360 |
} |
|
361 | 357 |
} |
362 | 358 |
} |
363 | 359 |
|
... | ... | |
385 | 381 |
ReNumbering(currentValveGroupInfo); |
386 | 382 |
if(currentValveGroupInfo.ValveGroupItems.Find(x => x.TagIdentifier == string.Empty || x.AttributeName == string.Empty || x.SppidSymbolName == string.Empty) != null) |
387 | 383 |
{ |
388 |
IEnumerable<ValveGroupItem> lstvalue = currentValveGroupInfo.ValveGroupItems.Where(x => x.TagIdentifier == string.Empty || x.AttributeName == string.Empty || x.SppidSymbolName == string.Empty);
|
|
384 |
IEnumerable<ValveGroupItem> lstvalue = currentValveGroupInfo.ValveGroupItems.Where(x => x.TagIdentifier == string.Empty || x.SppidSymbolName == string.Empty); |
|
389 | 385 |
//Scope Break |
390 | 386 |
foreach(ValveGroupItem vg in lstvalue) |
391 | 387 |
{ |
392 |
if(vg.GroupType != "Scope Break") |
|
388 |
if(vg.GroupType != "Scope Break" )
|
|
393 | 389 |
{ |
394 | 390 |
MessageBox.Show("Please save after entering data.", "ID2 " + ID2Info.ProgramName, MessageBoxButtons.OK, MessageBoxIcon.Warning); |
395 | 391 |
return; |
내보내기 Unified diff