プロジェクト

全般

プロフィール

リビジョン 420

堀内6年以上前に追加

営業期・工事年切り替え修正漏れ対応
入金入力:入金時メッセージ表示追加
メッセージリーダー:入金入力へのリンク追加

差分を表示:

trunk/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs
3044 3044
                strSQL.AppendFormat(" And LDetail.CompanyCode = {0}", PersonCode);
3045 3045
                strSQL.AppendFormat(" And LDetail.SalaryFlg = {0}", (int)CommonDefine.SalaryDevision.DaysInput);
3046 3046
                strSQL.Append(" Where");
3047
                strSQL.AppendFormat(" Base.ConstructionPeriod = {0}", TargetYear);
3047

  
3048
                if (CommonMotions.BasePeriodYear())
3049
                    strSQL.AppendFormat(" Base.ConstructionPeriod = {0}", TargetYear);
3050
                else
3051
                    strSQL.AppendFormat(" Base.ConstructionYear = {0}", TargetYear);
3052

  
3048 3053
                strSQL.AppendFormat(" And Base.ConstructionPersonCode = {0}", PersonCode);
3049 3054
                strSQL.Append(" And(");
3050 3055
                strSQL.AppendFormat("DATE('{0}') <= DATE(Ledger.ConstructionStart)", dtLast.ToShortDateString());
......
3106 3111
                strSQL.AppendFormat(" And LDetail.CompanyCode = {0}", PersonCode);
3107 3112
                strSQL.AppendFormat(" And LDetail.SalaryFlg = {0}", (int)CommonDefine.SalaryDevision.DaysInput);
3108 3113
                strSQL.Append(" Where");
3109
                strSQL.AppendFormat(" Base.ConstructionPeriod = {0}", PrevTargetYear);
3114

  
3115
                if (CommonMotions.BasePeriodYear())
3116
                    strSQL.AppendFormat(" Base.ConstructionPeriod = {0}", PrevTargetYear);
3117
                else
3118
                    strSQL.AppendFormat(" Base.ConstructionYear = {0}", PrevTargetYear);
3119

  
3110 3120
                strSQL.AppendFormat(" And Base.ConstructionPersonCode = {0}", PersonCode);
3111 3121
                strSQL.Append(" And(");
3112 3122
                strSQL.AppendFormat("DATE('{0}') <= DATE(Ledger.ConstructionStart)", (dtStart.AddDays(-1)).ToShortDateString());
......
3298 3308
                    if (!bFirst) strSQL.Append(" Union ");
3299 3309

  
3300 3310
                    strSQL.Append("Select");
3301
                    strSQL.Append(" Base.ConstructionPeriod");
3311
                    if (CommonMotions.BasePeriodYear())
3312
                        strSQL.Append(" Base.ConstructionPeriod");
3313
                    else
3314
                        strSQL.Append(" Base.ConstructionYear");
3315

  
3302 3316
                    strSQL.Append(", Base.ConstructionCode");
3303 3317
                    strSQL.Append(", Base.ConstructionPersonCode");
3304 3318
                    strSQL.Append(", Ledger.ConstructionStart");
......
3317 3331
                    strSQL.AppendFormat(" And LDetail.CompanyCode = {0}", nPersonCode);
3318 3332
                    strSQL.AppendFormat(" And LDetail.SalaryFlg = {0}", (int)CommonDefine.SalaryDevision.DaysInput);
3319 3333
                    strSQL.Append(" Where");
3320
                    strSQL.AppendFormat(" Base.ConstructionPeriod = {0}", TargetYear);
3334

  
3335
                    if (CommonMotions.BasePeriodYear())
3336
                        strSQL.AppendFormat(" Base.ConstructionPeriod = {0}", TargetYear);
3337
                    else
3338
                        strSQL.AppendFormat(" Base.ConstructionYear = {0}", TargetYear);
3339

  
3321 3340
                    strSQL.AppendFormat(" And Base.ConstructionPersonCode = {0}", nPersonCode);
3322 3341
                    strSQL.Append(" And(");
3323 3342
                    strSQL.AppendFormat("DATE('{0}') <= DATE(Ledger.ConstructionStart)", edDate.ToShortDateString());
3324 3343
                    strSQL.AppendFormat(" And DATE(Ledger.ConstructionEnd) <= DATE('{0}')", dtDefaultEnd.ToShortDateString());
3325 3344
                    strSQL.Append(")");
3326 3345
                    strSQL.Append(" Union Select");
3327
                    strSQL.Append(" Base.ConstructionPeriod");
3346

  
3347
                    if (CommonMotions.BasePeriodYear())
3348
                        strSQL.Append(" Base.ConstructionPeriod");
3349
                    else
3350
                        strSQL.Append(" Base.ConstructionYear");
3351

  
3328 3352
                    strSQL.Append(", Base.ConstructionCode");
3329 3353
                    strSQL.Append(", Base.ConstructionPersonCode");
3330 3354
                    strSQL.Append(", Ledger.ConstructionStart");
......
3342 3366
                    strSQL.AppendFormat(" And LDetail.CompanyCode = {0}", nPersonCode);
3343 3367
                    strSQL.AppendFormat(" And LDetail.SalaryFlg = {0}", (int)CommonDefine.SalaryDevision.DaysInput);
3344 3368
                    strSQL.Append(" Where");
3345
                    strSQL.AppendFormat(" Base.ConstructionPeriod = {0}", PrevTargetYear);
3369

  
3370
                    if (CommonMotions.BasePeriodYear())
3371
                        strSQL.AppendFormat(" Base.ConstructionPeriod = {0}", PrevTargetYear);
3372
                    else
3373
                        strSQL.AppendFormat(" Base.ConstructionYear = {0}", PrevTargetYear);
3374

  
3346 3375
                    strSQL.AppendFormat(" And Base.ConstructionPersonCode = {0}", nPersonCode);
3347 3376
                    strSQL.Append(" And(");
3348 3377
                    strSQL.AppendFormat("DATE('{0}') <= DATE(Ledger.ConstructionStart)", (stDate.AddDays(-1)).ToShortDateString());
......
3752 3781
                // 今期のデータかどうかを判定する
3753 3782
                string FieldName = string.Empty;
3754 3783
                if (CommonMotions.BasePeriodYear())
3755
                {
3756 3784
                    FieldName = "ConstructionPeriod";
3757
                }
3758 3785
                else
3759
                {
3760 3786
                    FieldName = "ConstructionYear";
3761
                }
3787

  
3762 3788
                if (!CheckNowSeason(nTargetYear))
3763 3789
                {
3764 3790
                    strSQL.Append(" AND B.DepartmentCode IN(SELECT InDep.DEPARTMENTCODE FROM (");
trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs
2242 2242
                    return;
2243 2243
                }
2244 2244

  
2245
                // 直接表示年月が設定されていればセットする
2246
                if (CurrentPara.IntExecParameter.Count > 0)
2247
                    frm.DirectMonth = CurrentPara.IntExecParameter[0];
2248

  
2245 2249
                // フォーム表示
2246 2250
                frm.ShowDialog();
2247 2251
            }
trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBaseInfoDetail.cs
10 10
    /// </summary>
11 11
    public class ConstructionBaseInfoDetail
12 12
    {
13
        #region 定数
14

  
13 15
        #region 工事基本情報明細:明細番号並び
14 16
        /// <summary>
15 17
        /// 工事基本情報明細:明細番号並び
......
135 137
        }
136 138
        #endregion
137 139

  
138
        #region 定数
139 140
        #endregion
140 141

  
141 142
        #region メンバ変数
trunk/src/ProcessManagement/ProcessManagement/DataModel/MessageBoardData.cs
33 33
            ///  3:工事承認
34 34
            /// </summary>
35 35
            ProcessApproval,
36
            /// <summary>
37
            /// 入金入力
38
            /// </summary>
39
            PaymentEntry,
36 40
        }
37 41
        #endregion
38 42

  
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs
36 36
        /// <summary>
37 37
        /// ??SQL???
38 38
        /// </summary>
