リビジョン 242
請求まとめ・支払承認情報データ作成バグ修正
branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs | ||
---|---|---|
929 | 929 |
|
930 | 930 |
if (nBCompanyCode == PaIWork.CompanyCode // 協力会社コード |
931 | 931 |
&& nBTargetDate == PaIWork.TargetDate // 対象年月 |
932 |
&& nBSeqNo == PaIWork.SeqNo // 連番 |
|
932 | 933 |
&& nBLineCount == PaIWork.LineCount) // 行番号 |
933 | 934 |
{ |
934 | 935 |
} |
... | ... | |
943 | 944 |
|
944 | 945 |
nBCompanyCode = PaIWork.CompanyCode; |
945 | 946 |
nBTargetDate = PaIWork.TargetDate; |
947 |
nBSeqNo = PaIWork.SeqNo; |
|
946 | 948 |
nBLineCount = PaIWork.LineCount; |
947 | 949 |
nBSeqNo = 0; |
948 | 950 |
} |
949 | 951 |
|
950 | 952 |
// 支払承認情報データ作成 |
951 |
if (!PaymentApprovalInfoCreate(PayAppDB, PaIWork, ++nBSeqNo))
|
|
953 |
if (!PaymentApprovalInfoCreate(PayAppDB, PaIWork)) |
|
952 | 954 |
{ |
953 | 955 |
bSuccess = false; |
954 | 956 |
break; |
... | ... | |
1012 | 1014 |
/// </summary> |
1013 | 1015 |
/// <returns></returns> |
1014 | 1016 |
private bool PaymentApprovalInfoCreate(IOPaymentApprovalInfo PayAppDB, |
1015 |
PaymentApprovalInfo PaIWork, |
|
1016 |
int nBSeqNo) |
|
1017 |
PaymentApprovalInfo PaIWork) |
|
1017 | 1018 |
{ |
1018 | 1019 |
try |
1019 | 1020 |
{ |
1020 |
// 連番を変更する |
|
1021 |
PaIWork.SeqNo = nBSeqNo; |
|
1022 | 1021 |
// 日付を初期値にする |
1023 | 1022 |
PaIWork.ApprovalDate = new DateTime(2001, 1, 1); |
1024 | 1023 |
if (!PayAppDB.InsertAction(PaIWork, false)) return false; |
他の形式にエクスポート: Unified diff