リビジョン 397
工事基本情報登録時、台帳再計算起動判定追加
| trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs | ||
|---|---|---|
| 48 | 48 |
#region 変数 |
| 49 | 49 |
#endregion |
| 50 | 50 |
|
| 51 |
#region 工事詳細台帳存在チェック |
|
| 52 |
/// <summary> |
|
| 53 |
/// 工事詳細台帳存在チェック |
|
| 54 |
/// </summary> |
|
| 55 |
/// <param name="constrCode"></param> |
|
| 56 |
/// <returns></returns> |
|
| 57 |
public static bool CheckExistenceLedger(int ConstrCode) |
|
| 58 |
{
|
|
| 59 |
IOConstructionLedger LedgerDB = new IOConstructionLedger(); |
|
| 60 |
|
|
| 61 |
try |
|
| 62 |
{
|
|
| 63 |
StringBuilder strSQL = new StringBuilder(); |
|
| 64 |
strSQL.Append(LedgerDB.CreatePrimarykeyString(ConstrCode)); |
|
| 65 |
List<ConstructionLedger> DataList = new List<ConstructionLedger>(); |
|
| 66 |
if (!LedgerDB.SelectAction(strSQL.ToString(), ref DataList)) return false; |
|
| 67 |
if (DataList.Count < 1) return false; |
|
| 68 |
|
|
| 69 |
return true; |
|
| 70 |
} |
|
| 71 |
catch (System.Exception ex) |
|
| 72 |
{
|
|
| 73 |
logger.ErrorFormat("システムエラー:{0}:{1}", CommonMotions.GetMethodName(), ex.Message);
|
|
| 74 |
LedgerDB.rollback(); |
|
| 75 |
return false; |
|
| 76 |
} |
|
| 77 |
finally |
|
| 78 |
{
|
|
| 79 |
LedgerDB.close(); LedgerDB = null; |
|
| 80 |
} |
|
| 81 |
} |
|
| 82 |
#endregion |
|
| 83 |
|
|
| 51 | 84 |
#region 対象月の工事詳細台帳実行データを作成する(交通費・購入品等のみ) |
| 52 | 85 |
/// <summary> |
| 53 | 86 |
/// 対象月の工事詳細台帳実行データを作成する(交通費・購入品等のみ) |
| trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs | ||
|---|---|---|
| 3889 | 3889 |
} |
| 3890 | 3890 |
|
| 3891 | 3891 |
// ?V?K?? |
| 3892 |
if (m_DspCtrl[(int)DspCnt.ConstructionCode].Text.Length == 0)
|
|
| 3892 |
if (!m_DspCtrl[(int)DspCnt.ConstructionCode].Visible)
|
|
| 3893 | 3893 |
{
|
| 3894 | 3894 |
int PeriodValue = 0; |
| 3895 | 3895 |
if (CommonMotions.BasePeriodYear()) |
| ... | ... | |
| 4093 | 4093 |
mbdDB, mbtDB, mbhDB, RecDB, |
| 4094 | 4094 |
ChgMenDB, LinkDB); |
| 4095 | 4095 |
|
| 4096 |
// ?H???R?[?h??Z?b?g |
|
| 4097 |
frm.ConstructionCode = ProcConstrCode; |
|
| 4096 |
// ?????????????v?Z???? |
|
| 4097 |
if (ClsChangeLedgerData.CheckExistenceLedger(m_ConstructionCode)) |
|
| 4098 |
{
|
|
| 4099 |
// ?H???R?[?h??Z?b?g |
|
| 4100 |
frm.ConstructionCode = ProcConstrCode; |
|
| 4098 | 4101 |
|
| 4099 |
// ????????????o?? |
|
| 4100 |
frm.WindowState = FormWindowState.Minimized; |
|
| 4101 |
frm.Show(); |
|
| 4102 |
// ?t?H?[????\?? |
|
| 4103 |
frm.Visible = false; |
|
| 4102 |
// ????????????o??
|
|
| 4103 |
frm.WindowState = FormWindowState.Minimized;
|
|
| 4104 |
frm.Show();
|
|
| 4105 |
// ?t?H?[????\??
|
|
| 4106 |
frm.Visible = false;
|
|
| 4104 | 4107 |
|
| 4105 |
// ??v?Z???? |
|
| 4106 |
bool bret = frm.RecalculateLedger; |
|
| 4108 |
// ??v?Z????
|
|
| 4109 |
bool bret = frm.RecalculateLedger;
|
|
| 4107 | 4110 |
|
| 4108 |
// ???????? |
|
| 4109 |
frm.Close(); |
|
| 4111 |
// ???????? |
|
| 4112 |
frm.Close(); |
|
| 4113 |
} |
|
| 4110 | 4114 |
|
| 4111 | 4115 |
// ?o?^?????????t???O?N???A |
| 4112 | 4116 |
m_bChengeAns = false; |
| trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs | ||
|---|---|---|
| 3749 | 3749 |
|
| 3750 | 3750 |
// 支払可能額表示 |
| 3751 | 3751 |
int ExecValue = 0; |
| 3752 |
//// 実行金額がマイナスの場合は表示しない 2017/09/04
|
|
| 3752 |
// 実行金額がマイナスの場合は表示しない 2017/09/04 |
|
| 3753 | 3753 |
//if (GroupNo != (int)DataGroup.Expenses && DetailRec.ExecutionAmount > 0) |
| 3754 | 3754 |
// 計算が合わなくなるので経費以外はマイナスでも計算する 2017/10/13 |
| 3755 | 3755 |
if (GroupNo != (int)DataGroup.Expenses) |
| ... | ... | |
| 5981 | 5981 |
if (ResultValue < 0) |
| 5982 | 5982 |
{
|
| 5983 | 5983 |
CurRow.Cells[ResultCols].Style.ForeColor = Color.Red; |
| 5984 |
CurRow.Cells[OverpaymentCols].Style.ForeColor = Color.Red; |
|
| 5985 |
CurRow.Cells[OverpaymentCols].Value = CurRow.Cells[ResultCols].Value; |
|
| 5984 |
if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.ExecPrice].Value) > 0) |
|
| 5985 |
{
|
|
| 5986 |
CurRow.Cells[OverpaymentCols].Style.ForeColor = Color.Red; |
|
| 5987 |
CurRow.Cells[OverpaymentCols].Value = CurRow.Cells[ResultCols].Value; |
|
| 5988 |
} |
|
| 5989 |
else |
|
| 5990 |
{
|
|
| 5991 |
CurRow.Cells[OverpaymentCols].Style.ForeColor = Color.Black; |
|
| 5992 |
CurRow.Cells[OverpaymentCols].Value = "0"; |
|
| 5993 |
} |
|
| 5986 | 5994 |
} |
| 5987 | 5995 |
else |
| 5988 | 5996 |
{
|
| 5989 | 5997 |
CurRow.Cells[ResultCols].Style.ForeColor = Color.Black; |
| 5990 | 5998 |
CurRow.Cells[OverpaymentCols].Style.ForeColor = Color.Black; |
| 5991 |
CurRow.Cells[OverpaymentCols].Value = ""; |
|
| 5999 |
CurRow.Cells[OverpaymentCols].Value = "0";
|
|
| 5992 | 6000 |
} |
| 5993 | 6001 |
} |
| 5994 | 6002 |
catch (Exception ex) |
他の形式にエクスポート: Unified diff