39
        private static string[] s_SQLPart1 = new string[] { "SELECT A.CONSTRUCTIONCODE, A.CONSTRUCTIONPERIOD, B.DETAILSTRING, A.CONSTRUCTIONSTATUSFLG,",
39
        private static string[] s_SQLPart1 = new string[] { "SELECT A.CONSTRUCTIONCODE, A.CONSTRUCTIONPERIOD, A.CONSTRUCTIONYEAR, B.DETAILSTRING, A.CONSTRUCTIONSTATUSFLG,",
40 40
                                                            " C.PERSONCODE, C.PERSONNAME, C.DEPARTMENTCODE, C.DEPARTMENTNAME, C.MANDISPORDER, C.DEPDISPORDER,",
41 41
                                                            " D.PERSONCODE, D.PERSONNAME, D.DEPARTMENTCODE, D.DEPARTMENTNAME, D.MANDISPORDER, D.DEPDISPORDER"};
42 42

  
......
115 115
        {
116 116
            CONSTRUCTIONCODE = 0,
117 117
            CONSTRUCTIONPERIOD,
118
            CONSTRUCTIONYEAR,
118 119
            CONSTRUCTIONNAME,
119 120
            CONSTRUCTIONSTATUSFLG,
120 121
            SALESCODE,
......
1395 1396
                    strConstDepName = CommonMotions.cnvString(objwrk[(int)GetData.CONSTDEPNAME]);
1396 1397
                    strConstName = CommonMotions.cnvString(objwrk[(int)GetData.CONSTNAME]);
1397 1398

  
1399
                    int nYear = 0;
1400
                    if (CommonMotions.BasePeriodYear())
1401
                        nYear = CommonMotions.cnvInt(objwrk[(int)GetData.CONSTRUCTIONPERIOD]);
1402
                    else
1403
                        nYear = CommonMotions.cnvInt(objwrk[(int)GetData.CONSTRUCTIONYEAR]);
1404

  
1398 1405
                    int RowCnt = dgv.Rows.Add((ino++)
1399
                                                , strSalesDepName
1400
                                                , strSalesName
1401
                                                , strConstDepName
1402
                                                , strConstName
1403
                                                , strConstrName
1404
                                                , strStatus
1405
                                                , FlgString
1406
                                                , CommonMotions.cnvInt(objwrk[(int)GetData.CONSTRUCTIONPERIOD])
1407
                                                , CommonMotions.cnvStringCodeFromInt(ConstrCode, "-", 8)
1408
                                                , OrderNo
1409
                                                );
1406
                                                    , strSalesDepName
1407
                                                    , strSalesName
1408
                                                    , strConstDepName
1409
                                                    , strConstName
1410
                                                    , strConstrName
1411
                                                    , strStatus
1412
                                                    , FlgString
1413
                                                    , nYear
1414
                                                    , CommonMotions.cnvStringCodeFromInt(ConstrCode, "-", 8)
1415
                                                    , OrderNo
1416
                                                    );
1410 1417

  
1411 1418
                    // ?Z???F??????
1412 1419
                    CellColorChenge(dgv.Rows[RowCnt], objwrk);
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/DataChange.cs
408 408
                strSQL.Append(" E1.NAMESTRING E1, E.EXPENSESRAITO E2, E.NAMECODE E3,");
409 409
                strSQL.Append(" F1.NAMESTRING F1, F.EXPENSESRAITO F2, F.NAMECODE F3,");
410 410
                strSQL.Append(" G1.NAMESTRING G1, G.EXPENSESRAITO G2, G.NAMECODE G3,");
411
                strSQL.Append(" A.CONSTRUCTIONPERIOD");
411

  
412
                if (CommonMotions.BasePeriodYear())
413
                    strSQL.Append(" A.CONSTRUCTIONPERIOD");
414
                else
415
                    strSQL.Append(" A.ConstructionYear");
416

  
412 417
                strSQL.Append(" FROM CONSTRUCTIONBASEINFO A");
413 418
                strSQL.Append(" LEFT JOIN PERSONINCHARGEMASTER C ON C.PERSONCODE = A.CONSTRSUBPERSONCODE");
414 419
                strSQL.Append(" LEFT JOIN PERSONINCHARGEMASTER D ON D.PERSONCODE = A.CONSTRUCTIONINSTRUCTOR");
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs
2441 2441
                    strSQL.AppendFormat("  And B1.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.SalesDepartmentName);
2442 2442
                    strSQL.Append("  Left Join departmentmaster As C1");
2443 2443
                    strSQL.Append("       On C1.DepartmentCode = A1.SalesDepCode");
2444
                    strSQL.AppendFormat(" Where A1.ConstructionPeriod = {0}", nTargetCount);
2444

  
2445
                    if (CommonMotions.BasePeriodYear())
2446
                        strSQL.AppendFormat(" Where A1.ConstructionPeriod = {0}", nTargetCount);
2447
                    else
2448
                        strSQL.AppendFormat(" Where A1.ConstructionYear = {0}", nTargetCount);
2449

  
2445 2450
                    strSQL.Append("       And A1.SalesDepCode != 0");
2446 2451

  
2447 2452
                    strSQL.Append(" Union Select");
......
2454 2459
                    strSQL.AppendFormat(" And B2.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstrDepartmentName);
2455 2460
                    strSQL.Append(" Left Join departmentmaster As C2");
2456 2461
                    strSQL.Append("      On C2.DepartmentCode = A2.ConstrDepCode");
2457
                    strSQL.AppendFormat(" Where A2.ConstructionPeriod = {0}", nTargetCount);
2462

  
2463
                    if (CommonMotions.BasePeriodYear())
2464
                        strSQL.AppendFormat(" Where A2.ConstructionPeriod = {0}", nTargetCount);
2465
                    else
2466
                        strSQL.AppendFormat(" Where A2.ConstructionYear = {0}", nTargetCount);
2467

  
2458 2468
                    strSQL.Append("       And A2.ConstrDepCode != 0");
2459 2469

  
2460 2470
                    strSQL.Append(" Union Select");
......
2467 2477
                    strSQL.AppendFormat(" And B3.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstrSubDepartmentName);
2468 2478
                    strSQL.Append(" Left Join departmentmaster As C3");
2469 2479
                    strSQL.Append("      On C3.DepartmentCode = A3.ConstrSubDepCode");
2470
                    strSQL.AppendFormat(" Where A3.ConstructionPeriod = {0}", nTargetCount);
2480

  
2481
                    if (CommonMotions.BasePeriodYear())
2482
                        strSQL.AppendFormat(" Where A3.ConstructionPeriod = {0}", nTargetCount);
2483
                    else
2484
                        strSQL.AppendFormat(" Where A3.ConstructionYear = {0}", nTargetCount);
2485

  
2471 2486
                    strSQL.Append("       And A3.ConstrSubDepCode != 0");
2472 2487

  
2473 2488
                    strSQL.Append(" Union Select");
......
2480 2495
                    strSQL.AppendFormat(" And B4.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.InstrDepartmentName);
2481 2496
                    strSQL.Append(" Left Join departmentmaster As C4");
2482 2497
                    strSQL.Append("      On C4.DepartmentCode = A4.ConstrInstrDepCode");
2483
                    strSQL.AppendFormat(" Where A4.ConstructionPeriod = {0}", nTargetCount);
2498
                    if (CommonMotions.BasePeriodYear())
2499
                        strSQL.AppendFormat(" Where A4.ConstructionPeriod = {0}", nTargetCount);
2500
                    else
2501
                        strSQL.AppendFormat(" Where A4.ConstructionYear = {0}", nTargetCount);
2502

  
2484 2503
                    strSQL.Append("       And A4.ConstrInstrDepCode != 0");
2485 2504
                    strSQL.Append(") As A");
2486 2505
                }
......
2500 2519
                    strSQL.Append(", CONSTRUCTIONBASEINFO C");
2501 2520
                    strSQL.Append(" WHERE");
2502 2521

  
2503
                    strSQL.AppendFormat(" (C.ConstructionPeriod = {0}", nTargetCount);
2522
                    if (CommonMotions.BasePeriodYear())
2523
                        strSQL.AppendFormat(" (C.ConstructionPeriod = {0}", nTargetCount);
2524
                    else
2525
                        strSQL.AppendFormat(" (C.ConstructionYear = {0}", nTargetCount);
2526

  
2504 2527
                    strSQL.Append(" And A.DepartmentCode IN(C.SalesDepCode, C.ConstrDepCode, C.ConstrSubDepCode, C.ConstrInstrDepCode))");
2505 2528
                }
2506 2529
                strSQL.Append(" GROUP BY A.DEPARTMENTCODE, A.DEPARTMENTSTRING, A.DISPLAYORDER");
......
3498 3521
                StartDate = DateTime.Now;
3499 3522
                LastDate = DateTime.Now;
3500 3523

  
3501
                string strSQL = "SELECT MIN(CONSTRUCTIONPERIODSTART), MAX(CONSTRUCTIONPERIODEND) FROM CONSTRUCTIONBASEINFO";
3502
                strSQL += string.Format(" WHERE (TRUNCATE(CONSTRUCTIONCODE / 100,0) = {0})", CommonMotions.cnvTruncate(m_ConstructionCode / 100));
3503
                strSQL += string.Format(" AND (TYINGFLG = {0} OR TYINGFLG = {1})"
3524
                StringBuilder strSQL = new StringBuilder();
3525
                if (CommonMotions.BasePeriodYear())
3526
                    strSQL.Append("SELECT MIN(CONSTRUCTIONPERIODSTART), MAX(CONSTRUCTIONPERIODEND) FROM CONSTRUCTIONBASEINFO");
3527
                else
3528
                    strSQL.Append("SELECT MIN(ConstructionYear), MAX(ConstructionYear) FROM CONSTRUCTIONBASEINFO");
3529

  
3530
                strSQL.AppendFormat(" WHERE (TRUNCATE(CONSTRUCTIONCODE / 100,0) = {0})", CommonMotions.cnvTruncate(m_ConstructionCode / 100));
3531
                strSQL.AppendFormat(" AND (TYINGFLG = {0} OR TYINGFLG = {1})"
3504 3532
                                        , (int)ConstructionBaseInfo.TyingFlgDef.Parent, (int)ConstructionBaseInfo.TyingFlgDef.Tying);
3505 3533
                //strSQL += string.Format(" AND CONSTRUCTIONPERIODSTART != TO_DATE('{0}')", DateTime.MinValue.ToShortDateString());
3506
                strSQL += string.Format(" AND DATE(CONSTRUCTIONPERIODSTART) != STR_TO_DATE('{0}', '%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
3534
                strSQL.AppendFormat(" AND DATE(CONSTRUCTIONPERIODSTART) != STR_TO_DATE('{0}', '%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
3507 3535
                ArrayList Arlist = new ArrayList();
3508
                if (!BaseDB.ExecuteReader(strSQL, ref Arlist, false)) return;
3536
                if (!BaseDB.ExecuteReader(strSQL.ToString(), ref Arlist, false)) return;
3509 3537
                if (Arlist.Count == 0) return;
3510 3538
                object[] objRec = (object[])Arlist[0];
3511 3539
                StartDate = CommonMotions.cnvDate(objRec[0]);
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.cs
740 740
                    return;
741 741
                }
742 742

  
743
                // 16????~??????????o???????
744
                if (m_ConstructionBaseInfo.ConstructionPeriod < 16)
743
                // ?????????o?????????
744
                if (!GetExpensesList())
745 745
                {
746
                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[0].Key, CommonDefine.BeforeExpenses[0].Value });
747
                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[1].Key, CommonDefine.BeforeExpenses[1].Value });
748
                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[2].Key, CommonDefine.BeforeExpenses[2].Value });
