リビジョン 426
未作成台帳確認:工事予算書・工事台帳の2か所に飛ぶように変更
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudget.cs | ||
---|---|---|
315 | 315 |
DataGridViewEX dgv = (DataGridViewEX)sender; |
316 | 316 |
if (CommonMotions.chkCellBlank(dgv.CurrentRow.Cells[(int)GridColumn.ConstrCode].Value)) return; |
317 | 317 |
|
318 |
// 工事予算書画面表示 |
|
318 |
// 工事予算書・工事台帳画面表示
|
|
319 | 319 |
SubProcessExecute(); |
320 | 320 |
} |
321 | 321 |
catch (Exception ex) |
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudgetAuxiliary.cs | ||
---|---|---|
1355 | 1355 |
} |
1356 | 1356 |
#endregion |
1357 | 1357 |
|
1358 |
#region ?H???\?Z???\??
|
|
1358 |
#region ?T?u?E?B???h?E?????H???\?Z???E?H??????\??????
|
|
1359 | 1359 |
/// <summary> |
1360 |
/// ?H???\?Z???\??
|
|
1360 |
/// ?T?u?E?B???h?E?????H???\?Z???E?H??????\??????
|
|
1361 | 1361 |
/// </summary> |
1362 |
/// <param name="para_PersonCode"></param> |
|
1363 | 1362 |
private void SubProcessExecute() |
1364 | 1363 |
{ |
1365 |
FrmConstructionBudget frm = new FrmConstructionBudget(); |
|
1366 | 1364 |
try |
1367 | 1365 |
{ |
1368 | 1366 |
DataGridViewEX dgv = dgvMain; |
... | ... | |
1383 | 1381 |
MessageBox.Show("???f?[?^??A?N?Z?X??????????????B", "?I???G???[", MessageBoxButtons.OK, MessageBoxIcon.Error); |
1384 | 1382 |
return; |
1385 | 1383 |
} |
1386 |
if (EditFlg == (int)CommonDefine.ProcessDataEdit.Reference) frm.EditLock = true; |
|
1384 |
bool bEditLock = false; |
|
1385 |
if (EditFlg == (int)CommonDefine.ProcessDataEdit.Reference) bEditLock = true; |
|
1387 | 1386 |
|
1387 |
// ?H??????????m?F |
|
1388 |
if (!ChkExistsLedgerData(SelConstrCode)) |
|
1389 |
{ |
|
1390 |
// ?H???\?Z???\?? |
|
1391 |
SubProcessExecuteBudget(nDepCode, SelConstrCode, bEditLock); |
|
1392 |
} |
|
1393 |
else |
|
1394 |
{ |
|
1395 |
// ?H?????\?? |
|
1396 |
SubProcessExecuteLedger(nDepCode, SelConstrCode, bEditLock); |
|
1397 |
} |
|
1398 |
|
|
1399 |
} |
|
1400 |
catch (Exception ex) |
|
1401 |
{ |
|
1402 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1403 |
} |
|
1404 |
} |
|
1405 |
#endregion |
|
1406 |
|
|
1407 |
#region ?H??????????m?F |
|
1408 |
/// <summary> |
|
1409 |
/// ?H??????????m?F |
|
1410 |
/// </summary> |
|
1411 |
/// <returns></returns> |
|
1412 |
private bool ChkExistsLedgerData(int nConstrCode) |
|
1413 |
{ |
|
1414 |
IOConstructionLedger LedgerDB = new IOConstructionLedger(); |
|
1415 |
try |
|
1416 |
{ |
|
1417 |
StringBuilder strSQL = new StringBuilder(); |
|
1418 |
strSQL.Append(LedgerDB.CreatePrimarykeyString(nConstrCode)); |
|
1419 |
ConstructionLedger ledger = new ConstructionLedger(); |
|
1420 |
if (!LedgerDB.SelectAction(strSQL.ToString(), ref ledger)) return false; |
|
1421 |
|
|
1422 |
return true; |
|
1423 |
} |
|
1424 |
catch (Exception ex) |
|
1425 |
{ |
|
1426 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1427 |
return false; |
|
1428 |
} |
|
1429 |
finally |
|
1430 |
{ |
|
1431 |
LedgerDB.close(); LedgerDB = null; |
|
1432 |
} |
|
1433 |
} |
|
1434 |
#endregion |
|
1435 |
|
|
1436 |
#region ?H???\?Z???\?? |
|
1437 |
/// <summary> |
|
1438 |
/// ?H???\?Z???\?? |
|
1439 |
/// </summary> |
|
1440 |
private void SubProcessExecuteBudget(int nDepCode, int SelConstrCode, bool bEditLock) |
|
1441 |
{ |
|
1442 |
FrmConstructionBudget frm = new FrmConstructionBudget(); |
|
1443 |
try |
|
1444 |
{ |
|
1388 | 1445 |
// ?H???\?Z??????N?? |
1446 |
frm.EditLock = bEditLock; |
|
1389 | 1447 |
frm.ConstructionCode = SelConstrCode; |
1390 | 1448 |
frm.SubForm = true; |
1391 | 1449 |
frm.ShowInTaskbar = true; |
... | ... | |
1402 | 1460 |
} |
1403 | 1461 |
#endregion |
1404 | 1462 |
|
1463 |
#region ?H?????\?? |
|
1464 |
/// <summary> |
|
1465 |
/// ?H?????\?? |
|
1466 |
/// </summary> |
|
1467 |
private void SubProcessExecuteLedger(int nDepCode, int SelConstrCode, bool bEditLock) |
|
1468 |
{ |
|
1469 |
FrmConstructionLedger frm = new FrmConstructionLedger(); |
|
1470 |
try |
|
1471 |
{ |
|
1472 |
// ?H????????N?? |
|
1473 |
frm.EditLock = bEditLock; |
|
1474 |
frm.ConstructionCode = SelConstrCode; |
|
1475 |
frm.SubForm = true; |
|
1476 |
frm.ShowInTaskbar = true; |
|
1477 |
frm.ShowDialog(); |
|
1478 |
} |
|
1479 |
catch (Exception ex) |
|
1480 |
{ |
|
1481 |
logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message); |
|
1482 |
} |
|
1483 |
finally |
|
1484 |
{ |
|
1485 |
frm.Dispose(); frm = null; |
|
1486 |
} |
|
1487 |
} |
|
1488 |
#endregion |
|
1489 |
|
|
1405 | 1490 |
#region ???N?x?????Z?b?g |
1406 | 1491 |
/// <summary> |
1407 | 1492 |
/// ???N?x?????Z?b?g |
他の形式にエクスポート: Unified diff