リビジョン 403
入金確認:工事詳細台帳への登録メソッドの呼び出しの実装
| trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.Designer.cs | ||
|---|---|---|
| 253 | 253 |
this.button1.TabIndex = 3; |
| 254 | 254 |
this.button1.Text = "・・・"; |
| 255 | 255 |
this.button1.UseVisualStyleBackColor = true; |
| 256 |
this.button1.Visible = false; |
|
| 257 | 256 |
this.button1.Click += new System.EventHandler(this.button1_Click); |
| 258 | 257 |
// |
| 259 | 258 |
// Registration |
| 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 |
} |
|
| 689 | 725 |
} |
| 690 | 726 |
// 更新処理 |
| 691 | 727 |
else |
| ... | ... | |
| 696 | 732 |
{
|
| 697 | 733 |
throw new Exception(); |
| 698 | 734 |
} |
| 735 |
|
|
| 736 |
//工事管理台帳に書き込む |
|
| 737 |
var LedgerDB = new IOConstructionLedger(); |
|
| 738 |
var ExecDB = new IOConstructionLedgerExcute(); |
|
| 739 |
int nConstrCode = depositDetail.ConstructionCode; //工事番号 |
|
| 740 |
string TargetMonth = CommonMotions.cnvString(cbTargetMonth.SelectedItem); //対象年月 |
|
| 741 |
long lValue = depositDetail.DepositAmount; //入金金額(税抜) |
|
| 742 |
bool DspMsg = true; //メッセージ表示用フラグ |
|
| 743 |
try |
|
| 744 |
{
|
|
| 745 |
LedgerDB.connect(); |
|
| 746 |
ExecDB.beginTran(); |
|
| 747 |
LedgerDB.commit(); |
|
| 748 |
ExecDB.commit(); |
|
| 749 |
|
|
| 750 |
if (!ClsChangeLedgerData.ModifyReceiveMoney(LedgerDB, ExecDB, nConstrCode, TargetMonth, lValue, DspMsg)) |
|
| 751 |
{
|
|
| 752 |
throw new Exception(); |
|
| 753 |
} |
|
| 754 |
} |
|
| 755 |
catch (Exception ex) |
|
| 756 |
{
|
|
| 757 |
LedgerDB.rollback(); |
|
| 758 |
ExecDB.rollback(); |
|
| 759 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
|
|
| 760 |
} |
|
| 761 |
finally |
|
| 762 |
{
|
|
| 763 |
LedgerDB.close(); |
|
| 764 |
ExecDB.close(); |
|
| 765 |
|
|
| 766 |
LedgerDB = null; |
|
| 767 |
ExecDB = null; |
|
| 768 |
} |
|
| 699 | 769 |
} |
| 700 | 770 |
} |
| 701 | 771 |
} |
| ... | ... | |
| 1925 | 1995 |
ordererRow.Cells[(int)DispColumn.No].Value = depositOrderer.No; |
| 1926 | 1996 |
ordererRow.Cells[(int)DispColumn.RequestMonth].Value = depositOrderer.RequestMonth; |
| 1927 | 1997 |
ordererRow.Cells[(int)DispColumn.OrderersDivision].Value = depositOrderer.OrderersDivision; |
| 1998 |
ordererRow.Cells[(int)DispColumn.OrderersCode].Value = depositOrderer.OrderersCode; |
|
| 1928 | 1999 |
if (depositOrderer.BillingCategoryLabel == 0) |
| 1929 | 2000 |
{
|
| 1930 | 2001 |
ordererRow.Cells[(int)DispColumn.BillingCate].Value = "完了後一括"; |
他の形式にエクスポート: Unified diff