개정판 7d6d1693
issue #000: ValveGroupingSetting No Selection 삭제, No Selection 로직 제거, EGT 삭제 시 ML 및 연관 데이터 삭제 로직 추가, EGT Naming Rule 변경, Scope Break 로직 수정
Change-Id: I97a2ebb58bc9607c7448d884ba3cd1db16bb0f81
DTI_PID/ID2PSN/Form/EquipmentSetting.cs | ||
---|---|---|
49 | 49 |
} |
50 | 50 |
|
51 | 51 |
private void gridViewSymbol_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) |
52 |
{ |
|
52 |
{
|
|
53 | 53 |
if (e.Column.FieldName == "Type") |
54 | 54 |
{ |
55 | 55 |
DevExpress.XtraGrid.Views.Base.ColumnView columnView = sender as DevExpress.XtraGrid.Views.Base.ColumnView; |
56 | 56 |
if (!string.IsNullOrEmpty(e.Value.ToString())) |
57 | 57 |
{ |
58 | 58 |
string selectItem = e.Value.ToString(); |
59 |
DataTable dt = gridControlAirFinCooler.DataSource as DataTable; |
|
60 | 59 |
if (selectItem.Contains("Air Fin Cooler")) |
61 | 60 |
{ |
62 |
dt.Rows[columnView.FocusedRowHandle]["TagIdentifier"] = "AFC";
|
|
61 |
gridViewAirFinCooler.SetRowCellValue(columnView.FocusedRowHandle, "TagIdentifier", "AFC");
|
|
63 | 62 |
} |
64 | 63 |
else if (selectItem.Contains("Pump")) |
65 | 64 |
{ |
66 |
dt.Rows[columnView.FocusedRowHandle]["TagIdentifier"] = "PUMP";
|
|
67 |
} |
|
65 |
gridViewAirFinCooler.SetRowCellValue(columnView.FocusedRowHandle, "TagIdentifier", "PUMP");
|
|
66 |
}
|
|
68 | 67 |
} |
69 | 68 |
} |
70 |
|
|
71 | 69 |
} |
72 | 70 |
|
73 | 71 |
public void InitGridEquipmentNoPocket() |
... | ... | |
161 | 159 |
repositoryGroupType2 = new RepositoryItemComboBox(); |
162 | 160 |
repositoryGroupType2.Items.AddRange(new string[] { "Air Fin Cooler", "Pump" }); |
163 | 161 |
repositoryGroupType2.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; |
164 |
|
|
165 | 162 |
gridControlAirFinCooler.RepositoryItems.Add(repositoryGroupType2); |
166 | 163 |
gridColumn = gridViewAirFinCooler.Columns[1]; |
167 | 164 |
gridColumn.Name = "Type"; |
... | ... | |
213 | 210 |
gridViewAirFinCooler.CustomRowCellEditForEditing += GridViewAirFinCooler_CustomRowCellEditForEditing; |
214 | 211 |
} |
215 | 212 |
|
213 |
|
|
216 | 214 |
private void GridViewAirFinCooler_CustomRowCellEditForEditing(object sender, CustomRowCellEditEventArgs e) |
217 | 215 |
{ |
218 | 216 |
if (e.Column == (sender as GridView).Columns["AttributeName"]) |
... | ... | |
229 | 227 |
|
230 | 228 |
repositoryAttributeItem.Items.Clear(); |
231 | 229 |
repositoryAttributeItem.Items.Add(""); |
232 |
// repositoryAttributeItem.Items.Add("NoSelection"); |
|
233 | 230 |
foreach (DataRow dr in SymbolList.Rows) |
234 | 231 |
{ |
235 | 232 |
if (dr["SymbolName"].ToString().ToUpper().Equals(SppidSymbolName.ToUpper())) |
... | ... | |
283 | 280 |
|
284 | 281 |
typeDT.Rows.Add(index, Type, SppidSymbolName, null); |
285 | 282 |
} |
286 |
|
|
283 |
// typeDT.DefaultView.Sort = "INDEX ASC"; |
|
284 |
|
|
287 | 285 |
} |
288 | 286 |
|
289 | 287 |
public void InitAirFinCoolerData() |
... | ... | |
300 | 298 |
|
301 | 299 |
typeDT.Rows.Add(index, Type, TagIdentifier, AttributeName, SppidSymbolName, null); |
302 | 300 |
} |
303 |
|
|
301 |
// typeDT.DefaultView.Sort = "INDEX ASC"; |
|
304 | 302 |
} |
305 | 303 |
|
306 | 304 |
private void removeSymbolButton_Click(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) |
내보내기 Unified diff