746
                    MessageBox.Show("?o??????????????????", "?G???[?\??", MessageBoxButtons.OK, MessageBoxIcon.Error);
747
                    this.Close();
748
                    return;
749 749
                }
750
                else
751
                {
752
                    // ?????????o?????????
753
                    if (!GetExpensesList())
754
                    {
755
                        MessageBox.Show("?o??????????????????", "?G???[?\??", MessageBoxButtons.OK, MessageBoxIcon.Error);
756
                        this.Close();
757
                        return;
758
                    }
759
                }
760 750

  
761 751
                // ???????
762 752
                InitSettingLoad();
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs
1533 1533
                // 粗利益行作成
1534 1534
                CreateGrossProfit(true);
1535 1535

  
1536
                // 16期以降は人件費金額を表示する
1537
                if (m_ConstructionBaseInfo.ConstructionPeriod >= 16)
1538
                {
1539
                    // 指導員給与
1540
                    CreateInstructorCosts(true);
1536
                // 指導員給与
1537
                CreateInstructorCosts(true);
1541 1538

  
1542
                    // 副担当者給与経費
1543
                    CreateAssistantCosts(true);
1539
                // 副担当者給与経費
1540
                CreateAssistantCosts(true);
1544 1541

  
1545
                    // 担当者給与経費
1546
                    CreatePayrollCosts(true);
1547
                }
1542
                // 担当者給与経費
1543
                CreatePayrollCosts(true);
1548 1544

  
1549 1545
                // 粗利益行計算
1550 1546
                CreateGrossProfit(false);
......
3085 3081
        {
3086 3082

  
3087 3083
            DataGridViewEX dgv = dgvAllDisplay;
3088
            // 16期以降はは表示する
3089
            if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
3090 3084

  
3091 3085
            int AssistantLine = m_CostsRowCount[(int)CostsRowLine.AssistantRowLine];
3092 3086
            if (AssistantLine == 0) return;
......
3242 3236
        {
3243 3237

  
3244 3238
            DataGridViewEX dgv = dgvAllDisplay;
3245
            // 16期以降はは表示する
3246
            if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
3247 3239

  
3248 3240
            int InstructorLine = m_CostsRowCount[(int)CostsRowLine.InstructorRowLine];
3249 3241
            if (InstructorLine == 0) return;
......
3466 3458
                    }
3467 3459
                }
3468 3460

  
3469
                // 16期以降は給与を表示する
3470
                if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
3471

  
3472 3461
                // 受注金額
3473 3462
                //double OrdersPrice = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
3474 3463
                // 工期取得
......
3578 3567
        private void GetCreatorLineValue(ref int CreatorHope, ref int CreatorExec)
3579 3568
        {
3580 3569
            DataGridViewEX dgv = dgvAllDisplay;
3581
            // 16期以降のみ処理する
3582
            if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
3583 3570

  
3584 3571
            int CreatorLine = m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine];
3585 3572
            if (CreatorLine == 0) return;
......
3599 3586
            {
3600 3587
                DataGridViewEX dgv = dgvAllDisplay;
3601 3588

  
3602
                // 16期以降は給与を表示する
3603
                if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
3604

  
3605 3589
                // 受注金額取得
3606 3590
                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", ""));
3607 3591

  
......
3682 3666
        {
3683 3667
            try
3684 3668
            {
3685
                // 16期以降は給与を表示する
3686
                if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
3687

  
3688 3669
                // 行位置取得
3689 3670
                DataGridViewEX dgv = dgvAllDisplay;
3690 3671
                int LineCnt = m_CostsRowCount[RowArrayCount];
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/ProcessControl.cs
978 978
                    if (DataChange)
979 979
                    {
980 980
                        GetBaseInfoData();
981
                        if (m_ConstructionBaseInfo.ConstructionPeriod >= 16) GetExpensesList();
981
                        GetExpensesList();
982 982
                        InitDataLoad();
983 983
                    }
984 984
                }
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs
1038 1038
                    return;
1039 1039
                }
1040 1040

  
1041
                // 16????O????o??
1042
                if (m_ConstructionBaseInfo.ConstructionPeriod < 16)
1043
                {   // ???o??????????
1044
                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[0].Key, CommonDefine.BeforeExpenses[0].Value });
1045
                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[1].Key, CommonDefine.BeforeExpenses[1].Value });
1046
                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[2].Key, CommonDefine.BeforeExpenses[2].Value });
1047
                }
1048
                else
1041
                // ?????????o?????????
1042
                if (!GetExpensesList())
1049 1043
                {
1050
                    // 16????~??????????o???????
1051
                    // ?????????o?????????
1052
                    if (!GetExpensesList())
1053
                    {
1054
                        MessageBox.Show("?o??????????????????", "?G???[?\??", MessageBoxButtons.OK, MessageBoxIcon.Error);
1055
                        this.Close();
1056
                        return;
1057
                    }
1044
                    MessageBox.Show("?o??????????????????", "?G???[?\??", MessageBoxButtons.OK, MessageBoxIcon.Error);
1045
                    this.Close();
1046
                    return;
1058 1047
                }
