リビジョン 404
入金確認:工事詳細台帳への登録メソッドの呼び出しの実装(不要なロジック削除)
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs | ||
---|---|---|
686 | 686 |
if (!ioRequestHead.UpdateAction(sql, rtd)) |
687 | 687 |
throw new Exception(); |
688 | 688 |
} |
689 |
if (false) |
|
690 |
{ |
|
691 |
//工事管理台帳に書き込む |
|
692 |
var LedgerDB = new IOConstructionLedger(); |
|
693 |
var ExecDB = new IOConstructionLedgerExcute(); |
|
694 |
int nConstrCode = depositDetail.ConstructionCode; //工事番号 |
|
695 |
string TargetMonth = CommonMotions.cnvString(cbTargetMonth.SelectedItem); //対象年月 |
|
696 |
long lValue = depositDetail.DepositAmount; //請求金額 |
|
697 |
bool DspMsg = true; //メッセージ表示用フラグ |
|
698 |
try |
|
699 |
{ |
|
700 |
LedgerDB.connect(); |
|
701 |
ExecDB.beginTran(); |
|
702 |
LedgerDB.commit(); |
|
703 |
ExecDB.commit(); |
|
704 |
|
|
705 |
if (!ClsChangeLedgerData.ModifyReceiveMoney(LedgerDB, ExecDB, nConstrCode, TargetMonth, lValue, DspMsg)) |
|
706 |
{ |
|
707 |
throw new Exception(); |
|
708 |
} |
|
709 |
} |
|
710 |
catch (Exception ex) |
|
711 |
{ |
|
712 |
LedgerDB.rollback(); |
|
713 |
ExecDB.rollback(); |
|
714 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message); |
|
715 |
} |
|
716 |
finally |
|
717 |
{ |
|
718 |
LedgerDB.close(); |
|
719 |
ExecDB.close(); |
|
720 |
|
|
721 |
LedgerDB = null; |
|
722 |
ExecDB = null; |
|
723 |
} |
|
724 |
} |
|
725 | 689 |
} |
726 | 690 |
// 更新処理 |
727 | 691 |
else |
他の形式にエクスポート: Unified diff