개정판 2327f39c
issue #000: Nopocket Psn 과 연결된 bypass line의 psn nopocket값 변경 기능 추가
Change-Id: Ib3f934807080de7a1ff5b89d1e0f918f1023aeef
DTI_PID/ID2PSN/PSN.cs | ||
---|---|---|
273 | 273 |
splashScreenManager1.SetWaitFormDescription(i++ + " / 19 UpdateAirFinCooler ( 90 % )"); |
274 | 274 |
UpdateAirFinCooler(); |
275 | 275 |
|
276 |
UpdateNoPocket(); |
|
277 |
|
|
276 | 278 |
// 확도 계산 |
277 | 279 |
splashScreenManager1.SetWaitFormDescription(i++ + " / 19 UpdateAccuracy ( 95 % )"); |
278 | 280 |
UpdateAccuracy(); |
... | ... | |
281 | 283 |
|
282 | 284 |
} |
283 | 285 |
|
286 |
private void UpdateNoPocket() |
|
287 |
{ |
|
288 |
try |
|
289 |
{ |
|
290 |
DataRow[] nopocketRows = PipeSystemNetwork.Select("Pocket = 'Yes'"); |
|
291 |
foreach (DataRow row in nopocketRows) |
|
292 |
{ |
|
293 |
DataRow[] pathItemRows = PathItems.Select(string.Format("PipeSystemNetwork_OID = '{0}'", row["OID"].ToString())); |
|
294 |
foreach (DataRow dr in pathItemRows) |
|
295 |
{ |
|
296 |
if (!string.IsNullOrEmpty(dr["BranchTopologySet_OID"].ToString())) |
|
297 |
{ |
|
298 |
DataRow[] rows = TopologySet.Select(string.Format("OID = '{0}'", dr["BranchTopologySet_OID"].ToString())); |
|
299 |
|
|
300 |
if (rows.First()["SubType"].ToString() == "Bypass") |
|
301 |
{ |
|
302 |
DataRow[] bypassRows = PipeSystemNetwork.Select(string.Format("OID = '{0}'", dr.Field<string>("ViewPipeSystemNetwork_OID"))); |
|
303 |
|
|
304 |
foreach (DataRow drby in bypassRows) |
|
305 |
{ |
|
306 |
drby["Pocket"] = "Yes"; |
|
307 |
} |
|
308 |
} |
|
309 |
} |
|
310 |
} |
|
311 |
} |
|
312 |
} |
|
313 |
catch (Exception ex) |
|
314 |
{ |
|
315 |
MessageBox.Show(ex.Message, "ID2 ", MessageBoxButtons.OK, MessageBoxIcon.Error); |
|
316 |
} |
|
317 |
} |
|
318 |
|
|
284 | 319 |
private void UpdatePSNType() |
285 | 320 |
{ |
286 | 321 |
try |
... | ... | |
1148 | 1183 |
lstitem.Clear(); |
1149 | 1184 |
continue; |
1150 | 1185 |
} |
1151 |
else if(!string.IsNullOrEmpty(dr["GROUPTAG"].ToString()) && !dr.Field<string>("OID").Equals(drPathitem.Field<string>("OID"))) |
|
1152 |
{ |
|
1153 |
|
|
1154 |
List<DataRow> lstitem2 = new List<DataRow>(); |
|
1155 |
int indexOf = 0; |
|
1156 |
|
|
1157 |
for (int i = 0; i < lstitem.Count; i++) |
|
1158 |
{ |
|
1159 |
DataRow dataRow = lstitem[lstitem.Count() - i - 1]; |
|
1160 |
if (!string.IsNullOrEmpty(dataRow["BranchTopologySet_OID"].ToString())) |
|
1161 |
{ |
|
1162 |
indexOf = lstitem.Count() - i - 1; |
|
1163 |
break; |
|
1164 |
} |
|
1165 |
} |
|
1166 |
|
|
1167 |
for (int i = 0; i < lstitem.Count; i++) |
|
1168 |
{ |
|
1169 |
if (indexOf == i) |
|
1170 |
{ |
|
1171 |
keyValuePairs.Add(bCnt, lstitem2.ToList()); |
|
1172 |
lstitem2.Clear(); |
|
1173 |
bCnt++; |
|
1174 |
} |
|
1175 |
lstitem2.Add(lstitem[i]); |
|
1176 |
} |
|
1177 |
|
|
1178 |
lstitem = lstitem2.ToList(); |
|
1179 |
} |
|
1186 |
|
|
1180 | 1187 |
|
1181 | 1188 |
if (!string.IsNullOrEmpty(dr["BranchTopologySet_OID"].ToString())) |
1182 | 1189 |
{ |
내보내기 Unified diff