1059 1048

  
1060 1049
                // ???????
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs
102 102
        {
103 103
            try
104 104
            {
105
                int nPreiod = m_ConstructionBaseInfo.ConstructionPeriod;
105
                int nPreiod = 0;
106
                if (CommonMotions.BasePeriodYear())
107
                    nPreiod = m_ConstructionBaseInfo.ConstructionPeriod;
108
                else
109
                    nPreiod = m_ConstructionBaseInfo.ConstructionYear;
110

  
106 111
                int nDepartmentCode = m_ConstructionBaseInfo.ConstrDepCode;
107 112

  
108 113
                // 部署経費率マスタ取得
......
1565 1570
                // 空白行
1566 1571
                AddEmptyRow();
1567 1572

  
1568
                // 16期以降は給与を表示する
1569
                if (m_ConstructionBaseInfo.ConstructionPeriod >= 16)
1570
                {
1571
                    // 工事予算書より人件費ブロックを取り込む
1572
                    DispDataFromConstructionBudget4(DetailList);
1573
                }
1573
                // 工事予算書より人件費ブロックを取り込む
1574
                DispDataFromConstructionBudget4(DetailList);
1574 1575

  
1575 1576
                // 空白行
1576 1577
                AddEmptyRow();
......
3849 3850

  
3850 3851
                        case (int)DataGroup.Assistant:               // 副担当
3851 3852
                        case (int)DataGroup.Payroll:                 // 工事担当
3852
                            // 一般ユーザーは行ロック
3853
                            if (m_ConstructionBaseInfo.ConstructionPeriod < 16) CurRow.Visible = false;
3854 3853
                            if (!CheckLeaderOrUser()) CurRow.ReadOnly = true;
3855 3854
                            // ヘッダーチェックボックス表示
3856 3855
                            SalaryRadioButtonCheck(DetailRec);
3857 3856
                            break;
3858 3857
                        case (int)DataGroup.Instructor:              // 指導員
3859 3858
                        case (int)DataGroup.NetIncome:               // 純利益
3860
                            // 16期より前は指導員金額・担当者給与・純利益を表示しない
3861
                            if (m_ConstructionBaseInfo.ConstructionPeriod < 16) CurRow.Visible = false;
3862 3859
                            // 一般ユーザーは行ロック
3863 3860
                            if (!CheckLeaderOrUser()) CurRow.ReadOnly = true;
3864 3861
                            break;
......
5078 5075
                // 工事コード
5079 5076
                work.ConstructionCode = m_ConstructionCode;
5080 5077
                // 	事業期
5081
                work.ConstructionPeriod = m_ConstructionBaseInfo.ConstructionPeriod;
5078
                if (CommonMotions.BasePeriodYear())
5079
                    work.ConstructionPeriod = m_ConstructionBaseInfo.ConstructionPeriod;
5080
                else
5081
                    work.ConstructionPeriod = m_ConstructionBaseInfo.ConstructionYear;
5082 5082
                // 作成者コード
5083 5083
                work.CreatorCode = m_ConstructionBaseInfo.ConstructionPersonCode;
5084 5084
                // 作成者名
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/ProcessControl.cs
978 978
                    if (DataChange)
979 979
                    {
980 980
                        GetBaseInfoData();
981
                        if (m_ConstructionBaseInfo.ConstructionPeriod >= 16) GetExpensesList();
981
                        GetExpensesList();
982 982
                        InitDataLoad();
983 983
                    }
984 984
                }
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/CommonLedgerData.cs
176 176
                strSQL.Append("            Inner Join constructionbaseinfo As Base");
177 177
                strSQL.Append("                  On Base.ConstructionCode = LDetail.ConstructionCode");
178 178
                strSQL.AppendFormat("            And Base.ConstructionStatusFlg <> {0}", NotOrder);
179
                strSQL.AppendFormat("            And Base.ConstructionPeriod = {0}", BusinessPeriod);
179
                if (CommonMotions.BasePeriodYear())
180
                    strSQL.AppendFormat("            And Base.ConstructionPeriod = {0}", BusinessPeriod);
181
                else
182
                    strSQL.AppendFormat("            And Base.ConstructionYear = {0}", BusinessPeriod);
183

  
180 184
                strSQL.AppendFormat(" Where LDetail.GroupCount IN ({0}, {1}, {2})"
181 185
                                                                            , (int)FrmConstructionLedger.DataGroup.Instructor
182 186
                                                                            , (int)FrmConstructionLedger.DataGroup.Assistant
......
198 202
                strSQL.Append("            Inner Join constructionbaseinfo As Base");
199 203
                strSQL.Append("                  On Base.ConstructionCode = LDetail2.ConstructionCode");
200 204
                strSQL.AppendFormat("            And Base.ConstructionStatusFlg <> {0}", NotOrder);
201
                strSQL.AppendFormat("            And Base.ConstructionPeriod = {0}", BusinessPeriod + 1);
205

  
206
                if (CommonMotions.BasePeriodYear())
207
                    strSQL.AppendFormat("            And Base.ConstructionPeriod = {0}", BusinessPeriod + 1);
208
                else
209
                    strSQL.AppendFormat("            And Base.ConstructionYear = {0}", BusinessPeriod + 1);
210

  
202 211
                strSQL.AppendFormat(" Where LDetail2.GroupCount IN ({0}, {1}, {2})"
203 212
                                                                            , (int)FrmConstructionLedger.DataGroup.Instructor
204 213
                                                                            , (int)FrmConstructionLedger.DataGroup.Assistant
......
377 386

  
378 387
                    strSQL.Append("   Inner Join CONSTRUCTIONBASEINFO As C");
379 388
                    strSQL.Append("          On C.ConstructionCode = A.ConstructionCode");
380
                    strSQL.AppendFormat("    And C.CONSTRUCTIONPERIOD = {0}", TargetYear);
389
                    if (CommonMotions.BasePeriodYear())
390
                        strSQL.AppendFormat("    And C.CONSTRUCTIONPERIOD = {0}", TargetYear);
391
                    else
392
                        strSQL.AppendFormat("    And C.ConstructionYear = {0}", TargetYear);
393

  
381 394
                    strSQL.AppendFormat("    AND C.CONSTRUCTIONSTATUSFLG != {0}", NotOrder);
382 395

  
383 396
                    strSQL.Append(" Where");
......
396 409
                    strSQL.Append("    CONSTRUCTIONLEDGERDETAIL A");
397 410
                    strSQL.Append("    Inner JOIN CONSTRUCTIONBASEINFO As B");
398 411
                    strSQL.Append("           On B.ConstructionCode = A.ConstructionCode");
399
                    strSQL.AppendFormat("     And B.CONSTRUCTIONPERIOD = {0}", TargetYear);
412
                    if (CommonMotions.BasePeriodYear())
413
                        strSQL.AppendFormat("     And B.CONSTRUCTIONPERIOD = {0}", TargetYear);
414
                    else
415
                        strSQL.AppendFormat("     And B.ConstructionYear = {0}", TargetYear);
416

  
400 417
                    strSQL.AppendFormat("     AND B.CONSTRUCTIONSTATUSFLG != {0}", NotOrder);
401 418

  
402 419
                    strSQL.Append(" Where");
......
690 707
                strSQL.AppendFormat(" B.GROUPCOUNT IN ({0}, {1})"
691 708
                                    , (int)FrmConstructionLedger.DataGroup.Instructor
692 709
                                    , (int)FrmConstructionLedger.DataGroup.Assistant);
693
                strSQL.AppendFormat(" AND A.ConstructionPeriod = {0}", TargetYear);
710
                if (CommonMotions.BasePeriodYear())
711
                    strSQL.AppendFormat(" AND A.ConstructionPeriod = {0}", TargetYear);
712
                else
713
                    strSQL.AppendFormat(" AND A.ConstructionYear = {0}", TargetYear);
714

  
694 715
                strSQL.AppendFormat(" AND A.ConstructionStatusFlg != {0}", NotOrder);
695 716

  
696 717
                if (DepartmentCode > 0) strSQL.AppendFormat(" AND C.ComponentCode = {0}", DepartmentCode);
......
754 775
                strSQL.Append("       And B.LineCount = A.LineCount");
755 776
                strSQL.Append(" Inner Join constructionbaseinfo AS C");
756 777
                strSQL.Append("       On C.ConstructionCode = B.ConstructionCode");
757
                strSQL.AppendFormat(" AND C.ConstructionPeriod = {0}", TargetYear);
778
                if (CommonMotions.BasePeriodYear())
779
                    strSQL.AppendFormat(" AND C.ConstructionPeriod = {0}", TargetYear);
780
                else
781
                    strSQL.AppendFormat(" AND C.ConstructionYear = {0}", TargetYear);
782

  
758 783
                strSQL.AppendFormat(" AND C.ConstructionStatusFlg != {0}", NotOrder);
759 784
                strSQL.AppendFormat(" AND C.ConstrDepCode = {0}", DepartmentCode);
760 785
                strSQL.Append(" WHERE");
......
778 803
                strSQL.Append("       And B.LineCount = A.LineCount");
779 804
                strSQL.Append(" Inner Join constructionbaseinfo AS C");
780 805
                strSQL.Append("       On C.ConstructionCode = B.ConstructionCode");
781
                strSQL.AppendFormat(" AND C.ConstructionPeriod = {0}", TargetYear);
806
                if (CommonMotions.BasePeriodYear())
807
                    strSQL.AppendFormat(" AND C.ConstructionPeriod = {0}", TargetYear);
808
                else
809
                    strSQL.AppendFormat(" AND C.ConstructionYear = {0}", TargetYear);
810

  
782 811
                strSQL.AppendFormat(" AND C.ConstructionStatusFlg != {0}", NotOrder);
783 812
                strSQL.AppendFormat(" AND C.ConstrDepCode != {0}", DepartmentCode);
784 813
                strSQL.Append(" WHERE");
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs
32 32
    partial class FrmLedgerList
33 33
    {
34 34
        #region ??
35
        private const string StaticSQL1 = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DetailString, A.SalesPersonCode, A.ConstructionPersonCode, A.ConstructionStatusFlg ";
36
        private const string StaticSQL2 = "From ConstructionBaseInfo A, ConstructionBaseInfoDetail B";
37 35
        #endregion
38 36

  
39 37
        #region ???
......
630 628
        /// </summary>
631 629
        /// <param name="dtStart"></param>
632 630
        /// <param name="dtEnd"></param>
633
        private void CreateConstStartAndEndDate(ref DateTime dtStart, ref DateTime dtEnd, int PersonCode = 0)
634
        {
635
            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
636
            try
637
            {
638
                StringBuilder strSQL = new StringBuilder();
639
                strSQL.Append("SELECT MIN(B.CONSTRUCTIONPERIODSTART) ,MAX(B.CONSTRUCTIONPERIODEND)");
640
                strSQL.Append(" FROM CONSTRUCTIONLEDGER A, CONSTRUCTIONBASEINFO B");
641
                strSQL.Append(" WHERE A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
642
                strSQL.AppendFormat(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
643
                if (PersonCode != 0) strSQL.AppendFormat(" AND B.CONSTRSUBPERSONCODE = {0}", PersonCode);
644
                strSQL.AppendFormat(" AND DATE_FORMAT(B.CONSTRUCTIONPERIODSTART,'%Y/%m/%d') != '{0}'", DateTime.MinValue.ToShortDateString());
645
                strSQL.AppendFormat(" AND DATE_FORMAT(B.CONSTRUCTIONPERIODEND,'%Y/%m/%d') != '{0}'", DateTime.MinValue.ToShortDateString());
646
                ArrayList arList = new ArrayList();
647
                if (!BaseDB.ExecuteReader(strSQL.ToString(), ref arList)) return;
631
        //private void CreateConstStartAndEndDate(ref DateTime dtStart, ref DateTime dtEnd, int PersonCode = 0)
632
        //{
633
        //    IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
634
        //    try
635
        //    {
636
        //        StringBuilder strSQL = new StringBuilder();
637
        //        strSQL.Append("SELECT MIN(B.CONSTRUCTIONPERIODSTART) ,MAX(B.CONSTRUCTIONPERIODEND)");
638
        //        strSQL.Append(" FROM CONSTRUCTIONLEDGER A, CONSTRUCTIONBASEINFO B");
639
        //        strSQL.Append(" WHERE A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
640
        //        strSQL.AppendFormat(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
641
        //        if (PersonCode != 0) strSQL.AppendFormat(" AND B.CONSTRSUBPERSONCODE = {0}", PersonCode);
642
        //        strSQL.AppendFormat(" AND DATE_FORMAT(B.CONSTRUCTIONPERIODSTART,'%Y/%m/%d') != '{0}'", DateTime.MinValue.ToShortDateString());
643
        //        strSQL.AppendFormat(" AND DATE_FORMAT(B.CONSTRUCTIONPERIODEND,'%Y/%m/%d') != '{0}'", DateTime.MinValue.ToShortDateString());
644
        //        ArrayList arList = new ArrayList();
645
        //        if (!BaseDB.ExecuteReader(strSQL.ToString(), ref arList)) return;
648 646

  
649
                object[] objList = (object[])arList[0];
647
        //        object[] objList = (object[])arList[0];
650 648

  
651
                dtStart = CommonMotions.cnvDate(objList[0]);
652
                dtEnd = CommonMotions.cnvDate(objList[2]);
653
            }
654
            catch (Exception ex)
655
            {
656
                logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
657
            }
658
            finally
659
            {
660
                BaseDB.close(); BaseDB = null;
661
            }
662
        }
649
        //        dtStart = CommonMotions.cnvDate(objList[0]);
650
        //        dtEnd = CommonMotions.cnvDate(objList[2]);
651
        //    }
652
        //    catch (Exception ex)
653
        //    {
654
        //        logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
655
        //    }
656
        //    finally
657
        //    {
658
        //        BaseDB.close(); BaseDB = null;
659
        //    }
660
        //}
663 661
        #endregion
664 662

  
665 663
        #region ?H??????????????o???\??????
......
1330 1328
        /// ?S???????w?????H???J?n??????????
1331 1329
        /// </summary>
1332 1330
        /// <returns></returns>
1333
        private DateTime GetConstructionDate(int PersonCode, bool bStart = true)
1334
        {
1335
            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
1336
            try
1337
            {
1338
                // ????????O?C?????[?U?[
1339
                if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
1331
        //private DateTime GetConstructionDate(int PersonCode, bool bStart = true)
1332
        //{
1333
        //    IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
1334
        //    try
1335
        //    {
1336
        //        // ????????O?C?????[?U?[
1337
        //        if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
1340 1338

  
1341
                // ?J?n????
1342
                StringBuilder strSQL = new StringBuilder();
1343
                strSQL.Append("SELECT A.CONSTRUCTIONPERSONCODE, MIN(B.CONSTRUCTIONSTART) FROM CONSTRUCTIONBASEINFO A, CONSTRUCTIONBUDGET B");
1344
                // ?I???w???I????MAX???X
1345
                if (!bStart) strSQL.Replace("MIN(B.CONSTRUCTIONSTART)", "MAX(B.CONSTRUCTIONEND)");
1339
        //        // ?J?n????
1340
        //        StringBuilder strSQL = new StringBuilder();
1341
        //        strSQL.Append("SELECT A.CONSTRUCTIONPERSONCODE, MIN(B.CONSTRUCTIONSTART) FROM CONSTRUCTIONBASEINFO A, CONSTRUCTIONBUDGET B");
1342
        //        // ?I???w???I????MAX???X
1343
        //        if (!bStart) strSQL.Replace("MIN(B.CONSTRUCTIONSTART)", "MAX(B.CONSTRUCTIONEND)");
1346 1344

  
1347
                strSQL.AppendFormat(" WHERE A.CONSTRUCTIONPERSONCODE = {0}", PersonCode);
1348
                strSQL.AppendFormat("  AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
1349
                strSQL.Append(" AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE GROUP BY A.CONSTRUCTIONPERSONCODE");
1350
                ArrayList ArrayList = new ArrayList();
1351
                if (!BaseDB.ExecuteReader(strSQL.ToString(), ref ArrayList)) return DateTime.MinValue;
1352
                if (ArrayList.Count == 0) return DateTime.MinValue;
1345
        //        strSQL.AppendFormat(" WHERE A.CONSTRUCTIONPERSONCODE = {0}", PersonCode);
1346
        //        strSQL.AppendFormat("  AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
1347
        //        strSQL.Append(" AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE GROUP BY A.CONSTRUCTIONPERSONCODE");
1348
        //        ArrayList ArrayList = new ArrayList();
1349
        //        if (!BaseDB.ExecuteReader(strSQL.ToString(), ref ArrayList)) return DateTime.MinValue;
1350
        //        if (ArrayList.Count == 0) return DateTime.MinValue;
1353 1351

  
1354
                object[] objRec = (object[])ArrayList[0];
1352
        //        object[] objRec = (object[])ArrayList[0];
1355 1353

  
1356
                return CommonMotions.cnvDate(objRec[1]);
1357
            }
1358
            catch (Exception ex)
1359
            {
1360
                logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
1361
                return DateTime.MinValue;
1362
            }
1363
            finally
1364
            {
1365
                BaseDB.close(); BaseDB = null;
1366
            }
1367
        }
1354
        //        return CommonMotions.cnvDate(objRec[1]);
1355
        //    }
1356
        //    catch (Exception ex)
1357
        //    {
1358
        //        logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
1359
        //        return DateTime.MinValue;
1360
        //    }
1361
        //    finally
1362
        //    {
1363
        //        BaseDB.close(); BaseDB = null;
1364
        //    }
1365
        //}
1368 1366
        #endregion
1369 1367

  
1370 1368
        #region ???J?n?O?w?b?_?[?N???A
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSerarch/FrmConstrSerarchAux.cs
151 151
                strSQL.Append(" Left Join personinchargemaster AS PersonD ON PersonD.PersonCode = Base.SalesPersonCode");
152 152
                
153 153
                strSQL.AppendFormat(" WHERE DATE(Base.EstimatesSubmittedDate) <> STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
154
                if (m_DispPeriod) strSQL.AppendFormat(" And Base.ConstructionPeriod = {0}", numUDConstPro.Value);
154
                if (m_DispPeriod)
155
                {
156
                    if (CommonMotions.BasePeriodYear())
157
                        strSQL.AppendFormat(" And Base.ConstructionPeriod = {0}", numUDConstPro.Value);
158
                    else
159
                        strSQL.AppendFormat(" And Base.ConstructionYear = {0}", numUDConstPro.Value);
160
                }
155 161

  
156 162
                if (CommonMotions.LoginUserData.PersonCode != CommonDefine.AdminCode)
157 163
                {
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs
354 354
                string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
355 355

  
356 356
                strSQL.Append("SELECT DISTINCT A.ConstructionCode");
357
                strSQL.Append(", A.ConstructionPeriod");
357

  
358
                if (CommonMotions.BasePeriodYear())
359
                    strSQL.Append(", A.ConstructionPeriod");
360
                else
361
                    strSQL.Append(", A.ConstructionYear");
362

  
358 363
                strSQL.Append(", B.DetailString");
359 364
                strSQL.Append(", A.SalesPersonCode");
360 365
                strSQL.Append(", A.ConstructionPersonCode");
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssListAuxiliary.cs
32 32
    partial class FrmDepExpenssList
33 33
    {
34 34
        #region ??
35
        private const string StaticSQL1 = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DetailString, A.SalesPersonCode, A.ConstructionPersonCode, A.ConstructionStatusFlg ";
36
        private const string StaticSQL2 = "From ConstructionBaseInfo A, ConstructionBaseInfoDetail B";
35
        //private const string StaticSQL1 = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DetailString, A.SalesPersonCode, A.ConstructionPersonCode, A.ConstructionStatusFlg ";
36
        //private const string StaticSQL2 = "From ConstructionBaseInfo A, ConstructionBaseInfoDetail B";
37 37
        #endregion
38 38

  
39 39
        #region ???
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostAux.cs
804 804
        /// ?S???????w?????H???J?n??????????
805 805
        /// </summary>
806 806
        /// <returns></returns>
807
        private DateTime GetConstructionDate(int PersonCode, bool bStart = true)
808
        {
809
            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
810
            try
811
            {
812
                // ????????O?C?????[?U?[
813
                if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
807
        //private DateTime GetConstructionDate(int PersonCode, bool bStart = true)
808
        //{
809
        //    IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
810
        //    try
811
        //    {
812
        //        // ????????O?C?????[?U?[
813
        //        if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
814 814

  
815
                // ?J?n????
816
                StringBuilder strSQL = new StringBuilder();
817
                strSQL.Append("SELECT A.CONSTRUCTIONPERSONCODE, MIN(B.CONSTRUCTIONSTART) FROM CONSTRUCTIONBASEINFO A, CONSTRUCTIONBUDGET B");
818
                // ?I???w???I????MAX???X
819
                if (!bStart) strSQL.Replace("MIN(B.CONSTRUCTIONSTART)", "MAX(B.CONSTRUCTIONEND)");
815
        //        // ?J?n????
816
        //        StringBuilder strSQL = new StringBuilder();
817
        //        strSQL.Append("SELECT A.CONSTRUCTIONPERSONCODE, MIN(B.CONSTRUCTIONSTART) FROM CONSTRUCTIONBASEINFO A, CONSTRUCTIONBUDGET B");
818
        //        // ?I???w???I????MAX???X
819
        //        if (!bStart) strSQL.Replace("MIN(B.CONSTRUCTIONSTART)", "MAX(B.CONSTRUCTIONEND)");
820 820

  
821
                strSQL.AppendFormat(" WHERE A.CONSTRUCTIONPERSONCODE = {0}", PersonCode);
822
                strSQL.AppendFormat("  AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
823
                strSQL.Append(" AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE GROUP BY A.CONSTRUCTIONPERSONCODE");
824
                ArrayList ArrayList = new ArrayList();
825
                if (!BaseDB.ExecuteReader(strSQL.ToString(), ref ArrayList)) return DateTime.MinValue;
826
                if (ArrayList.Count == 0) return DateTime.MinValue;
821
        //        strSQL.AppendFormat(" WHERE A.CONSTRUCTIONPERSONCODE = {0}", PersonCode);
822
        //        strSQL.AppendFormat("  AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
823
        //        strSQL.Append(" AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE GROUP BY A.CONSTRUCTIONPERSONCODE");
824
        //        ArrayList ArrayList = new ArrayList();
825
        //        if (!BaseDB.ExecuteReader(strSQL.ToString(), ref ArrayList)) return DateTime.MinValue;
826
        //        if (ArrayList.Count == 0) return DateTime.MinValue;
827 827

  
828
                object[] objRec = (object[])ArrayList[0];
828
        //        object[] objRec = (object[])ArrayList[0];
829 829

  
830
                return CommonMotions.cnvDate(objRec[1]);
831
            }
832
            catch (Exception ex)
833
            {
834
                logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
835
                return DateTime.MinValue;
836
            }
837
            finally
838
            {
839
                BaseDB.close(); BaseDB = null;
840
            }
841
        }
830
        //        return CommonMotions.cnvDate(objRec[1]);
831
        //    }
832
        //    catch (Exception ex)
833
        //    {
834
        //        logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
835
        //        return DateTime.MinValue;
836
        //    }
837
        //    finally
838
        //    {
839
        //        BaseDB.close(); BaseDB = null;
840
        //    }
841
        //}
842 842
        #endregion
843 843

  
844 844
        #region ?????R???{?{?b?N?X???Z?b?g????
......
897 897
        /// ?????R???{?{?b?N?X?f?[?^???r?p?k??
898 898
        /// </summary>
899 899
        /// <param name="strSQL"></param>
900
        public static void CreateDepCombBoxSQL(ref StringBuilder strSQL, int nTargetCount, bool bInput = false)
901
        {
902
            try
903
            {
904
                // ??????f?[?^????????????
905
                bool bNowSeason = CommonMotions.CheckNowSeason(nTargetCount);
900
        //public static void CreateDepCombBoxSQL(ref StringBuilder strSQL, int nTargetCount, bool bInput = false)
901
        //{
902
        //    try
903
        //    {
904
        //        // ??????f?[?^????????????
905
        //        bool bNowSeason = CommonMotions.CheckNowSeason(nTargetCount);
906 906

  
907
                strSQL.Append("SELECT");
908
                strSQL.Append(" A.DEPARTMENTCODE");
909
                strSQL.Append(", A.DEPARTMENTSTRING");
910
                strSQL.Append(", A.DISPLAYORDER");
911
                strSQL.Append(", COUNT(*)");
912
                strSQL.Append(" FROM");
913
                if (bNowSeason)
914
                {
915
                    // ??????v???C?}???e?[?u????????}?X?^
916
                    strSQL.Append(" DEPARTMENTMASTER A");
917
                }
918
                else
919
                {   // ?????f?[?^??H????????????
920
                    strSQL.Append(" (");
921
                    strSQL.Append("Select");
922
                    strSQL.Append(" A1.SalesDepCode As DEPARTMENTCODE");
923
                    strSQL.Append(", B1.DetailString As DEPARTMENTSTRING");
924
                    strSQL.Append(", ifnull(C1.DisplayOrder, 10) As DISPLAYORDER");
925
                    strSQL.Append(" From Constructionbaseinfo As A1");
926
                    strSQL.Append("  Inner Join constructionbaseinfodetail As B1");
927
                    strSQL.Append("        On B1.ConstructionCode = A1.ConstructionCode");
928
                    strSQL.AppendFormat("  And B1.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.SalesDepartmentName);
929
                    strSQL.Append("  Left Join departmentmaster As C1");
930
                    strSQL.Append("       On C1.DepartmentCode = A1.SalesDepCode");
931
                    strSQL.AppendFormat(" Where A1.ConstructionPeriod = {0}", nTargetCount);
932
                    strSQL.Append("       And A1.SalesDepCode != 0");
907
        //        strSQL.Append("SELECT");
908
        //        strSQL.Append(" A.DEPARTMENTCODE");
909
        //        strSQL.Append(", A.DEPARTMENTSTRING");
910
        //        strSQL.Append(", A.DISPLAYORDER");
911
        //        strSQL.Append(", COUNT(*)");
912
        //        strSQL.Append(" FROM");
913
        //        if (bNowSeason)
914
        //        {
915
        //            // ??????v???C?}???e?[?u????????}?X?^
916
        //            strSQL.Append(" DEPARTMENTMASTER A");
917
        //        }
918
        //        else
919
        //        {   // ?????f?[?^??H????????????
920
        //            strSQL.Append(" (");
921
        //            strSQL.Append("Select");
922
        //            strSQL.Append(" A1.SalesDepCode As DEPARTMENTCODE");
923
        //            strSQL.Append(", B1.DetailString As DEPARTMENTSTRING");
924
        //            strSQL.Append(", ifnull(C1.DisplayOrder, 10) As DISPLAYORDER");
925
        //            strSQL.Append(" From Constructionbaseinfo As A1");
926
        //            strSQL.Append("  Inner Join constructionbaseinfodetail As B1");
927
        //            strSQL.Append("        On B1.ConstructionCode = A1.ConstructionCode");
928
        //            strSQL.AppendFormat("  And B1.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.SalesDepartmentName);
929
        //            strSQL.Append("  Left Join departmentmaster As C1");
930
        //            strSQL.Append("       On C1.DepartmentCode = A1.SalesDepCode");
931
        //            strSQL.AppendFormat(" Where A1.ConstructionPeriod = {0}", nTargetCount);
932
        //            strSQL.Append("       And A1.SalesDepCode != 0");
933 933

  
934
                    strSQL.Append(" Union Select");
935
                    strSQL.Append(" A2.ConstrDepCode As DEPARTMENTCODE");
936
                    strSQL.Append(", B2.DetailString As DEPARTMENTSTRING");
937
                    strSQL.Append(", ifnull(C2.DisplayOrder, 10) As DISPLAYORDER");
938
                    strSQL.Append(" From Constructionbaseinfo As A2");
939
                    strSQL.Append(" Inner Join constructionbaseinfodetail As B2");
940
                    strSQL.Append("       On B2.ConstructionCode = A2.ConstructionCode");
941
                    strSQL.AppendFormat(" And B2.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstrDepartmentName);
942
                    strSQL.Append(" Left Join departmentmaster As C2");
943
                    strSQL.Append("      On C2.DepartmentCode = A2.ConstrDepCode");
944
                    strSQL.AppendFormat(" Where A2.ConstructionPeriod = {0}", nTargetCount);
945
                    strSQL.Append("       And A2.ConstrDepCode != 0");
934
        //            strSQL.Append(" Union Select");
935
        //            strSQL.Append(" A2.ConstrDepCode As DEPARTMENTCODE");
936
        //            strSQL.Append(", B2.DetailString As DEPARTMENTSTRING");
937
        //            strSQL.Append(", ifnull(C2.DisplayOrder, 10) As DISPLAYORDER");
938
        //            strSQL.Append(" From Constructionbaseinfo As A2");
939
        //            strSQL.Append(" Inner Join constructionbaseinfodetail As B2");
940
        //            strSQL.Append("       On B2.ConstructionCode = A2.ConstructionCode");
941
        //            strSQL.AppendFormat(" And B2.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstrDepartmentName);
942
        //            strSQL.Append(" Left Join departmentmaster As C2");
943
        //            strSQL.Append("      On C2.DepartmentCode = A2.ConstrDepCode");
944
        //            strSQL.AppendFormat(" Where A2.ConstructionPeriod = {0}", nTargetCount);
945
        //            strSQL.Append("       And A2.ConstrDepCode != 0");
946 946

  
947
                    strSQL.Append(" Union Select");
948
                    strSQL.Append(" A3.ConstrSubDepCode As DEPARTMENTCODE");
949
                    strSQL.Append(", B3.DetailString As DEPARTMENTSTRING");
950
                    strSQL.Append(", ifnull(C3.DisplayOrder, 10) As DISPLAYORDER");
951
                    strSQL.Append(" From Constructionbaseinfo As A3");
952
                    strSQL.Append(" Inner Join constructionbaseinfodetail As B3");
953
                    strSQL.Append("       On B3.ConstructionCode = A3.ConstructionCode");
954
                    strSQL.AppendFormat(" And B3.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstrSubDepartmentName);
955
                    strSQL.Append(" Left Join departmentmaster As C3");
956
                    strSQL.Append("      On C3.DepartmentCode = A3.ConstrSubDepCode");
957
                    strSQL.AppendFormat(" Where A3.ConstructionPeriod = {0}", nTargetCount);
958
                    strSQL.Append("       And A3.ConstrSubDepCode != 0");
947
        //            strSQL.Append(" Union Select");
948
        //            strSQL.Append(" A3.ConstrSubDepCode As DEPARTMENTCODE");
949
        //            strSQL.Append(", B3.DetailString As DEPARTMENTSTRING");
950
        //            strSQL.Append(", ifnull(C3.DisplayOrder, 10) As DISPLAYORDER");
951
        //            strSQL.Append(" From Constructionbaseinfo As A3");
952
        //            strSQL.Append(" Inner Join constructionbaseinfodetail As B3");
953
        //            strSQL.Append("       On B3.ConstructionCode = A3.ConstructionCode");
954
        //            strSQL.AppendFormat(" And B3.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstrSubDepartmentName);
955
        //            strSQL.Append(" Left Join departmentmaster As C3");
956
        //            strSQL.Append("      On C3.DepartmentCode = A3.ConstrSubDepCode");
957
        //            strSQL.AppendFormat(" Where A3.ConstructionPeriod = {0}", nTargetCount);
958
        //            strSQL.Append("       And A3.ConstrSubDepCode != 0");
959 959

  
960
                    strSQL.Append(" Union Select");
961
                    strSQL.Append(" A4.ConstrInstrDepCode As DEPARTMENTCODE");
962
                    strSQL.Append(", B4.DetailString As DEPARTMENTSTRING");
963
                    strSQL.Append(", ifnull(C4.DisplayOrder, 10) As DISPLAYORDER");
964
                    strSQL.Append(" From Constructionbaseinfo As A4");
965
                    strSQL.Append(" Inner Join constructionbaseinfodetail As B4");
966
                    strSQL.Append("       On B4.ConstructionCode = A4.ConstructionCode");
967
                    strSQL.AppendFormat(" And B4.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.InstrDepartmentName);
968
                    strSQL.Append(" Left Join departmentmaster As C4");
969
                    strSQL.Append("      On C4.DepartmentCode = A4.ConstrInstrDepCode");
970
                    strSQL.AppendFormat(" Where A4.ConstructionPeriod = {0}", nTargetCount);
971
                    strSQL.Append("       And A4.ConstrInstrDepCode != 0");
972
                    strSQL.Append(") As A");
973
                }
960
        //            strSQL.Append(" Union Select");
961
        //            strSQL.Append(" A4.ConstrInstrDepCode As DEPARTMENTCODE");
962
        //            strSQL.Append(", B4.DetailString As DEPARTMENTSTRING");
963
        //            strSQL.Append(", ifnull(C4.DisplayOrder, 10) As DISPLAYORDER");
964
        //            strSQL.Append(" From Constructionbaseinfo As A4");
965
        //            strSQL.Append(" Inner Join constructionbaseinfodetail As B4");
966
        //            strSQL.Append("       On B4.ConstructionCode = A4.ConstructionCode");
967
        //            strSQL.AppendFormat(" And B4.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.InstrDepartmentName);
968
        //            strSQL.Append(" Left Join departmentmaster As C4");
969
        //            strSQL.Append("      On C4.DepartmentCode = A4.ConstrInstrDepCode");
970
        //            strSQL.AppendFormat(" Where A4.ConstructionPeriod = {0}", nTargetCount);
971
        //            strSQL.Append("       And A4.ConstrInstrDepCode != 0");
972
        //            strSQL.Append(") As A");
973
        //        }
974 974

  
975
                if (bNowSeason)
976
                {   // ???????????
977
                    if (!bInput) strSQL.Append(", CONSTRUCTIONBASEINFO C");
978
                    strSQL.Append(" WHERE");
975
        //        if (bNowSeason)
976
        //        {   // ???????????
977
        //            if (!bInput) strSQL.Append(", CONSTRUCTIONBASEINFO C");
978
        //            strSQL.Append(" WHERE");
979 979

  
980
                    // ???????????????
981
                    strSQL.AppendFormat(" A.DELETEFLG = {0}", (int)CommonDefine.DataDeleteDef.Exists);
982
                    DateTime dtDefaultEnd = CommonMotions.GetOpeningEndDate(nTargetCount, false);
980
        //            // ???????????????
981
        //            strSQL.AppendFormat(" A.DELETEFLG = {0}", (int)CommonDefine.DataDeleteDef.Exists);
982
        //            DateTime dtDefaultEnd = CommonMotions.GetOpeningEndDate(nTargetCount, false);
983 983

  
984
                    strSQL.AppendFormat(" And DATE(A.StartDate) <= DATE('{0}')", dtDefaultEnd.ToShortDateString());
985
                    if (!bInput) strSQL.Append(" And C.ConstrDepCode = A.DepartmentCode");
984
        //            strSQL.AppendFormat(" And DATE(A.StartDate) <= DATE('{0}')", dtDefaultEnd.ToShortDateString());
985
        //            if (!bInput) strSQL.Append(" And C.ConstrDepCode = A.DepartmentCode");
986 986

  
987
                    // ?V?X?e????????O??????Q??}?X?^???f?[?^??
988
                    if (CommonMotions.LoginUserData.PersonCode != CommonDefine.AdminCode)
989
                    {
990
                        // ?Q??????}?X?^????????
991
                        strSQL.Append(" And A.DEPARTMENTCODE");
992
                        strSQL.Append(" IN (SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
993
                        strSQL.AppendFormat(" WHERE A1.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
994
                    }
995
                }
996
                else
997
                {   // ??????????
998
                    strSQL.Append(", CONSTRUCTIONBASEINFO C");
999
                    strSQL.Append(" WHERE");
987
        //            // ?V?X?e????????O??????Q??}?X?^???f?[?^??
988
        //            if (CommonMotions.LoginUserData.PersonCode != CommonDefine.AdminCode)
989
        //            {
990
        //                // ?Q??????}?X?^????????
991
        //                strSQL.Append(" And A.DEPARTMENTCODE");
992
        //                strSQL.Append(" IN (SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
993
        //                strSQL.AppendFormat(" WHERE A1.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
994
        //            }
995
        //        }
996
        //        else
997
        //        {   // ??????????
998
        //            strSQL.Append(", CONSTRUCTIONBASEINFO C");
999
        //            strSQL.Append(" WHERE");
1000 1000

  
1001
                    strSQL.AppendFormat(" (C.ConstructionPeriod = {0}", nTargetCount);
1002
                    strSQL.Append(" And A.DepartmentCode IN(C.SalesDepCode, C.ConstrDepCode, C.ConstrSubDepCode, C.ConstrInstrDepCode))");
1003
                }
1004
                strSQL.Append(" GROUP BY A.DEPARTMENTCODE, A.DEPARTMENTSTRING, A.DISPLAYORDER");
1005
                strSQL.Append(" ORDER BY A.DISPLAYORDER ASC");
1006
            }
1007
            catch (Exception ex)
1008
            {
1009
                logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
1010
            }
1011
        }
1001
        //            strSQL.AppendFormat(" (C.ConstructionPeriod = {0}", nTargetCount);
1002
        //            strSQL.Append(" And A.DepartmentCode IN(C.SalesDepCode, C.ConstrDepCode, C.ConstrSubDepCode, C.ConstrInstrDepCode))");
1003
        //        }
1004
        //        strSQL.Append(" GROUP BY A.DEPARTMENTCODE, A.DEPARTMENTSTRING, A.DISPLAYORDER");
1005
        //        strSQL.Append(" ORDER BY A.DISPLAYORDER ASC");
1006
        //    }
1007
        //    catch (Exception ex)
1008
        //    {
1009
        //        logger.ErrorFormat("?V?X?e???G???[?F{0}?F{1}", CommonMotions.GetMethodName(), ex.Message);
1010
        //    }
1011
        //}
1012 1012
        #endregion
1013 1013

  
1014 1014
        #region ???N?x?????Z?b?g
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/ConstrMATLList/FrmConstrMATLListAuxiliary.cs
326 326
                    }
327 327

  
328 328
                    strSQL.Append(" DISTINCT A.CONSTRUCTIONCODE,");
329
                    strSQL.Append(" A.CONSTRUCTIONPERIOD,");
329

  
330
                    if (CommonMotions.BasePeriodYear())
331
                        strSQL.Append(" A.CONSTRUCTIONPERIOD,");
332
                    else
333
                        strSQL.Append(" A.ConstructionYear,");
334

  
330 335
                    strSQL.Append(" B.DETAILSTRING,");
331 336
                    strSQL.Append(" A.CONSTRUCTIONSTATUSFLG,");
332 337
                    strSQL.Append(" C.PERSONCODE AS SALESMANCODE,");
......
492 497
                strSQL.Append("SELECT");
493 498

  
494 499
                strSQL.Append(" DISTINCT A.CONSTRUCTIONCODE,");
495
                strSQL.Append(" A.CONSTRUCTIONPERIOD, B.DETAILSTRING, A.CONSTRUCTIONSTATUSFLG,");
500

  
501
                if (CommonMotions.BasePeriodYear())
502
                    strSQL.Append(" A.CONSTRUCTIONPERIOD,");
503
                else
504
                    strSQL.Append(" A.ConstructionYear,");
505

  
506
                strSQL.Append(" B.DETAILSTRING, A.CONSTRUCTIONSTATUSFLG,");
496 507
                strSQL.Append(" C.PERSONCODE, C.PERSONNAME, C.DEPARTMENTCODE, C.DEPARTMENTNAME, C.MANDISPORDER, C.DEPDISPORDER,");
497 508
                strSQL.Append(" D.PERSONCODE, D.PERSONNAME, D.DEPARTMENTCODE, D.DEPARTMENTNAME, D.MANDISPORDER, D.DEPDISPORDER,");
498 509

  
trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudget.Designer.cs
30 30
        {
31 31
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
32 32
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
33
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
33
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
34 34
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
35 35
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
36 36
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
......
39 39
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
40 40
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
41 41
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
42
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
42 43
            this.btnEnd = new System.Windows.Forms.Button();
43 44
            this.lblCellTotal = new System.Windows.Forms.Label();
44 45
            this.dgvMain = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
46
            this.groupBox1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
47
            this.cmbDepartment = new System.Windows.Forms.ComboBox();
48
            this.label4 = new System.Windows.Forms.Label();
49
            this.label1 = new System.Windows.Forms.Label();
50
            this.numUDConstPro = new System.Windows.Forms.NumericUpDown();
51
            this.cmbConstructionPerson = new System.Windows.Forms.ComboBox();
52
            this.label2 = new System.Windows.Forms.Label();
53
            this.label3 = new System.Windows.Forms.Label();
54
            this.label5 = new System.Windows.Forms.Label();
45 55
            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
46 56
            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
47 57
            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
......
49 59
            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
50 60
            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
51 61
            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
62
            this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
52 63
            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
53 64
            this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
54
            this.groupBox1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
55
            this.cmbDepartment = new System.Windows.Forms.ComboBox();
56
            this.label4 = new System.Windows.Forms.Label();
57
            this.label1 = new System.Windows.Forms.Label();
58
            this.numUDConstPro = new System.Windows.Forms.NumericUpDown();
59
            this.cmbConstructionPerson = new System.Windows.Forms.ComboBox();
60
            this.label2 = new System.Windows.Forms.Label();
61
            this.label3 = new System.Windows.Forms.Label();
62
            this.label5 = new System.Windows.Forms.Label();
63 65
            ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit();
64 66
            this.groupBox1.SuspendLayout();
65 67
            ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit();
......
70 72
            this.btnEnd.BackColor = System.Drawing.Color.Blue;
71 73
            this.btnEnd.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
72 74
            this.btnEnd.ForeColor = System.Drawing.Color.White;
73
            this.btnEnd.Location = new System.Drawing.Point(1007, 550);
75
            this.btnEnd.Location = new System.Drawing.Point(1107, 550);
74 76
            this.btnEnd.Name = "btnEnd";
75 77
            this.btnEnd.Size = new System.Drawing.Size(120, 30);
76 78
            this.btnEnd.TabIndex = 3;
......
98 100
            this.dgvMain.AllowUserToResizeRows = false;
99 101
            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
100 102
            this.dgvMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
101
            this.dgvMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
102
            | System.Windows.Forms.AnchorStyles.Left) 
103
            | System.Windows.Forms.AnchorStyles.Right)));
104 103
            this.dgvMain.BackgroundColor = System.Drawing.Color.White;
105 104
            this.dgvMain.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
106 105
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
......
120 119
            this.Column4,
121 120
            this.Column5,
122 121
            this.Column6,
122
            this.Column10,
123 123
            this.Column7,
124 124
            this.Column8});
125
            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
126
            dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Window;
127
            dataGridViewCellStyle11.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold);
128
            dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.ControlText;
129
            dataGridViewCellStyle11.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
130
            dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
131
            dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
132
            this.dgvMain.DefaultCellStyle = dataGridViewCellStyle11;
125
            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
126
            dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Window;
127
            dataGridViewCellStyle12.Font = new System.Drawing.Font("MS 明朝", 12F, System.Drawing.FontStyle.Bold);
128
            dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText;
129
            dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
130
            dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
131
            dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
132
            this.dgvMain.DefaultCellStyle = dataGridViewCellStyle12;
133 133
            this.dgvMain.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
134 134
            this.dgvMain.EnableHeadersVisualStyles = false;
135 135
            this.dgvMain.Location = new System.Drawing.Point(7, 50);
......
139 139
            this.dgvMain.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
140 140
            this.dgvMain.RowTemplate.Height = 21;
141 141
            this.dgvMain.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
142
            this.dgvMain.Size = new System.Drawing.Size(1120, 496);
142
            this.dgvMain.Size = new System.Drawing.Size(1220, 496);
143 143
            this.dgvMain.TabIndex = 52;
144 144
            this.dgvMain.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvMain_CellDoubleClick);
145 145
            this.dgvMain.SelectionChanged += new System.EventHandler(this.dgvMain_SelectionChanged);
146 146
            this.dgvMain.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvMain_MouseUp);
147 147
            // 
148
            // Column1
149
            // 
150
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
151
            dataGridViewCellStyle3.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
152
            this.Column1.DefaultCellStyle = dataGridViewCellStyle3;
153
            this.Column1.Frozen = true;
154
            this.Column1.HeaderText = "№";
155
            this.Column1.Name = "Column1";
156
            this.Column1.ReadOnly = true;
157
            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
158
            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
159
            this.Column1.Width = 50;
160
            // 
161
            // Column9
162
            // 
163
            this.Column9.Frozen = true;
164
            this.Column9.HeaderText = "部署コード";
165
            this.Column9.Name = "Column9";
166
            this.Column9.ReadOnly = true;
167
            this.Column9.Visible = false;
168
            // 
169
            // Column2
170
            // 
171
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
172
            dataGridViewCellStyle4.Font = new System.Drawing.Font("MS P明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
173
            this.Column2.DefaultCellStyle = dataGridViewCellStyle4;
174
            this.Column2.Frozen = true;
175
            this.Column2.HeaderText = "工事部署";
176
            this.Column2.Name = "Column2";
177
            this.Column2.ReadOnly = true;
178
            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
179
            // 
180
            // Column3
181
            // 
182
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
183
            dataGridViewCellStyle5.Font = new System.Drawing.Font("MS P明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
184
            this.Column3.DefaultCellStyle = dataGridViewCellStyle5;
185
            this.Column3.Frozen = true;
186
            this.Column3.HeaderText = "工事担当";
187
            this.Column3.Name = "Column3";
188
            this.Column3.ReadOnly = true;
189
            this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
190
            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
191
            // 
192
            // Column4
193
            // 
194
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
195
            this.Column4.DefaultCellStyle = dataGridViewCellStyle6;
196
            this.Column4.Frozen = true;
197
            this.Column4.HeaderText = "工事コード";
198
            this.Column4.Name = "Column4";
199
            this.Column4.ReadOnly = true;
200
            this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
201
            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
202
            this.Column4.Visible = false;
203
            this.Column4.Width = 5;
204
            // 
205
            // Column5
206
            // 
207
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
208
            dataGridViewCellStyle7.Font = new System.Drawing.Font("MS P明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
209
            this.Column5.DefaultCellStyle = dataGridViewCellStyle7;
210
            this.Column5.Frozen = true;
211
            this.Column5.HeaderText = "工 事 名 称";
212
            this.Column5.Name = "Column5";
213
            this.Column5.ReadOnly = true;
214
            this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
215
            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
216
            this.Column5.Width = 230;
217
            // 
218
            // Column6
219
            // 
220
            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
221
            dataGridViewCellStyle8.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
222
            this.Column6.DefaultCellStyle = dataGridViewCellStyle8;
223
            this.Column6.Frozen = true;
224
            this.Column6.HeaderText = "受注日";
225
            this.Column6.Name = "Column6";
226
            this.Column6.ReadOnly = true;
227
            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
228
            // 
229
            // Column7
230
            // 
231
            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
232
            dataGridViewCellStyle9.Font = new System.Drawing.Font("MS 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
233
            this.Column7.DefaultCellStyle = dataGridViewCellStyle9;
234
            this.Column7.Frozen = true;
235
            this.Column7.HeaderText = "状 態";
236
            this.Column7.Name = "Column7";
237
            this.Column7.ReadOnly = true;
238
            this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
239
            // 
240
            // Column8
241
            // 
242
            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
243
            dataGridViewCellStyle10.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
244
            this.Column8.DefaultCellStyle = dataGridViewCellStyle10;
245
            this.Column8.Frozen = true;
246
            this.Column8.HeaderText = "受注金額";
247
            this.Column8.Name = "Column8";
248
            this.Column8.ReadOnly = true;
249
            this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
250
            this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
251
            this.Column8.Width = 120;
252
            // 
253 148
            // groupBox1
254 149
            // 
255 150
            this.groupBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
......
264 159
            this.groupBox1.Controls.Add(this.label3);
265 160
            this.groupBox1.Controls.Add(this.label5);
266 161
            this.groupBox1.ForeColor = System.Drawing.Color.White;
267
            this.groupBox1.Location = new System.Drawing.Point(7, 5);
162
            this.groupBox1.Location = new System.Drawing.Point(57, 5);
268 163
            this.groupBox1.Name = "groupBox1";
269 164
            this.groupBox1.Size = new System.Drawing.Size(1120, 41);
270 165
            this.groupBox1.TabIndex = 51;
......
366 261
            this.label5.Text = "第";
367 262
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
368 263
            // 
264
            // Column1
265
            // 
266
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
267
            dataGridViewCellStyle3.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
268
            this.Column1.DefaultCellStyle = dataGridViewCellStyle3;
269
            this.Column1.Frozen = true;
270
            this.Column1.HeaderText = "№";
271
            this.Column1.Name = "Column1";
272
            this.Column1.ReadOnly = true;
273
            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
274
            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
275
            this.Column1.Width = 50;
276
            // 
277
            // Column9
278
            // 
279
            this.Column9.Frozen = true;
280
            this.Column9.HeaderText = "部署コード";
281
            this.Column9.Name = "Column9";
282
            this.Column9.ReadOnly = true;
283
            this.Column9.Visible = false;
284
            // 
285
            // Column2
286
            // 
287
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
288
            dataGridViewCellStyle4.Font = new System.Drawing.Font("MS P明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
289
            this.Column2.DefaultCellStyle = dataGridViewCellStyle4;
290
            this.Column2.Frozen = true;
291
            this.Column2.HeaderText = "工事部署";
292
            this.Column2.Name = "Column2";
293
            this.Column2.ReadOnly = true;
294
            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
295
            // 
296
            // Column3
297
            // 
298
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
299
            dataGridViewCellStyle5.Font = new System.Drawing.Font("MS P明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
300
            this.Column3.DefaultCellStyle = dataGridViewCellStyle5;
301
            this.Column3.Frozen = true;
302
            this.Column3.HeaderText = "工事担当";
303
            this.Column3.Name = "Column3";
304
            this.Column3.ReadOnly = true;
305
            this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
306
            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
307
            // 
308
            // Column4
309
            // 
310
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
311
            this.Column4.DefaultCellStyle = dataGridViewCellStyle6;
312
            this.Column4.Frozen = true;
313
            this.Column4.HeaderText = "工事コード";
314
            this.Column4.Name = "Column4";
315
            this.Column4.ReadOnly = true;
316
            this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
317
            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
318
            this.Column4.Visible = false;
319
            this.Column4.Width = 5;
320
            // 
321
            // Column5
322
            // 
323
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
324
            dataGridViewCellStyle7.Font = new System.Drawing.Font("MS P明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
325
            this.Column5.DefaultCellStyle = dataGridViewCellStyle7;
326
            this.Column5.Frozen = true;
327
            this.Column5.HeaderText = "工 事 名 称";
328
            this.Column5.Name = "Column5";
329
            this.Column5.ReadOnly = true;
330
            this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
331
            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
332
            this.Column5.Width = 230;
333
            // 
334
            // Column6
335
            // 
336
            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
337
            dataGridViewCellStyle8.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
338
            this.Column6.DefaultCellStyle = dataGridViewCellStyle8;
... 差分の行数が表示可能な上限を超えました。超過分は表示しません。

他の形式にエクスポート: Unified diff