Index: trunk/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs	(revision 6)
@@ -171,18 +171,18 @@
         /// </summary>
         public static int s_MsgBoardSystemCode = 99999998;
         public static string s_MsgBoardSystemNameFormat = "{0}からの連絡";
-        
+
         /// <summary>
         /// メッセージ全員対象
         /// </summary>
         public static string s_AllMembersString = "全　　員";
         public static int s_AllMembersCode = 99999999;
-        
+
         /// <summary>
         /// 社長室コード（部署コード）
         /// </summary>
         public static int s_PresidentsOffice = 7;
-        
+
         /// <summary>
         /// 総務部コード（部署コード）
         /// </summary>
@@ -1107,6 +1107,12 @@
             /// </summary>
             Labor,
         }
+        /// <summary>
+        /// 協力業者支払区分
+        /// </summary>
+        public static List<KeyValuePair<int, string>> s_SubContractorKind = new List<KeyValuePair<int, string>>(){
+                                                                            new KeyValuePair<int,string>(0,"通　常　業　者"),
+                                                                            new KeyValuePair<int,string>(1,"手　間　業　者")};
         #endregion
 
         #region 工事詳細台帳：集計フラグ
@@ -1126,5 +1132,74 @@
         }
         #endregion
 
+        #region 15期以前の経費
+        public static List<KeyValuePair<string, double>> BeforeExpenses = new List<KeyValuePair<string, double>>{
+                                                                                new KeyValuePair<string, double>("会社経費", 8.0),
+                                                                                new KeyValuePair<string, double>("営業経費", 5.0),
+                                                                                new KeyValuePair<string, double>("各部署経費", 7.0)};
+
+        ///// <summary>
+        ///// 各所属部経費（7％）
+        ///// </summary>
+        //public static const double PartExpenses = 7.0;
+        ///// <summary>
+        ///// 事務所経費（8％）
+        ///// </summary>
+        //public static const double OfficeExpenes = 8.0;
+        ///// <summary>
+        ///// 営業経費（5％）
+        ///// </summary>
+        //public static const double SaleseExpenes = 5.0;
+        #endregion
+
+        #region 担当者選択区分
+        /// <summary>
+        /// 担当者選択区分
+        /// </summary>
+        public enum PersonSelectFlg
+        {
+            /// <summary>
+            /// 無
+            /// </summary>
+            None = 0,
+            /// <summary>
+            /// 工事担当者
+            /// </summary>
+            Creator,
+            /// <summary>
+            /// 副担当者
+            /// </summary>
+            Assistant,
+            /// <summary>
+            /// 指導員
+            /// </summary>
+            Instructor,
+        }
+        #endregion
+
+        #region 工事詳細台帳データ作成工事種別
+        /// <summary>
+        /// 工事詳細台帳データ作成工事種別
+        /// </summary>
+        public static int[] s_CreateLedgerData = new int[] { 6 };
+        #endregion
+
+        #region 工事基本情報：紐付データフラグ
+        public enum BaseInfoTyingFlg
+        {
+            /// <summary>
+            /// 0:独立データ
+            /// </summary>
+            Standard = 0,
+            /// <summary>
+            /// 1:親データ
+            /// </summary>
+            Pearent,
+            /// <summary>
+            /// 2:紐付きデータ
+            /// </summary>
+            Tying,
+        }
+        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs	(revision 6)
@@ -196,8 +196,7 @@
             }
             finally
             {
-                ocDB.close();
-                ocDB = null;
+                ocDB.close(); ocDB = null;
             }
         }
         #endregion
@@ -1672,7 +1671,7 @@
 
         #endregion
 
-        #region 特殊操作
+        #region 工事管理システム専用
         #region 営業期数より工事年を取得する
         /// <summary>
         /// 営業期数より工事年を取得する
@@ -2114,8 +2113,39 @@
             return (int)((double)timespan.Days / 30.436875);
         }
         #endregion
+
+        #region 工事種別より工事詳細台帳が作成ＯＫかどうかをチェックする
+        /// <summary>
+        /// 工事種別より工事詳細台帳が作成ＯＫかどうかをチェックする
+        /// </summary>
+        /// <param name="ConstructionType"></param>
+        /// <returns></returns>
+        public static bool CheckCreateLedgerData(int ConstructionStatusFlg, int ConstructionType)
+        {
+            try
+            {
+                bool ExcuteFlg = false;
+                int[] Status = new int[] { CommonDefine.ProjectsStatus.First(x => x.Value.Equals("営繕部継続工事")).Key };
+                for (int i = 0; i < CommonDefine.s_CreateLedgerData.Length; i++)
+                {
+                    if (ConstructionStatusFlg == Status[i] && ConstructionType == CommonDefine.s_CreateLedgerData[i])
+                    {
+                        ExcuteFlg = true;
+                        break;
+                    }
+                }
+                return ExcuteFlg;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
         #endregion
 
+        #endregion
+
         #region Excel向け操作メソッド
         #region オブジェクト開放
         /// <summary>
Index: trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsApprovalPermission.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsApprovalPermission.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsApprovalPermission.cs	(revision 6)
@@ -98,6 +98,10 @@
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
                 return false;
             }
+            finally
+            {
+                ApprDB.close(); ApprDB = null;
+            }
         }
         #endregion
 
@@ -185,6 +189,7 @@
             try
             {
                 bool bApproval = false;
+                // 申請部署の取得
                 string strSQL = cbiDB.CreatePrimarykeyString(ConstructionCode);
                 ConstructionBaseInfo cbiData = new ConstructionBaseInfo();
                 if (!cbiDB.SelectAction(strSQL, ref cbiData)) return false;
@@ -363,10 +368,23 @@
         public static int GetFromConstructionAndApprovalTheDepartment(int ConstructionCode, int ApprovalCode)
         {
             IOMPersonInCharge picDB = new IOMPersonInCharge();
+            IOProcessApproval ApprovalDB = new IOProcessApproval();
             try
             {
                 // 管理担当者コードを取得する
-                int CurrentPersonCode = GetFromConstructionAndApprovalThePerson(ConstructionCode, ApprovalCode);
+                string strSQL = ApprovalDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode);
+                strSQL += " AND SEQNO = 1";
+                ProcessApproval ApprovalRec = new ProcessApproval();
+                int CurrentPersonCode = 0;
+                if (ApprovalDB.SelectAction(strSQL, ref ApprovalRec))
+                {   // 申請データがある時はそのデータ
+                    CurrentPersonCode = ApprovalRec.PersonCode;
+                }
+                else
+                {
+                    // データが無い場合（申請時）はログインユーザー
+                    CurrentPersonCode = CommonMotions.LoginUserData.PersonCode;
+                }
 
                 // 担当者部署取得
                 PersonInChargeMaster PersonRec = new PersonInChargeMaster();
@@ -382,6 +400,7 @@
             }
             finally
             {
+                ApprovalDB.close(); ApprovalDB = null;
                 picDB.close(); picDB = null;
             }
         }
@@ -421,6 +440,10 @@
                 {
                     CurrentPersonCode = baseRec.ConstructionPersonCode;
                 }
+                else if (AppString.Equals("継続案件承認"))
+                {
+                    CurrentPersonCode = baseRec.ConstructionPersonCode;
+                }
                 else if (AppString.Equals("請求書承認"))
                 {
                     CurrentPersonCode = baseRec.ConstructionPersonCode;
Index: trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsCreateLedgerData.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsCreateLedgerData.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsCreateLedgerData.cs	(revision 6)
@@ -160,6 +160,8 @@
             finally
             {
                 CostDB.close(); CostDB = null;
+                LedgerDB.close(); LedgerDB = null;
+                LedgerDetailDB.close(); LedgerDetailDB = null;
                 LedgerExcuteDB.close(); LedgerExcuteDB = null;
             }
         }
@@ -325,13 +327,13 @@
         }
         #endregion
 
-        #region 工事詳細台帳データを作成する
+        #region 工事詳細台帳データを新規作成する
         /// <summary>
-        /// 工事予算書作成時等で工事詳細台帳データを作成する
+        /// 工事詳細台帳データを新規作成する
         /// </summary>
         /// <param name="ConstructionCode"></param>
         /// <returns></returns>
-        public static bool CreateLedgerData(int ConstructionCode)
+        public static bool MakingLedgerData(int ConstructionCode)
         {
             IOConstructionLedger LedgerDB = new IOConstructionLedger();
             FrmConstructionLedger frm = new FrmConstructionLedger();
@@ -350,15 +352,22 @@
                 frm.ConstructionCode = ConstructionCode;
 
                 // 見えない画面を出す
+                frm.WindowState = FormWindowState.Minimized;
                 frm.Show();
                 // フォーム非表示
                 frm.Visible = false;
 
                 // データ作成処理
-                if (!frm.CreateLedgerData) return false;
+                if (!frm.SaveLedgerData)
+                {
+                    frm.Close();                    // 画面を閉じる
+                    return false;
+                }
 
                 // 画面を閉じる
                 frm.Close();
+
+                return true;
             }
             catch (System.Exception ex)
             {
@@ -370,8 +379,77 @@
                 frm.Dispose(); frm = null;
                 LedgerDB.close(); LedgerDB = null;
             }
-            return true;
         }
         #endregion
+
+        #region 工事詳細台帳データに増減データを追加する
+        /// <summary>
+        /// 工事詳細台帳データに増減データを追加する
+        /// </summary>
+        /// <param name="ConstructionCode"></param>
+        /// <returns></returns>
+        public static bool AddingLedgerData(int ConstructionCode)
+        {
+            IOConstructionLink LinkDB = new IOConstructionLink();
+            IOConstructionLedger LedgerDB = new IOConstructionLedger();
+            FrmConstructionLedger frm = new FrmConstructionLedger();
+            try
+            {
+
+                // 工事番号が存在しないデータは更新しない
+                if (ConstructionCode == 0) return false;
+
+                // 親の工事を探す
+                string strParent = string.Format(" WHERE FluctuationCode = {0}", ConstructionCode);
+                ConstructionLink LinkRec = new ConstructionLink();
+                if (!LinkDB.SelectAction(strParent, ref LinkRec)) return false;
+
+                // 工事詳細台帳データが無い場合は処理しない
+                string strExists = LedgerDB.CreatePrimarykeyString(LinkRec.ConstructionCode);
+                ConstructionLedger LedgerList = new ConstructionLedger();
+                if (!LedgerDB.SelectAction(strExists, ref LedgerList)) return false;
+
+                // 工事コードのセット
+                frm.ConstructionCode = LinkRec.ConstructionCode;
+
+                // 見えない画面を出す
+                frm.WindowState = FormWindowState.Minimized;
+                frm.Show();
+                // フォーム非表示
+                frm.Visible = false;
+                
+                // データを追加する
+                frm.AddingConstrCode = ConstructionCode;
+                if (!frm.AddDataLedger)
+                {
+                    frm.Close();                    // 画面を閉じる
+                    return false;
+                }
+
+                // データ作成処理
+                if (!frm.SaveLedgerData)
+                {
+                    frm.Close();                    // 画面を閉じる
+                    return false;
+                }
+
+                // 画面を閉じる
+                frm.Close();
+
+                return true;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                frm.Dispose(); frm = null;
+                LedgerDB.close(); LedgerDB = null;
+                LinkDB.close(); LinkDB = null;
+            }
+        }
+        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs	(revision 6)
@@ -133,7 +133,7 @@
                                                                                 {10, "注文書－印刷"},
                                                                                 {12, "工事詳細台帳－入力"},
                                                                                 {13, "交通費及び購入品等－入力"},
-                                                                                {14, "日報－一覧"},
+                                                                                {14, "工事日報－一覧"},
                                                                                 {15, "工事日報－入力"},
                                                                                 };
 
@@ -219,9 +219,9 @@
                                                                     Color.DarkOrange,
                                                                     Color.IndianRed,
                                                                     Color.Gray,
-                                                                    Color.SlateGray,
                                                                     Color.Chartreuse,
                                                                     Color.SpringGreen,
+                                                                    Color.SlateGray,
                                                                     Color.LightSeaGreen,
                                                                     Color.SteelBlue,
                                                                     Color.LawnGreen,
Index: trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsProcessExist.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsProcessExist.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsProcessExist.cs	(revision 6)
@@ -67,89 +67,142 @@
 
         #endregion
 
-        #region 実行可能プロセスの一覧を取得する
+        #region 紐付きの場合は親コードを返す
         /// <summary>
-        /// 実行可能プロセスの一覧を取得する
+        /// 紐付きの場合は親コードを返す
         /// </summary>
-        /// <param name="ConctructionCode"></param>
-        public static void GetProcessList(ref List<KeyValuePair<int,string>> ProcList, int OperationPrcess)
+        /// <param name="MyType"></param>
+        /// <param name="MyCode"></param>
+        /// <returns></returns>
+        public static int GetParentConstrCode(int MyCode)
         {
-            // 0:メニューへ戻る
-            int MenuProcNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
-            string MenuProcName = "メニューへ戻る";
-            ProcList.Add(new KeyValuePair<int, string>(MenuProcNo, MenuProcName)); 
-            
-            // 2:工事情報入力データの存在確認
-            if (ExistBaseInfoData())
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            IOConstructionLink LinkDB = new IOConstructionLink();
+            try
             {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+
+                string strBase = BaseDB.CreatePrimarykeyString(MyCode);
+                ConstructionBaseInfo BaseRec = new ConstructionBaseInfo();
+                if (!BaseDB.SelectAction(strBase, ref BaseRec)) return MyCode;
+
+                // 紐付きでない場合は工事コードを返す
+                if (BaseRec.TyingFlg != (int)CommonDefine.BaseInfoTyingFlg.Tying) return MyCode;
+
+                string strLink = string.Format(" WHERE FluctuationCode = {0}", MyCode);
+                ConstructionLink LinkRec = new ConstructionLink();
+                if (!LinkDB.SelectAction(strLink, ref LinkRec)) return MyCode;
+
+                return LinkRec.ConstructionCode;
             }
-            // 3:積算見積書入力データ存在確認
-            if (ExistEstimateData(OperationPrcess))
+            catch (Exception ex)
             {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return MyCode;
             }
-            // 4:積算見積書印刷データ存在確認
-            if (ExistEstimateDataPrint())
+            finally
             {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                BaseDB.close(); BaseDB = null;
+                LinkDB.close(); LinkDB = null;
             }
-            // 5:積算予算書入力データ存在確認
-            if (ExistEstimateBudget(OperationPrcess))
+        }
+        #endregion
+
+        #region 実行可能プロセスの一覧を取得する
+        /// <summary>
+        /// 実行可能プロセスの一覧を取得する
+        /// </summary>
+        /// <param name="ConctructionCode"></param>
+        public static void GetProcessList(ref List<KeyValuePair<int,string>> ProcList, int OperationPrcess)
+        {
+            try
             {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.EstimateBudget;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                // 0:メニューへ戻る
+                int MenuProcNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+                string MenuProcName = "メニューへ戻る";
+                ProcList.Add(new KeyValuePair<int, string>(MenuProcNo, MenuProcName));
+
+                // 2:工事情報入力データの存在確認
+                if (ExistBaseInfoData())
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                // 3:積算見積書入力データ存在確認
+                if (ExistEstimateData(OperationPrcess))
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                // 4:積算見積書印刷データ存在確認
+                if (ExistEstimateDataPrint())
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                // 5:積算予算書入力データ存在確認
+                if (ExistEstimateBudget(OperationPrcess))
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.EstimateBudget;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                // 6:工事予算書入力データ存在確認
+                if (ExistConstructionBudget())
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBudget;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                // 8:工事案件コピー機能データ存在確認
+                if (ExistConstructionDataCopy())
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                // 9:注文書入力データ存在確認
+                if (ExistPurchaseOrder())
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                //10:注文書印刷データ存在確認
+                if (ExistPurchasePrint())
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                // 12:工事詳細台帳
+                if (ExistConstructionLedger())
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedger;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                // 13:交通費及び購入品入力
+                if (ExistTAndPCosts())
+                {
+                    int ProcNo = (int)ClsExcute.ProcessExecuteNo.TAndPCosts;
+                    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                }
+                //// 15:日報一覧
+                //if (ExistDRConstruction())
+                //{
+                //    int ProcNo = (int)ClsExcute.ProcessExecuteNo.DRConstruction;
+                //    string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "").Replace("入力", "");
+                //    ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                //}
             }
-            // 6:工事予算書入力データ存在確認
-            if (ExistConstructionBudget())
+            catch (Exception ex)
             {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBudget;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-            // 8:工事案件コピー機能データ存在確認
-            if (ExistConstructionDataCopy())
-            {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
-            }
-            // 9:注文書入力データ存在確認
-            if (ExistPurchaseOrder())
-            {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
-            }
-            //10:注文書印刷データ存在確認
-            if (ExistPurchasePrint())
-            {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
-            }
-            // 12:工事詳細台帳
-            if (ExistConstructionLedger())
-            {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedger;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
-            }
-            // 13:交通費及び購入品入力
-            if (ExistTAndPCosts())
-            {
-                int ProcNo = (int)ClsExcute.ProcessExecuteNo.TAndPCosts;
-                string ProcName = ClsExcute.ProcessExecuteName[ProcNo].Replace("－", "");
-                ProcList.Add(new KeyValuePair<int, string>(ProcNo, ProcName));
-            }
-
         }
         #endregion
 
@@ -292,12 +345,19 @@
         /// <returns></returns>
         private static bool ExistConstructionBudget()
         {
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
             IOEstimateData EstimateDB = new IOEstimateData();
             IOProcessApproval ApprovalDB = new IOProcessApproval();
             try
             {
+                // 工事担当者のセット
+                string strSQL = BaseDB.CreatePrimarykeyString(m_ConstructionCode);
+                strSQL += " AND CONSTRUCTIONPERSONCODE != 0";
+                ConstructionBaseInfo BaseRec = new ConstructionBaseInfo();
+                if (!BaseDB.SelectAction(strSQL, ref BaseRec)) return false;
+
                 // 見積書データの存在チェック
-                string strSQL = EstimateDB.CreatePrimarykeyString(m_ConstructionCode);
+                strSQL = EstimateDB.CreatePrimarykeyString(m_ConstructionCode);
                 List<EstimateData> EstimateList = new List<EstimateData>();
                 if (!EstimateDB.SelectAction(strSQL, ref EstimateList)) return false;
 
@@ -318,6 +378,7 @@
             {
                 EstimateDB.close(); EstimateDB = null;
                 ApprovalDB.close(); ApprovalDB = null;
+                BaseDB.close(); BaseDB = null;
             }
         }
         #endregion
@@ -440,18 +501,25 @@
         /// <returns></returns>
         private static bool ExistConstructionLedger()
         {
+            IOConstructionLedger LedgerDB = new IOConstructionLedger();
             IOConstructionBudget BudgetDB = new IOConstructionBudget();
             IOProcessApproval ApprovalDB = new IOProcessApproval();
             try
             {
                 // 工事詳細台帳データの存在チェック
-                string strSQL = BudgetDB.CreatePrimarykeyString(m_ConstructionCode);
-                ConstructionBudget BudgetList = new ConstructionBudget();
-                if (!BudgetDB.SelectAction(strSQL, ref BudgetList)) return false;
+                string strSQL = LedgerDB.CreatePrimarykeyString(m_ConstructionCode);
+                ConstructionLedger LedgerRec = new ConstructionLedger();
+                if (LedgerDB.SelectAction(strSQL, ref LedgerRec)) return true;
 
+                // 工事予算書データの存在チェック
+                strSQL = BudgetDB.CreatePrimarykeyString(m_ConstructionCode);
+                ConstructionBudget BudgetRec = new ConstructionBudget();
+                if (!BudgetDB.SelectAction(strSQL, ref BudgetRec)) return false;
+
                 // 承認データの確認
                 strSQL += string.Format(" AND APPROVALCODE = {0} AND SEQNO = 1", (int)ClsExcute.ApprovalListNo.ConstructionBudgetApproval);
                 strSQL += string.Format("  AND APPROVALSTATUS = {0}", (int)CommonDefine.ApprovalStatus.Approval);
+
                 ProcessApproval ApprovalRec = new ProcessApproval();
                 if (!ApprovalDB.SelectAction(strSQL, ref ApprovalRec)) return false;
 
@@ -464,6 +532,7 @@
             }
             finally
             {
+                LedgerDB.close(); LedgerDB = null;
                 BudgetDB.close(); BudgetDB = null;
                 ApprovalDB.close(); ApprovalDB = null;
             }
@@ -499,5 +568,33 @@
         }
         #endregion
 
+        #region 15:日報入力存在確認
+        /// <summary>
+        /// 15:日報入力存在確認
+        /// </summary>
+        /// <returns></returns>
+        private static bool ExistDRConstruction()
+        {
+            IOConstructionLedger LedgerDB = new IOConstructionLedger();
+            try
+            {
+                // 工事詳細台帳データの存在チェック
+                string strSQL = LedgerDB.CreatePrimarykeyString(m_ConstructionCode);
+                ConstructionLedger LedgerList = new ConstructionLedger();
+                if (!LedgerDB.SelectAction(strSQL, ref LedgerList)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                LedgerDB.close(); LedgerDB = null;
+            }
+        }
+        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs	(revision 6)
@@ -424,7 +424,7 @@
                     if (ErrFlg)
                     {
                         TermRec = wrkCheck;
-                        sErrorMessage = wrkCheck.SendTitile + "／" + wrkCheck.SendMessage;
+                        sErrorMessage = wrkCheck.SendTitle + "／" + wrkCheck.SendMessage;
                         sBackColor = wrkCheck.BackColor;
                         sForeColor = wrkCheck.ForeColor;
 
@@ -494,7 +494,7 @@
                 WriteData.FromCode = CommonDefine.s_MsgBoardSystemCode;	                                    // 書込み者コード
                 WriteData.FromName = string.Format(CommonDefine.s_MsgBoardSystemNameFormat, "秘書");          // 書込み者名
 
-                WriteData.MessageTitile = CheckRec.SendTitile;                                              // 伝言タイトル
+                WriteData.MessageTitle = CheckRec.SendTitle;                                              // 伝言タイトル
 
                 // リンク情報
                 WriteData.LinkType = (int)CommonDefine.LinkType.ConstructionInfo;
@@ -558,14 +558,29 @@
                 int iCode2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("依頼受け中")).Key;
                 int iCode3 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("見積提出")).Key;
 
-                string strSQL = string.Format("UPDATE CONSTRUCTIONBASEINFO SET CONSTRUCTIONSTATUSFLG = {0}", iCode1);
+                // 対象データが存在するかを確認する
+                string strSQL = "SELECT COUNT(*) FROM CONSTRUCTIONBASEINFO WHERE TRUNC(ESTIMATESSUBMITTEDDATE) != TO_DATE('0001/01/01','YYYY/MM/DD')";
+                strSQL += string.Format(" AND TRUNC(ESTIMATESSUBMITTEDDATE + {0})", s_NonOrderDay);
+                strSQL += string.Format(" < TO_DATE('{0}','YYYY/MM/DD')", DateTime.Now.ToShortDateString());
+                strSQL += string.Format(" AND CONSTRUCTIONSTATUSFLG IN({0}, {1})", iCode2, iCode3);
+                strSQL += string.Format(" AND ESTIMATETYPE IN ({0}, {1})", (int)CommonDefine.BaseInfoEstimateType.Normal, (int)CommonDefine.BaseInfoEstimateType.GetBudget);
+                ArrayList arList = new ArrayList();
+                if (!BaseDB.ExecuteReader(strSQL, ref arList))
+                {
+                    logger.ErrorFormat("工事基本情報更新エラー　非受注案件移行処理失敗：{0}：{1}", CommonMotions.GetMethodName(), strSQL);
+                    return;
+                }
+                object[] wrkcount = (object[])arList[0];
+                if (Common.CommonMotions.cnvInt(wrkcount[0]) == 0) return;
+
+                // 対象データが存在すれば更新する
+                strSQL = string.Format("UPDATE CONSTRUCTIONBASEINFO SET CONSTRUCTIONSTATUSFLG = {0}", iCode1);
                 strSQL += " WHERE CONSTRUCTIONCODE IN";
-                strSQL += " (SELECT CONSTRUCTIONCODE FROM CONSTRUCTIONBASEINFO WHERE TRUNC(ESTIMATESSUBMITTEDDATE) != TO_DATE('001/01/01','YYYY/MM/DD')";
+                strSQL += " (SELECT CONSTRUCTIONCODE FROM CONSTRUCTIONBASEINFO WHERE TRUNC(ESTIMATESSUBMITTEDDATE) != TO_DATE('0001/01/01','YYYY/MM/DD')";
                 strSQL += string.Format(" AND TRUNC(ESTIMATESSUBMITTEDDATE + {0})", s_NonOrderDay);
                 strSQL += string.Format(" < TO_DATE('{0}','YYYY/MM/DD')", DateTime.Now.ToShortDateString());
                 strSQL += string.Format(" AND CONSTRUCTIONSTATUSFLG IN({0}, {1})", iCode2, iCode3);
                 strSQL += string.Format(" AND ESTIMATETYPE IN ({0}, {1}))", (int)CommonDefine.BaseInfoEstimateType.Normal, (int)CommonDefine.BaseInfoEstimateType.GetBudget);
-
                 if (!BaseDB.ExecuteNonQuery(strSQL))
                 {
                     logger.ErrorFormat("工事基本情報更新エラー　非受注案件移行処理失敗：{0}：{1}", CommonMotions.GetMethodName(), strSQL);
Index: trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsUpDate.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsUpDate.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Common/Process/ClsUpDate.cs	(revision 6)
@@ -19,6 +19,7 @@
         private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
         #endregion
 
+        #region ファイルのハッシュ値と更新日付を確認する
         /// <summary>
         /// ファイルのハッシュ値と更新日付を確認する
         /// </summary>
@@ -34,6 +35,8 @@
 
                 // デバック以外は使わない
                 //return true;
+                // 接続できなければ処理しない
+                if (!Directory.Exists(CommonDefine.s_UPDATE_FILE_PATH)) return true;
 
                 // コピー元(サーバー)ファイルリストを取得する
                 string[] files = Directory.GetFiles(CommonDefine.s_UPDATE_FILE_PATH);
@@ -106,5 +109,6 @@
                 return false;
             }
         }
+        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfo.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfo.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfo.cs	(revision 6)
@@ -31,9 +31,10 @@
         /// <summary>
         /// 工事基本情報フィールド並び
         /// </summary>
-        public enum ConstructionBaseInfoColumn
+        public enum TableColumn
         {
             CONSTRUCTION_CODE = 0,
+            TYINGFLG,
             CONSTRUCTION_YEAR,
             CONSTRUCTION_PERIOD,
             REQUESTED_DATE,
@@ -103,6 +104,7 @@
             string strcmd = "SELECT";
 
             strcmd += "  ConstructionCode";
+            strcmd += ", TyingFlg";
             strcmd += ", ConstructionYear";
             strcmd += ", ConstructionPeriod";
             strcmd += ", TO_CHAR(RequestedDate, 'YYYY/MM/DD')";
@@ -236,6 +238,7 @@
                     strcmd += " VALUES (";
 
                     strcmd += string.Format("  {0}", data.ConstructionCode);
+                    strcmd += string.Format(", {0}", data.TyingFlg);
                     strcmd += string.Format(", {0}", data.ConstructionYear);
                     strcmd += string.Format(", {0}", data.ConstructionPeriod);
 
@@ -345,6 +348,7 @@
                 strcmd += " SET";
 
                 strcmd += string.Format(" ConstructionCode = {0}", data.ConstructionCode);
+                strcmd += string.Format(", TyingFlg = {0}", data.TyingFlg);
                 strcmd += string.Format(", ConstructionYear = {0}", data.ConstructionYear);
                 strcmd += string.Format(", ConstructionPeriod = {0}", data.ConstructionPeriod);
 
@@ -451,64 +455,65 @@
             try
             {
                 // データ取得
-                wrk.ConstructionCode = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTION_CODE].ToString());
-                wrk.ConstructionYear = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTION_YEAR].ToString());
-                wrk.ConstructionPeriod = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTION_PERIOD].ToString());
+                wrk.ConstructionCode = int.Parse(objwrk[(int)TableColumn.CONSTRUCTION_CODE].ToString());
+                wrk.TyingFlg = int.Parse(objwrk[(int)TableColumn.TYINGFLG].ToString());
+                wrk.ConstructionYear = int.Parse(objwrk[(int)TableColumn.CONSTRUCTION_YEAR].ToString());
+                wrk.ConstructionPeriod = int.Parse(objwrk[(int)TableColumn.CONSTRUCTION_PERIOD].ToString());
 
-                wrk.RequestedDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.REQUESTED_DATE].ToString());
-                wrk.EstimatesSubmitDeadline = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.ESTIMATESSUBMITDEADLINE].ToString());
-                wrk.EstimatesSubmittedDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.ESTIMATESSUBMITTED_DATE].ToString());
-                wrk.ProvisionalOrderDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.PROVISIONALORDERDATE].ToString());
-                wrk.OrderDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.ORDER_DATE].ToString());
-                wrk.OrderStartingDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.ORDERSTARTINGDATE].ToString());
-                wrk.OrderCompletionDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.ORDERCOMPLETIONDATE].ToString());
-                wrk.PreparationStartDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.PREPARATIONSTARTDATE].ToString());
-                wrk.ConstructionStartingDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTIONSTARTINGDATE].ToString());
-                wrk.ConstructionCompletionDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTIONCOMPLETION_DATE].ToString());
-                wrk.NonOrderDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.NONORDERDATE].ToString());
+                wrk.RequestedDate = DateTime.Parse(objwrk[(int)TableColumn.REQUESTED_DATE].ToString());
+                wrk.EstimatesSubmitDeadline = DateTime.Parse(objwrk[(int)TableColumn.ESTIMATESSUBMITDEADLINE].ToString());
+                wrk.EstimatesSubmittedDate = DateTime.Parse(objwrk[(int)TableColumn.ESTIMATESSUBMITTED_DATE].ToString());
+                wrk.ProvisionalOrderDate = DateTime.Parse(objwrk[(int)TableColumn.PROVISIONALORDERDATE].ToString());
+                wrk.OrderDate = DateTime.Parse(objwrk[(int)TableColumn.ORDER_DATE].ToString());
+                wrk.OrderStartingDate = DateTime.Parse(objwrk[(int)TableColumn.ORDERSTARTINGDATE].ToString());
+                wrk.OrderCompletionDate = DateTime.Parse(objwrk[(int)TableColumn.ORDERCOMPLETIONDATE].ToString());
+                wrk.PreparationStartDate = DateTime.Parse(objwrk[(int)TableColumn.PREPARATIONSTARTDATE].ToString());
+                wrk.ConstructionStartingDate = DateTime.Parse(objwrk[(int)TableColumn.CONSTRUCTIONSTARTINGDATE].ToString());
+                wrk.ConstructionCompletionDate = DateTime.Parse(objwrk[(int)TableColumn.CONSTRUCTIONCOMPLETION_DATE].ToString());
+                wrk.NonOrderDate = DateTime.Parse(objwrk[(int)TableColumn.NONORDERDATE].ToString());
 
-                wrk.OrdersDecisionPrice = double.Parse(objwrk[(int)ConstructionBaseInfoColumn.ORDERS_DECISION_PRICE].ToString());
-                wrk.OrdersDecisionPriceInTax = double.Parse(objwrk[(int)ConstructionBaseInfoColumn.ORDERS_DECISION_PRICE_IN_TAX].ToString());
+                wrk.OrdersDecisionPrice = double.Parse(objwrk[(int)TableColumn.ORDERS_DECISION_PRICE].ToString());
+                wrk.OrdersDecisionPriceInTax = double.Parse(objwrk[(int)TableColumn.ORDERS_DECISION_PRICE_IN_TAX].ToString());
 
-                wrk.SalesPersonCode = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.SALES_PERSON_CODE].ToString());
-                wrk.ConstructionPersonCode = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRPERSONCODE].ToString());
-                wrk.ConstrSubPersonCode = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRSUBPERSONCODE].ToString());
-                wrk.ConstructionInstructor = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTIONINSTRUCTOR].ToString());
+                wrk.SalesPersonCode = int.Parse(objwrk[(int)TableColumn.SALES_PERSON_CODE].ToString());
+                wrk.ConstructionPersonCode = int.Parse(objwrk[(int)TableColumn.CONSTRPERSONCODE].ToString());
+                wrk.ConstrSubPersonCode = int.Parse(objwrk[(int)TableColumn.CONSTRSUBPERSONCODE].ToString());
+                wrk.ConstructionInstructor = int.Parse(objwrk[(int)TableColumn.CONSTRUCTIONINSTRUCTOR].ToString());
 
-                wrk.TransferConstruction = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.TRANSFERCONSTRUCTION].ToString());
-                wrk.TransferConstructionDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.TRANSFERCONSTRUCTIONDATE].ToString());
+                wrk.TransferConstruction = int.Parse(objwrk[(int)TableColumn.TRANSFERCONSTRUCTION].ToString());
+                wrk.TransferConstructionDate = DateTime.Parse(objwrk[(int)TableColumn.TRANSFERCONSTRUCTIONDATE].ToString());
 
-                wrk.OrderersDivision = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.ORDERERS_DIVISION].ToString());
-                wrk.OrderersCode = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.ORDERERS_CODE].ToString());
+                wrk.OrderersDivision = int.Parse(objwrk[(int)TableColumn.ORDERERS_DIVISION].ToString());
+                wrk.OrderersCode = int.Parse(objwrk[(int)TableColumn.ORDERERS_CODE].ToString());
 
-                wrk.EstimatesExpirationDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.ESTIMATESEXPIRATIONDATE].ToString());
-                wrk.ConstructionPeriodStart = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTIONPERIODSTART].ToString());
-                wrk.ConstructionPeriodEnd = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTIONPERIODEND].ToString());
-                wrk.ConstructionPeriodStart2 = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTIONPERIODSTART2].ToString());
-                wrk.ConstructionPeriodEnd2 = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTIONPERIODEND2].ToString());
+                wrk.EstimatesExpirationDate = DateTime.Parse(objwrk[(int)TableColumn.ESTIMATESEXPIRATIONDATE].ToString());
+                wrk.ConstructionPeriodStart = DateTime.Parse(objwrk[(int)TableColumn.CONSTRUCTIONPERIODSTART].ToString());
+                wrk.ConstructionPeriodEnd = DateTime.Parse(objwrk[(int)TableColumn.CONSTRUCTIONPERIODEND].ToString());
+                wrk.ConstructionPeriodStart2 = DateTime.Parse(objwrk[(int)TableColumn.CONSTRUCTIONPERIODSTART2].ToString());
+                wrk.ConstructionPeriodEnd2 = DateTime.Parse(objwrk[(int)TableColumn.CONSTRUCTIONPERIODEND2].ToString());
 
-                wrk.StartDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.START_DATE].ToString());
-                wrk.EndDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.END_DATE].ToString());
+                wrk.StartDate = DateTime.Parse(objwrk[(int)TableColumn.START_DATE].ToString());
+                wrk.EndDate = DateTime.Parse(objwrk[(int)TableColumn.END_DATE].ToString());
 
-                wrk.PurchaseOrderMailingDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.PURCHASEORDERMAILINGDATE].ToString());
-                wrk.PurchaseOrderReturnDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.PURCHASEORDERRETURNDATE].ToString());
-                wrk.PurchaseOrderReturnCheckDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.PURCHASEORDERRETURNCHECKDATE].ToString());
+                wrk.PurchaseOrderMailingDate = DateTime.Parse(objwrk[(int)TableColumn.PURCHASEORDERMAILINGDATE].ToString());
+                wrk.PurchaseOrderReturnDate = DateTime.Parse(objwrk[(int)TableColumn.PURCHASEORDERRETURNDATE].ToString());
+                wrk.PurchaseOrderReturnCheckDate = DateTime.Parse(objwrk[(int)TableColumn.PURCHASEORDERRETURNCHECKDATE].ToString());
 
-                wrk.ConsumptionTaxFlg = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSUMPTIONTAX_FLG].ToString());
-                wrk.PrimeContractorFlg = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.PRIMECONTRACTOR_FLG].ToString());
-                wrk.SalesCostFlg = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.SALESCOST_FLG].ToString());
-                wrk.ConstructionStatusFlg = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTIONSTATUS_FLG].ToString());
+                wrk.ConsumptionTaxFlg = int.Parse(objwrk[(int)TableColumn.CONSUMPTIONTAX_FLG].ToString());
+                wrk.PrimeContractorFlg = int.Parse(objwrk[(int)TableColumn.PRIMECONTRACTOR_FLG].ToString());
+                wrk.SalesCostFlg = int.Parse(objwrk[(int)TableColumn.SALESCOST_FLG].ToString());
+                wrk.ConstructionStatusFlg = int.Parse(objwrk[(int)TableColumn.CONSTRUCTIONSTATUS_FLG].ToString());
 
-                wrk.ConstructionType = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.CONSTRUCTIONTYPE].ToString());
-                wrk.EstimateType = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.ESTIMATETYPE].ToString());
+                wrk.ConstructionType = int.Parse(objwrk[(int)TableColumn.CONSTRUCTIONTYPE].ToString());
+                wrk.EstimateType = int.Parse(objwrk[(int)TableColumn.ESTIMATETYPE].ToString());
 
-                wrk.BillingStartDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.BILLINGSTARTDATE].ToString());
-                wrk.BillingDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.BILLINGDATE].ToString());
-                wrk.BillingSplitFlg = int.Parse(objwrk[(int)ConstructionBaseInfoColumn.BILLINGSPLITFLG].ToString());
-                wrk.BillingSendDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.BILLINGSENDDATE].ToString());
+                wrk.BillingStartDate = DateTime.Parse(objwrk[(int)TableColumn.BILLINGSTARTDATE].ToString());
+                wrk.BillingDate = DateTime.Parse(objwrk[(int)TableColumn.BILLINGDATE].ToString());
+                wrk.BillingSplitFlg = int.Parse(objwrk[(int)TableColumn.BILLINGSPLITFLG].ToString());
+                wrk.BillingSendDate = DateTime.Parse(objwrk[(int)TableColumn.BILLINGSENDDATE].ToString());
 
-                wrk.EntryDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.ENTRY_DATE].ToString());
-                wrk.UpdateDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoColumn.UPDATE_DATE].ToString());
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.ENTRY_DATE].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UPDATE_DATE].ToString());
             }
             catch (OracleException oraex)
             {
@@ -542,109 +547,112 @@
                 strcmd += " SET";
                 switch (FeildNo)
                 {
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTION_CODE:
+                    case (int)TableColumn.CONSTRUCTION_CODE:
                         strcmd += string.Format(" ConstructionCode = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTION_YEAR:
+                    case (int)TableColumn.TYINGFLG:
+                        strcmd += string.Format(" TyingFlg = {0}", ((int)value).ToString());
+                        break;
+                    case (int)TableColumn.CONSTRUCTION_YEAR:
                         strcmd += string.Format(" ConstructionYear = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTION_PERIOD:
+                    case (int)TableColumn.CONSTRUCTION_PERIOD:
                         strcmd += string.Format(" ConstructionPeriod = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.REQUESTED_DATE:
+                    case (int)TableColumn.REQUESTED_DATE:
                         strcmd += string.Format(" RequestedDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ESTIMATESSUBMITDEADLINE:
+                    case (int)TableColumn.ESTIMATESSUBMITDEADLINE:
                         strcmd += string.Format(" EstimatesSubmitDeadline = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ESTIMATESSUBMITTED_DATE:
+                    case (int)TableColumn.ESTIMATESSUBMITTED_DATE:
                         strcmd += string.Format(" EstimatesSubmittedDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ORDER_DATE:
+                    case (int)TableColumn.ORDER_DATE:
                         strcmd += string.Format(" OrderDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ORDERSTARTINGDATE:
+                    case (int)TableColumn.ORDERSTARTINGDATE:
                         strcmd += string.Format(" OrderStartingDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ORDERCOMPLETIONDATE:
+                    case (int)TableColumn.ORDERCOMPLETIONDATE:
                         strcmd += string.Format(" OrderCompletionDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTIONSTARTINGDATE:
+                    case (int)TableColumn.CONSTRUCTIONSTARTINGDATE:
                         strcmd += string.Format(" ConstructionStartingDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTIONCOMPLETION_DATE:
+                    case (int)TableColumn.CONSTRUCTIONCOMPLETION_DATE:
                         strcmd += string.Format(" ConstructionCompletionDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ORDERS_DECISION_PRICE:
+                    case (int)TableColumn.ORDERS_DECISION_PRICE:
                         strcmd += string.Format(" OrdersDecisionPrice = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ORDERS_DECISION_PRICE_IN_TAX:
+                    case (int)TableColumn.ORDERS_DECISION_PRICE_IN_TAX:
                         strcmd += string.Format(" OrdersDecisionPriceInTax = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.SALES_PERSON_CODE:
+                    case (int)TableColumn.SALES_PERSON_CODE:
                         strcmd += string.Format(" SalesPersonCode = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRPERSONCODE:
+                    case (int)TableColumn.CONSTRPERSONCODE:
                         strcmd += string.Format(" ConstructionPersonCode = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRSUBPERSONCODE:
+                    case (int)TableColumn.CONSTRSUBPERSONCODE:
                         strcmd += string.Format(" ConstrSubPersonCode = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTIONINSTRUCTOR:
+                    case (int)TableColumn.CONSTRUCTIONINSTRUCTOR:
                         strcmd += string.Format(" ConstructionInstructor = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.TRANSFERCONSTRUCTION:
+                    case (int)TableColumn.TRANSFERCONSTRUCTION:
                         strcmd += string.Format(" TransferConstruction = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.TRANSFERCONSTRUCTIONDATE:
+                    case (int)TableColumn.TRANSFERCONSTRUCTIONDATE:
                         strcmd += string.Format(" TransferConstructionDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ORDERERS_DIVISION:
+                    case (int)TableColumn.ORDERERS_DIVISION:
                         strcmd += string.Format(" OrderersDivision = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ORDERERS_CODE:
+                    case (int)TableColumn.ORDERERS_CODE:
                         strcmd += string.Format(" OrderersCode = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ESTIMATESEXPIRATIONDATE:
+                    case (int)TableColumn.ESTIMATESEXPIRATIONDATE:
                         strcmd += string.Format(" EstimatesExpirationDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTIONPERIODSTART:
+                    case (int)TableColumn.CONSTRUCTIONPERIODSTART:
                         strcmd += string.Format(" ConstructionPeriodStart = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTIONPERIODEND:
+                    case (int)TableColumn.CONSTRUCTIONPERIODEND:
                         strcmd += string.Format(" ConstructionPeriodEnd = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.START_DATE:
+                    case (int)TableColumn.START_DATE:
                         strcmd += string.Format(" StartDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.END_DATE:
+                    case (int)TableColumn.END_DATE:
                         strcmd += string.Format(" EndDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSUMPTIONTAX_FLG:
+                    case (int)TableColumn.CONSUMPTIONTAX_FLG:
                         strcmd += string.Format(" ConsumptionTaxFlg = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.PRIMECONTRACTOR_FLG:
+                    case (int)TableColumn.PRIMECONTRACTOR_FLG:
                         strcmd += string.Format(" PrimeContractorFlg = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.SALESCOST_FLG:
+                    case (int)TableColumn.SALESCOST_FLG:
                         strcmd += string.Format(" SalesCostFlg = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTIONSTATUS_FLG:
+                    case (int)TableColumn.CONSTRUCTIONSTATUS_FLG:
                         strcmd += string.Format(" ConstructionStatusFlg = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.CONSTRUCTIONTYPE:
+                    case (int)TableColumn.CONSTRUCTIONTYPE:
                         strcmd += string.Format(" ConstructionType = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.ESTIMATETYPE:
+                    case (int)TableColumn.ESTIMATETYPE:
                         strcmd += string.Format(" EstimateType = {0}", ((int)value).ToString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.BILLINGSTARTDATE:
+                    case (int)TableColumn.BILLINGSTARTDATE:
                         strcmd += string.Format(", BillingStartDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.BILLINGDATE:
+                    case (int)TableColumn.BILLINGDATE:
                         strcmd += string.Format(" BillingDate = TO_DATE('{0}','YYYY/MM/DD')", ((DateTime)value).ToShortDateString());
                         break;
-                    case (int)ConstructionBaseInfoColumn.BILLINGSPLITFLG:
+                    case (int)TableColumn.BILLINGSPLITFLG:
                         strcmd += string.Format(" BillingSplitFlg = {0}", ((int)value).ToString());
                         break;
                 }
@@ -680,7 +688,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(ConstructionCode) FROM ConstructionBaseInfo" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(ConstructionCode), 0) FROM ConstructionBaseInfo" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -748,6 +756,13 @@
                 // SQL実行
                 if (!ExecuteNonQuery(strcmd, bConnect)) return false;
 
+                //strcmd = "UPDATE ConstructionBaseInfo SET EntryDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += CreatePrimarykeyString(FromCode);
+
+                //// SQL実行
+                //if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
                 return true;
             }
             catch (Exception ex)
@@ -872,5 +887,44 @@
             }
         }
         #endregion
+
+        #region 工事番号の枝番が最大値のものを取得する
+        /// <summary>
+        /// 工事番号の枝番が最大値のものを取得する
+        /// </summary>
+        /// <param name="NowCode"></param>
+        /// <returns></returns>
+        public int CreateNextBranchCounstructionCode(int NowCode)
+        {
+            IOConstructionBaseInfo cbDB = new IOConstructionBaseInfo();                // 工事基本情報
+            try
+            {
+                int ConstructionCode = -1;
+                
+                // 枝番最大値の工事番号取得
+                string strSQL = "SELECT NVL(MAX(CONSTRUCTIONCODE), -1) FROM CONSTRUCTIONBASEINFO";
+                strSQL += string.Format(" WHERE TRUNC(CONSTRUCTIONCODE / 100) = {0}", CommonMotions.cnvTruncate(NowCode / 100));
+                ArrayList arList = new ArrayList();
+
+                // データが無ければ抜ける
+                if (!cbDB.ExecuteReader(strSQL, ref arList)) return ConstructionCode;
+                
+                object[] wrkobj = (object[])arList[0];
+                ConstructionCode = CommonMotions.cnvInt(wrkobj[0]);
+                if (ConstructionCode > 1) ConstructionCode++;
+
+                return ConstructionCode;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return -1;
+            }
+            finally
+            {
+                cbDB.close(); cbDB = null;
+            }
+        }
+        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfoDetail.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfoDetail.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfoDetail.cs	(revision 6)
@@ -31,7 +31,7 @@
         /// <summary>
         /// 工事基本情報フィールド並び
         /// </summary>
-        public enum ConstructionBaseInfoDetailColumn
+        public enum TableColumn
         {
             CONSTRUCTION_CODE = 0,
             DETAIL_NO,
@@ -284,12 +284,12 @@
             try
             {
                 // データ取得
-                wrk.ConstructionCode = int.Parse(objwrk[(int)ConstructionBaseInfoDetailColumn.CONSTRUCTION_CODE].ToString());
-                wrk.DetailNo = int.Parse(objwrk[(int)ConstructionBaseInfoDetailColumn.DETAIL_NO].ToString());
-                wrk.DetailString = objwrk[(int)ConstructionBaseInfoDetailColumn.DETAIL_STRING].ToString();
+                wrk.ConstructionCode = int.Parse(objwrk[(int)TableColumn.CONSTRUCTION_CODE].ToString());
+                wrk.DetailNo = int.Parse(objwrk[(int)TableColumn.DETAIL_NO].ToString());
+                wrk.DetailString = objwrk[(int)TableColumn.DETAIL_STRING].ToString();
                 
-                wrk.EntryDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoDetailColumn.ENTRY_DATE].ToString());
-                wrk.UpdateDate = DateTime.Parse(objwrk[(int)ConstructionBaseInfoDetailColumn.UPDATE_DATE].ToString());
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.ENTRY_DATE].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UPDATE_DATE].ToString());
             }
             catch (OracleException oraex)
             {
@@ -352,6 +352,13 @@
                 // SQL実行
                 if (!ExecuteNonQuery(strcmd, bConnect)) return false;
 
+                //strcmd = "UPDATE ConstructionBaseInfoDetail SET EntryDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += CreatePrimarykeyString(FromCode);
+
+                //// SQL実行
+                //if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
                 return true;
             }
             catch (Exception ex)
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudget.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudget.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudget.cs	(revision 6)
@@ -38,9 +38,15 @@
             CreatorCode,                // 作成者コード
             CreatorName,    	        // 作成者名
             CreatorCosts,	            // 作成者給与
+
+            AssistantCode,              // 副担当者コード
+            AssistantName,              // 副担当者名
+            AssistantCosts,             // 副担当者給与
+
             InstructorCode,	            // 工事指導員コード
             InstructorName,	            // 工事指導員名
             InstructorCosts,	        // 工事指導員給与
+
             CreateDate,	                // 作成日
             ConstructionTimes,	        // 工期（単位・月）
             ConstructionStart,          // 契約工期開始
@@ -47,8 +53,13 @@
             ConstructionEnd,            // 契約工期完了
 
             InstructorTimes,	        // 指導員稼働月数
+            
             SalaryFlg,                  // 給与振分区分
             SalaryDays,                 // 振分日数
+            A_SalaryFlg,                // 副担当者給与振分区分
+            A_SalaryDays,               // 副担当者振分日数
+            I_SalaryFlg,                // 指導員給与振分区分
+            I_SalaryDays,               // 指導員振分日数
 
             EntryDate,
             UpdateDate,
@@ -83,6 +94,9 @@
             strcmd += " ,CreatorCode";                              // 作成者コード
             strcmd += " ,CreatorName";    	                        // 作成者名
             strcmd += " ,CreatorCosts";	                            // 作成者給与
+            strcmd += " ,AssistantCode";                            // 副担当者コード
+            strcmd += " ,AssistantName";                            // 副担当者名
+            strcmd += " ,AssistantCosts";                           // 副担当者給与
             strcmd += " ,InstructorCode";	                        // 工事指導員コード
             strcmd += " ,InstructorName";	                        // 工事指導員名
             strcmd += " ,InstructorCosts";                          // 工事指導員給与
@@ -93,6 +107,10 @@
             strcmd += " ,InstructorTimes";                          // 指導員稼働月数
             strcmd += " ,SalaryFlg";                                // 給与振分区分
             strcmd += " ,SalaryDays";                               // 振分日数
+            strcmd += " ,A_SalaryFlg";                              // 副担当者給与振分区分
+            strcmd += " ,A_SalaryDays";                             // 副担当者振分日数
+            strcmd += " ,I_SalaryFlg";                              // 指導員給与振分区分
+            strcmd += " ,I_SalaryDays";                             // 指導員振分日数
 
             strcmd += ", TO_CHAR(EntryDate, 'YYYY/MM/DD HH24:MI:ss')";
             strcmd += ", TO_CHAR(UpdateDate, 'YYYY/MM/DD HH24:MI:ss')";
@@ -182,9 +200,15 @@
                 strcmd += string.Format(", {0}", work.CreatorCode);                     // 作成者コード
                 strcmd += string.Format(",'{0}'", work.CreatorName);                    // 作成者名
                 strcmd += string.Format(", {0}", work.CreatorCosts);                    // 作成者給与
+
+                strcmd += string.Format(", {0}", work.AssistantCode);                   // 副担当者コード
+                strcmd += string.Format(",'{0}'", work.AssistantName);                  // 副担当者名
+                strcmd += string.Format(", {0}", work.AssistantCosts);                  // 副担当者給与
+
                 strcmd += string.Format(", {0}", work.InstructorCode);                  // 工事指導員コード
                 strcmd += string.Format(",'{0}'", work.InstructorName);                 // 工事指導員名
                 strcmd += string.Format(", {0}", work.InstructorCosts);                 // 工事指導員給与
+                
                 strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')",
                                         work.CreateDate.ToShortDateString());           // 作成日
                 strcmd += string.Format(", {0}", work.ConstructionTimes);               // 工期（単位・月）
@@ -196,6 +220,10 @@
                 strcmd += string.Format(", {0}", work.InstructorTimes);                 // 指導員稼働月数
                 strcmd += string.Format(", {0}", work.SalaryFlg);                       // 給与振分区分
                 strcmd += string.Format(", {0}", work.SalaryDays);                      // 振分日数
+                strcmd += string.Format(", {0}", work.A_SalaryFlg);                     // 副担当者給与振分区分
+                strcmd += string.Format(", {0}", work.A_SalaryDays);                    // 副担当者振分日数
+                strcmd += string.Format(", {0}", work.I_SalaryFlg);                     // 指導員給与振分区分
+                strcmd += string.Format(", {0}", work.I_SalaryDays);                    // 指導員振分日数
 
                 strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
                 strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
@@ -257,6 +285,11 @@
                 strcmd += string.Format(", CreatorCode = {0}", data.CreatorCode);                       // 作成者コード
                 strcmd += string.Format(", CreatorName = '{0}'", data.CreatorName);                     // 作成者名
                 strcmd += string.Format(", CreatorCosts = {0}", data.CreatorCosts);                     // 作成者給与
+
+                strcmd += string.Format(", AssistantCode = {0}", data.AssistantCode);                   // 副担当者コード
+                strcmd += string.Format(", AssistantName = '{0}'", data.AssistantName);                 // 副担当者名
+                strcmd += string.Format(", AssistantCosts = {0}", data.AssistantCosts);                 // 副担当者給与
+
                 strcmd += string.Format(", InstructorCode = {0}", data.InstructorCode);                 // 工事指導員コード
                 strcmd += string.Format(", InstructorName = '{0}'", data.InstructorName);               // 工事指導員名
                 strcmd += string.Format(", InstructorCosts = {0}", data.InstructorCosts);               // 工事指導員給与
@@ -272,6 +305,10 @@
 
                 strcmd += string.Format(", SalaryFlg = {0}", data.SalaryFlg);                           // 給与振分区分
                 strcmd += string.Format(", SalaryDays = {0}", data.SalaryDays);                         // 振分日数
+                strcmd += string.Format(", A_SalaryFlg = {0}", data.A_SalaryFlg);                       // 副担当者給与振分区分
+                strcmd += string.Format(", A_SalaryDays = {0}", data.A_SalaryDays);                     // 副担当者振分日数
+                strcmd += string.Format(", I_SalaryFlg = {0}", data.I_SalaryFlg);                       // 指導員給与振分区分
+                strcmd += string.Format(", I_SalaryDays = {0}", data.I_SalaryDays);                     // 指導員振分日数
 
                 strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
                 strcmd += AddSQLString;
@@ -329,6 +366,9 @@
                 wrk.CreatorCode = int.Parse(objwrk[(int)ConstructionBudgetColumn.CreatorCode].ToString());                  // 作成者コード
                 wrk.CreatorName = objwrk[(int)ConstructionBudgetColumn.CreatorName].ToString();                             // 作成者名
                 wrk.CreatorCosts = double.Parse(objwrk[(int)ConstructionBudgetColumn.CreatorCosts].ToString());             // 作成者給与
+                wrk.AssistantCode = int.Parse(objwrk[(int)ConstructionBudgetColumn.AssistantCode].ToString());              // 副担当者コード
+                wrk.AssistantName = objwrk[(int)ConstructionBudgetColumn.AssistantName].ToString();                         // 副担当者名
+                wrk.AssistantCosts = int.Parse(objwrk[(int)ConstructionBudgetColumn.AssistantCosts].ToString());            // 副担当者給与
                 wrk.InstructorCode = int.Parse(objwrk[(int)ConstructionBudgetColumn.InstructorCode].ToString());            // 工事指導員コード
                 wrk.InstructorName = objwrk[(int)ConstructionBudgetColumn.InstructorName].ToString();                       // 工事指導員名
                 wrk.InstructorCosts = double.Parse(objwrk[(int)ConstructionBudgetColumn.InstructorCosts].ToString());       // 工事指導員給与
@@ -341,6 +381,10 @@
 
                 wrk.SalaryFlg = int.Parse(objwrk[(int)ConstructionBudgetColumn.SalaryFlg].ToString());                      // 給与振分区分
                 wrk.SalaryDays = int.Parse(objwrk[(int)ConstructionBudgetColumn.SalaryDays].ToString());                    // 振分日数
+                wrk.A_SalaryFlg = int.Parse(objwrk[(int)ConstructionBudgetColumn.A_SalaryFlg].ToString());                  // 副担当者給与振分区分
+                wrk.A_SalaryDays = int.Parse(objwrk[(int)ConstructionBudgetColumn.A_SalaryDays].ToString());                // 副担当者振分日数
+                wrk.I_SalaryFlg = int.Parse(objwrk[(int)ConstructionBudgetColumn.I_SalaryFlg].ToString());                  // 指導員給与振分区分
+                wrk.I_SalaryDays = int.Parse(objwrk[(int)ConstructionBudgetColumn.I_SalaryDays].ToString());                // 指導員振分日数
 
                 wrk.EntryDate = DateTime.Parse(objwrk[(int)ConstructionBudgetColumn.EntryDate].ToString());
                 wrk.UpdateDate = DateTime.Parse(objwrk[(int)ConstructionBudgetColumn.UpdateDate].ToString());
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudgetDetail.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudgetDetail.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudgetDetail.cs	(revision 6)
@@ -374,18 +374,18 @@
         /// <summary>
         /// 主キー検索の文字列を返す
         /// </summary>
-        /// <param name="ComponentCode"></param>
-        /// <param name="OutsourcingFlg"></param>
+        /// <param name="ConstructionCode"></param>
+        /// <param name="GroupCount"></param>
         /// <param name="LineCount"></param>
         /// <returns></returns>
-        public string CreatePrimarykeyString(int ConstructionCode, int PageCount = 0, int LineCount = 0)
+        public string CreatePrimarykeyString(int ConstructionCode, int GroupCount = 0, int LineCount = 0)
         {
             string strWork = "";
             try
             {
                 strWork = string.Format(" Where ConstructionCode = {0}", ConstructionCode);
-                if (PageCount != 0)
-                    strWork += string.Format(" And OutsourcingFlg = {0}", PageCount);
+                if (GroupCount != 0)
+                    strWork += string.Format(" And GroupCount = {0}", GroupCount);
                 if (LineCount != 0)
                     strWork += string.Format(" And LineCount = {0}", LineCount);
             }
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLedgerDetail.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLedgerDetail.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLedgerDetail.cs	(revision 6)
@@ -50,6 +50,7 @@
             PaymentBurden,          // 支払補填額
             FixDataFlg,             // 固定データフラグ
             IndependentFlg,         // 独立データフラグ
+            FluctuationFlg,         // 増減データフラグ
 
             EntryDate,
             UpdateDate,
@@ -92,6 +93,7 @@
             strcmd += ", PaymentBurden";            // 支払補填額
             strcmd += ", FixDataFlg";               // 固定データフラグ
             strcmd += ", IndependentFlg";           // 独立データフラグ
+            strcmd += ", FluctuationFlg";           // 増減データフラグ
 
             strcmd += ", TO_CHAR(EntryDate, 'YYYY/MM/DD HH24:MI:ss')";
             strcmd += ", TO_CHAR(UpdateDate, 'YYYY/MM/DD HH24:MI:ss')";
@@ -207,6 +209,7 @@
                 
                 strcmd += string.Format(", {0}", work.FixDataFlg);              // 固定データフラグ
                 strcmd += string.Format(", {0}", work.IndependentFlg);          // 独立データフラグ
+                strcmd += string.Format(", {0}", work.FluctuationFlg);          // 増減データフラグ
 
                 strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
                 strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
@@ -284,6 +287,7 @@
 
                 strcmd += string.Format(", FixDataFlg = {0}", data.FixDataFlg);                     // 固定データフラグ
                 strcmd += string.Format(", IndependentFlg = {0}", data.IndependentFlg);             // 独立データフラグ
+                strcmd += string.Format(", FluctuationFlg = {0}", data.FluctuationFlg);             // 増減データフラグ
 
                 strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
                 strcmd += AddSQLString;
@@ -356,6 +360,7 @@
                 
                 wrk.FixDataFlg = int.Parse(objwrk[(int)DataColumn.FixDataFlg].ToString());                      // 固定データフラグ
                 wrk.IndependentFlg = int.Parse(objwrk[(int)DataColumn.IndependentFlg].ToString());              // 独立データフラグ
+                wrk.FluctuationFlg = int.Parse(objwrk[(int)DataColumn.FluctuationFlg].ToString());              // 増減データフラグ
 
                 wrk.EntryDate = DateTime.Parse(objwrk[(int)DataColumn.EntryDate].ToString());
                 wrk.UpdateDate = DateTime.Parse(objwrk[(int)DataColumn.UpdateDate].ToString());
@@ -415,7 +420,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(LineCount) FROM ConstructionLedgerDetail" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(LineCount), 0) FROM ConstructionLedgerDetail" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLink.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLink.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionLink.cs	(revision 6)
@@ -0,0 +1,328 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Data;
+using System.Collections;
+
+using log4net;
+using Oracle.ManagedDataAccess.Client;
+
+using ProcessManagement.DB.Oracle;
+using ProcessManagement.DB.Core;
+using ProcessManagement.DataModel;
+using ProcessManagement.Common;
+
+namespace ProcessManagement.DB.IOAccess
+{
+    /// <summary>
+    /// 工事増減情報ＤＢアクセス
+    /// </summary>
+    public class IOConstructionLink : OracleProcess
+    {
+        #region 定義部
+        /// <summary>
+        /// log4netログを使用する
+        /// </summary>
+        private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+        /// <summary>
+        /// 工事増減情報フィールド並び
+        /// </summary>
+        public enum ConstructionLinkColumn
+        {
+            CONSTRUCTION_CODE = 0,
+            FLUCTUATION_CODE,
+            ENTRY_DATE,
+            UPDATE_DATE,
+        }
+
+        #endregion
+
+        #region プロパティ
+        #endregion
+
+        #region コンストラクタ
+        /// <summary>
+        /// コンストラクタ
+        /// </summary>
+        /// <param name="ConnectionString"></param>
+        public IOConstructionLink()
+            : base(DBCommon.Instance.DBConnectString)
+        {
+        }
+
+        #endregion
+
+        #region SELECT　SQL作成
+        /// <summary>
+        /// SQL作成
+        /// </summary>
+        private string CreateSelectSQL()
+        {
+            // SQL作成（oracleのDateTime型が変換できないのでCharに変換しておく）
+            string strcmd = "SELECT";
+            strcmd += "  ConstructionCode, FluctuationCode";
+            strcmd += ", TO_CHAR(EntryDate, 'YYYY/MM/DD HH24:MI:ss')";
+            strcmd += ", TO_CHAR(UpdateDate, 'YYYY/MM/DD HH24:MI:ss')";
+            strcmd += " FROM ConstructionLink";
+
+            return strcmd;
+        }
+        #endregion
+
+        #region 読込み処理
+        /// <summary>
+        /// 工事増減情報検索
+        /// </summary>
+        /// <param name="AddSQLString">検索条件SQL文字列</param>
+        /// <param name="data">工事増減情報データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool SelectAction(string AddSQLString, ref ConstructionLink data, bool bConnect = true)
+        {
+            //Oracle インターフェース
+            string strcmd = "";
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                strcmd = CreateSelectSQL() + AddSQLString;
+
+                // SQL実行
+                if (!ExecuteReader(strcmd, ref arData, bConnect)) return false;
+                if (arData.Count == 0) return false;
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    ConstructionLink work = new ConstructionLink();
+                    Reader2Struct(objwrk, ref data);
+                    break;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 読込み処理
+        /// <summary>
+        /// 工事増減情報検索
+        /// </summary>
+        /// <param name="AddSQLString">検索条件SQL文字列</param>
+        /// <param name="data">工事増減情報データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool SelectAction(string AddSQLString, ref List<ConstructionLink> data, bool bConnect = true)
+        {
+            //Oracle インターフェース
+            string strcmd = "";
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                strcmd = CreateSelectSQL() + AddSQLString;
+
+                // SQL実行
+                if (!ExecuteReader(strcmd, ref arData, bConnect)) return false;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    ConstructionLink work = new ConstructionLink();
+                    Reader2Struct(objwrk, ref work);
+                    data.Add(work);
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 追加処理
+        /// <summary>
+        /// 工事増減情報追加
+        /// </summary>
+        /// <param name="data">工事増減情報データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool InsertAction(ConstructionLink data, bool bConnect = true)
+        {
+            string strcmd = "";
+            try
+            {
+
+                strcmd = "INSERT INTO ConstructionLink";
+
+                strcmd += " VALUES (";
+
+                strcmd += string.Format("  {0}", data.ConstructionCode);
+                strcmd += string.Format(", {0}", data.FluctuationCode);
+
+                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                strcmd = strcmd + ")";
+
+                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        /// <summary>
+        /// 工事増減情報追加
+        /// </summary>
+        /// <param name="data">工事増減情報データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool InsertAction(List<ConstructionLink> data, bool bConnect = true)
+        {
+            string strcmd = "";
+            try
+            {
+
+                foreach (ConstructionLink work in data)
+                {
+                    if (!InsertAction(work, bConnect)) return false;
+                }
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 更新処理
+        /// <summary>
+        /// 工事増減情報更新
+        /// </summary>
+        /// <param name="AddSQLString">更新条件SQL文字列</param>
+        /// <param name="data">工事増減情報データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool UpdateAction(string AddSQLString, ConstructionLink data, bool bConnect = true)
+        {
+            string strcmd = "";
+            try
+            {
+
+                strcmd = "UPDATE ConstructionLink";
+
+                strcmd += " SET";
+
+                strcmd += string.Format("  ConstructionCode = {0}", data.ConstructionCode);
+                strcmd += string.Format(" ,DetailNo = {0}", data.FluctuationCode);
+
+                strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                strcmd += AddSQLString;
+
+                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 削除処理
+        /// <summary>
+        /// 工事増減情報削除
+        /// </summary>
+        /// <param name="AddSQLString">削除条件SQL文字列</param>
+        /// <param name="data">工事増減情報データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool DeleteAction(string AddSQLString, bool bConnect = true)
+        {
+            //Oracle インターフェース
+            string strcmd = "";
+            try
+            {
+                strcmd = string.Format("{0}{1}", "DELETE FROM ConstructionLink", AddSQLString);
+
+                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region データセット処理
+        /// <summary>
+        /// OracleDataReaderより構造体へセットする
+        /// </summary>
+        /// <param name="reader">OracleDataReader</param>
+        /// <param name="wrk">構造体</param>
+        public void Reader2Struct(object[] objwrk, ref ConstructionLink wrk)
+        {
+            try
+            {
+                // データ取得
+                wrk.ConstructionCode = int.Parse(objwrk[(int)ConstructionLinkColumn.CONSTRUCTION_CODE].ToString());
+                wrk.FluctuationCode = int.Parse(objwrk[(int)ConstructionLinkColumn.FLUCTUATION_CODE].ToString());
+                
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)ConstructionLinkColumn.ENTRY_DATE].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)ConstructionLinkColumn.UPDATE_DATE].ToString());
+            }
+            catch (OracleException oraex)
+            {
+                logger.ErrorFormat("オラクルエラー：{0}：{1}", CommonMotions.GetMethodName(2), oraex.Message);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(2), ex.Message);
+            }
+        }
+
+
+        #endregion
+
+        #region 検索の文字列を返す
+
+        /// <summary>
+        /// 主キー検索の文字列を返す
+        /// </summary>
+        /// <param name="ComponentCode"></param>
+        /// <param name="DetailNo"></param>
+        /// <returns></returns>
+        public string CreatePrimarykeyString(int ConstructionCode, int FluctuationCode)
+        {
+            string strWork = "";
+            try
+            {
+                strWork = string.Format(" Where ConstructionCode = {0}", ConstructionCode);
+                strWork += string.Format(" And FluctuationCode = {0}", FluctuationCode);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strWork);
+            }
+
+            return strWork;
+        }
+        #endregion
+
+    }
+}
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOCostDataOfPerson.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOCostDataOfPerson.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOCostDataOfPerson.cs	(revision 6)
@@ -387,7 +387,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DataAddCount) FROM CostDataOfPerson" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DataAddCount), 0) FROM CostDataOfPerson" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataDetail.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataDetail.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataDetail.cs	(revision 6)
@@ -341,17 +341,17 @@
             try
             {
                 // データ取得
-                wrk.PersonCode = int.Parse(objwrk[(int)DataColumn.PersonCode].ToString());               // 担当者コード
-                wrk.DailyDataDate = DateTime.Parse(objwrk[(int)DataColumn.DailyDataDate].ToString());    // 日報作成日
-                wrk.ConstructionCode = int.Parse(objwrk[(int)DataColumn.ConstructionCode].ToString());   // 工事番号
-                wrk.SeqNo = int.Parse(objwrk[(int)DataColumn.SeqNo].ToString());                         // 明細行番号
-                wrk.JobCategoryCode = int.Parse(objwrk[(int)DataColumn.JobCategoryCode].ToString());     // 職種キー
-                wrk.CompanyCode = int.Parse(objwrk[(int)DataColumn.CompanyCode].ToString());             // 協力会社コード
-                wrk.TodayHeadCount = int.Parse(objwrk[(int)DataColumn.TodayHeadCount].ToString());       // 当日人員数
-                wrk.TotalHeadCount = int.Parse(objwrk[(int)DataColumn.TotalHeadCount].ToString());       // 累計人員数
-                wrk.TodayWork = objwrk[(int)DataColumn.TodayWork].ToString();                            // 当日作業内容
-                wrk.NextdayWork = objwrk[(int)DataColumn.NextdayWork].ToString();                        // 翌日作業内容
-                wrk.NextdayHeadCount = int.Parse(objwrk[(int)DataColumn.NextdayHeadCount].ToString());   // 翌日人員数
+                wrk.PersonCode = int.Parse(objwrk[(int)DataColumn.PersonCode].ToString());                  // 担当者コード
+                wrk.DailyDataDate = DateTime.Parse(objwrk[(int)DataColumn.DailyDataDate].ToString());       // 日報作成日
+                wrk.ConstructionCode = int.Parse(objwrk[(int)DataColumn.ConstructionCode].ToString());      // 工事番号
+                wrk.SeqNo = int.Parse(objwrk[(int)DataColumn.SeqNo].ToString());                            // 明細行番号
+                wrk.JobCategoryCode = int.Parse(objwrk[(int)DataColumn.JobCategoryCode].ToString());        // 職種キー
+                wrk.CompanyCode = int.Parse(objwrk[(int)DataColumn.CompanyCode].ToString());                // 協力会社コード
+                wrk.TodayHeadCount = double.Parse(objwrk[(int)DataColumn.TodayHeadCount].ToString());       // 当日人員数
+                wrk.TotalHeadCount = double.Parse(objwrk[(int)DataColumn.TotalHeadCount].ToString());       // 累計人員数
+                wrk.TodayWork = objwrk[(int)DataColumn.TodayWork].ToString();                               // 当日作業内容
+                wrk.NextdayWork = objwrk[(int)DataColumn.NextdayWork].ToString();                           // 翌日作業内容
+                wrk.NextdayHeadCount = double.Parse(objwrk[(int)DataColumn.NextdayHeadCount].ToString());   // 翌日人員数
                 
                 wrk.EntryDate = DateTime.Parse(objwrk[(int)DataColumn.EntryDate].ToString());
                 wrk.UpdateDate = DateTime.Parse(objwrk[(int)DataColumn.UpdateDate].ToString());
@@ -414,7 +414,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM DailyDataDetail" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM DailyDataDetail" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataField.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataField.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataField.cs	(revision 6)
@@ -381,7 +381,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM DailyDataField" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM DailyDataField" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataMaterials.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataMaterials.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataMaterials.cs	(revision 6)
@@ -402,7 +402,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM DailyDataMaterials" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM DailyDataMaterials" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataSubcontractors.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataSubcontractors.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataSubcontractors.cs	(revision 6)
@@ -379,7 +379,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM DailyDataSubcontractors" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM DailyDataSubcontractors" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataVehicles.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataVehicles.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IODailyDataVehicles.cs	(revision 6)
@@ -414,7 +414,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM DailyDataVehicles" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM DailyDataVehicles" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateBudget.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateBudget.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateBudget.cs	(revision 6)
@@ -383,7 +383,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(ConstructionCode) FROM EstimateBudget" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(ConstructionCode), 0) FROM EstimateBudget" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateData.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateData.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateData.cs	(revision 6)
@@ -31,7 +31,7 @@
         /// <summary>
         /// 積算見積データフィールド並び
         /// </summary>
-        public enum EstimateDataColumn
+        public enum TableColumn
         {
             ConstructionCode = 0,   // 工事番号
             LineCount,              // 行番号
@@ -297,19 +297,19 @@
             try
             {
                 // データ取得
-                wrk.ConstructionCode = int.Parse(objwrk[(int)EstimateDataColumn.ConstructionCode].ToString());  // 工事番号
-                wrk.LineCount = int.Parse(objwrk[(int)EstimateDataColumn.LineCount].ToString());                // 行番号
-                wrk.ComponentCode = int.Parse(objwrk[(int)EstimateDataColumn.ComponentCode].ToString());        // 構成キー
-                wrk.FixedItemCode = objwrk[(int)EstimateDataColumn.FixedItemCode].ToString();		            // 固定項目キー
-                wrk.ItemName = objwrk[(int)EstimateDataColumn.ItemName].ToString();      		                // 作業名称
-                wrk.WorkName = objwrk[(int)EstimateDataColumn.WorkName].ToString();      		                // 品質・形状・寸法
-                wrk.PriceValue = double.Parse(objwrk[(int)EstimateDataColumn.PriceValue].ToString());           // 金額
-                wrk.Note = objwrk[(int)EstimateDataColumn.Note].ToString();			                            // 備考
-                wrk.MyExpensesFlg = int.Parse(objwrk[(int)EstimateDataColumn.MyExpensesFlg].ToString());        // 自社経費フラグ
-                wrk.InputFlg = int.Parse(objwrk[(int)EstimateDataColumn.InputFlg].ToString());                  // 入力フラグ
+                wrk.ConstructionCode = int.Parse(objwrk[(int)TableColumn.ConstructionCode].ToString());  // 工事番号
+                wrk.LineCount = int.Parse(objwrk[(int)TableColumn.LineCount].ToString());                // 行番号
+                wrk.ComponentCode = int.Parse(objwrk[(int)TableColumn.ComponentCode].ToString());        // 構成キー
+                wrk.FixedItemCode = objwrk[(int)TableColumn.FixedItemCode].ToString();		            // 固定項目キー
+                wrk.ItemName = objwrk[(int)TableColumn.ItemName].ToString();      		                // 作業名称
+                wrk.WorkName = objwrk[(int)TableColumn.WorkName].ToString();      		                // 品質・形状・寸法
+                wrk.PriceValue = double.Parse(objwrk[(int)TableColumn.PriceValue].ToString());           // 金額
+                wrk.Note = objwrk[(int)TableColumn.Note].ToString();			                            // 備考
+                wrk.MyExpensesFlg = int.Parse(objwrk[(int)TableColumn.MyExpensesFlg].ToString());        // 自社経費フラグ
+                wrk.InputFlg = int.Parse(objwrk[(int)TableColumn.InputFlg].ToString());                  // 入力フラグ
                 
-                wrk.EntryDate = DateTime.Parse(objwrk[(int)EstimateDataColumn.EntryDate].ToString());
-                wrk.UpdateDate = DateTime.Parse(objwrk[(int)EstimateDataColumn.UpdateDate].ToString());
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.EntryDate].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UpdateDate].ToString());
             }
             catch (OracleException oraex)
             {
@@ -340,7 +340,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(ConstructionCode) FROM EstimateData" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(ConstructionCode), 0) FROM EstimateData" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -410,6 +410,13 @@
                 // SQL実行
                 if (!ExecuteNonQuery(strcmd, bConnect)) return false;
 
+                //strcmd = "UPDATE EstimateData SET EntryDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += CreatePrimarykeyString(FromCode);
+
+                //// SQL実行
+                //if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
                 return true;
             }
             catch (Exception ex)
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateDataBody.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateDataBody.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateDataBody.cs	(revision 6)
@@ -31,7 +31,7 @@
         /// <summary>
         /// 積算見積ページデータフィールド並び
         /// </summary>
-        public enum EstimateDataBodyColumn
+        public enum TableColumn
         {
             ConstructionCode = 0,	// 工事番号
             PageCount,		        // ページ番号
@@ -303,18 +303,18 @@
             {
                 // データ取得
 
-                wrk.ConstructionCode = int.Parse(objwrk[(int)EstimateDataBodyColumn.ConstructionCode].ToString());	// 工事番号
-                wrk.PageCount = int.Parse(objwrk[(int)EstimateDataBodyColumn.PageCount].ToString());		        // ページ番号
-                wrk.Category = int.Parse(objwrk[(int)EstimateDataBodyColumn.Category].ToString());		            // ページ区分
-                wrk.UnionComponentCode = int.Parse(objwrk[(int)EstimateDataBodyColumn.UnionComponentCode].ToString());  // 所属構成キー
-                wrk.ComponentCode = int.Parse(objwrk[(int)EstimateDataBodyColumn.ComponentCode].ToString());	    // 構成キー
-                wrk.ItemCode = int.Parse(objwrk[(int)EstimateDataBodyColumn.ItemCode].ToString());		            // 工種キー
-                wrk.SelectComponent = int.Parse(objwrk[(int)EstimateDataBodyColumn.SelectComponent].ToString());	// 選択構成キー
-                wrk.PageTitle = objwrk[(int)EstimateDataBodyColumn.PageTitle].ToString();	                        // ページ表示名
-                wrk.DetailLineCount = int.Parse(objwrk[(int)EstimateDataBodyColumn.DetailLineCount].ToString());	// 選択構成キー
+                wrk.ConstructionCode = int.Parse(objwrk[(int)TableColumn.ConstructionCode].ToString());	// 工事番号
+                wrk.PageCount = int.Parse(objwrk[(int)TableColumn.PageCount].ToString());		        // ページ番号
+                wrk.Category = int.Parse(objwrk[(int)TableColumn.Category].ToString());		            // ページ区分
+                wrk.UnionComponentCode = int.Parse(objwrk[(int)TableColumn.UnionComponentCode].ToString());  // 所属構成キー
+                wrk.ComponentCode = int.Parse(objwrk[(int)TableColumn.ComponentCode].ToString());	    // 構成キー
+                wrk.ItemCode = int.Parse(objwrk[(int)TableColumn.ItemCode].ToString());		            // 工種キー
+                wrk.SelectComponent = int.Parse(objwrk[(int)TableColumn.SelectComponent].ToString());	// 選択構成キー
+                wrk.PageTitle = objwrk[(int)TableColumn.PageTitle].ToString();	                        // ページ表示名
+                wrk.DetailLineCount = int.Parse(objwrk[(int)TableColumn.DetailLineCount].ToString());	// 選択構成キー
                 
-                wrk.EntryDate = DateTime.Parse(objwrk[(int)EstimateDataBodyColumn.EntryDate].ToString());
-                wrk.UpdateDate = DateTime.Parse(objwrk[(int)EstimateDataBodyColumn.UpdateDate].ToString());
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.EntryDate].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UpdateDate].ToString());
             }
             catch (OracleException oraex)
             {
@@ -375,6 +375,13 @@
                 // SQL実行
                 if (!ExecuteNonQuery(strcmd, bConnect)) return false;
 
+                //strcmd = "UPDATE EstimateDataBody SET EntryDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += CreatePrimarykeyString(FromCode);
+
+                //// SQL実行
+                //if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
                 return true;
             }
             catch (Exception ex)
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateDataDetail.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateDataDetail.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOEstimateDataDetail.cs	(revision 6)
@@ -31,7 +31,7 @@
         /// <summary>
         /// 積算見積データ明細フィールド並び
         /// </summary>
-        public enum EstimateDataDetailColumn
+        public enum TableColumn
         {
             ConstructionCode = 0,	// 工事番号
             PageCount,		        // ページ番号
@@ -341,26 +341,26 @@
             {
                 // データ取得
 
-                wrk.ConstructionCode = int.Parse(objwrk[(int)EstimateDataDetailColumn.ConstructionCode].ToString());	// 工事番号
-                wrk.PageCount = int.Parse(objwrk[(int)EstimateDataDetailColumn.PageCount].ToString());		            // ページ番号
-                wrk.LineCount = int.Parse(objwrk[(int)EstimateDataDetailColumn.LineCount].ToString());		            // 行番号
-                wrk.DataType = int.Parse(objwrk[(int)EstimateDataDetailColumn.DataType].ToString());	                // データタイプ
-                wrk.ComponentCode = int.Parse(objwrk[(int)EstimateDataDetailColumn.ComponentCode].ToString());	        // 構成キー（行）
-                wrk.ItemCode = int.Parse(objwrk[(int)EstimateDataDetailColumn.ItemCode].ToString());		            // 工種キー
-                wrk.SpecCode = int.Parse(objwrk[(int)EstimateDataDetailColumn.SpecCode].ToString());		            // 規格・寸法キー
-                wrk.ItemName = objwrk[(int)EstimateDataDetailColumn.ItemName].ToString();		                        // 作業名称
-                wrk.SpecName = objwrk[(int)EstimateDataDetailColumn.SpecName].ToString();		                        // 作業／品質・形状・寸法
-                wrk.UnitCount = double.Parse(objwrk[(int)EstimateDataDetailColumn.UnitCount].ToString());		        // 数量
-                wrk.UnitName = objwrk[(int)EstimateDataDetailColumn.UnitName].ToString();		                        // 単位
-                wrk.UnitPrice = double.Parse(objwrk[(int)EstimateDataDetailColumn.UnitPrice].ToString());		        // 単価
-                wrk.LineTotal = double.Parse(objwrk[(int)EstimateDataDetailColumn.LineTotal].ToString());		        // 金額
-                wrk.Note = objwrk[(int)EstimateDataDetailColumn.Note].ToString();			                            // 備考
-                wrk.CompanyCode = int.Parse(objwrk[(int)EstimateDataDetailColumn.CompanyCode].ToString());		        // 協力会社コード
-                wrk.MyExpensesFlg = int.Parse(objwrk[(int)EstimateDataDetailColumn.MyExpensesFlg].ToString());          // 自社経費フラグ
-                wrk.InputFlg = int.Parse(objwrk[(int)EstimateDataDetailColumn.InputFlg].ToString());                    // 入力フラグ
+                wrk.ConstructionCode = int.Parse(objwrk[(int)TableColumn.ConstructionCode].ToString());	// 工事番号
+                wrk.PageCount = int.Parse(objwrk[(int)TableColumn.PageCount].ToString());		            // ページ番号
+                wrk.LineCount = int.Parse(objwrk[(int)TableColumn.LineCount].ToString());		            // 行番号
+                wrk.DataType = int.Parse(objwrk[(int)TableColumn.DataType].ToString());	                // データタイプ
+                wrk.ComponentCode = int.Parse(objwrk[(int)TableColumn.ComponentCode].ToString());	        // 構成キー（行）
+                wrk.ItemCode = int.Parse(objwrk[(int)TableColumn.ItemCode].ToString());		            // 工種キー
+                wrk.SpecCode = int.Parse(objwrk[(int)TableColumn.SpecCode].ToString());		            // 規格・寸法キー
+                wrk.ItemName = objwrk[(int)TableColumn.ItemName].ToString();		                        // 作業名称
+                wrk.SpecName = objwrk[(int)TableColumn.SpecName].ToString();		                        // 作業／品質・形状・寸法
+                wrk.UnitCount = double.Parse(objwrk[(int)TableColumn.UnitCount].ToString());		        // 数量
+                wrk.UnitName = objwrk[(int)TableColumn.UnitName].ToString();		                        // 単位
+                wrk.UnitPrice = double.Parse(objwrk[(int)TableColumn.UnitPrice].ToString());		        // 単価
+                wrk.LineTotal = double.Parse(objwrk[(int)TableColumn.LineTotal].ToString());		        // 金額
+                wrk.Note = objwrk[(int)TableColumn.Note].ToString();			                            // 備考
+                wrk.CompanyCode = int.Parse(objwrk[(int)TableColumn.CompanyCode].ToString());		        // 協力会社コード
+                wrk.MyExpensesFlg = int.Parse(objwrk[(int)TableColumn.MyExpensesFlg].ToString());          // 自社経費フラグ
+                wrk.InputFlg = int.Parse(objwrk[(int)TableColumn.InputFlg].ToString());                    // 入力フラグ
                 
-                wrk.EntryDate = DateTime.Parse(objwrk[(int)EstimateDataDetailColumn.EntryDate].ToString());
-                wrk.UpdateDate = DateTime.Parse(objwrk[(int)EstimateDataDetailColumn.UpdateDate].ToString());
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.EntryDate].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UpdateDate].ToString());
             }
             catch (OracleException oraex)
             {
@@ -389,7 +389,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(LineCount) FROM EstimateDataDetail" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(LineCount), 0) FROM EstimateDataDetail" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -462,6 +462,13 @@
                 // SQL実行
                 if (!ExecuteNonQuery(strcmd, bConnect)) return false;
 
+                //strcmd = "UPDATE EstimateDataDetail SET EntryDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                //strcmd += CreatePrimarykeyString(FromCode);
+
+                //// SQL実行
+                //if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
                 return true;
             }
             catch (Exception ex)
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOInputSearchLogData.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOInputSearchLogData.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOInputSearchLogData.cs	(revision 6)
@@ -347,7 +347,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DisplayOrder) FROM InputSearchLogData" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DisplayOrder), 0) FROM InputSearchLogData" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMApproval.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMApproval.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMApproval.cs	(revision 6)
@@ -296,7 +296,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM ApprovalMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM ApprovalMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMBusinessType.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMBusinessType.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMBusinessType.cs	(revision 6)
@@ -260,7 +260,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(BusinessTypeCode) FROM BusinessTypeMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(BusinessTypeCode), 0) FROM BusinessTypeMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostLarge.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostLarge.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostLarge.cs	(revision 6)
@@ -324,7 +324,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(LargeCode) FROM CommonCostLarge" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(LargeCode), 0) FROM CommonCostLarge" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostLinkMS.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostLinkMS.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostLinkMS.cs	(revision 6)
@@ -306,7 +306,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DisplsyOrder) FROM CommonCostLinkMS" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DisplsyOrder), 0) FROM CommonCostLinkMS" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostMiddle.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostMiddle.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMCommonCostMiddle.cs	(revision 6)
@@ -329,7 +329,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(MiddleCode) FROM CommonCostMiddle" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(MiddleCode), 0) FROM CommonCostMiddle" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponent.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponent.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponent.cs	(revision 6)
@@ -334,7 +334,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(ComponentCode) FROM ComponentMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(ComponentCode), 0) FROM ComponentMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponentLink.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponentLink.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMComponentLink.cs	(revision 6)
@@ -306,7 +306,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DisplsyOrder) FROM ComponentLinkMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DisplsyOrder), 0) FROM ComponentLinkMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionItem.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionItem.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionItem.cs	(revision 6)
@@ -357,7 +357,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(ItemCode) FROM ConstructionItemMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(ItemCode), 0) FROM ConstructionItemMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpec.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpec.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpec.cs	(revision 6)
@@ -367,7 +367,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SpecCode) FROM ConstructionSpecMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SpecCode), 0) FROM ConstructionSpecMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -427,7 +427,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DisplayOrder) FROM ConstructionSpecMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DisplayOrder), 0) FROM ConstructionSpecMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpecUnitPrice.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpecUnitPrice.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionSpecUnitPrice.cs	(revision 6)
@@ -324,7 +324,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SpecCode) FROM ConstructionSpecUnitPrice" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SpecCode), 0) FROM ConstructionSpecUnitPrice" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionTypeMaster.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionTypeMaster.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMConstructionTypeMaster.cs	(revision 6)
@@ -347,7 +347,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(TypeCode) FROM ConstructionTypeMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(TypeCode), 0) FROM ConstructionTypeMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -384,7 +384,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DisplayOrder) FROM ConstructionTypeMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DisplayOrder), 0) FROM ConstructionTypeMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartment.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartment.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartment.cs	(revision 6)
@@ -332,7 +332,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DepartmentCode) FROM DepartmentMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DepartmentCode), 0) FROM DepartmentMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartmentExpenses.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartmentExpenses.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartmentExpenses.cs	(revision 6)
@@ -344,7 +344,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(NameCode) FROM DepartmentExpensesMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(NameCode), 0) FROM DepartmentExpensesMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDivision.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDivision.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDivision.cs	(revision 6)
@@ -323,7 +323,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(NameCode) FROM DivisionMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(NameCode), 0) FROM DivisionMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMExpenses.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMExpenses.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMExpenses.cs	(revision 6)
@@ -323,7 +323,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(NameCode) FROM ExpensesMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(NameCode), 0) FROM ExpensesMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMOrderers.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMOrderers.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMOrderers.cs	(revision 6)
@@ -340,7 +340,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(OrderersCode) FROM OrderersMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(OrderersCode), 0) FROM OrderersMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -399,7 +399,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DisplayOrder) FROM OrderersMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DisplayOrder), 0) FROM OrderersMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMPersonInCharge.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMPersonInCharge.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMPersonInCharge.cs	(revision 6)
@@ -362,7 +362,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(PersonCode) FROM PersonInChargeMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(PersonCode), 0) FROM PersonInChargeMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -393,7 +393,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DisplayOrder) FROM PersonInChargeMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DisplayOrder), 0) FROM PersonInChargeMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSubContractor.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSubContractor.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSubContractor.cs	(revision 6)
@@ -416,7 +416,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(CompanyCode) FROM SubContractorMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(CompanyCode), 0) FROM SubContractorMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSubContractorItem.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSubContractorItem.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSubContractorItem.cs	(revision 6)
@@ -284,7 +284,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(ItemCode) FROM SubContractorItemMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(ItemCode), 0) FROM SubContractorItemMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSubContractorJobCategory.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSubContractorJobCategory.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSubContractorJobCategory.cs	(revision 6)
@@ -334,7 +334,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(JobCategoryCode) FROM SubContractorJobCategory" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(JobCategoryCode), 0) FROM SubContractorJobCategory" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSuppliers.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSuppliers.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSuppliers.cs	(revision 6)
@@ -371,7 +371,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SuppliersCode) FROM SuppliersMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SuppliersCode), 0) FROM SuppliersMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -433,7 +433,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(DISPLAYORDER) FROM SUPPLIERSMASTER" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(DISPLAYORDER), 0) FROM SUPPLIERSMASTER" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSystem.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSystem.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMSystem.cs	(revision 6)
@@ -386,7 +386,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SystemCode) FROM SytemMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SystemCode), 0) FROM SytemMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMTerm.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMTerm.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMTerm.cs	(revision 6)
@@ -39,7 +39,7 @@
             DisplayOrder,
             CheckSchdule,
             TermDays,
-            SendTitile,
+            SendTitle,
             SendMessage,
             BackColor,
             ForeColor,
@@ -133,7 +133,7 @@
                 strcmd += string.Format(",{0}", data.DisplayOrder);
                 strcmd += string.Format(",{0}", data.CheckSchdule.ToString());
                 strcmd += string.Format(",{0}", data.TermDays.ToString());
-                strcmd += string.Format(",'{0}'", data.SendTitile);
+                strcmd += string.Format(",'{0}'", data.SendTitle);
                 strcmd += string.Format(",'{0}'", data.SendMessage);
                 strcmd += string.Format(",'{0}'", data.BackColor);
                 strcmd += string.Format(",'{0}'", data.ForeColor);
@@ -192,7 +192,7 @@
                 strcmd += string.Format(",CheckSchdule = {0}", data.CheckSchdule.ToString());
 
                 strcmd += string.Format(",TermDays = {0}", data.TermDays.ToString());
-                strcmd += string.Format(",SendTitile = '{0}'", data.SendTitile);
+                strcmd += string.Format(",SendTitile = '{0}'", data.SendTitle);
                 strcmd += string.Format(",SendMessage = '{0}'", data.SendMessage);
                 strcmd += string.Format(",BackColor = '{0}'", data.BackColor);
                 strcmd += string.Format(",ForeColor = '{0}'", data.ForeColor);
@@ -255,7 +255,7 @@
 
                 wrk.CheckSchdule = int.Parse(objwrk[(int)NameColumn.CheckSchdule].ToString());
                 wrk.TermDays = int.Parse(objwrk[(int)NameColumn.TermDays].ToString());
-                wrk.SendTitile = objwrk[(int)NameColumn.SendTitile].ToString();
+                wrk.SendTitle = objwrk[(int)NameColumn.SendTitle].ToString();
                 wrk.SendMessage = objwrk[(int)NameColumn.SendMessage].ToString();
                 wrk.BackColor = objwrk[(int)NameColumn.BackColor].ToString();
                 wrk.ForeColor = objwrk[(int)NameColumn.ForeColor].ToString();
@@ -316,7 +316,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM TermMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM TermMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMUnit.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMUnit.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMUnit.cs	(revision 6)
@@ -260,7 +260,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(UnitKey) FROM UnitMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(UnitKey), 0) FROM UnitMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMVehicle.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMVehicle.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMVehicle.cs	(revision 6)
@@ -350,7 +350,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(VehicleCode) FROM VehicleMaster" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(VehicleCode), 0) FROM VehicleMaster" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMVehicleRecordData.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMVehicleRecordData.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMVehicleRecordData.cs	(revision 6)
@@ -287,7 +287,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM VehicleRecordData" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM VehicleRecordData" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardData.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardData.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardData.cs	(revision 6)
@@ -37,7 +37,7 @@
             BranchNumber,           // レコード枝番
             FromCode,               // 書込み者コード
             FromName,               // 書込み者名
-            MessageTitile,          // 伝言タイトル
+            MessageTitle,           // 伝言タイトル
             MessageContent,         // 伝言内容
             LinkType,               // リンク動作タイプ
             LinkMessage,            // リンク文字列
@@ -65,9 +65,9 @@
 
         #endregion
 
-        #region パブリックメソッド
+        #region 掲示板データ検索文字作成
         /// <summary>
-        /// 掲示板データ検索
+        /// 掲示板データ検索文字作成
         /// </summary>
         /// <param name="AddSQLString">検索条件SQL文字列</param>
         /// <param name="data">掲示板データデータ</param>
@@ -97,6 +97,16 @@
 
             return strcmd;
         }
+        #endregion
+
+        #region 掲示板データ複数検索
+        /// <summary>
+        /// 掲示板データ複数検索
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
         public bool SelectAction(string AddSQLString, ref List<MessageBoardData> data, bool bConnect = true)
         {
             //Oracle インターフェース
@@ -127,6 +137,16 @@
                 return false;
             }
         }
+        #endregion
+
+        #region 掲示板データ１件検索
+        /// <summary>
+        /// 掲示板データ１件検索
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
         public bool SelectAction(string AddSQLString, ref MessageBoardData data, bool bConnect = true)
         {
             //Oracle インターフェース
@@ -158,9 +178,11 @@
                 return false;
             }
         }
+        #endregion
 
+        #region 掲示板データ１件追加
         /// <summary>
-        /// 掲示板データ追加
+        /// 掲示板データ１件追加
         /// </summary>
         /// <param name="data">掲示板データデータ</param>
         /// <returns>true：成功 false：失敗</returns>
@@ -178,7 +200,7 @@
                     strcmd += string.Format(", {0} ", data.BranchNumber.ToString());
                     strcmd += string.Format(", {0} ", data.FromCode);
                     strcmd += string.Format(",'{0}'", data.FromName);
-                    strcmd += string.Format(",'{0}'", data.MessageTitile);
+                    strcmd += string.Format(",'{0}'", data.MessageTitle);
                     strcmd += string.Format(",'{0}'", data.MessageContent);
                     strcmd += string.Format(", {0} ", data.LinkType);
                     strcmd += string.Format(",'{0}'", data.LinkMessage);
@@ -205,6 +227,15 @@
                 return false;
             }
         }
+        #endregion
+
+        #region 掲示板データ複数追加
+        /// <summary>
+        /// 掲示板データ複数追加
+        /// </summary>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
         public bool InsertAction(List<MessageBoardData> data, bool bConnect = true)
         {
             string strcmd = "";
@@ -222,7 +253,9 @@
                 return false;
             }
         }
+        #endregion
 
+        #region 掲示板データ更新
         /// <summary>
         /// 掲示板データ更新
         /// </summary>
@@ -243,7 +276,7 @@
                 strcmd += string.Format(",BranchNumber = {0} ", data.BranchNumber.ToString());
                 strcmd += string.Format(",FromCode = {0} ", data.FromCode);
                 strcmd += string.Format(",FromName = '{0}'", data.FromName.ToString());
-                strcmd += string.Format(",MessageTitile = '{0}'", data.MessageTitile.ToString());
+                strcmd += string.Format(",MessageTitile = '{0}'", data.MessageTitle.ToString());
                 strcmd += string.Format(",MessageContent = '{0}'", data.MessageContent.ToString());
                 strcmd += string.Format(",LinkType = {0} ", data.LinkType);
                 strcmd += string.Format(",LinkMessage = '{0}'", data.LinkMessage.ToString());
@@ -268,8 +301,9 @@
                 return false;
             }
         }
+        #endregion
 
-
+        #region 掲示板データ削除
         /// <summary>
         /// 掲示板データ削除
         /// </summary>
@@ -294,7 +328,9 @@
                 return false;
             }
         }
+        #endregion
 
+        #region OracleDataReaderより構造体へセットする
         /// <summary>
         /// OracleDataReaderより構造体へセットする
         /// </summary>
@@ -309,7 +345,7 @@
                 wrk.BranchNumber = int.Parse(objwrk[(int)NameColumn.BranchNumber].ToString());
                 wrk.FromCode = int.Parse(objwrk[(int)NameColumn.FromCode].ToString());
                 wrk.FromName = objwrk[(int)NameColumn.FromName].ToString();
-                wrk.MessageTitile = objwrk[(int)NameColumn.MessageTitile].ToString();
+                wrk.MessageTitle = objwrk[(int)NameColumn.MessageTitle].ToString();
                 wrk.MessageContent = objwrk[(int)NameColumn.MessageContent].ToString();
                 wrk.LinkType = int.Parse(objwrk[(int)NameColumn.LinkType].ToString());
                 wrk.LinkMessage = objwrk[(int)NameColumn.LinkMessage].ToString();
@@ -333,11 +369,45 @@
                 logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(), ex.Message);
             }
         }
+        #endregion
 
+        #region データクリア
+        /// <summary>
+        /// データクリア
+        /// </summary>
+        /// <param name="wrk"></param>
+        public void ClearStruct(ref MessageBoardData wrk)
+        {
+            try
+            {
+                wrk.RecordNumber = 0;                   // レコード番号
+                wrk.BranchNumber = 0;                   // レコード枝番
+                wrk.FromCode = 0;                       // 書込み者名
+                wrk.FromName = string.Empty;            // 書込み者名
+                wrk.MessageTitle = string.Empty;        // 伝言タイトル
+                wrk.MessageContent = string.Empty;      // 伝言内容
+                wrk.LinkType = 0;                       // リンク動作タイプ
+                wrk.LinkMessage = string.Empty;         // リンク文字列
+                wrk.LinkCode = string.Empty;            // リンクキー
+
+                wrk.WritingDate = DateTime.MinValue;    // 書込み日付
+                wrk.PersonCode = 0;                     // 書込み担当者コード
+                wrk.ShareFlag = 0;                      // 管理者対象フラグ
+                wrk.MessageColor = string.Empty;        // 文字色
+                wrk.BackColor = string.Empty;           // 背景色
+                wrk.MessageFlag = 0;                    // メッセージフラグ
+
+                wrk.EntryDate = DateTime.Now;           // 登録日付
+                wrk.UpdateDate = DateTime.Now;          // 更新日付
+            }
+            catch (OracleException oraex)
+            {
+                logger.ErrorFormat("クリアエラー：{0}：{1}", CommonMotions.GetMethodName(), oraex.Message);
+            }
+        }
         #endregion
 
-        #region パブリックメソッド（特殊処理）
-
+        #region 主キー検索の文字列を返す
         /// <summary>
         /// 主キー検索の文字列を返す
         /// </summary>
@@ -359,9 +429,11 @@
 
             return strWork;
         }
+        #endregion
 
+        #region レコード番号の最大値を取得する
         /// <summary>
-        /// 最大値を取得する
+        /// レコード番号の最大値を取得する
         /// </summary>
         /// <param name="AddSQLString"></param>
         /// <param name="bConnect"></param>
@@ -375,7 +447,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(RecordNumber) FROM MessageBoardData" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(RecordNumber), 0) FROM MessageBoardData" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -396,8 +468,11 @@
 
             return iRet;
         }
+        #endregion
+
+        #region 枝番の最大値を取得する
         /// <summary>
-        /// 最大値を取得する
+        /// 枝番の最大値を取得する
         /// </summary>
         /// <param name="AddSQLString"></param>
         /// <param name="bConnect"></param>
@@ -411,7 +486,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(BranchNumber) FROM MessageBoardData" + string.Format(" Where RecordNumber = {0}", RecordNumber);
+                strcmd = "SELECT NVL(MAX(BranchNumber), 0) FROM MessageBoardData" + string.Format(" Where RecordNumber = {0}", RecordNumber);
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardDataTerget.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardDataTerget.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardDataTerget.cs	(revision 6)
@@ -335,7 +335,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(RecordNumber) FROM MessageBoardTerget" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(RecordNumber), 0) FROM MessageBoardTerget" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -371,7 +371,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(BranchNumber) FROM MessageBoardTerget" + string.Format(" Where RecordNumber = {0}", RecordNumber);
+                strcmd = "SELECT NVL(MAX(BranchNumber), 0) FROM MessageBoardTerget" + string.Format(" Where RecordNumber = {0}", RecordNumber);
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
@@ -407,7 +407,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNum) FROM MessageBoardTerget" + CreatePrimarykeyString(RecordNumber, BranchNumber);
+                strcmd = "SELECT NVL(MAX(SeqNum), 0) FROM MessageBoardTerget" + CreatePrimarykeyString(RecordNumber, BranchNumber);
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBrowsingHistory.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBrowsingHistory.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBrowsingHistory.cs	(revision 6)
@@ -352,7 +352,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNum) FROM MESSAGEBROWSINGHISTORY" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNum), 0) FROM MESSAGEBROWSINGHISTORY" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOOrdersPriceData.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOOrdersPriceData.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOOrdersPriceData.cs	(revision 6)
@@ -0,0 +1,402 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Data;
+using System.Collections;
+
+using log4net;
+using Oracle.ManagedDataAccess.Client;
+
+using ProcessManagement.DB.Oracle;
+using ProcessManagement.DB.Core;
+using ProcessManagement.DataModel;
+using ProcessManagement.Common;
+
+namespace ProcessManagement.DB.IOAccess
+{
+    /// <summary>
+    /// 受注金額データＤＢアクセス
+    /// </summary>
+    public class IOOrdersPriceData : OracleProcess
+    {
+        #region 定義部
+        /// <summary>
+        /// log4netログを使用する
+        /// </summary>
+        private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+        /// <summary>
+        /// 担当者毎経費データフィールド並び
+        /// </summary>
+        public enum OrdersPriceDataColumn
+        {
+            ConstructionCode = 0,       // 工事コード
+            ChangeNo,	                // 変更番号
+            ChangeDate,	                // 変更日
+            ChangePersonCode,           // 変更者コード
+            ChangePersonName,           // 変更者名
+            BeforeValue,                // 変更前税抜受注金額
+            BeforeValueInTax,           // 　〃　税込受注金額
+            AfterValue,                 // 変更後税抜受注金額
+            AfterValueInTax,            // 　〃　税込受注金額
+            ChangeComment,              // 変更理由
+
+            EntryDate,
+            UpdateDate,
+        }
+        #endregion
+
+        #region コンストラクタ
+        /// <summary>
+        /// コンストラクタ
+        /// </summary>
+        /// <param name="ConnectionString"></param>
+        public IOOrdersPriceData()
+            : base(DBCommon.Instance.DBConnectString)
+        {
+        }
+
+        #endregion
+
+        #region SQL作成
+        /// <summary>
+        /// SQL作成
+        /// </summary>
+        private string CreateSelectSQL()
+        {
+            // SQL作成（oracleのDateTime型が変換できないのでCharに変換しておく）
+            string strcmd = "SELECT";
+
+            strcmd += "  ConstructionCode";             // 工事コード
+            strcmd += " ,ChangeNo";	                    // 変更番号
+            strcmd += " ,ChangeDate";	                // 変更日
+            strcmd += " ,ChangePersonCode";             // 変更者コード
+            strcmd += " ,ChangePersonName";             // 変更者名
+            strcmd += " ,BeforeValue";                  // 変更前税抜受注金額
+            strcmd += " ,BeforeValueInTax";             // 　〃　税込受注金額
+            strcmd += " ,AfterValue";                   // 変更後税抜受注金額
+            strcmd += " ,AfterValueInTax";              // 　〃　税込受注金額
+            strcmd += " ,ChangeComment";                // 変更理由
+
+            strcmd += ", TO_CHAR(EntryDate, 'YYYY/MM/DD HH24:MI:ss')";
+            strcmd += ", TO_CHAR(UpdateDate, 'YYYY/MM/DD HH24:MI:ss')";
+            strcmd += " FROM OrdersPriceData";
+
+            return strcmd;
+        }
+        #endregion
+
+        #region 複数読込み処理
+        public bool SelectAction(string AddSQLString, ref List<OrdersPriceData> data, bool bConnect = true)
+        {
+            //Oracle インターフェース
+            string strcmd = "";
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                // SQL作成
+                strcmd = CreateSelectSQL() + AddSQLString;
+
+                // SQL実行
+                if (!ExecuteReader(strcmd, ref arData, bConnect)) return false;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    OrdersPriceData work = new OrdersPriceData();
+                    Reader2Struct(objwrk, ref work);
+                    data.Add(work);
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 1件読込み処理
+        public bool SelectAction(string AddSQLString, ref OrdersPriceData data, bool bConnect = true)
+        {
+            //Oracle インターフェース
+            string strcmd = "";
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                strcmd = CreateSelectSQL() + AddSQLString;
+
+                // SQL実行
+                if (!ExecuteReader(strcmd, ref arData, bConnect)) return false;
+                if (arData.Count == 0) return false;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    Reader2Struct(objwrk, ref data);
+                    break;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 1件追加処理
+        /// <summary>
+        /// 担当者毎経費データ追加
+        /// </summary>
+        /// <param name="data">担当者毎経費データデータ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool InsertAction(OrdersPriceData work, bool bConnect = true)
+        {
+            string strcmd = "";
+            try
+            {
+                strcmd = "INSERT INTO OrdersPriceData";
+
+                strcmd += " VALUES (";
+
+                strcmd += string.Format("  {0}", work.ConstructionCode);                    // 工事コード
+
+                strcmd += string.Format(", {0}", work.ChangeNo);	                        // 変更番号
+                strcmd += string.Format(", TO_DATE('{0}','YYYY/MM/DD')"
+                                                , work.ChangeDate.ToShortDateString());	    // 変更日
+                strcmd += string.Format(", {0}", work.ChangePersonCode);                    // 変更者コード
+                strcmd += string.Format(",'{0}'", work.ChangePersonName);                   // 変更者名
+                
+                strcmd += string.Format(", {0}", work.BeforeValue);                         // 変更前税抜受注金額
+                strcmd += string.Format(", {0}", work.BeforeValueInTax);                    // 　〃　税込受注金額
+                strcmd += string.Format(", {0}", work.AfterValue);                          // 変更後税抜受注金額
+                strcmd += string.Format(", {0}", work.AfterValueInTax);                     // 　〃　税込受注金額
+
+                strcmd += string.Format(",'{0}'", work.ChangeComment);                      // 変更理由
+
+                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                strcmd = strcmd + ")";
+
+                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 複数追加処理
+        public bool InsertAction(List<OrdersPriceData> data, bool bConnect = true)
+        {
+            string strcmd = "";
+            try
+            {
+
+                foreach (OrdersPriceData work in data)
+                {
+                    if (!InsertAction(work, bConnect)) return false;
+                }
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 更新処理
+        /// <summary>
+        /// 担当者毎経費データ更新
+        /// </summary>
+        /// <param name="AddSQLString">更新条件SQL文字列</param>
+        /// <param name="data">担当者毎経費データデータ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool UpdateAction(string AddSQLString, OrdersPriceData data, bool bConnect = true)
+        {
+            string strcmd = "";
+            try
+            {
+
+                strcmd = "UPDATE OrdersPriceData";
+
+                strcmd += " SET";
+
+                strcmd += string.Format(" ConstructionCode = {0}", data.ConstructionCode);                  // 工事コード
+
+                strcmd += string.Format(",ChangeNo = {0}", data.ChangeNo);	                                // 変更番号
+                strcmd += string.Format(",ChangeDate = TO_DATE('{0}','YYYY/MM/DD')"
+                                        , data.ChangeDate.ToShortDateString());	                            // 変更日
+                strcmd += string.Format(",ChangePersonCode = {0}", data.ChangePersonCode);                  // 変更者コード
+                strcmd += string.Format(",ChangePersonName = '{0}'", data.ChangePersonName);                // 変更者名
+                
+                strcmd += string.Format(",BeforeValue = {0}", data.BeforeValue);                            // 変更前税抜受注金額
+                strcmd += string.Format(",BeforeValueInTax = {0}", data.BeforeValueInTax);                  // 　〃　税込受注金額
+                strcmd += string.Format(",AfterValue = {0}", data.AfterValue);                              // 変更後税抜受注金額
+                strcmd += string.Format(",AfterValueInTax = {0}", data.AfterValueInTax);                    // 　〃　税込受注金額
+
+                strcmd += string.Format(",ChangeComment = '{0}'", data.ChangeComment);                      // 変更理由
+
+                strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
+                strcmd += AddSQLString;
+
+                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 削除処理
+        /// <summary>
+        /// 担当者毎経費データ削除
+        /// </summary>
+        /// <param name="AddSQLString">削除条件SQL文字列</param>
+        /// <param name="data">担当者毎経費データデータ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool DeleteAction(string AddSQLString, bool bConnect = true)
+        {
+            //Oracle インターフェース
+            string strcmd = "";
+            try
+            {
+                strcmd = string.Format("{0}{1}", "DELETE FROM OrdersPriceData", AddSQLString);
+
+                if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+                return false;
+            }
+        }
+        #endregion
+
+        #region データセット処理
+        /// <summary>
+        /// OracleDataReaderより構造体へセットする
+        /// </summary>
+        /// <param name="reader">OracleDataReader</param>
+        /// <param name="wrk">構造体</param>
+        public void Reader2Struct(object[] objwrk, ref OrdersPriceData wrk)
+        {
+            try
+            {
+                // データ取得
+                wrk.ConstructionCode = int.Parse(objwrk[(int)OrdersPriceDataColumn.ConstructionCode].ToString());                   // 工事コード
+                wrk.ChangeNo = int.Parse(objwrk[(int)OrdersPriceDataColumn.ChangeNo].ToString());	                                // 変更番号
+                wrk.ChangeDate = DateTime.Parse(objwrk[(int)OrdersPriceDataColumn.ChangeDate].ToString());	                        // 変更日
+                wrk.ChangePersonCode = int.Parse(objwrk[(int)OrdersPriceDataColumn.ChangePersonCode].ToString());                   // 変更者コード
+                wrk.ChangePersonName = objwrk[(int)OrdersPriceDataColumn.ChangePersonName].ToString();                              // 変更者名
+
+                wrk.BeforeValue = int.Parse(objwrk[(int)OrdersPriceDataColumn.BeforeValue].ToString());                             // 変更前税抜受注金額
+                wrk.BeforeValueInTax = int.Parse(objwrk[(int)OrdersPriceDataColumn.BeforeValueInTax].ToString());                   // 　〃　税込受注金額
+                wrk.AfterValue = int.Parse(objwrk[(int)OrdersPriceDataColumn.AfterValue].ToString());                               // 変更後税抜受注金額
+                wrk.AfterValueInTax = int.Parse(objwrk[(int)OrdersPriceDataColumn.AfterValueInTax].ToString());                     // 　〃　税込受注金額
+
+                wrk.ChangeComment = objwrk[(int)OrdersPriceDataColumn.ChangeComment].ToString();                                    // 変更理由
+
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)OrdersPriceDataColumn.EntryDate].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)OrdersPriceDataColumn.UpdateDate].ToString());
+            }
+            catch (OracleException oraex)
+            {
+                logger.ErrorFormat("オラクルエラー：{0}：{1}", CommonMotions.GetMethodName(2), oraex.Message);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(2), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 検索文字列作成処理
+        /// <summary>
+        /// 主キー検索の文字列を返す
+        /// </summary>
+        /// <param name="PersonCode"></param>
+        /// <param name="ActionDate"></param>
+        /// <param name="DataType"></param>
+        /// <param name="DataAddCount"></param>
+        /// <returns></returns>
+        public string CreatePrimarykeyString(int ConstructionCode, int ChangeNo = 0)
+        {
+            string strWork = "";
+            try
+            {
+                strWork = string.Format(" WHERE ConstructionCode = {0}", ConstructionCode);
+                if (ChangeNo != 0)
+                    strWork += string.Format(" AND ChangeNo = {0}", ChangeNo);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strWork);
+            }
+
+            return strWork;
+        }
+        #endregion
+
+        #region 追加番号の最大値を取得
+        /// <summary>
+        /// 追加番号の最大値を取得する
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public int SelectMaxAddDataCount(string AddSQLString, bool bConnect = true)
+        {
+            //Oracle インターフェース
+            string strcmd = "";
+            ArrayList arData = new ArrayList();
+            int iRet = 0;
+            try
+            {
+                // SQL作成
+                strcmd = "SELECT NVL(MAX(ChangeNo), 0) FROM OrdersPriceData" + AddSQLString;
+
+                // SQL実行
+                if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    if (objwrk[0].ToString().Equals("null"))
+                        iRet = 0;
+                    else
+                        iRet = int.Parse(objwrk[0].ToString());
+                }
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd);
+            }
+            return iRet;
+        }
+        #endregion
+    }
+}
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPointingOutComment.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPointingOutComment.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPointingOutComment.cs	(revision 6)
@@ -355,7 +355,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM PointingOutComment" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM PointingOutComment" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOProceedingsDataDetail.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOProceedingsDataDetail.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOProceedingsDataDetail.cs	(revision 6)
@@ -52,11 +52,11 @@
             /// <summary>
             /// 議題番号
             /// </summary>
-            TitileNo,
+            TitleNo,
             /// <summary>
             /// 議題
             /// </summary>
-            Titile,
+            Title,
             /// <summary>
             /// 内容
             /// </summary>
@@ -194,8 +194,8 @@
                 strcmd += string.Format(", {0}", work.ConstructionCode);                    // 工事番号
                 strcmd += string.Format(", {0}", work.SeqNo);                               // データ行番号
 
-                strcmd += string.Format(", {0}", work.TitileNo);                            // 議題番号
-                strcmd += string.Format(",'{0}'", work.Titile);                             // 議題
+                strcmd += string.Format(", {0}", work.TitleNo);                            // 議題番号
+                strcmd += string.Format(",'{0}'", work.Title);                             // 議題
                 strcmd += string.Format(",'{0}'", work.Contents);                           // 内容
 
                 strcmd += ", TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
@@ -258,8 +258,8 @@
                 strcmd += string.Format(",ConstructionCode = {0}", data.ConstructionCode);      // 工事番号
                 strcmd += string.Format(",SeqNo = {0}", data.SeqNo);                            // データ行番号
 
-                strcmd += string.Format(",TitileNo = {0}", data.TitileNo);                      // 議題番号
-                strcmd += string.Format(",Titile = '{0}'", data.Titile);                        // 議題
+                strcmd += string.Format(",TitileNo = {0}", data.TitleNo);                       // 議題番号
+                strcmd += string.Format(",Titile = '{0}'", data.Title);                         // 議題
                 strcmd += string.Format(",Contents = '{0}'", data.Contents);                    // 内容
 
                 strcmd += ", UpdateDate = TO_DATE(TO_CHAR(sysdate,'YYYY/MM/DD HH24:MI:SS'),'YYYY/MM/DD HH24:MI:SS')";
@@ -320,8 +320,8 @@
                 wrk.ConstructionCode = int.Parse(objwrk[(int)DataColumn.ConstructionCode].ToString());      // 工事番号
                 wrk.SeqNo = int.Parse(objwrk[(int)DataColumn.SeqNo].ToString());                            // データ行番号
 
-                wrk.TitileNo = int.Parse(objwrk[(int)DataColumn.TitileNo].ToString());                      // 議題番号
-                wrk.Titile = objwrk[(int)DataColumn.Titile].ToString();                                     // 議題
+                wrk.TitleNo = int.Parse(objwrk[(int)DataColumn.TitleNo].ToString());                        // 議題番号
+                wrk.Title = objwrk[(int)DataColumn.Title].ToString();                                       // 議題
                 wrk.Contents = objwrk[(int)DataColumn.Contents].ToString();                                 // 内容
 
                 wrk.EntryDate = DateTime.Parse(objwrk[(int)DataColumn.EntryDate].ToString());
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOProcessApproval.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOProcessApproval.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOProcessApproval.cs	(revision 6)
@@ -376,7 +376,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM ProcessApproval" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM ProcessApproval" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPurchaseOrder.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPurchaseOrder.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPurchaseOrder.cs	(revision 6)
@@ -491,7 +491,7 @@
             try
             {
                 // SQL作成
-                strcmd = "SELECT MAX(SeqNo) FROM PurchaseOrder" + AddSQLString;
+                strcmd = "SELECT NVL(MAX(SeqNo), 0) FROM PurchaseOrder" + AddSQLString;
 
                 // SQL実行
                 if (!ExecuteReader(strcmd, ref arData, bConnect)) return iRet;
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/CalennderPage.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/CalennderPage.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/CalennderPage.cs	(revision 6)
@@ -16,7 +16,7 @@
         /// <summary>
         /// 週タイトル
         /// </summary>
-        private Label[] m_lblWeekTitile = new Label[7];
+        private Label[] m_lblWeekTitle = new Label[7];
         /// <summary>
         /// 日データ
         /// </summary>
@@ -25,10 +25,10 @@
         /// <summary>
         /// 週タイトル
         /// </summary>
-        public Label[] lblWeekTitile
+        public Label[] lblWeekTitle
         {
-            get { return m_lblWeekTitile; }
-            set { m_lblWeekTitile = value; }
+            get { return m_lblWeekTitle; }
+            set { m_lblWeekTitle = value; }
         }
         /// <summary>
         /// 日データ
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBaseInfo.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBaseInfo.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBaseInfo.cs	(revision 6)
@@ -12,7 +12,8 @@
     {
         #region メンバ変数
 
-        private int         m_ConstructionCode = 0;	                            // 工事コード	
+        private int         m_ConstructionCode = 0;	                            // 工事コード
+        private int         m_TyingFlg = 0;                                     // 紐付データフラグ
         private int         m_ConstructionYear = 0;	                            // 工事年度
         private int         m_ConstructionPeriod = 0;	                        // 工事期
         private DateTime    m_RequestedDate = DateTime.MinValue;                // 依頼受け日
@@ -75,6 +76,14 @@
             set { m_ConstructionCode = value; }
         }
         /// <summary>
+        /// 紐付データフラグ
+        /// </summary>
+        public int TyingFlg
+        {
+            get { return m_TyingFlg; }
+            set { m_TyingFlg = value; }
+        }
+        /// <summary>
         /// 工事年度
         /// </summary>
         public int ConstructionYear
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBudget.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBudget.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBudget.cs	(revision 6)
@@ -17,6 +17,11 @@
         private int         m_CreatorCode = 0;                          // 作成者コード
         private string      m_CreatorName = string.Empty;               // 作成者名
         private double      m_CreatorCosts = 0;                         // 作成者給与
+
+        private int         m_AssistantCode	= 0;                        // 副担当者コード
+        private string      m_AssistantName = string.Empty;             // 副担当者名
+        private double      m_AssistantCosts = 0;                       // 副担当者給与
+
         private int         m_InstructorCode = 0;                       // 工事指導員コード
         private string      m_InstructorName = string.Empty;            // 工事指導員名
         private double      m_InstructorCosts = 0;                      // 工事指導員給与
@@ -30,6 +35,12 @@
         private int         m_SalaryFlg = 0;                            // 給与振分区分
         private int         m_SalaryDays = 0;                           // 振分日数
 
+        private int         m_A_SalaryFlg = 0;                          // 副担当者給与振分区分
+        private int         m_A_SalaryDays = 0;                         // 副担当者振分日数
+
+        private int         m_I_SalaryFlg = 0;                          // 指導員給与振分区分
+        private int         m_I_SalaryDays = 0;                         // 指導員振分日数
+
         private DateTime    m_EntryDate = DateTime.Now;                 // 登録日付
         private DateTime    m_UpdateDate = DateTime.Now;                // 更新日付
         #endregion
@@ -71,6 +82,30 @@
             set { m_CreatorCosts = value; }
         }
         /// <summary>
+        /// 副担当者コード
+        /// </summary>
+        public int AssistantCode
+        {
+            get { return m_AssistantCode; }
+            set { m_AssistantCode = value; }
+        }
+        /// <summary>
+        /// 副担当者名
+        /// </summary>
+        public string AssistantName
+        {
+            get { return m_AssistantName; }
+            set { m_AssistantName = value; }
+        }
+        /// <summary>
+        /// 副担当者給与
+        /// </summary>
+        public double AssistantCosts
+        {
+            get { return m_AssistantCosts; }
+            set { m_AssistantCosts = value; }
+        }
+        /// <summary>
         /// 工事指導員コード
         /// </summary>
         public int InstructorCode
@@ -136,7 +171,7 @@
         }
 
         /// <summary>
-        /// 給与振分区分
+        /// 担当者給与振分区分
         /// </summary>
         public int SalaryFlg
         {
@@ -143,9 +178,8 @@
             get { return m_SalaryFlg; }
             set { m_SalaryFlg = value; }
         }
-
         /// <summary>
-        /// 振分日数
+        /// 担当者振分日数
         /// </summary>
         public int SalaryDays
         {
@@ -152,7 +186,42 @@
             get { return m_SalaryDays; }
             set { m_SalaryDays = value; }
         }
+
         /// <summary>
+        /// 副担当者給与振分区分
+        /// </summary>
+        public int A_SalaryFlg
+        {
+            get { return m_A_SalaryFlg; }
+            set { m_A_SalaryFlg = value; }
+        }
+        /// <summary>
+        /// 副担当者振分日数
+        /// </summary>
+        public int A_SalaryDays
+        {
+            get { return m_A_SalaryDays; }
+            set { m_A_SalaryDays = value; }
+        }
+
+        /// <summary>
+        /// 指導員給与振分区分
+        /// </summary>
+        public int I_SalaryFlg
+        {
+            get { return m_I_SalaryFlg; }
+            set { m_I_SalaryFlg = value; }
+        }
+        /// <summary>
+        /// 指導員振分日数
+        /// </summary>
+        public int I_SalaryDays
+        {
+            get { return m_I_SalaryDays; }
+            set { m_I_SalaryDays = value; }
+        }
+
+        /// <summary>
         /// 登録日付
         /// </summary>
         public DateTime EntryDate
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionLedgerDetail.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionLedgerDetail.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionLedgerDetail.cs	(revision 6)
@@ -30,6 +30,7 @@
 
         private int     m_FixDataFlg = 0;                   // 固定データフラグ
         private int     m_IndependentFlg = 0;               // 独立データフラグ
+        private int     m_FluctuationFlg = 0;               // 増減データフラグ
 
         private DateTime m_EntryDate = DateTime.Now;        // 登録日付
         private DateTime m_UpdateDate = DateTime.Now;       // 更新日付
@@ -168,6 +169,14 @@
             get { return m_IndependentFlg; }
             set { m_IndependentFlg = value; }
         }
+        /// <summary>
+        /// 増減データフラグ
+        /// </summary>
+        public int FluctuationFlg
+        {
+            get { return m_FluctuationFlg; }
+            set { m_FluctuationFlg = value; }
+        }
 
         /// <summary>
         /// 登録日付
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionLink.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionLink.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/ConstructionLink.cs	(revision 6)
@@ -0,0 +1,62 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace ProcessManagement.DataModel
+{
+    /// <summary>
+    /// 工事増減情報データモデル
+    /// </summary>
+    public class ConstructionLink
+    {
+        #region 定数
+        #endregion
+
+        #region メンバ変数
+
+        private int m_ConstructionCode = 0;	                // 親工事コード	
+        private int m_FluctuationCode = 0;	                // 子工事コード	
+        private DateTime m_EntryDate = DateTime.Now;        // 登録日付
+        private DateTime m_UpdateDate = DateTime.Now;       // 更新日付
+        #endregion
+
+        #region コンストラクタ
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        /// 工事コード	
+        /// </summary>
+        public int ConstructionCode
+        {
+            get { return m_ConstructionCode; }
+            set { m_ConstructionCode = value; }
+        }
+        /// <summary>
+        /// 子工事コード	
+        /// </summary>
+        public int FluctuationCode
+        {
+            get { return m_FluctuationCode; }
+            set { m_FluctuationCode = value; }
+        }
+        /// <summary>
+        /// 登録日付
+        /// </summary>
+        public DateTime EntryDate
+        {
+            set { m_EntryDate = value; }
+            get { return m_EntryDate; }
+        }
+        /// <summary>
+        /// 更新日付
+        /// </summary>
+        public DateTime UpdateDate
+        {
+            set { m_UpdateDate = value; }
+            get { return m_UpdateDate; }
+        }
+        #endregion
+    }
+}
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/DailyDataDetail.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/DailyDataDetail.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/DailyDataDetail.cs	(revision 6)
@@ -38,11 +38,11 @@
         /// <summary>
         /// 当日人員数
         /// </summary>
-        private int m_TodayHeadCount = 0;
+        private double m_TodayHeadCount = 0;
         /// <summary>
         /// 累計人員数
         /// </summary>
-        private int m_TotalHeadCount = 0;
+        private double m_TotalHeadCount = 0;
         /// <summary>
         /// 当日作業内容
         /// </summary>
@@ -54,7 +54,7 @@
         /// <summary>
         /// 翌日人員数
         /// </summary>
-        private int m_NextdayHeadCount = 0;
+        private double m_NextdayHeadCount = 0;
         /// <summary>
         /// 登録年月日
         /// </summary>
@@ -117,7 +117,7 @@
         /// <summary>
         /// 当日人員数
         /// </summary>
-        public int TodayHeadCount
+        public double TodayHeadCount
         {
             get { return m_TodayHeadCount; }
             set { m_TodayHeadCount = value; }
@@ -125,7 +125,7 @@
         /// <summary>
         /// 累計人員数
         /// </summary>
-        public int TotalHeadCount
+        public double TotalHeadCount
         {
             get { return m_TotalHeadCount; }
             set { m_TotalHeadCount = value; }
@@ -149,7 +149,7 @@
         /// <summary>
         /// 翌日人員数
         /// </summary>
-        public int NextdayHeadCount
+        public double NextdayHeadCount
         {
             get { return m_NextdayHeadCount; }
             set { m_NextdayHeadCount = value; }
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/MessageBoardData.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/MessageBoardData.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/MessageBoardData.cs	(revision 6)
@@ -15,7 +15,7 @@
         private int         m_BranchNumber = 0;                     // レコード枝番
         private int         m_FromCode = 0;                         // 書込み者名
         private string      m_FromName = string.Empty;              // 書込み者名
-        private string      m_MessageTitile = string.Empty;         // 伝言タイトル
+        private string      m_MessageTitle = string.Empty;         // 伝言タイトル
         private string      m_MessageContent = string.Empty;        // 伝言内容
         private int         m_LinkType = 0;                         // リンク動作タイプ
         private string      m_LinkMessage = string.Empty;           // リンク文字列
@@ -71,10 +71,10 @@
         /// <summary>
         /// 伝言タイトル
         /// </summary>
-        public string MessageTitile
+        public string MessageTitle
         {
-            get { return m_MessageTitile; }
-            set { m_MessageTitile = value; }
+            get { return m_MessageTitle; }
+            set { m_MessageTitle = value; }
         }
         /// <summary>
         /// 伝言内容
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/OrdersPriceData.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/OrdersPriceData.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/OrdersPriceData.cs	(revision 6)
@@ -0,0 +1,135 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace ProcessManagement.DataModel
+{
+    /// <summary>
+    /// 受注金額データ
+    /// </summary>
+    public class OrdersPriceData
+    {
+        #region メンバ変数
+
+        private int         m_ConstructionCode = 0;	                    // 工事コード
+
+        private int         m_ChangeNo = 0;                             // 変更番号
+        private DateTime    m_ChangeDate = DateTime.MinValue;           // 変更日
+        private int         m_ChangePersonCode = 0;                     // 変更者コード
+        private string      m_ChangePersonName = string.Empty;          // 変更者名
+        private int         m_BeforeValue = 0;	                        // 変更前税抜受注金額
+        private int         m_BeforeValueInTax = 0;                     //　〃　税込受注金額
+        private int         m_AfterValue = 0;                           // 変更後税抜受注金額
+        private int         m_AfterValueInTax = 0;                      // 　〃　税込受注金額
+        private string      m_ChangeComment = string.Empty;             // 変更理由
+
+        private DateTime    m_EntryDate = DateTime.Now;                 // 登録日付
+        private DateTime    m_UpdateDate = DateTime.Now;                // 更新日付
+        #endregion
+
+        #region コンストラクタ
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        /// 工事コード
+        /// </summary>
+        public int ConstructionCode
+        {
+            get { return m_ConstructionCode; }
+            set { m_ConstructionCode = value; }
+        }
+
+        /// <summary>
+        /// 変更番号
+        /// </summary>
+        public int ChangeNo
+        {
+            get { return m_ChangeNo; }
+            set { m_ChangeNo = value; }
+        }
+        /// <summary>
+        /// 変更日
+        /// </summary>
+        public DateTime ChangeDate
+        {
+            get { return m_ChangeDate; }
+            set { m_ChangeDate = value; }
+        }
+        /// <summary>
+        /// 変更者コード
+        /// </summary>
+        public int ChangePersonCode
+        {
+            get { return m_ChangePersonCode; }
+            set { m_ChangePersonCode = value; }
+        }
+        /// <summary>
+        /// 変更者名
+        /// </summary>
+        public string ChangePersonName
+        {
+            get { return m_ChangePersonName; }
+            set { m_ChangePersonName = value; }
+        }
+        /// <summary>
+        /// 変更前税抜受注金額
+        /// </summary>
+        public int BeforeValue
+        {
+            get { return m_BeforeValue; }
+            set { m_BeforeValue = value; }
+        }
+        /// <summary>
+        /// 変更前税込受注金額
+        /// </summary>
+        public int BeforeValueInTax
+        {
+            get { return m_BeforeValueInTax; }
+            set { m_BeforeValueInTax = value; }
+        }
+        /// <summary>
+        /// 変更後税抜受注金額
+        /// </summary>
+        public int AfterValue
+        {
+            get { return m_AfterValue; }
+            set { m_AfterValue = value; }
+        }
+        /// <summary>
+        /// 変更後税込受注金額
+        /// </summary>
+        public int AfterValueInTax
+        {
+            get { return m_AfterValueInTax; }
+            set { m_AfterValueInTax = value; }
+        }
+        /// <summary>
+        /// 変更理由
+        /// </summary>
+        public string ChangeComment
+        {
+            get { return m_ChangeComment; }
+            set { m_ChangeComment = value; }
+        }
+
+        /// <summary>
+        /// 登録日付
+        /// </summary>
+        public DateTime EntryDate
+        {
+            set { m_EntryDate = value; }
+            get { return m_EntryDate; }
+        }
+        /// <summary>
+        /// 更新日付
+        /// </summary>
+        public DateTime UpdateDate
+        {
+            set { m_UpdateDate = value; }
+            get { return m_UpdateDate; }
+        }
+        #endregion
+    }
+}
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/ProceedingsDataDetail.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/ProceedingsDataDetail.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/ProceedingsDataDetail.cs	(revision 6)
@@ -30,11 +30,11 @@
         /// <summary>
         /// 議題番号
         /// </summary>
-        private int m_TitileNo = 0;
+        private int m_TitleNo = 0;
         /// <summary>
         /// 議題
         /// </summary>
-        private string m_Titile = string.Empty;
+        private string m_Title = string.Empty;
         /// <summary>
         /// 内容
         /// </summary>
@@ -85,18 +85,18 @@
         /// <summary>
         /// 議題番号
         /// </summary>
-        public int TitileNo
+        public int TitleNo
         {
-            get { return m_TitileNo; }
-            set { m_TitileNo = value; }
+            get { return m_TitleNo; }
+            set { m_TitleNo = value; }
         }
         /// <summary>
         /// 議題
         /// </summary>
-        public string Titile
+        public string Title
         {
-            get { return m_Titile; }
-            set { m_Titile = value; }
+            get { return m_Title; }
+            set { m_Title = value; }
         }
         /// <summary>
         /// 内容
Index: trunk/src/ProcessManagement/ProcessManagement/DataModel/TermMaster.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/DataModel/TermMaster.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/DataModel/TermMaster.cs	(revision 6)
@@ -17,7 +17,7 @@
         private int         m_DisplayOrder = 0;	                // 表示順
         private int         m_CheckSchdule = 0;                 // チェックタイミング
         private int         m_TermDays = 0;                     // 経過日
-        private string      m_SendTitile = string.Empty;        // タイトル
+        private string      m_SendTitle = string.Empty;         // タイトル
         private string      m_SendMessage = string.Empty;       // メッセージ
         private string      m_BackColor = string.Empty;         // 背景色
         private string      m_ForeColor = string.Empty;         // 文字色
@@ -96,10 +96,10 @@
         /// <summary>
         /// メッセージ
         /// </summary>
-        public string SendTitile
+        public string SendTitle
         {
-            get { return m_SendTitile; }
-            set { m_SendTitile = value; }
+            get { return m_SendTitle; }
+            set { m_SendTitle = value; }
         }
         /// <summary>
         /// メッセージ
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/ControlsAction/DataGridViewAction.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/ControlsAction/DataGridViewAction.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/ControlsAction/DataGridViewAction.cs	(revision 6)
@@ -223,7 +223,7 @@
                 }
                 else
                 {
-                    dgvwork.Rows.Insert(TergetRow);
+                    dgvwork.Rows.Insert(TergetRow, 1);
                 }
             }
             catch (Exception ex)
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs	(revision 6)
@@ -384,9 +384,9 @@
                 string strSQL = string.Empty;
                 int DepartmentCode = GetDepartmentCode();
                 if (DepartmentCode == 0)
-                    strSQL = " WHERE EmployeeClassFlg = 1 AND DeleteFlg = 0 Order By DisplayOrder ASC";
+                    strSQL = " WHERE DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC";
                 else
-                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND EmployeeClassFlg = 1 AND DeleteFlg = 0 Order By DisplayOrder ASC", DepartmentCode);
+                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC", DepartmentCode);
 
                 // �S���҃}�X�^�Ǎ�
                 if (!picDB.SelectAction(strSQL, ref workList)) return false;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs	(revision 6)
@@ -69,7 +69,6 @@
             ApprovalDepartmentName,
             ApprovalDisplayString,
             ApprovalComment,
-            ApprovalSeqNo,
             PetitionName,
             PetitionStatus,
             PetitionHopeDates,
@@ -87,7 +86,7 @@
         /// <summary>
         /// ���x���R���g���[���ێ��z��
         /// </summary>
-        private Control[] m_dispLabelControl = new Control[18];
+        private Control[] m_dispLabelControl;
         /// <summary>
         /// �t�B�[���h�l�ω��t���O
         /// </summary>
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.designer.cs	(revision 6)
@@ -75,7 +75,6 @@
             this.label9 = new System.Windows.Forms.Label();
             this.label8 = new System.Windows.Forms.Label();
             this.label7 = new System.Windows.Forms.Label();
-            this.lblSeqNo = new System.Windows.Forms.Label();
             this.txtApprovalComment = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label15 = new System.Windows.Forms.Label();
             this.btnApproval = new System.Windows.Forms.Button();
@@ -166,10 +165,11 @@
             // 
             // lblLabel03
             // 
+            this.lblLabel03.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.lblLabel03.BackColor = System.Drawing.Color.White;
             this.lblLabel03.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel03.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel03.Location = new System.Drawing.Point(128, 90);
+            this.lblLabel03.Location = new System.Drawing.Point(128, 92);
             this.lblLabel03.Name = "lblLabel03";
             this.lblLabel03.Size = new System.Drawing.Size(159, 25);
             this.lblLabel03.TabIndex = 29;
@@ -177,9 +177,10 @@
             // 
             // label2
             // 
+            this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
             this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label2.Location = new System.Drawing.Point(293, 90);
+            this.label2.Location = new System.Drawing.Point(293, 92);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(119, 25);
             this.label2.TabIndex = 28;
@@ -188,10 +189,11 @@
             // 
             // lblLabel01
             // 
+            this.lblLabel01.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.lblLabel01.BackColor = System.Drawing.Color.White;
             this.lblLabel01.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel01.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel01.Location = new System.Drawing.Point(128, 30);
+            this.lblLabel01.Location = new System.Drawing.Point(128, 32);
             this.lblLabel01.Name = "lblLabel01";
             this.lblLabel01.Size = new System.Drawing.Size(100, 25);
             this.lblLabel01.TabIndex = 17;
@@ -199,9 +201,10 @@
             // 
             // label5
             // 
+            this.label5.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
             this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label5.Location = new System.Drawing.Point(3, 90);
+            this.label5.Location = new System.Drawing.Point(3, 92);
             this.label5.Name = "label5";
             this.label5.Size = new System.Drawing.Size(119, 25);
             this.label5.TabIndex = 28;
@@ -210,10 +213,11 @@
             // 
             // lblLabel04
             // 
+            this.lblLabel04.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.lblLabel04.BackColor = System.Drawing.Color.White;
             this.lblLabel04.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel04.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel04.Location = new System.Drawing.Point(418, 90);
+            this.lblLabel04.Location = new System.Drawing.Point(418, 92);
             this.lblLabel04.Name = "lblLabel04";
             this.lblLabel04.Size = new System.Drawing.Size(159, 25);
             this.lblLabel04.TabIndex = 29;
@@ -221,11 +225,12 @@
             // 
             // lblLabel02
             // 
+            this.lblLabel02.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.lblLabel02.BackColor = System.Drawing.Color.White;
             this.lblLabel02.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.tableLayoutPanel1.SetColumnSpan(this.lblLabel02, 6);
             this.lblLabel02.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel02.Location = new System.Drawing.Point(128, 60);
+            this.lblLabel02.Location = new System.Drawing.Point(128, 62);
             this.lblLabel02.Name = "lblLabel02";
             this.lblLabel02.Size = new System.Drawing.Size(670, 25);
             this.lblLabel02.TabIndex = 17;
@@ -233,9 +238,10 @@
             // 
             // lblConstructionCodelabel
             // 
+            this.lblConstructionCodelabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.lblConstructionCodelabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
             this.lblConstructionCodelabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblConstructionCodelabel.Location = new System.Drawing.Point(3, 60);
+            this.lblConstructionCodelabel.Location = new System.Drawing.Point(3, 62);
             this.lblConstructionCodelabel.Name = "lblConstructionCodelabel";
             this.lblConstructionCodelabel.Size = new System.Drawing.Size(119, 25);
             this.lblConstructionCodelabel.TabIndex = 16;
@@ -244,9 +250,10 @@
             // 
             // label3
             // 
+            this.label3.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
             this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label3.Location = new System.Drawing.Point(3, 30);
+            this.label3.Location = new System.Drawing.Point(3, 32);
             this.label3.Name = "label3";
             this.label3.Size = new System.Drawing.Size(119, 25);
             this.label3.TabIndex = 16;
@@ -255,12 +262,13 @@
             // 
             // lblLabel12
             // 
+            this.lblLabel12.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.lblLabel12.BackColor = System.Drawing.Color.White;
             this.lblLabel12.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.tableLayoutPanel1.SetColumnSpan(this.lblLabel12, 3);
             this.lblLabel12.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.lblLabel12.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel12.Location = new System.Drawing.Point(128, 0);
+            this.lblLabel12.Location = new System.Drawing.Point(128, 2);
             this.lblLabel12.Name = "lblLabel12";
             this.lblLabel12.Size = new System.Drawing.Size(400, 25);
             this.lblLabel12.TabIndex = 17;
@@ -268,9 +276,10 @@
             // 
             // label13
             // 
+            this.label13.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.label13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
             this.label13.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label13.Location = new System.Drawing.Point(3, 0);
+            this.label13.Location = new System.Drawing.Point(3, 2);
             this.label13.Name = "label13";
             this.label13.Size = new System.Drawing.Size(119, 25);
             this.label13.TabIndex = 16;
@@ -279,6 +288,7 @@
             // 
             // btnTargetData
             // 
+            this.btnTargetData.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.btnTargetData.BackColor = System.Drawing.Color.DarkCyan;
             this.tableLayoutPanel1.SetColumnSpan(this.btnTargetData, 4);
             this.btnTargetData.ForeColor = System.Drawing.Color.White;
@@ -293,9 +303,10 @@
             // 
             // label17
             // 
+            this.label17.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.label17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
             this.label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label17.Location = new System.Drawing.Point(3, 120);
+            this.label17.Location = new System.Drawing.Point(3, 127);
             this.label17.Name = "label17";
             this.label17.Size = new System.Drawing.Size(119, 25);
             this.label17.TabIndex = 16;
@@ -304,10 +315,11 @@
             // 
             // lblLabel15
             // 
+            this.lblLabel15.Anchor = System.Windows.Forms.AnchorStyles.Left;
             this.lblLabel15.BackColor = System.Drawing.Color.White;
             this.lblLabel15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel15.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel15.Location = new System.Drawing.Point(128, 120);
+            this.lblLabel15.Location = new System.Drawing.Point(128, 127);
             this.lblLabel15.Name = "lblLabel15";
             this.lblLabel15.Size = new System.Drawing.Size(159, 25);
             this.lblLabel15.TabIndex = 29;
@@ -472,7 +484,6 @@
             this.panel3.Controls.Add(this.label9);
             this.panel3.Controls.Add(this.label8);
             this.panel3.Controls.Add(this.label7);
-            this.panel3.Controls.Add(this.lblSeqNo);
             this.panel3.Controls.Add(this.txtApprovalComment);
             this.panel3.Controls.Add(this.label15);
             this.panel3.Controls.Add(this.btnApproval);
@@ -571,17 +582,6 @@
             this.label7.Text = "所　　属";
             this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // lblSeqNo
-            // 
-            this.lblSeqNo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            this.lblSeqNo.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblSeqNo.Location = new System.Drawing.Point(19, 35);
-            this.lblSeqNo.Name = "lblSeqNo";
-            this.lblSeqNo.Size = new System.Drawing.Size(24, 30);
-            this.lblSeqNo.TabIndex = 39;
-            this.lblSeqNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            this.lblSeqNo.Visible = false;
-            // 
             // txtApprovalComment
             // 
             this.txtApprovalComment.ImeMode = System.Windows.Forms.ImeMode.On;
@@ -898,7 +898,6 @@
         private System.Windows.Forms.Label label9;
         private System.Windows.Forms.Label label8;
         private System.Windows.Forms.Label label7;
-        private System.Windows.Forms.Label lblSeqNo;
         private TextBoxEX txtApprovalComment;
         private System.Windows.Forms.Button btnTargetData;
         private System.Windows.Forms.Label label15;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs	(revision 6)
@@ -180,29 +180,20 @@
         {
             try
             {
+                // 工事情報取得
+                if (!SetBaseInfoData()) return false;
+
                 ProcessApproval Rec = new ProcessApproval();
-                
-                if (bInSideFlg)
-                {   // 画面上からの処理
-                    CreateApprovalData(ref Rec, statusCode);
-                }
-                else
-                {   // 画面外からの処理
-                    CreateOuterApprovalData(ref Rec, statusCode);
-                }
 
+                // 承認レコードの作成
+                CreateApprovalData(ref Rec, statusCode);
+
                 // 承認レコード更新
                 if (!ClsApprovalPermission.CreatePetitionApproval(Rec)) return false;
 
-                // 画面上からの処理時、成功時は枝番を見えないエリアにセット
-                // (イベントにより2回以上更新に行くことがあるため)
-                if (bInSideFlg)
-                    m_dispLabelControl[(int)DispHeader.ApprovalSeqNo].Text = CommonMotions.cnvString(Rec.SeqNo);
-
                 // 積算予算書承認時は積算見積書も承認する
                 int Code1 = ClsExcute.AppovalList.First(x => x.Value.Equals("積算見積書承認")).Key;
                 int Code2 = ClsExcute.AppovalList.First(x => x.Value.Equals("積算予算書承認")).Key;
-                int Code3 = ClsExcute.AppovalList.First(x => x.Value.Equals("工事予算書承認")).Key;
                 if (Code2 == m_ApprovalCode)
                 {   // ----- 再起呼出
                     m_ApprovalCode = Code1;
@@ -221,11 +212,9 @@
                         {
                             // 最終承認がされていれば申請レコードを承認へ変更する
                             ClsApprovalPermission.SetPrimaryRecStatus(m_ConstructionCode, m_ApprovalCode, (int)CommonDefine.ApprovalStatus.Approval);
-                            // 工事予算書承認は工事詳細台帳データを作成する
-                            if (Code3 == m_ApprovalCode)
-                            {
-                                ClsCreateLedgerData.CreateLedgerData(m_ConstructionCode);
-                            }
+                            
+                            // 工事詳細台帳データを作成するデータがある
+                            CaretaLedgerData();
                         }
                         break;
                     case (int)CommonDefine.ApprovalStatus.NotApproval:
@@ -243,9 +232,9 @@
         }
         #endregion
 
-        #region 承認レコードデータ作成（画面上よりの処理）
+        #region 承認レコードデータ作成
         /// <summary>
-        /// 承認レコードデータ作成（画面上よりの処理）
+        /// 承認レコードデータ作成
         /// </summary>
         /// <param name="Rec"></param>
         /// <param name="Status"></param>
@@ -254,27 +243,33 @@
             IOProcessApproval ApprDB = new IOProcessApproval();
             try
             {
-                Rec.ConstructionCode = m_ConstructionCode;                      // 工事番号
-                Rec.ApprovalCode = m_ApprovalCode;	                            // 承認機能番号
-                Rec.PersonCode = CommonMotions.LoginUserData.PersonCode;        // 申請・承認者コード
-                Rec.PetitionApprovalDate = DateTime.Now;	                    // 承認日付
-                Rec.ApprovalStatus = Status;	                                // 承認状態
-
-                Rec.SeqNo = CommonMotions.cnvInt(m_dispLabelControl[(int)DispHeader.ApprovalSeqNo].Text);
-                if (Rec.SeqNo == 0)
+                // 申請レコード以外で自分の承認レコードがあるかをチェックする
+                string strSQL = ApprDB.CreatePrimarykeyString(m_ConstructionCode, m_ApprovalCode);
+                strSQL += " And SeqNo != 1";
+                strSQL += string.Format(" AND PersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                if (!ApprDB.SelectAction(strSQL, ref Rec))
                 {
-                    string strSQL = ApprDB.CreatePrimarykeyString(m_ConstructionCode, m_ApprovalCode);
-                    Rec.SeqNo = ApprDB.SelectMaxSeqNoCount(strSQL) + 1;         // 枝番
-                }
+                    Rec.ConstructionCode = m_ConstructionCode;                      // 工事番号
+                    Rec.ApprovalCode = m_ApprovalCode;	                            // 承認機能番号
+                    Rec.PersonCode = CommonMotions.LoginUserData.PersonCode;        // 申請・承認者コード
+                    Rec.PetitionApprovalDate = DateTime.Now;	                    // 承認日付
 
-                if (Status == (int)CommonDefine.ApprovalStatus.Petition)
-                {
-                    Rec.InputComment = m_dispLabelControl[(int)DispHeader.PetitionComment].Text.ToString();
+                    strSQL = ApprDB.CreatePrimarykeyString(m_ConstructionCode, m_ApprovalCode);
+                    Rec.SeqNo = ApprDB.SelectMaxSeqNoCount(strSQL) + 1;             // 枝番
                 }
-                else
+                // 承認状態をセットする
+                Rec.ApprovalStatus = Status;
+                int CtrlCnt = -1;
+                switch (Status)
                 {
-                    Rec.InputComment = m_dispLabelControl[(int)DispHeader.ApprovalComment].Text.ToString();
+                    case (int)CommonDefine.ApprovalStatus.Petition:
+                        CtrlCnt = (int)DispHeader.PetitionComment;
+                        break;
+                    default:
+                        CtrlCnt = (int)DispHeader.ApprovalComment;
+                        break;
                 }
+                if (this.Visible) Rec.InputComment = m_dispLabelControl[CtrlCnt].Text.ToString();
             }
             catch (Exception ex)
             {
@@ -287,49 +282,6 @@
         }
         #endregion
 
-        #region 承認レコードデータ作成（外部よりの処理）
-        /// <summary>
-        /// 承認レコードデータ作成（外部よりの処理）
-        /// </summary>
-        /// <param name="Rec"></param>
-        /// <param name="Status"></param>
-        private void CreateOuterApprovalData(ref ProcessApproval Rec, int Status)
-        {
-            IOProcessApproval ApprDB = new IOProcessApproval();
-            try
-            {
-                Rec.ConstructionCode = m_ConstructionCode;                      // 工事番号
-                Rec.ApprovalCode = m_ApprovalCode;	                            // 承認機能番号
-                Rec.PersonCode = CommonMotions.LoginUserData.PersonCode;        // 申請・承認者コード
-                Rec.PetitionApprovalDate = DateTime.Now;	                    // 承認日付
-                Rec.ApprovalStatus = Status;	                                // 承認状態
-
-                // 対象レコードがあるかを確認する
-                string strSQL = ApprDB.CreatePrimarykeyString(m_ConstructionCode, m_ApprovalCode);
-                strSQL += string.Format(" AND PersonCode = {0}", Rec.PersonCode);
-                ProcessApproval workRec = new ProcessApproval();
-
-                if (ApprDB.SelectAction(strSQL, ref workRec))
-                {
-                    Rec.SeqNo = workRec.SeqNo;
-                }
-                else
-                {
-                    strSQL = ApprDB.CreatePrimarykeyString(m_ConstructionCode, m_ApprovalCode);
-                    Rec.SeqNo = ApprDB.SelectMaxSeqNoCount(strSQL) + 1;         // 枝番
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                ApprDB.close(); ApprDB = null;
-            }
-        }
-        #endregion
-
         #region 表示オブジェクトの取得
         /// <summary>
         /// 表示オブジェクトの取得
@@ -336,6 +288,10 @@
         /// </summary>
         private void SetDisplayObject()
         {
+            // 表示オブジェクト領域確保
+            int CtrlCnt = Enum.GetNames(typeof(DispHeader)).Length;
+            m_dispLabelControl = new Control[CtrlCnt];
+            
             m_dispLabelControl[(int)DispHeader.ConstructionCode] = lblLabel01;
             m_dispLabelControl[(int)DispHeader.ConstructionName] = lblLabel02;
             m_dispLabelControl[(int)DispHeader.SalesName] = lblLabel03;
@@ -345,7 +301,6 @@
             m_dispLabelControl[(int)DispHeader.ApprovalDepartmentName] = lblLabel07;
             m_dispLabelControl[(int)DispHeader.ApprovalDisplayString] = lblLabel08;
             m_dispLabelControl[(int)DispHeader.ApprovalComment] = txtApprovalComment;
-            m_dispLabelControl[(int)DispHeader.ApprovalSeqNo] = lblSeqNo;
             m_dispLabelControl[(int)DispHeader.PetitionName] = lblLabel09;
             m_dispLabelControl[(int)DispHeader.PetitionStatus] = lblLabel10;
             m_dispLabelControl[(int)DispHeader.PetitionHopeDates] = txtHoppesDate;
@@ -387,9 +342,17 @@
                 string strSQL = pAppDB.CreatePrimarykeyString(m_ConstructionCode, m_ApprovalCode, 1);
                 strSQL += " And SeqNo = 1";
                 ProcessApproval pRec = new ProcessApproval();
-                if (!pAppDB.SelectAction(strSQL, ref pRec)) return;
-                // 承認の管理担当者を取得する
-                int CurrentPerson = ClsApprovalPermission.GetFromConstructionAndApprovalThePerson(m_ConstructionCode, m_ApprovalCode);
+                int CurrentPerson = 0;
+                if (pAppDB.SelectAction(strSQL, ref pRec))
+                {
+                    // 申請者を取得する
+                    CurrentPerson = pRec.PersonCode;
+                }
+                else
+                {
+                    // データが無い場合（申請時）はログインユーザー
+                    CurrentPerson = CommonMotions.LoginUserData.PersonCode;
+                }
 
                 // システム権限によってデータアクセスに制限がある
                 if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement)
@@ -455,7 +418,7 @@
         /// <summary>
         /// タイトルとボタンの表示状態を制御する
         /// </summary>
-        private void SetDisplayTitileAndButton(int Status)
+        private void SetDisplayTitleAndButton(int Status)
         {
             switch (Status)
             {
@@ -496,8 +459,8 @@
         private bool SetBaseInfoData()
         {
             IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
             IOMApproval mAppDB = new IOMApproval();
+            IOProcessApproval ApprovalDB = new IOProcessApproval();
             try
             {
                 // 工事基本情報取得
@@ -505,7 +468,21 @@
                 if (!cbiDB.SelectAction(strSQL, ref m_ConstructionBaseInfo)) return false;
 
                 // 担当部署取得
-                int CurrentDepartmentCode = ClsApprovalPermission.GetFromConstructionAndApprovalTheDepartment(m_ConstructionCode, m_ApprovalCode);
+                string strDep = "SELECT B.DEPARTMENTCODE FROM PROCESSAPPROVAL A, PERSONINCHARGEMASTER B";
+                strDep += string.Format(" WHERE A.CONSTRUCTIONCODE = {0} AND A.APPROVALCODE = {1} AND A.SEQNO = 1", m_ConstructionCode, m_ApprovalCode);
+                strDep += " AND B.PERSONCODE = A.PERSONCODE";
+                ArrayList DepList = new ArrayList();
+                if (!ApprovalDB.ExecuteReader(strDep, ref DepList)) return false;
+                int CurrentDepartmentCode = 0;
+                if (DepList.Count != 0)
+                {
+                    object[] DepCnt = (object[])DepList[0];
+                    CurrentDepartmentCode = CommonMotions.cnvInt(DepCnt[0]);
+                }
+                else
+                {
+                    CurrentDepartmentCode = ClsApprovalPermission.GetFromConstructionAndApprovalTheDepartment(m_ConstructionCode, m_ApprovalCode);
+                }
 
                 // 承認経路マスタ取得
                 strSQL = mAppDB.CreatePrimarykeyString(m_ApprovalCode, CurrentDepartmentCode);
@@ -522,8 +499,8 @@
             finally
             {
                 cbiDB.close(); cbiDB = null;
-                picDB.close(); picDB = null;
                 mAppDB.close(); mAppDB = null;
+                ApprovalDB.close(); ApprovalDB = null;
             }
         }
         #endregion
@@ -665,7 +642,7 @@
                 DispNotPetitionButton(pRec.ApprovalStatus);
 
                 // 申請・承認以外は申請ボタンを表示する
-                SetDisplayTitileAndButton(pRec.ApprovalStatus);
+                SetDisplayTitleAndButton(pRec.ApprovalStatus);
 
             }
             catch (Exception ex)
@@ -819,8 +796,6 @@
 
                 m_dispLabelControl[(int)DispHeader.ApprovalComment].Text = strComment;                                              // コメント
 
-                m_dispLabelControl[(int)DispHeader.ApprovalSeqNo].Text = pAppRec.SeqNo.ToString();                                  // 枝番
-
                 return true;
             }
             catch (Exception ex)
@@ -921,5 +896,100 @@
         }
         #endregion
 
+        #region 工事台帳データ作成
+        /// <summary>
+        /// 工事台帳データ作成
+        /// 工事予算書を承認時に工事詳細台帳を作成する
+        /// </summary>
+        private void CaretaLedgerData()
+        {
+            try
+            {
+                int Code1 = ClsExcute.AppovalList.First(x => x.Value.Equals("工事予算書承認")).Key;
+                // 工事予算書承認以外は処理しない
+                if (m_ApprovalCode != Code1) return;
+
+                // 紐付きデータかどうかのチェック
+                if (m_ConstructionBaseInfo.TyingFlg != (int)CommonDefine.BaseInfoTyingFlg.Tying)
+                {   // 紐付きデータではない場合はデータ作成
+                    MakingLedgerData();
+                }
+                else
+                {   // 紐付きのデータはデータ（行）を追加する
+                    AddingLedgerData();
+                }
+
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 工事台帳データ新規作成
+        /// <summary>
+        /// 工事台帳データ新規作成
+        /// </summary>
+        private void MakingLedgerData()
+        {
+            //IOConstructionLedger LedgerDB = new IOConstructionLedger();
+            try
+            {
+                // 工事台帳データ存在チェック
+                //string strSQL = LedgerDB.CreatePrimarykeyString(m_ConstructionCode);
+                //ConstructionLedger LedgerRec = new ConstructionLedger();
+                //// データが存在すれば処理しない
+                //if (LedgerDB.SelectAction(strSQL, ref LedgerRec)) return;
+
+                // 工事詳細台帳データ作成
+                if (!ClsCreateLedgerData.MakingLedgerData(m_ConstructionCode))
+                {
+                    MessageBox.Show("工事詳細台帳作成に失敗しました。", "台帳作成エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                //LedgerDB.close(); LedgerDB = null;
+            }
+        }
+        #endregion
+
+        #region 工事台帳データ追加
+        /// <summary>
+        /// 工事台帳データ追加
+        /// </summary>
+        private void AddingLedgerData()
+        {
+            //IOConstructionLedger LedgerDB = new IOConstructionLedger();
+            try
+            {
+                //// 工事台帳データ存在チェック
+                //string strSQL = LedgerDB.CreatePrimarykeyString(m_ConstructionCode);
+                //ConstructionLedger LedgerRec = new ConstructionLedger();
+                //// データが存在すれば処理しない
+                //if (LedgerDB.SelectAction(strSQL, ref LedgerRec)) return;
+
+                // 工事詳細台帳データ作成
+                if (!ClsCreateLedgerData.AddingLedgerData(m_ConstructionCode))
+                {
+                    MessageBox.Show("工事詳細台帳データ追加に失敗しました。", "台帳作成エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                //LedgerDB.close(); LedgerDB = null;
+            }
+        }
+        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 6)
@@ -58,6 +58,11 @@
                                                             " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE",
                                                             " AND B.DETAILNO = {1}" };
 
+        private static string[] s_SQLPart4Tying = new string[] { " WHERE A.CONSTRUCTIONPERIOD = {0}",
+                                                            string.Format(" AND A.TyingFlg != {0}", (int)CommonDefine.BaseInfoTyingFlg.Tying),
+                                                            " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE",
+                                                            " AND B.DETAILNO = {1}" };
+
         private static string[] s_SQLPart5 = new string[] { " AND A.CONSTRUCTIONCODE = C.CONSTRUCTIONCODE(+)",
                                                             " AND A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE(+)" };
 
@@ -188,10 +193,11 @@
                 {
                     // ��ʎg�p�ҁi���f�[�^�̂݁j
                     int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�c�U���p���H��")).Key;
-                    strSQL += string.Format(" And (A.SalesPersonCode = {0} ", CommonMotions.LoginUserData.PersonCode);
-                    strSQL += string.Format(" Or (A.ConstructionStatusFlg >= {0}", iStatus);
-                    strSQL += string.Format(" And (A.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
-                    strSQL += string.Format(" Or A.ConstructionInstructor = {0})))", CommonMotions.LoginUserData.PersonCode);
+                    int iPersonCode = CommonMotions.LoginUserData.PersonCode;
+                    strSQL += string.Format(" And ((A.TyingFlg != {0} AND (A.SalesPersonCode = {1} Or (A.ConstructionStatusFlg >= {2}", (int)CommonDefine.BaseInfoTyingFlg.Tying, iPersonCode, iStatus);
+                    strSQL += string.Format(" And (A.ConstructionPersonCode = {0} Or A.ConstrSubPersonCode = {0} Or A.ConstructionInstructor = {0}))))", iPersonCode);
+                    strSQL += string.Format(" Or (A.TyingFlg = {0}", (int)CommonDefine.BaseInfoTyingFlg.Tying);
+                    strSQL += string.Format(" AND (A.SalesPersonCode = {0} Or A.ConstructionPersonCode = {0} Or A.ConstrSubPersonCode = {0} Or A.ConstructionInstructor = {0})))", iPersonCode);
                 }
             }
             catch (Exception ex)
@@ -216,11 +222,13 @@
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode == 0) return strRet;
 
-                if (radioButton1.Checked)
-                    strRet = string.Format(" AND A.SalesPersonCode = {0}", PersonCode);
-                else
-                    strRet = string.Format(" AND (A.ConstructionPersonCode = {0} OR A.ConstrSubPersonCode = {0} OR A.ConstructionInstructor = {0})", PersonCode);
-
+                if (radioButton1.Visible)
+                {
+                    if (radioButton1.Checked)
+                        strRet = string.Format(" AND A.SalesPersonCode = {0}", PersonCode);
+                    else
+                        strRet = string.Format(" AND (A.ConstructionPersonCode = {0} OR A.ConstrSubPersonCode = {0} OR A.ConstructionInstructor = {0})", PersonCode);
+                }
                 return strRet;
             }
             catch (Exception ex)
@@ -268,7 +276,8 @@
             for (int i = 0; i < s_SQLPart1.Length; i++) wrkFormat += s_SQLPart1[i];
             for (int i = 0; i < s_SQLPart2.Length; i++) wrkFormat += s_SQLPart2[i];
             for (int i = 0; i < s_SQLPart3.Length; i++) wrkFormat += s_SQLPart3[i];
-            for (int i = 0; i < s_SQLPart4.Length; i++) wrkFormat += s_SQLPart4[i];
+            //for (int i = 0; i < s_SQLPart4.Length; i++) wrkFormat += s_SQLPart4[i];
+            for (int i = 0; i < s_SQLPart4Tying.Length; i++) wrkFormat += s_SQLPart4Tying[i];
             for (int i = 0; i < s_SQLPart5.Length; i++) wrkFormat += s_SQLPart5[i];
 
             strSQL = string.Format(wrkFormat, numUDConstPro.Value, (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
@@ -467,6 +476,7 @@
             for (int i = 0; i < s_SQLPart3.Length; i++) wrkFormat += s_SQLPart3[i];
             wrkFormat += ", PROCESSAPPROVAL A1";
             for (int i = 0; i < s_SQLPart4.Length; i++) wrkFormat += s_SQLPart4[i];
+            wrkFormat += " AND A.CONSTRUCTIONPERSONCODE != 0";
             for (int i = 0; i < s_SQLPart5.Length; i++) wrkFormat += s_SQLPart5[i];
 
             strSQL = string.Format(wrkFormat, numUDConstPro.Value, (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
@@ -1120,9 +1130,9 @@
             try
             {
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
 
                 string strSQL = string.Empty;
                 // �V�X�e�������ɂ���ăf�[�^�A�N�Z�X�ɐ���������
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/DataChange.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/DataChange.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/DataChange.cs	(revision 6)
@@ -0,0 +1,787 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using System.Collections;
+using System.Linq;
+using System.Diagnostics;
+
+using log4net;
+using log4net.Appender;
+using log4net.Repository.Hierarchy;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.DB.Core;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+using ProcessManagement.Forms.SubForms;
+//*---------------------------- �H�����f�[�^�ύX ----------------------------*
+//  2015/07/13  Ver1.0.0.0      Create Source           
+//
+//
+//
+//*----------------------------------------------------------------------------*
+namespace ProcessManagement.Forms.DataEntry
+{
+    /// <summary>
+    /// �H�����ꗗ���
+    /// </summary>
+    partial class FrmConstructionBaseInfo
+    {
+
+        #region �H���\�Z���f�[�^�ύX
+        /// <summary>
+        /// �H���\�Z���f�[�^�ύX
+        /// </summary>
+        /// <returns></returns>
+        private bool BudgetDataChange()
+        {
+            FrmConstructionBudget frm = new FrmConstructionBudget();
+            IOProcessApproval ApprovalDB = new IOProcessApproval(); 
+            IOConstructionBudget BudgetDB = new IOConstructionBudget();
+            IOConstructionBudgetDetail BudgetDDB = new IOConstructionBudgetDetail();
+            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
+            try
+            {
+                // ���F�f�[�^�擾
+                string strSQL = ApprovalDB.CreatePrimarykeyString(m_ConstructionCode, (int)ClsExcute.ApprovalListNo.ConstructionBudgetApproval, 1);
+                ProcessApproval ProRec = new ProcessApproval();
+                if (ApprovalDB.SelectAction(strSQL, ref ProRec))
+                {
+                    // ���F�ς͕ύX�����ɏ����I��
+                    if (ProRec.ApprovalStatus == (int)CommonDefine.ApprovalStatus.Approval) return true;
+                }
+
+                // �H���S���҃R�[�h�擾
+                ComboBox ConstructorCombBox = (ComboBox)m_DspCtrl[(int)DspCnt.ConstructionPersonCode];
+                int ConstructorCode = CommonMotions.cnvInt(ConstructorCombBox.SelectedValue);
+
+                // �H�����S���҃R�[�h�擾
+                ComboBox AssistantCombBox = (ComboBox)m_DspCtrl[(int)DspCnt.ConstrSubPersonCode];
+                int AssistantCode = CommonMotions.cnvInt(AssistantCombBox.SelectedValue);
+
+                // �H���w�����R�[�h�擾
+                ComboBox InstCombBox = (ComboBox)m_DspCtrl[(int)DspCnt.ConstructionInstructor];
+                int InstructorCode = CommonMotions.cnvInt(InstCombBox.SelectedValue);
+
+                // ----- �H���\�Z���f�[�^�擾
+                strSQL = BudgetDB.CreatePrimarykeyString(m_ConstructionCode);
+                ConstructionBudget BudgetRec = new ConstructionBudget();
+                // �f�[�^�������ꍇ�͏����I��
+                if (!BudgetDB.SelectAction(strSQL, ref BudgetRec)) return true;
+
+                // �S���҂̃}�X�^�f�[�^�擾
+                strSQL = PersonDB.CreatePrimarykeyString(ConstructorCode);
+                PersonInChargeMaster personRec = new PersonInChargeMaster();
+                PersonDB.SelectAction(strSQL, ref personRec);
+
+                // �S���ҕ����o��擾
+                ArrayList ExpensesList = new ArrayList();
+                GetExpensesList(personRec.DepartmentCode, ExpensesList);
+
+                // �w�b�_�[�^���ׂ̓������Ƃ�
+                BudgetDB.connect(); BudgetDB.beginTran();
+                BudgetDDB.connect(); BudgetDDB.beginTran();
+
+                // ----- �H���\�Z���f�[�^����
+                strSQL = BudgetDB.CreatePrimarykeyString(m_ConstructionCode);
+                bool bChangeCode = BudgetDataSet(ConstructorCode, ConstructorCombBox.SelectedText, personRec.MonthlySalary,
+                                                AssistantCode, AssistantCombBox.SelectedText,
+                                                InstructorCode, InstCombBox.SelectedText,
+                                                ref BudgetRec);
+                // �Ⴂ������΍X�V
+                if (bChangeCode)
+                {
+                    if (!BudgetDB.UpdateAction(strSQL, BudgetRec, false))
+                    {
+                        BudgetDB.rollback();
+                        return false;
+                    }
+                }
+                // ----- �H���\�Z�����׃f�[�^����
+                // �H���S����
+                if (!BudgetDetailDataConstructorSet(BudgetDDB, frm,
+                                                    ConstructorCode, ConstructorCombBox.SelectedText,
+                                                    BudgetRec, personRec.MonthlySalary,
+                                                    ExpensesList))
+                {
+                    BudgetDB.rollback();
+                    BudgetDDB.rollback();
+                    return false;
+                }
+
+                // �H�����S����
+                if (!BudgetDetailDataAssistantSet(BudgetDDB, frm, AssistantCode, AssistantCombBox.SelectedText, BudgetRec))
+                {
+                    BudgetDB.rollback();
+                    BudgetDDB.rollback();
+                    return false;
+                }
+
+                // �H���w����
+                if (!BudgetDetailDataInstructorSet(BudgetDDB, frm, InstructorCode, InstCombBox.SelectedText, BudgetRec))
+                {
+                    BudgetDB.rollback();
+                    BudgetDDB.rollback();
+                    return false;
+                }
+
+                BudgetDB.commit();
+                BudgetDDB.commit();
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                ApprovalDB.close(); ApprovalDB = null;
+                BudgetDB.close(); BudgetDB = null;
+                BudgetDDB.close(); BudgetDDB = null;
+                PersonDB.close(); PersonDB = null;
+                frm.Dispose(); frm = null;
+            }
+        }
+        #endregion
+
+        #region �H���ڍב䒠�f�[�^�ύX
+        /// <summary>
+        /// �H���ڍב䒠�f�[�^�ύX
+        /// </summary>
+        /// <returns></returns>
+        private bool LedgerDataChange()
+        {
+            try
+            {
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+            }
+        }
+        #endregion
+
+        #region �o��f�[�^�Ǎ��ݏ���
+        /// <summary>
+        /// �o��f�[�^�Ǎ��ݏ���
+        /// </summary>
+        private enum ExpensesArray
+        {
+            /// <summary>
+            /// �o���
+            /// </summary>
+            ExpensesName = 0,
+            /// <summary>
+            /// �o�
+            /// </summary>
+            ExpensesRate,
+        }
+        #endregion
+
+        #region �o����X�g�擾����
+        /// <summary>
+        /// �o����X�g���擾����
+        /// </summary>
+        /// <returns></returns>
+        private bool GetExpensesList(int DepartmentCode, ArrayList ExpensesList)
+        {
+            IOMDepartmentExpenses expDB = new IOMDepartmentExpenses();
+            try
+            {
+                // �����o��}�X�^�擾
+                string strSQL = "SELECT A.NAMESTRING, NVL(B.EXPENSESRATIO, 0)";
+                strSQL += " FROM DIVISIONMASTER A";
+                strSQL += " LEFT OUTER JOIN";
+                strSQL += string.Format(" (SELECT NAMECODE, DEPARTMENTCODE, EXPENSESRATIO FROM DEPARTMENTEXPENSESMASTER WHERE DEPARTMENTCODE = {0}) B", DepartmentCode);
+                strSQL += " ON A.NAMECODE = B.NAMECODE";
+                strSQL += string.Format(" WHERE A.DIVISIONCODE = {0}", (int)CommonDefine.DivisionMasterCodeDefine.ConstructionExpenses);
+                strSQL += " ORDER BY A.DISPLAYORDER";
+                if (!expDB.ExecuteReader(strSQL, ref ExpensesList)) return false;
+                if (ExpensesList.Count == 0) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                expDB.close(); expDB = null;
+            }
+        }
+        #endregion
+
+        #region �H���\�Z���f�[�^�Z�b�g
+        /// <summary>
+        /// �H���\�Z���f�[�^�Z�b�g
+        /// </summary>
+        /// <param name="ApprovalNo"></param>
+        /// <returns></returns>
+        private bool BudgetDataSet(int ConstructorCode, string ConstructorName, double MonthlySalary,
+                                    int AssistantCode, string AssistantName,
+                                    int InstructorCode, string InstructorName,
+                                    ref ConstructionBudget BudgetRec)
+        {
+            bool bChangeCode = false;
+            try
+            {
+                // �S���ҏ���
+                if (BudgetRec.CreatorCode == ConstructorCode) goto SecondProc;
+
+                // �c�ƌW�����|���Č��������߂�
+                MonthlySalary = CommonMotions.cnvRound(MonthlySalary * (double)CommonDefine.s_SalaryExpenses);
+                
+                if (ConstructorCode == 0)
+                {
+                    BudgetRec.CreatorCode = 0;
+                    BudgetRec.CreatorName = string.Empty;
+                    BudgetRec.CreatorCosts = 0;
+                    BudgetRec.SalaryFlg = 0;
+                    BudgetRec.SalaryDays = 0;
+                }
+                else
+                {
+                    if (BudgetRec.CreatorCode != 0)
+                    {
+                        // �S���ҋ��^�U���敪
+                        switch (BudgetRec.SalaryFlg)
+                        {
+                            case (int)CommonDefine.SalaryDevision.All:       // �S��
+                                // �S���ҋ��^
+                                BudgetRec.CreatorCosts = MonthlySalary * BudgetRec.ConstructionTimes;
+                                break;
+                            case (int)CommonDefine.SalaryDevision.Noting:    // �U����
+                                // �S���ҋ��^
+                                BudgetRec.CreatorCosts = 0;
+                                // �S���ҋ��^�U������
+                                BudgetRec.SalaryDays = 0;
+                                break;
+                            case (int)CommonDefine.SalaryDevision.DaysInput: // ��������
+                                // ���z���^�擾
+                                double daylySalary = MonthlySalary / CommonDefine.s_WorkingDaysOfMonth;
+                                BudgetRec.CreatorCosts = daylySalary * BudgetRec.SalaryDays;
+                                break;
+                        }
+                    }
+                    else
+                    {
+                        // �S���ҋ��^
+                        BudgetRec.CreatorCosts = MonthlySalary * BudgetRec.ConstructionTimes;
+                        // �S���ҋ��^�U���敪
+                        BudgetRec.SalaryFlg = (int)CommonDefine.SalaryDevision.All;       // �S��
+                        // �S���ҋ��^�U������
+                        BudgetRec.SalaryDays = 0;
+                    }
+
+                    // �S���҃R�[�h
+                    BudgetRec.CreatorCode = AssistantCode;
+                    // �S���Җ�
+                    BudgetRec.CreatorName = AssistantName;
+                }
+                bChangeCode = true;
+
+            SecondProc:
+
+                // ���S���ҏ���
+                if (BudgetRec.AssistantCode == AssistantCode) goto ThirdProc;
+
+                if (AssistantCode == 0)
+                {
+                    BudgetRec.AssistantCode = 0;
+                    BudgetRec.AssistantName = string.Empty;
+                    BudgetRec.AssistantCosts = 0;
+                    BudgetRec.A_SalaryFlg = 0;
+                    BudgetRec.A_SalaryDays = 0;
+                }
+                else
+                {
+                    if (BudgetRec.AssistantCode != 0)
+                    {
+                        // ���S���ҋ��^�U���敪
+                        switch (BudgetRec.A_SalaryFlg)
+                        {
+                            case (int)CommonDefine.SalaryDevision.All:       // �S��
+                                // ���S���ҋ��^
+                                BudgetRec.AssistantCosts = CommonDefine.AssistantMonthryCost * BudgetRec.ConstructionTimes;
+                                break;
+                            case (int)CommonDefine.SalaryDevision.Noting:    // �U����
+                                // ���S���ҋ��^
+                                BudgetRec.AssistantCosts = 0;
+                                // ���S���ҋ��^�U������
+                                BudgetRec.A_SalaryDays = 0;
+                                break;
+                            case (int)CommonDefine.SalaryDevision.DaysInput: // ��������
+                                // ���z���^�擾
+                                double daylySalary = CommonDefine.AssistantMonthryCost / CommonDefine.s_WorkingDaysOfMonth;
+                                BudgetRec.AssistantCosts = daylySalary * BudgetRec.A_SalaryDays;
+                                break;
+                        }
+                    }
+                    else
+                    {
+                        // ���S���ҋ��^
+                        BudgetRec.AssistantCosts = CommonDefine.AssistantMonthryCost * BudgetRec.ConstructionTimes;
+                        // ���S���ҋ��^�U���敪
+                        BudgetRec.A_SalaryFlg = (int)CommonDefine.SalaryDevision.All;       // �S��
+                        // ���S���ҋ��^�U������
+                        BudgetRec.A_SalaryDays = 0;
+                    }
+
+                    // ���S���҃R�[�h
+                    BudgetRec.AssistantCode = AssistantCode;
+                    // ���S���Җ�
+                    BudgetRec.AssistantName = AssistantName;
+                }
+                bChangeCode = true;
+
+            ThirdProc:
+
+                // �w��������
+                if (BudgetRec.InstructorCode == InstructorCode) goto FourthProc;
+
+                if (InstructorCode == 0)
+                {
+                    BudgetRec.InstructorCode = 0;
+                    BudgetRec.InstructorName = string.Empty;
+                    BudgetRec.InstructorCosts = 0;
+                    BudgetRec.A_SalaryFlg = 0;
+                    BudgetRec.A_SalaryDays = 0;
+                }
+                else
+                {
+                    if (BudgetRec.InstructorCode != 0)
+                    {
+                        // �w�����ҋ��^�U���敪
+                        switch (BudgetRec.I_SalaryFlg)
+                        {
+                            case (int)CommonDefine.SalaryDevision.All:       // �S��
+                                // �w�����ҋ��^
+                                BudgetRec.InstructorCosts = CommonDefine.InstructorMonthryCost * BudgetRec.ConstructionTimes;
+                                break;
+                            case (int)CommonDefine.SalaryDevision.Noting:    // �U����
+                                // �w�����ҋ��^
+                                BudgetRec.InstructorCosts = 0;
+                                // �w�����ҋ��^�U������
+                                BudgetRec.I_SalaryDays = 0;
+                                break;
+                            case (int)CommonDefine.SalaryDevision.DaysInput: // ��������
+                                // ���z���^�擾
+                                double daylySalary = CommonDefine.InstructorMonthryCost / CommonDefine.s_WorkingDaysOfMonth;
+                                BudgetRec.InstructorCosts = daylySalary * BudgetRec.A_SalaryDays;
+                                break;
+                        }
+                    }
+                    else
+                    {
+                        // �w�����ҋ��^
+                        BudgetRec.InstructorCosts = CommonDefine.InstructorMonthryCost * BudgetRec.ConstructionTimes;
+                        // �w�����ҋ��^�U���敪
+                        BudgetRec.I_SalaryFlg = (int)CommonDefine.SalaryDevision.All;       // �S��
+                        // �w�����ҋ��^�U������
+                        BudgetRec.I_SalaryDays = 0;
+                    }
+
+                    // �w�����҃R�[�h
+                    BudgetRec.InstructorCode = InstructorCode;
+                    // �w�����Җ�
+                    BudgetRec.InstructorName = InstructorName;
+                }
+                bChangeCode = true;
+
+            FourthProc:
+
+                return bChangeCode;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return bChangeCode;
+            }
+        }
+        #endregion
+
+        #region �H���\�Z�����׃f�[�^���R�[�h�N���A
+        /// <summary>
+        /// �H���\�Z�����׃f�[�^���R�[�h�N���A
+        /// </summary>
+        /// <param name="DetailRec"></param>
+        private void ClearConstructionBudgetDetailRec(ref ConstructionBudgetDetail DetailRec)
+        {
+            try
+            {
+                DetailRec.CompanyType = 0;
+                DetailRec.CompanyCode = 0;
+                DetailRec.SecondString = string.Empty;
+                DetailRec.OrderDesiredAmount = 0;
+                DetailRec.ExecutionAmount = 0;
+                DetailRec.AmountConfigRate = 0;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �o��̃Z�b�g
+        /// <summary>
+        /// �o��̃Z�b�g
+        /// </summary>
+        private bool SetExpenses(IOConstructionBudgetDetail BudgetDDB, double OrdersPrice, ArrayList ExpensesList)
+        {
+            try
+            {
+                // �܂��폜
+                string strDelete = BudgetDDB.CreatePrimarykeyString(m_ConstructionCode, (int)GroupName_ConstructionBudget.Expenses);
+                BudgetDDB.DeleteAction(strDelete, false);
+
+                int icnt = 1;
+                foreach (object[] wrkExpense in ExpensesList)
+                {
+                    // �o��擾
+                    double dExpenses = CommonMotions.cnvDouble(wrkExpense[(int)ExpensesArray.ExpensesRate]);
+
+
+                    ConstructionBudgetDetail work = new ConstructionBudgetDetail();
+                    // �H���ԍ�
+                    work.ConstructionCode = m_ConstructionCode;
+                    // �O���[�v�ԍ�
+                    work.GroupCount = (int)GroupName_ConstructionBudget.Expenses;
+                    // �s�ԍ�
+                    work.LineCount = icnt++;
+                    // ���ږ���
+                    string strVallue = CommonMotions.cnvString(wrkExpense[(int)ExpensesArray.ExpensesName]);
+                    work.FirstString = string.Format("{0}({1}%)", strVallue, dExpenses.ToString("0.00"));
+                    // ������]���z
+                    work.OrderDesiredAmount = (int)(OrdersPrice * (dExpenses / 100.0));
+                    // ���s���z                    
+                    work.ExecutionAmount = work.OrderDesiredAmount;
+                    // ���z�\����
+                    work.AmountConfigRate = dExpenses;
+
+                    // �f�[�^�o�^
+                    if (!BudgetDDB.InsertAction(work, false)) return false;
+                }
+
+                return true;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region �H���\�Z���f�[�^�S���҃Z�b�g
+        /// <summary>
+        /// �H���\�Z���f�[�^�S���҃Z�b�g
+        /// </summary>
+        /// <param name="ApprovalNo"></param>
+        /// <returns></returns>
+        private bool BudgetDetailDataConstructorSet(IOConstructionBudgetDetail BudgetDDB, FrmConstructionBudget frm
+                                                    , int ConstructorCode, string ConstructorName
+                                                    , ConstructionBudget BudgetRec, double MonthryCost
+                                                    , ArrayList ExpensesList)
+        {
+            try
+            {
+                string strSQL = BudgetDDB.CreatePrimarykeyString(m_ConstructionCode, (int)GroupName_ConstructionBudget.PayrollExpenses);
+                ConstructionBudgetDetail DetailRec = new ConstructionBudgetDetail();
+                // �H���\�Z�����׃f�[�^�������ꍇ�͍쐬��O��ɏ������s
+                bool UpdateFlg = BudgetDDB.SelectAction(strSQL, ref DetailRec, false);
+
+                // �S���ҏ���
+                if (DetailRec.CompanyCode == ConstructorCode) return true;
+
+                // �󒍋��z�擾
+                double dBase = (int)CommonMotions.cnvUndecidedStringToDouble(m_DspCtrl[(int)DspCnt.OrdersDecisionPrice].Text);
+
+                // �c�ƌW�����|���Č��������߂�
+                MonthryCost = CommonMotions.cnvRound(MonthryCost * (double)CommonDefine.s_SalaryExpenses);
+
+                // �����̓N���A
+                if (ConstructorCode == 0)
+                {
+                    ClearConstructionBudgetDetailRec(ref DetailRec);
+                    goto UpDateProc;
+                }
+
+                if (DetailRec.CompanyCode != 0)
+                {
+                    // �S���ҋ��^�U���敪
+                    switch (BudgetRec.A_SalaryFlg)
+                    {
+                        case (int)CommonDefine.SalaryDevision.All:       // �S��
+                            // �S���ҋ��^
+                            DetailRec.OrderDesiredAmount = MonthryCost * BudgetRec.ConstructionTimes;
+                            DetailRec.ExecutionAmount = DetailRec.OrderDesiredAmount;
+                            DetailRec.AmountConfigRate = DetailRec.ExecutionAmount / dBase * 100.0;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.Noting:    // �U����
+                            // �S���ҋ��^
+                            DetailRec.CompanyType = 0;
+                            DetailRec.OrderDesiredAmount = 0;
+                            DetailRec.ExecutionAmount = 0;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.DaysInput: // ��������
+                            // ���z���^�擾
+                            double daylySalary = MonthryCost / CommonDefine.s_WorkingDaysOfMonth;
+                            DetailRec.OrderDesiredAmount = daylySalary * BudgetRec.SalaryDays;
+                            DetailRec.ExecutionAmount = DetailRec.OrderDesiredAmount;
+                            DetailRec.AmountConfigRate = DetailRec.ExecutionAmount / dBase * 100.0;
+                            break;
+                    }
+                }
+                else
+                {
+                    // �S���ҋ��^
+                    DetailRec.CompanyType = (int)CommonDefine.SearchLogDataType.Person;
+                    DetailRec.OrderDesiredAmount = CommonDefine.AssistantMonthryCost * BudgetRec.ConstructionTimes;
+                    DetailRec.ExecutionAmount = DetailRec.OrderDesiredAmount;
+                    DetailRec.AmountConfigRate = DetailRec.ExecutionAmount / dBase * 100.0;
+                }
+                DetailRec.CompanyCode = ConstructorCode;
+                DetailRec.CompanyName = ConstructorName;
+
+            UpDateProc:
+
+                if (UpdateFlg)
+                {
+                    if (!BudgetDDB.UpdateAction(strSQL, DetailRec, false))
+                    {
+                        return false;
+                    }
+                }
+                else
+                {
+                    DetailRec.ConstructionCode = m_ConstructionCode;
+                    DetailRec.GroupCount = (int)GroupName_ConstructionBudget.PayrollExpenses;
+                    DetailRec.CompanyType = (int)CommonDefine.SearchLogDataType.Person;
+                    DetailRec.FirstString = frm.GetTitleConstructor;
+                    if (!BudgetDDB.InsertAction(DetailRec, false))
+                    {
+                        return false;
+                    }
+                }
+
+                // �o��̍X�V
+                if (!SetExpenses(BudgetDDB, dBase, ExpensesList)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region �H���\�Z���f�[�^���S���҃Z�b�g
+        /// <summary>
+        /// �H���\�Z���f�[�^���S���҃Z�b�g
+        /// </summary>
+        /// <param name="ApprovalNo"></param>
+        /// <returns></returns>
+        private bool BudgetDetailDataAssistantSet(IOConstructionBudgetDetail BudgetDDB, FrmConstructionBudget frm
+                                                    , int AssistantCode, string AssistantName, ConstructionBudget BudgetRec)
+        {
+            try
+            {
+                string strSQL = BudgetDDB.CreatePrimarykeyString(m_ConstructionCode, (int)GroupName_ConstructionBudget.AssistantCosts);
+                ConstructionBudgetDetail DetailRec = new ConstructionBudgetDetail();
+                // �H���\�Z�����׃f�[�^�������ꍇ�͍쐬��O��ɏ������s
+                bool UpdateFlg = BudgetDDB.SelectAction(strSQL, ref DetailRec, false);
+
+                // ���S���ҏ���
+                if (DetailRec.CompanyCode == AssistantCode) return true;
+
+                if (AssistantCode == 0)
+                {
+                    ClearConstructionBudgetDetailRec(ref DetailRec);
+                    goto UpDateProc;
+                }
+
+                double dBase = (int)CommonMotions.cnvUndecidedStringToDouble(m_DspCtrl[(int)DspCnt.OrdersDecisionPrice].Text);
+                if (DetailRec.CompanyCode != 0)
+                {
+                    // ���S���ҋ��^�U���敪
+                    switch (BudgetRec.A_SalaryFlg)
+                    {
+                        case (int)CommonDefine.SalaryDevision.All:       // �S��
+                            // ���S���ҋ��^
+                            DetailRec.OrderDesiredAmount = CommonDefine.AssistantMonthryCost * BudgetRec.ConstructionTimes;
+                            DetailRec.ExecutionAmount = DetailRec.OrderDesiredAmount;
+                            DetailRec.AmountConfigRate = DetailRec.ExecutionAmount / dBase * 100.0;
+
+                            break;
+                        case (int)CommonDefine.SalaryDevision.Noting:    // �U����
+                            // ���S���ҋ��^
+                            DetailRec.CompanyType = 0;
+                            DetailRec.OrderDesiredAmount = 0;
+                            DetailRec.ExecutionAmount = 0;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.DaysInput: // ��������
+                            // ���z���^�擾
+                            double daylySalary = CommonDefine.AssistantMonthryCost / CommonDefine.s_WorkingDaysOfMonth;
+                            DetailRec.OrderDesiredAmount = daylySalary * BudgetRec.A_SalaryDays;
+                            DetailRec.ExecutionAmount = DetailRec.OrderDesiredAmount;
+                            DetailRec.AmountConfigRate = DetailRec.ExecutionAmount / dBase * 100.0;
+                            break;
+                    }
+                }
+                else
+                {
+                    // ���S���ҋ��^
+                    DetailRec.CompanyType = (int)CommonDefine.SearchLogDataType.Person;
+                    DetailRec.OrderDesiredAmount = CommonDefine.AssistantMonthryCost * BudgetRec.ConstructionTimes;
+                    DetailRec.ExecutionAmount = DetailRec.OrderDesiredAmount;
+                    DetailRec.AmountConfigRate = DetailRec.ExecutionAmount / dBase * 100.0;
+                }
+                DetailRec.CompanyCode = AssistantCode;
+                DetailRec.CompanyName = AssistantName;
+
+            UpDateProc:
+
+                if (UpdateFlg)
+                {
+                    if (!BudgetDDB.UpdateAction(strSQL, DetailRec, false))
+                    {
+                        return false;
+                    }
+                }
+                else
+                {
+                    DetailRec.ConstructionCode = m_ConstructionCode;
+                    DetailRec.GroupCount = (int)GroupName_ConstructionBudget.AssistantCosts;
+                    DetailRec.CompanyType = (int)CommonDefine.SearchLogDataType.Person;
+                    DetailRec.FirstString = frm.GetTitleAssistant;
+                    if (!BudgetDDB.InsertAction(DetailRec, false))
+                    {
+                        return false;
+                    }
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region �H���\�Z�����׃f�[�^�w�����Z�b�g
+        /// <summary>
+        /// �H���\�Z���f�[�^�w�����Z�b�g
+        /// </summary>
+        /// <param name="ApprovalNo"></param>
+        /// <returns></returns>
+        private bool BudgetDetailDataInstructorSet(IOConstructionBudgetDetail BudgetDDB, FrmConstructionBudget frm,
+                                                    int InstructorCode, string InstructorName, ConstructionBudget BudgetRec)
+        {
+            try
+            {
+                string strSQL = BudgetDDB.CreatePrimarykeyString(m_ConstructionCode, (int)GroupName_ConstructionBudget.InstructorCosts);
+                ConstructionBudgetDetail DetailRec = new ConstructionBudgetDetail();
+                // �H���\�Z�����׃f�[�^�������ꍇ�͍쐬��O��ɏ������s
+                bool UpdateFlg = BudgetDDB.SelectAction(strSQL, ref DetailRec, false);
+
+                // �w��������
+                if (DetailRec.CompanyCode == InstructorCode) return true;
+
+                if (InstructorCode == 0)
+                {
+                    ClearConstructionBudgetDetailRec(ref DetailRec);
+                    goto UpDateProc;
+                }
+
+                double dBase = (int)CommonMotions.cnvUndecidedStringToDouble(m_DspCtrl[(int)DspCnt.OrdersDecisionPrice].Text);
+                if (DetailRec.CompanyCode != 0)
+                {
+                    // �w�������^�U���敪
+                    switch (BudgetRec.I_SalaryFlg)
+                    {
+                        case (int)CommonDefine.SalaryDevision.All:       // �S��
+                            // �w�������^
+                            DetailRec.OrderDesiredAmount = CommonDefine.InstructorMonthryCost * BudgetRec.ConstructionTimes;
+                            DetailRec.ExecutionAmount = DetailRec.OrderDesiredAmount;
+                            DetailRec.AmountConfigRate = DetailRec.ExecutionAmount / dBase * 100.0;
+
+                            break;
+                        case (int)CommonDefine.SalaryDevision.Noting:    // �U����
+                            // �w�������^
+                            DetailRec.CompanyType = 0;
+                            DetailRec.OrderDesiredAmount = 0;
+                            DetailRec.ExecutionAmount = 0;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.DaysInput: // ��������
+                            // ���z���^�擾
+                            double daylySalary = CommonDefine.InstructorMonthryCost / CommonDefine.s_WorkingDaysOfMonth;
+                            DetailRec.OrderDesiredAmount = daylySalary * BudgetRec.A_SalaryDays;
+                            DetailRec.ExecutionAmount = DetailRec.OrderDesiredAmount;
+                            DetailRec.AmountConfigRate = DetailRec.ExecutionAmount / dBase * 100.0;
+                            break;
+                    }
+                }
+                else
+                {
+                    // �w�������^
+                    DetailRec.CompanyType = (int)CommonDefine.SearchLogDataType.Person;
+                    DetailRec.OrderDesiredAmount = CommonDefine.InstructorMonthryCost * BudgetRec.ConstructionTimes;
+                    DetailRec.ExecutionAmount = DetailRec.OrderDesiredAmount;
+                    DetailRec.AmountConfigRate = DetailRec.ExecutionAmount / dBase * 100.0;
+                }
+                DetailRec.CompanyCode = InstructorCode;
+                DetailRec.CompanyName = InstructorName;
+
+            UpDateProc:
+
+                // �Ⴂ������΍X�V
+                if (UpdateFlg)
+                {
+                    if (!BudgetDDB.UpdateAction(strSQL, DetailRec, false))
+                    {
+                        return false;
+                    }
+                }
+                else
+                {
+                    DetailRec.ConstructionCode = m_ConstructionCode;
+                    DetailRec.GroupCount = (int)GroupName_ConstructionBudget.InstructorCosts;
+                    DetailRec.CompanyType = (int)CommonDefine.SearchLogDataType.Person;
+                    DetailRec.FirstString = frm.GetTitleInstructor;
+                    if (!BudgetDDB.InsertAction(DetailRec, false))
+                    {
+                        return false;
+                    }
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+    }
+}
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs	(revision 6)
@@ -465,6 +465,31 @@
         }
         #endregion
 
+        #region �H���������z�O���b�h
+        /// <summary>
+        /// �H���������z�O���b�h
+        /// </summary>
+        private enum LinkGridColumn
+        {
+            /// <summary>
+            /// �H���ԍ�
+            /// </summary>
+            ConstrCode = 0,
+            /// <summary>
+            /// �쐬��
+            /// </summary>
+            CreateDate,
+            /// <summary>
+            /// ���ϋ��z
+            /// </summary>
+            EstimatePrice,
+            /// <summary>
+            /// �󒍋��z
+            /// </summary>
+            OrderPrice,
+        }
+        #endregion
+
         #region �e��萔
         /// <summary>
         /// �Œ蔭���҃R�[�h�i���̑��j
@@ -747,7 +772,14 @@
                                                     "textBoxEX6",		    // �������X��/��n����
                                                  };
         #endregion
+
+        #region �H�����z�������^�C�g���t�H�[�}�b�g
+        /// <summary>
+        /// �H�����z�������^�C�g���t�H�[�}�b�g
+        /// </summary>
+        private const string s_FluctuationFormat = "�@��������{0}";
         #endregion
+        #endregion
 
         #region �ϐ�
         /// <summary>
@@ -810,6 +842,10 @@
         /// �ďo���I���t���O
         /// </summary>
         private bool m_ParentEnd = false;
+        /// <summary>
+        /// �f�[�^�ύX�t���O
+        /// </summary>
+        private bool m_DataChenge = false;
         // *-----* ���ʏ����ݒ� *-----*
 
         #endregion
@@ -856,6 +892,13 @@
             get { return m_ParentEnd; }
             set { m_ParentEnd = value; }
         }
+        /// <summary>
+        /// �f�[�^�ύX�t���O
+        /// </summary>
+        public bool DataChenge
+        {
+            get { return m_DataChenge; }
+        }
         // *-----* ���ʏ����ݒ� *-----*
 
         #endregion
@@ -927,8 +970,8 @@
 
                 m_bChengeAns = false;
 
-                // �H���ڍב䒠�f�[�^���쐬����ꍇ������
-                //if (!CaretaLedgerData()) return;
+                // �ύX�t���O��ON
+                m_DataChenge = true;
 
                 // �T�u�t�H�[���N���ȊO�͏I������ON
                 if (!m_SubForm)
@@ -936,8 +979,8 @@
                 else
                     m_CloseingProcessOn = false;
 
-                // �I��
-                this.Close();
+                // �H���ڍב䒠�f�[�^���쐬����ꍇ������
+                if (!CaretaLedgerData()) return;
 
                 // �I��
                 this.Close();
@@ -1012,7 +1055,7 @@
                 }
 
                 // ��ʕ\��
-                Fad.ShowInTaskbar = false;
+                //Fad.ShowInTaskbar = false;
                 Fad.ShowDialog();
                 
                 // �L�����Z���{�^������
@@ -1075,7 +1118,7 @@
                 //if (OrdererDivision.IndexOf("�l") < 0) return;
                 if (OrdererDetail != s_OrderersOtherCode) return;
 
-                Fad.ShowInTaskbar = false;
+                //Fad.ShowInTaskbar = false;
                 Fad.ShowDialog();
 
                 // �����Җ��׃R���{�{�b�N�X�č쐬
@@ -1136,7 +1179,7 @@
                 // �T�u�t�H�[���N���̓v���Z�X�J�E���^��ύX���Ȃ�
                 if (m_SubForm) m_CloseingProcessOn = false;
 
-                // �t�H�[����Close����Ă��Ȃ���΃N���[�Y����
+                // �������N�������t�H�[����Close����Ă��Ȃ���΃N���[�Y����
                 TerminatingProcess();
 
                 // ���F�󋵈ꗗ���\������Ă���΃N���[�Y����
@@ -1152,6 +1195,43 @@
         }
         #endregion
 
+        #region �H�������{�^������
+        /// <summary>
+        /// �H�������{�^������
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnFluctuation_Click(object sender, EventArgs e)
+        {
+            // �H�������f�[�^�쐬
+            CreateFluctuationData();
+        }
+        #endregion
+
+        #region �H�����z�����O���b�h�_�u���N���b�N
+        /// <summary>
+        /// �H�����z�����O���b�h�_�u���N���b�N
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvLink_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
+        {
+            LinkDataExecute();
+        }
+        #endregion
+
+        #region �H�����z�����s�I���{�^��
+        /// <summary>
+        /// �H�����z�����s�I���{�^��
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnLink_Click(object sender, EventArgs e)
+        {
+            LinkDataExecute();
+        }
+        #endregion
+
         #region �t�H�[�����[�h
         /// <summary>
         /// �����t�H�[�����[�h
@@ -1561,9 +1641,9 @@
         }
         #endregion
 
-        #region �Ŕ��󒍋��z���͌㏈��
+        #region �󒍋��z���͌㏈��
         /// <summary>
-        /// �Ŕ��󒍋��z���͌㏈��
+        /// �󒍋��z���͌㏈��
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.designer.cs	(revision 6)
@@ -29,6 +29,10 @@
         private void InitializeComponent()
         {
             this.components = new System.ComponentModel.Container();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
             this.label1 = new System.Windows.Forms.Label();
             this.btnDataDelete = new System.Windows.Forms.Button();
             this.btnDataEntry = new System.Windows.Forms.Button();
@@ -41,17 +45,16 @@
             this.label63 = new System.Windows.Forms.Label();
             this.label3 = new System.Windows.Forms.Label();
             this.panel1 = new System.Windows.Forms.Panel();
+            this.label114 = new System.Windows.Forms.Label();
+            this.label115 = new System.Windows.Forms.Label();
             this.txtInput07 = new System.Windows.Forms.TextBox();
             this.label6 = new System.Windows.Forms.Label();
             this.label8 = new System.Windows.Forms.Label();
-            this.comboBoxEX1 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
-            this.cmbDisplayPerson = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.label4 = new System.Windows.Forms.Label();
             this.panel2 = new System.Windows.Forms.Panel();
             this.rdbEstimateType2 = new System.Windows.Forms.RadioButton();
             this.rdbEstimateType3 = new System.Windows.Forms.RadioButton();
             this.rdbEstimateType1 = new System.Windows.Forms.RadioButton();
-            this.cmbConstructionType = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.txtInput08 = new System.Windows.Forms.TextBox();
             this.btnSerchZip = new System.Windows.Forms.Button();
             this.label20 = new System.Windows.Forms.Label();
@@ -83,11 +86,8 @@
             this.label64 = new System.Windows.Forms.Label();
             this.label44 = new System.Windows.Forms.Label();
             this.label14 = new System.Windows.Forms.Label();
-            this.label74 = new System.Windows.Forms.Label();
             this.label5 = new System.Windows.Forms.Label();
-            this.cmbOrdersDivision = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.btnOrderer = new System.Windows.Forms.Button();
-            this.cmbDisplayOrderers = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.txtInput05 = new System.Windows.Forms.TextBox();
             this.panel4 = new System.Windows.Forms.Panel();
             this.label101 = new System.Windows.Forms.Label();
@@ -96,24 +96,16 @@
             this.label97 = new System.Windows.Forms.Label();
             this.label39 = new System.Windows.Forms.Label();
             this.label30 = new System.Windows.Forms.Label();
-            this.txtInput28 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label27 = new System.Windows.Forms.Label();
-            this.txtInput25 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.lblTransferDate = new System.Windows.Forms.Label();
             this.label36 = new System.Windows.Forms.Label();
-            this.cmbTransferConstruction = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.txtInput26 = new System.Windows.Forms.TextBox();
             this.label10 = new System.Windows.Forms.Label();
             this.txtInput01 = new System.Windows.Forms.TextBox();
             this.label33 = new System.Windows.Forms.Label();
-            this.txtInput27 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.txtInput02 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label24 = new System.Windows.Forms.Label();
-            this.txtInput06 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label22 = new System.Windows.Forms.Label();
-            this.txtInput12 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label12 = new System.Windows.Forms.Label();
-            this.txtInput13 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label15 = new System.Windows.Forms.Label();
             this.label38 = new System.Windows.Forms.Label();
             this.label68 = new System.Windows.Forms.Label();
@@ -124,17 +116,12 @@
             this.label23 = new System.Windows.Forms.Label();
             this.label70 = new System.Windows.Forms.Label();
             this.label71 = new System.Windows.Forms.Label();
-            this.textBoxEX2 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.textBoxEX1 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.txtInput03 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label62 = new System.Windows.Forms.Label();
             this.label72 = new System.Windows.Forms.Label();
             this.label73 = new System.Windows.Forms.Label();
             this.label61 = new System.Windows.Forms.Label();
             this.label55 = new System.Windows.Forms.Label();
-            this.txtInput38 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label54 = new System.Windows.Forms.Label();
-            this.txtInput34 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label66 = new System.Windows.Forms.Label();
             this.label56 = new System.Windows.Forms.Label();
             this.label75 = new System.Windows.Forms.Label();
@@ -148,9 +135,7 @@
             this.rdBConsumptionTaxOff = new System.Windows.Forms.RadioButton();
             this.rdBConsumptionTaxOn = new System.Windows.Forms.RadioButton();
             this.panel7 = new System.Windows.Forms.Panel();
-            this.comboBoxEX4 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
-            this.comboBoxEX3 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
-            this.cmbDisplayConstrSubPerson = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.btnFluctuation = new System.Windows.Forms.Button();
             this.label46 = new System.Windows.Forms.Label();
             this.txtInput32 = new System.Windows.Forms.TextBox();
             this.label47 = new System.Windows.Forms.Label();
@@ -158,15 +143,8 @@
             this.txtInput31 = new System.Windows.Forms.TextBox();
             this.label41 = new System.Windows.Forms.Label();
             this.label50 = new System.Windows.Forms.Label();
-            this.textBoxEX3 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.txtInput35 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label25 = new System.Windows.Forms.Label();
-            this.txtInput04 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label42 = new System.Windows.Forms.Label();
-            this.textBoxEX5 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.textBoxEX4 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.txtInput29 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.txtInput30 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label81 = new System.Windows.Forms.Label();
             this.label82 = new System.Windows.Forms.Label();
             this.label77 = new System.Windows.Forms.Label();
@@ -175,9 +153,6 @@
             this.label67 = new System.Windows.Forms.Label();
             this.label79 = new System.Windows.Forms.Label();
             this.label31 = new System.Windows.Forms.Label();
-            this.cmbConstructionInstructor = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
-            this.comboBoxEX2 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
-            this.cmbDisplayConstructionPerson = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.label113 = new System.Windows.Forms.Label();
             this.label76 = new System.Windows.Forms.Label();
             this.label112 = new System.Windows.Forms.Label();
@@ -184,6 +159,13 @@
             this.label21 = new System.Windows.Forms.Label();
             this.label40 = new System.Windows.Forms.Label();
             this.panel8 = new System.Windows.Forms.Panel();
+            this.btnLink = new System.Windows.Forms.Button();
+            this.label74 = new System.Windows.Forms.Label();
+            this.dgvLink = new System.Windows.Forms.DataGridView();
+            this.Column0 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.label85 = new System.Windows.Forms.Label();
             this.label84 = new System.Windows.Forms.Label();
             this.label83 = new System.Windows.Forms.Label();
@@ -197,9 +179,6 @@
             this.label109 = new System.Windows.Forms.Label();
             this.label43 = new System.Windows.Forms.Label();
             this.label45 = new System.Windows.Forms.Label();
-            this.textBoxEX10 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.textBoxEX9 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.textBoxEX8 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label59 = new System.Windows.Forms.Label();
             this.panel9 = new System.Windows.Forms.Panel();
             this.label98 = new System.Windows.Forms.Label();
@@ -219,9 +198,6 @@
             this.label87 = new System.Windows.Forms.Label();
             this.label60 = new System.Windows.Forms.Label();
             this.label86 = new System.Windows.Forms.Label();
-            this.textBoxEX6 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.txtInput36 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
-            this.txtInput37 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
             this.label2 = new System.Windows.Forms.Label();
             this.rdbStatusHikitugiFlg = new System.Windows.Forms.RadioButton();
             this.lblConstructionCodelabel = new System.Windows.Forms.Label();
@@ -251,11 +227,48 @@
             this.label29 = new System.Windows.Forms.Label();
             this.lblLastUpdate = new System.Windows.Forms.Label();
             this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
-            this.cmbConstructionPeriod = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
-            this.cmbConstructionYear = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.btnApprovalList = new System.Windows.Forms.Button();
             this.btnDataSelect = new System.Windows.Forms.Button();
             this.btnOtherProc = new System.Windows.Forms.Button();
+            this.comboBoxEX1 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.cmbDisplayPerson = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.cmbConstructionType = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.cmbOrdersDivision = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.cmbDisplayOrderers = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.txtInput28 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput25 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.cmbTransferConstruction = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.txtInput27 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput02 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput06 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput12 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput13 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.textBoxEX2 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.textBoxEX1 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput03 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput38 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput34 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.comboBoxEX4 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.comboBoxEX3 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.cmbDisplayConstrSubPerson = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.textBoxEX3 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput35 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput04 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.textBoxEX5 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.textBoxEX4 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput29 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput30 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.cmbConstructionInstructor = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.comboBoxEX2 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.cmbDisplayConstructionPerson = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.textBoxEX10 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.textBoxEX9 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.textBoxEX8 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.textBoxEX6 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput36 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.txtInput37 = new ProcessManagement.Forms.CustomControls.TextBoxEX();
+            this.cmbConstructionPeriod = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.cmbConstructionYear = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.BasePanel.SuspendLayout();
             this.tableLayoutPanel2.SuspendLayout();
             this.panel1.SuspendLayout();
@@ -265,6 +278,7 @@
             this.panel6.SuspendLayout();
             this.panel7.SuspendLayout();
             this.panel8.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvLink)).BeginInit();
             this.panel9.SuspendLayout();
             this.panel5.SuspendLayout();
             this.SuspendLayout();
@@ -444,6 +458,8 @@
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.panel1.BackColor = System.Drawing.Color.RoyalBlue;
+            this.panel1.Controls.Add(this.label114);
+            this.panel1.Controls.Add(this.label115);
             this.panel1.Controls.Add(this.txtInput07);
             this.panel1.Controls.Add(this.label6);
             this.panel1.Controls.Add(this.label8);
@@ -481,7 +497,6 @@
             this.panel1.Controls.Add(this.label64);
             this.panel1.Controls.Add(this.label44);
             this.panel1.Controls.Add(this.label14);
-            this.panel1.Controls.Add(this.label74);
             this.panel1.Controls.Add(this.label5);
             this.panel1.Controls.Add(this.cmbOrdersDivision);
             this.panel1.Controls.Add(this.btnOrderer);
@@ -493,6 +508,28 @@
             this.panel1.Size = new System.Drawing.Size(658, 994);
             this.panel1.TabIndex = 1;
             // 
+            // label114
+            // 
+            this.label114.BackColor = System.Drawing.Color.CornflowerBlue;
+            this.label114.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label114.Location = new System.Drawing.Point(379, 692);
+            this.label114.Name = "label114";
+            this.label114.Size = new System.Drawing.Size(250, 30);
+            this.label114.TabIndex = 175;
+            this.label114.Text = "担　当　者";
+            this.label114.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label115
+            // 
+            this.label115.BackColor = System.Drawing.Color.CornflowerBlue;
+            this.label115.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label115.Location = new System.Drawing.Point(129, 692);
+            this.label115.Name = "label115";
+            this.label115.Size = new System.Drawing.Size(250, 30);
+            this.label115.TabIndex = 176;
+            this.label115.Text = "部　　署";
+            this.label115.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // txtInput07
             // 
             this.txtInput07.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
@@ -532,29 +569,6 @@
             this.label8.Text = "工事場所";
             this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // comboBoxEX1
-            // 
-            this.comboBoxEX1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.comboBoxEX1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.comboBoxEX1.FormattingEnabled = true;
-            this.comboBoxEX1.Location = new System.Drawing.Point(129, 694);
-            this.comboBoxEX1.Name = "comboBoxEX1";
-            this.comboBoxEX1.Size = new System.Drawing.Size(300, 27);
-            this.comboBoxEX1.TabIndex = 22;
-            this.comboBoxEX1.SelectedIndexChanged += new System.EventHandler(this.comboBoxEX1_SelectedIndexChanged);
-            this.comboBoxEX1.TextChanged += new System.EventHandler(this.valueChange);
-            // 
-            // cmbDisplayPerson
-            // 
-            this.cmbDisplayPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbDisplayPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbDisplayPerson.FormattingEnabled = true;
-            this.cmbDisplayPerson.Location = new System.Drawing.Point(129, 724);
-            this.cmbDisplayPerson.Name = "cmbDisplayPerson";
-            this.cmbDisplayPerson.Size = new System.Drawing.Size(300, 27);
-            this.cmbDisplayPerson.TabIndex = 23;
-            this.cmbDisplayPerson.TextChanged += new System.EventHandler(this.valueChange);
-            // 
             // label4
             // 
             this.label4.BackColor = System.Drawing.Color.CornflowerBlue;
@@ -564,7 +578,7 @@
             this.label4.Name = "label4";
             this.label4.Size = new System.Drawing.Size(120, 30);
             this.label4.TabIndex = 138;
-            this.label4.Text = "営業担当者";
+            this.label4.Text = "営業担当";
             this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // panel2
@@ -620,17 +634,6 @@
             this.rdbEstimateType1.UseVisualStyleBackColor = false;
             this.rdbEstimateType1.CheckedChanged += new System.EventHandler(this.valueChange);
             // 
-            // cmbConstructionType
-            // 
-            this.cmbConstructionType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbConstructionType.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbConstructionType.FormattingEnabled = true;
-            this.cmbConstructionType.Location = new System.Drawing.Point(129, 602);
-            this.cmbConstructionType.Name = "cmbConstructionType";
-            this.cmbConstructionType.Size = new System.Drawing.Size(300, 27);
-            this.cmbConstructionType.TabIndex = 21;
-            this.cmbConstructionType.TextChanged += new System.EventHandler(this.valueChange);
-            // 
             // txtInput08
             // 
             this.txtInput08.ImeMode = System.Windows.Forms.ImeMode.Disable;
@@ -708,7 +711,7 @@
             this.label9.BackColor = System.Drawing.Color.CornflowerBlue;
             this.label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label9.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label9.ForeColor = System.Drawing.Color.LightGreen;
+            this.label9.ForeColor = System.Drawing.Color.Black;
             this.label9.Location = new System.Drawing.Point(1, 782);
             this.label9.Name = "label9";
             this.label9.Size = new System.Drawing.Size(120, 30);
@@ -1005,18 +1008,6 @@
             this.label14.Text = "工事種別";
             this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // label74
-            // 
-            this.label74.BackColor = System.Drawing.Color.CornflowerBlue;
-            this.label74.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label74.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label74.Location = new System.Drawing.Point(1, 692);
-            this.label74.Name = "label74";
-            this.label74.Size = new System.Drawing.Size(120, 30);
-            this.label74.TabIndex = 141;
-            this.label74.Text = "営業担当部署";
-            this.label74.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // label5
             // 
             this.label5.BackColor = System.Drawing.Color.CornflowerBlue;
@@ -1029,27 +1020,6 @@
             this.label5.Text = "発　注　者";
             this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // cmbOrdersDivision
-            // 
-            this.cmbOrdersDivision.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.cmbOrdersDivision.AutoCompleteCustomSource.AddRange(new string[] {
-            "株式会社",
-            "有限会社",
-            "合名会社",
-            "合資会社",
-            "合同会社"});
-            this.cmbOrdersDivision.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbOrdersDivision.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbOrdersDivision.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.cmbOrdersDivision.FormattingEnabled = true;
-            this.cmbOrdersDivision.Location = new System.Drawing.Point(129, 152);
-            this.cmbOrdersDivision.Name = "cmbOrdersDivision";
-            this.cmbOrdersDivision.Size = new System.Drawing.Size(528, 27);
-            this.cmbOrdersDivision.TabIndex = 7;
-            this.cmbOrdersDivision.SelectedIndexChanged += new System.EventHandler(this.cmbOrdersDivision_SelectedIndexChanged);
-            this.cmbOrdersDivision.TextChanged += new System.EventHandler(this.valueChange);
-            // 
             // btnOrderer
             // 
             this.btnOrderer.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
@@ -1063,22 +1033,11 @@
             this.btnOrderer.Visible = false;
             this.btnOrderer.Click += new System.EventHandler(this.btnOrderer_Click);
             // 
-            // cmbDisplayOrderers
-            // 
-            this.cmbDisplayOrderers.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbDisplayOrderers.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbDisplayOrderers.FormattingEnabled = true;
-            this.cmbDisplayOrderers.Location = new System.Drawing.Point(129, 183);
-            this.cmbDisplayOrderers.Name = "cmbDisplayOrderers";
-            this.cmbDisplayOrderers.Size = new System.Drawing.Size(372, 27);
-            this.cmbDisplayOrderers.TabIndex = 8;
-            this.cmbDisplayOrderers.SelectedIndexChanged += new System.EventHandler(this.cmbDisplayOrderers_SelectedIndexChanged);
-            this.cmbDisplayOrderers.TextChanged += new System.EventHandler(this.valueChange);
-            // 
             // txtInput05
             // 
             this.txtInput05.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
+            this.txtInput05.BackColor = System.Drawing.SystemColors.Window;
             this.txtInput05.ImeMode = System.Windows.Forms.ImeMode.On;
             this.txtInput05.Location = new System.Drawing.Point(129, 214);
             this.txtInput05.MaxLength = 120;
@@ -1160,7 +1119,7 @@
             this.label101.BackColor = System.Drawing.Color.White;
             this.label101.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label101.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label101.Location = new System.Drawing.Point(382, 423);
+            this.label101.Location = new System.Drawing.Point(382, 432);
             this.label101.Name = "label101";
             this.label101.Size = new System.Drawing.Size(120, 26);
             this.label101.TabIndex = 0;
@@ -1171,7 +1130,7 @@
             this.label100.BackColor = System.Drawing.Color.White;
             this.label100.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label100.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label100.Location = new System.Drawing.Point(382, 393);
+            this.label100.Location = new System.Drawing.Point(382, 402);
             this.label100.Name = "label100";
             this.label100.Size = new System.Drawing.Size(120, 26);
             this.label100.TabIndex = 0;
@@ -1182,7 +1141,7 @@
             this.label99.BackColor = System.Drawing.Color.White;
             this.label99.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label99.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label99.Location = new System.Drawing.Point(128, 423);
+            this.label99.Location = new System.Drawing.Point(128, 432);
             this.label99.Name = "label99";
             this.label99.Size = new System.Drawing.Size(120, 26);
             this.label99.TabIndex = 0;
@@ -1193,7 +1152,7 @@
             this.label97.BackColor = System.Drawing.Color.White;
             this.label97.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label97.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label97.Location = new System.Drawing.Point(128, 393);
+            this.label97.Location = new System.Drawing.Point(128, 402);
             this.label97.Name = "label97";
             this.label97.Size = new System.Drawing.Size(120, 26);
             this.label97.TabIndex = 0;
@@ -1202,10 +1161,11 @@
             // label39
             // 
             this.label39.BackColor = System.Drawing.Color.Black;
+            this.label39.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label39.ForeColor = System.Drawing.Color.Red;
             this.label39.Location = new System.Drawing.Point(408, 79);
             this.label39.Name = "label39";
-            this.label39.Size = new System.Drawing.Size(236, 44);
+            this.label39.Size = new System.Drawing.Size(230, 44);
             this.label39.TabIndex = 190;
             this.label39.Text = "※受注時に金額を\r\n直接入力してください";
             this.label39.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -1223,21 +1183,6 @@
             this.label30.Text = "税込\r\n受注決定金額";
             this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // txtInput28
-            // 
-            this.txtInput28.BackColor = System.Drawing.Color.White;
-            this.txtInput28.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.txtInput28.ForeColor = System.Drawing.Color.Black;
-            this.txtInput28.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput28.Location = new System.Drawing.Point(128, 104);
-            this.txtInput28.MaxLength = 10;
-            this.txtInput28.Name = "txtInput28";
-            this.txtInput28.Size = new System.Drawing.Size(274, 34);
-            this.txtInput28.TabIndex = 28;
-            this.txtInput28.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput28.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput28.Validated += new System.EventHandler(this.txtInput25_Validated);
-            // 
             // label27
             // 
             this.label27.BackColor = System.Drawing.Color.MidnightBlue;
@@ -1251,21 +1196,6 @@
             this.label27.Text = "税別\r\n受注決定金額";
             this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // txtInput25
-            // 
-            this.txtInput25.BackColor = System.Drawing.Color.White;
-            this.txtInput25.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.txtInput25.ForeColor = System.Drawing.Color.Black;
-            this.txtInput25.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput25.Location = new System.Drawing.Point(128, 66);
-            this.txtInput25.MaxLength = 10;
-            this.txtInput25.Name = "txtInput25";
-            this.txtInput25.Size = new System.Drawing.Size(274, 34);
-            this.txtInput25.TabIndex = 27;
-            this.txtInput25.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput25.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput25.Validated += new System.EventHandler(this.txtInput25_Validated);
-            // 
             // lblTransferDate
             // 
             this.lblTransferDate.BackColor = System.Drawing.SystemColors.Window;
@@ -1288,18 +1218,6 @@
             this.label36.Text = "部署引継日";
             this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // cmbTransferConstruction
-            // 
-            this.cmbTransferConstruction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbTransferConstruction.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbTransferConstruction.FormattingEnabled = true;
-            this.cmbTransferConstruction.Location = new System.Drawing.Point(128, 843);
-            this.cmbTransferConstruction.Name = "cmbTransferConstruction";
-            this.cmbTransferConstruction.Size = new System.Drawing.Size(300, 27);
-            this.cmbTransferConstruction.TabIndex = 39;
-            this.cmbTransferConstruction.SelectedIndexChanged += new System.EventHandler(this.cmbTransferConstruction_SelectedIndexChanged);
-            this.cmbTransferConstruction.TextChanged += new System.EventHandler(this.valueChange);
-            // 
             // txtInput26
             // 
             this.txtInput26.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
@@ -1306,7 +1224,7 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.txtInput26.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.txtInput26.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtInput26.Location = new System.Drawing.Point(128, 721);
+            this.txtInput26.Location = new System.Drawing.Point(128, 760);
             this.txtInput26.MaxLength = 120;
             this.txtInput26.Multiline = true;
             this.txtInput26.Name = "txtInput26";
@@ -1330,7 +1248,7 @@
             // txtInput01
             // 
             this.txtInput01.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput01.Location = new System.Drawing.Point(128, 5);
+            this.txtInput01.Location = new System.Drawing.Point(128, 3);
             this.txtInput01.MaxLength = 10;
             this.txtInput01.Name = "txtInput01";
             this.txtInput01.Size = new System.Drawing.Size(120, 26);
@@ -1350,35 +1268,12 @@
             this.label33.Text = "見積提出期限";
             this.label33.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // txtInput27
-            // 
-            this.txtInput27.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput27.Location = new System.Drawing.Point(128, 35);
-            this.txtInput27.MaxLength = 10;
-            this.txtInput27.Name = "txtInput27";
-            this.txtInput27.Size = new System.Drawing.Size(120, 26);
-            this.txtInput27.TabIndex = 26;
-            this.txtInput27.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput27.TextChanged += new System.EventHandler(this.valueChange);
-            // 
-            // txtInput02
-            // 
-            this.txtInput02.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput02.Location = new System.Drawing.Point(128, 183);
-            this.txtInput02.MaxLength = 10;
-            this.txtInput02.Name = "txtInput02";
-            this.txtInput02.Size = new System.Drawing.Size(120, 26);
-            this.txtInput02.TabIndex = 29;
-            this.txtInput02.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput02.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput02.Validated += new System.EventHandler(this.txtInput02_TextChanged);
-            // 
             // label24
             // 
             this.label24.BackColor = System.Drawing.Color.LightBlue;
             this.label24.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label24.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label24.Location = new System.Drawing.Point(1, 181);
+            this.label24.Location = new System.Drawing.Point(1, 180);
             this.label24.Name = "label24";
             this.label24.Size = new System.Drawing.Size(120, 30);
             this.label24.TabIndex = 153;
@@ -1385,24 +1280,12 @@
             this.label24.Text = "見積提出日";
             this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // txtInput06
-            // 
-            this.txtInput06.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput06.Location = new System.Drawing.Point(128, 213);
-            this.txtInput06.MaxLength = 10;
-            this.txtInput06.Name = "txtInput06";
-            this.txtInput06.Size = new System.Drawing.Size(120, 26);
-            this.txtInput06.TabIndex = 30;
-            this.txtInput06.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput06.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput06.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label22
             // 
             this.label22.BackColor = System.Drawing.Color.LightBlue;
             this.label22.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label22.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label22.Location = new System.Drawing.Point(1, 211);
+            this.label22.Location = new System.Drawing.Point(1, 210);
             this.label22.Name = "label22";
             this.label22.Size = new System.Drawing.Size(120, 30);
             this.label22.TabIndex = 155;
@@ -1409,24 +1292,12 @@
             this.label22.Text = "見積有効期限";
             this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // txtInput12
-            // 
-            this.txtInput12.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput12.Location = new System.Drawing.Point(128, 303);
-            this.txtInput12.MaxLength = 10;
-            this.txtInput12.Name = "txtInput12";
-            this.txtInput12.Size = new System.Drawing.Size(120, 26);
-            this.txtInput12.TabIndex = 31;
-            this.txtInput12.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput12.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput12.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label12
             // 
             this.label12.BackColor = System.Drawing.Color.LightBlue;
             this.label12.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label12.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label12.Location = new System.Drawing.Point(1, 301);
+            this.label12.Location = new System.Drawing.Point(1, 300);
             this.label12.Name = "label12";
             this.label12.Size = new System.Drawing.Size(120, 30);
             this.label12.TabIndex = 157;
@@ -1433,24 +1304,12 @@
             this.label12.Text = "工事期間　開始";
             this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // txtInput13
-            // 
-            this.txtInput13.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput13.Location = new System.Drawing.Point(128, 333);
-            this.txtInput13.MaxLength = 10;
-            this.txtInput13.Name = "txtInput13";
-            this.txtInput13.Size = new System.Drawing.Size(120, 26);
-            this.txtInput13.TabIndex = 32;
-            this.txtInput13.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput13.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput13.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label15
             // 
             this.label15.BackColor = System.Drawing.Color.LightBlue;
             this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label15.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label15.Location = new System.Drawing.Point(1, 331);
+            this.label15.Location = new System.Drawing.Point(1, 330);
             this.label15.Name = "label15";
             this.label15.Size = new System.Drawing.Size(120, 30);
             this.label15.TabIndex = 162;
@@ -1460,9 +1319,10 @@
             // label38
             // 
             this.label38.BackColor = System.Drawing.Color.Black;
+            this.label38.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label38.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label38.ForeColor = System.Drawing.Color.Red;
-            this.label38.Location = new System.Drawing.Point(254, 304);
+            this.label38.Location = new System.Drawing.Point(254, 303);
             this.label38.Name = "label38";
             this.label38.Size = new System.Drawing.Size(386, 25);
             this.label38.TabIndex = 164;
@@ -1472,6 +1332,7 @@
             // label68
             // 
             this.label68.BackColor = System.Drawing.Color.Black;
+            this.label68.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label68.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label68.ForeColor = System.Drawing.Color.Red;
             this.label68.Location = new System.Drawing.Point(254, 874);
@@ -1486,7 +1347,7 @@
             this.label37.BackColor = System.Drawing.Color.LightBlue;
             this.label37.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label37.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label37.Location = new System.Drawing.Point(1, 391);
+            this.label37.Location = new System.Drawing.Point(1, 400);
             this.label37.Name = "label37";
             this.label37.Size = new System.Drawing.Size(120, 30);
             this.label37.TabIndex = 161;
@@ -1498,7 +1359,7 @@
             this.label57.BackColor = System.Drawing.Color.LightBlue;
             this.label57.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label57.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label57.Location = new System.Drawing.Point(254, 391);
+            this.label57.Location = new System.Drawing.Point(254, 400);
             this.label57.Name = "label57";
             this.label57.Size = new System.Drawing.Size(120, 30);
             this.label57.TabIndex = 163;
@@ -1510,7 +1371,7 @@
             this.label65.BackColor = System.Drawing.Color.LightBlue;
             this.label65.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label65.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label65.Location = new System.Drawing.Point(1, 421);
+            this.label65.Location = new System.Drawing.Point(1, 430);
             this.label65.Name = "label65";
             this.label65.Size = new System.Drawing.Size(120, 30);
             this.label65.TabIndex = 160;
@@ -1522,7 +1383,7 @@
             this.label69.BackColor = System.Drawing.Color.LightBlue;
             this.label69.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label69.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label69.Location = new System.Drawing.Point(254, 421);
+            this.label69.Location = new System.Drawing.Point(254, 430);
             this.label69.Name = "label69";
             this.label69.Size = new System.Drawing.Size(120, 30);
             this.label69.TabIndex = 159;
@@ -1534,7 +1395,7 @@
             this.label23.BackColor = System.Drawing.Color.LightBlue;
             this.label23.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label23.ForeColor = System.Drawing.Color.Red;
-            this.label23.Location = new System.Drawing.Point(1, 481);
+            this.label23.Location = new System.Drawing.Point(1, 500);
             this.label23.Name = "label23";
             this.label23.Size = new System.Drawing.Size(120, 30);
             this.label23.TabIndex = 165;
@@ -1546,7 +1407,7 @@
             this.label70.BackColor = System.Drawing.Color.LightBlue;
             this.label70.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label70.ForeColor = System.Drawing.Color.Red;
-            this.label70.Location = new System.Drawing.Point(1, 511);
+            this.label70.Location = new System.Drawing.Point(1, 530);
             this.label70.Name = "label70";
             this.label70.Size = new System.Drawing.Size(120, 30);
             this.label70.TabIndex = 166;
@@ -1558,7 +1419,7 @@
             this.label71.BackColor = System.Drawing.Color.LightBlue;
             this.label71.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label71.ForeColor = System.Drawing.Color.Red;
-            this.label71.Location = new System.Drawing.Point(1, 541);
+            this.label71.Location = new System.Drawing.Point(1, 560);
             this.label71.Name = "label71";
             this.label71.Size = new System.Drawing.Size(120, 30);
             this.label71.TabIndex = 167;
@@ -1565,48 +1426,13 @@
             this.label71.Text = "非受注日";
             this.label71.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // textBoxEX2
-            // 
-            this.textBoxEX2.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.textBoxEX2.Location = new System.Drawing.Point(128, 543);
-            this.textBoxEX2.MaxLength = 10;
-            this.textBoxEX2.Name = "textBoxEX2";
-            this.textBoxEX2.Size = new System.Drawing.Size(120, 26);
-            this.textBoxEX2.TabIndex = 35;
-            this.textBoxEX2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.textBoxEX2.TextChanged += new System.EventHandler(this.valueChange);
-            this.textBoxEX2.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // textBoxEX1
-            // 
-            this.textBoxEX1.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.textBoxEX1.Location = new System.Drawing.Point(128, 483);
-            this.textBoxEX1.MaxLength = 10;
-            this.textBoxEX1.Name = "textBoxEX1";
-            this.textBoxEX1.Size = new System.Drawing.Size(120, 26);
-            this.textBoxEX1.TabIndex = 33;
-            this.textBoxEX1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.textBoxEX1.TextChanged += new System.EventHandler(this.valueChange);
-            this.textBoxEX1.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // txtInput03
-            // 
-            this.txtInput03.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput03.Location = new System.Drawing.Point(128, 513);
-            this.txtInput03.MaxLength = 10;
-            this.txtInput03.Name = "txtInput03";
-            this.txtInput03.Size = new System.Drawing.Size(120, 26);
-            this.txtInput03.TabIndex = 34;
-            this.txtInput03.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput03.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput03.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label62
             // 
             this.label62.BackColor = System.Drawing.Color.Black;
+            this.label62.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label62.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label62.ForeColor = System.Drawing.Color.Red;
-            this.label62.Location = new System.Drawing.Point(254, 514);
+            this.label62.Location = new System.Drawing.Point(254, 533);
             this.label62.Name = "label62";
             this.label62.Size = new System.Drawing.Size(386, 25);
             this.label62.TabIndex = 170;
@@ -1616,9 +1442,10 @@
             // label72
             // 
             this.label72.BackColor = System.Drawing.Color.Black;
+            this.label72.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label72.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label72.ForeColor = System.Drawing.Color.Red;
-            this.label72.Location = new System.Drawing.Point(254, 484);
+            this.label72.Location = new System.Drawing.Point(254, 503);
             this.label72.Name = "label72";
             this.label72.Size = new System.Drawing.Size(386, 25);
             this.label72.TabIndex = 171;
@@ -1628,9 +1455,10 @@
             // label73
             // 
             this.label73.BackColor = System.Drawing.Color.Black;
+            this.label73.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label73.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label73.ForeColor = System.Drawing.Color.Red;
-            this.label73.Location = new System.Drawing.Point(254, 544);
+            this.label73.Location = new System.Drawing.Point(254, 563);
             this.label73.Name = "label73";
             this.label73.Size = new System.Drawing.Size(386, 25);
             this.label73.TabIndex = 169;
@@ -1643,7 +1471,7 @@
             this.label61.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label61.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label61.ForeColor = System.Drawing.Color.Red;
-            this.label61.Location = new System.Drawing.Point(1, 601);
+            this.label61.Location = new System.Drawing.Point(1, 630);
             this.label61.Name = "label61";
             this.label61.Size = new System.Drawing.Size(120, 30);
             this.label61.TabIndex = 172;
@@ -1653,9 +1481,10 @@
             // label55
             // 
             this.label55.BackColor = System.Drawing.Color.Black;
+            this.label55.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label55.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label55.ForeColor = System.Drawing.Color.Red;
-            this.label55.Location = new System.Drawing.Point(254, 599);
+            this.label55.Location = new System.Drawing.Point(254, 630);
             this.label55.Name = "label55";
             this.label55.Size = new System.Drawing.Size(386, 30);
             this.label55.TabIndex = 173;
@@ -1662,18 +1491,6 @@
             this.label55.Text = "※「施工開始予定日」はおおよその工事開始日(現場着手時期)を\r\n「受注日」入力時に入力して下さい";
             this.label55.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
-            // txtInput38
-            // 
-            this.txtInput38.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput38.Location = new System.Drawing.Point(128, 603);
-            this.txtInput38.MaxLength = 10;
-            this.txtInput38.Name = "txtInput38";
-            this.txtInput38.Size = new System.Drawing.Size(120, 26);
-            this.txtInput38.TabIndex = 36;
-            this.txtInput38.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput38.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput38.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label54
             // 
             this.label54.BackColor = System.Drawing.Color.LightBlue;
@@ -1680,7 +1497,7 @@
             this.label54.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label54.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label54.ForeColor = System.Drawing.Color.Red;
-            this.label54.Location = new System.Drawing.Point(1, 631);
+            this.label54.Location = new System.Drawing.Point(1, 660);
             this.label54.Name = "label54";
             this.label54.Size = new System.Drawing.Size(120, 30);
             this.label54.TabIndex = 175;
@@ -1687,24 +1504,13 @@
             this.label54.Text = "受注時施工完了予定日";
             this.label54.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // txtInput34
-            // 
-            this.txtInput34.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput34.Location = new System.Drawing.Point(128, 633);
-            this.txtInput34.MaxLength = 10;
-            this.txtInput34.Name = "txtInput34";
-            this.txtInput34.Size = new System.Drawing.Size(120, 26);
-            this.txtInput34.TabIndex = 37;
-            this.txtInput34.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput34.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput34.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label66
             // 
             this.label66.BackColor = System.Drawing.Color.Black;
+            this.label66.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label66.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label66.ForeColor = System.Drawing.Color.Red;
-            this.label66.Location = new System.Drawing.Point(254, 633);
+            this.label66.Location = new System.Drawing.Point(254, 660);
             this.label66.Name = "label66";
             this.label66.Size = new System.Drawing.Size(386, 30);
             this.label66.TabIndex = 177;
@@ -1714,9 +1520,10 @@
             // label56
             // 
             this.label56.BackColor = System.Drawing.Color.Black;
+            this.label56.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label56.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label56.ForeColor = System.Drawing.Color.Red;
-            this.label56.Location = new System.Drawing.Point(19, 667);
+            this.label56.Location = new System.Drawing.Point(1, 690);
             this.label56.Name = "label56";
             this.label56.Size = new System.Drawing.Size(621, 30);
             this.label56.TabIndex = 178;
@@ -1728,8 +1535,8 @@
             this.label75.BackColor = System.Drawing.Color.LightBlue;
             this.label75.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label75.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label75.ForeColor = System.Drawing.Color.OliveDrab;
-            this.label75.Location = new System.Drawing.Point(1, 721);
+            this.label75.ForeColor = System.Drawing.Color.Black;
+            this.label75.Location = new System.Drawing.Point(1, 760);
             this.label75.Name = "label75";
             this.label75.Size = new System.Drawing.Size(120, 30);
             this.label75.TabIndex = 143;
@@ -1753,7 +1560,7 @@
             this.label26.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label26.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label26.ForeColor = System.Drawing.Color.Black;
-            this.label26.Location = new System.Drawing.Point(1, 241);
+            this.label26.Location = new System.Drawing.Point(1, 240);
             this.label26.Name = "label26";
             this.label26.Size = new System.Drawing.Size(120, 30);
             this.label26.TabIndex = 180;
@@ -1765,7 +1572,7 @@
             this.lblEstimatePrice0.BackColor = System.Drawing.Color.White;
             this.lblEstimatePrice0.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblEstimatePrice0.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lblEstimatePrice0.Location = new System.Drawing.Point(128, 241);
+            this.lblEstimatePrice0.Location = new System.Drawing.Point(128, 240);
             this.lblEstimatePrice0.Name = "lblEstimatePrice0";
             this.lblEstimatePrice0.Size = new System.Drawing.Size(180, 30);
             this.lblEstimatePrice0.TabIndex = 0;
@@ -1777,7 +1584,7 @@
             this.label58.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label58.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label58.ForeColor = System.Drawing.Color.Black;
-            this.label58.Location = new System.Drawing.Point(314, 241);
+            this.label58.Location = new System.Drawing.Point(314, 240);
             this.label58.Name = "label58";
             this.label58.Size = new System.Drawing.Size(120, 30);
             this.label58.TabIndex = 182;
@@ -1789,7 +1596,7 @@
             this.lblEstimatePrice1.BackColor = System.Drawing.Color.White;
             this.lblEstimatePrice1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblEstimatePrice1.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lblEstimatePrice1.Location = new System.Drawing.Point(442, 241);
+            this.lblEstimatePrice1.Location = new System.Drawing.Point(442, 240);
             this.lblEstimatePrice1.Name = "lblEstimatePrice1";
             this.lblEstimatePrice1.Size = new System.Drawing.Size(180, 30);
             this.lblEstimatePrice1.TabIndex = 0;
@@ -1800,7 +1607,7 @@
             this.label32.BackColor = System.Drawing.Color.LightBlue;
             this.label32.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label32.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label32.Location = new System.Drawing.Point(1, 271);
+            this.label32.Location = new System.Drawing.Point(1, 270);
             this.label32.Name = "label32";
             this.label32.Size = new System.Drawing.Size(120, 30);
             this.label32.TabIndex = 184;
@@ -1813,7 +1620,7 @@
             this.panel6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.panel6.Controls.Add(this.rdBConsumptionTaxOff);
             this.panel6.Controls.Add(this.rdBConsumptionTaxOn);
-            this.panel6.Location = new System.Drawing.Point(128, 274);
+            this.panel6.Location = new System.Drawing.Point(128, 273);
             this.panel6.Name = "panel6";
             this.panel6.Size = new System.Drawing.Size(246, 24);
             this.panel6.TabIndex = 185;
@@ -1852,6 +1659,7 @@
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.panel7.BackColor = System.Drawing.Color.YellowGreen;
+            this.panel7.Controls.Add(this.btnFluctuation);
             this.panel7.Controls.Add(this.comboBoxEX4);
             this.panel7.Controls.Add(this.comboBoxEX3);
             this.panel7.Controls.Add(this.cmbDisplayConstrSubPerson);
@@ -1891,44 +1699,22 @@
             this.panel7.Size = new System.Drawing.Size(658, 994);
             this.panel7.TabIndex = 179;
             // 
-            // comboBoxEX4
+            // btnFluctuation
             // 
-            this.comboBoxEX4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.comboBoxEX4.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.comboBoxEX4.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.comboBoxEX4.FormattingEnabled = true;
-            this.comboBoxEX4.Location = new System.Drawing.Point(121, 93);
-            this.comboBoxEX4.Name = "comboBoxEX4";
-            this.comboBoxEX4.Size = new System.Drawing.Size(250, 27);
-            this.comboBoxEX4.TabIndex = 44;
-            this.comboBoxEX4.SelectedIndexChanged += new System.EventHandler(this.comboBoxEX1_SelectedIndexChanged);
+            this.btnFluctuation.BackColor = System.Drawing.Color.Black;
+            this.btnFluctuation.ForeColor = System.Drawing.Color.White;
+            this.btnFluctuation.Location = new System.Drawing.Point(1, 365);
+            this.btnFluctuation.Name = "btnFluctuation";
+            this.btnFluctuation.Size = new System.Drawing.Size(248, 40);
+            this.btnFluctuation.TabIndex = 183;
+            this.btnFluctuation.Text = "工事増減入力";
+            this.btnFluctuation.UseVisualStyleBackColor = false;
+            this.btnFluctuation.Click += new System.EventHandler(this.btnFluctuation_Click);
             // 
-            // comboBoxEX3
-            // 
-            this.comboBoxEX3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.comboBoxEX3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.comboBoxEX3.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.comboBoxEX3.FormattingEnabled = true;
-            this.comboBoxEX3.Location = new System.Drawing.Point(121, 63);
-            this.comboBoxEX3.Name = "comboBoxEX3";
-            this.comboBoxEX3.Size = new System.Drawing.Size(250, 27);
-            this.comboBoxEX3.TabIndex = 42;
-            this.comboBoxEX3.SelectedIndexChanged += new System.EventHandler(this.comboBoxEX1_SelectedIndexChanged);
-            // 
-            // cmbDisplayConstrSubPerson
-            // 
-            this.cmbDisplayConstrSubPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbDisplayConstrSubPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbDisplayConstrSubPerson.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.cmbDisplayConstrSubPerson.FormattingEnabled = true;
-            this.cmbDisplayConstrSubPerson.Location = new System.Drawing.Point(372, 63);
-            this.cmbDisplayConstrSubPerson.Name = "cmbDisplayConstrSubPerson";
-            this.cmbDisplayConstrSubPerson.Size = new System.Drawing.Size(250, 27);
-            this.cmbDisplayConstrSubPerson.TabIndex = 43;
-            // 
             // label46
             // 
             this.label46.BackColor = System.Drawing.Color.Black;
+            this.label46.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label46.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label46.ForeColor = System.Drawing.Color.Red;
             this.label46.Location = new System.Drawing.Point(257, 331);
@@ -1944,7 +1730,7 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.txtInput32.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.txtInput32.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtInput32.Location = new System.Drawing.Point(129, 481);
+            this.txtInput32.Location = new System.Drawing.Point(129, 585);
             this.txtInput32.MaxLength = 120;
             this.txtInput32.Multiline = true;
             this.txtInput32.Name = "txtInput32";
@@ -1957,7 +1743,7 @@
             this.label47.BackColor = System.Drawing.Color.LightGreen;
             this.label47.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label47.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label47.Location = new System.Drawing.Point(1, 481);
+            this.label47.Location = new System.Drawing.Point(1, 585);
             this.label47.Name = "label47";
             this.label47.Size = new System.Drawing.Size(120, 30);
             this.label47.TabIndex = 0;
@@ -1967,6 +1753,7 @@
             // label51
             // 
             this.label51.BackColor = System.Drawing.Color.Black;
+            this.label51.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label51.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label51.ForeColor = System.Drawing.Color.Red;
             this.label51.Location = new System.Drawing.Point(257, 301);
@@ -1982,7 +1769,7 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.txtInput31.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.txtInput31.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtInput31.Location = new System.Drawing.Point(129, 391);
+            this.txtInput31.Location = new System.Drawing.Point(129, 495);
             this.txtInput31.MaxLength = 120;
             this.txtInput31.Multiline = true;
             this.txtInput31.Name = "txtInput31";
@@ -1995,8 +1782,8 @@
             this.label41.BackColor = System.Drawing.Color.LightGreen;
             this.label41.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label41.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label41.ForeColor = System.Drawing.Color.DarkOliveGreen;
-            this.label41.Location = new System.Drawing.Point(1, 391);
+            this.label41.ForeColor = System.Drawing.Color.Black;
+            this.label41.Location = new System.Drawing.Point(1, 495);
             this.label41.Name = "label41";
             this.label41.Size = new System.Drawing.Size(120, 30);
             this.label41.TabIndex = 179;
@@ -2015,34 +1802,6 @@
             this.label50.Text = "施工開始日";
             this.label50.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // textBoxEX3
-            // 
-            this.textBoxEX3.Enabled = false;
-            this.textBoxEX3.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.textBoxEX3.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.textBoxEX3.Location = new System.Drawing.Point(129, 273);
-            this.textBoxEX3.MaxLength = 10;
-            this.textBoxEX3.Name = "textBoxEX3";
-            this.textBoxEX3.Size = new System.Drawing.Size(120, 26);
-            this.textBoxEX3.TabIndex = 50;
-            this.textBoxEX3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.textBoxEX3.TextChanged += new System.EventHandler(this.valueChange);
-            this.textBoxEX3.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // txtInput35
-            // 
-            this.txtInput35.Enabled = false;
-            this.txtInput35.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.txtInput35.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput35.Location = new System.Drawing.Point(129, 303);
-            this.txtInput35.MaxLength = 10;
-            this.txtInput35.Name = "txtInput35";
-            this.txtInput35.Size = new System.Drawing.Size(120, 26);
-            this.txtInput35.TabIndex = 51;
-            this.txtInput35.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput35.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput35.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label25
             // 
             this.label25.BackColor = System.Drawing.Color.LightGreen;
@@ -2055,23 +1814,10 @@
             this.label25.Text = "施工完了日";
             this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // txtInput04
-            // 
-            this.txtInput04.Enabled = false;
-            this.txtInput04.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.txtInput04.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput04.Location = new System.Drawing.Point(129, 333);
-            this.txtInput04.MaxLength = 10;
-            this.txtInput04.Name = "txtInput04";
-            this.txtInput04.Size = new System.Drawing.Size(120, 26);
-            this.txtInput04.TabIndex = 52;
-            this.txtInput04.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput04.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput04.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label42
             // 
             this.label42.BackColor = System.Drawing.Color.Black;
+            this.label42.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
             this.label42.ForeColor = System.Drawing.Color.Red;
             this.label42.Location = new System.Drawing.Point(161, 212);
             this.label42.Name = "label42";
@@ -2080,58 +1826,6 @@
             this.label42.Text = "※「着工」・「完成」は契約書に乗っ取って記入して下さい\r\n（当社、発給の契約書・施工計画書に記載されます）";
             this.label42.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // textBoxEX5
-            // 
-            this.textBoxEX5.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
-            this.textBoxEX5.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.textBoxEX5.Location = new System.Drawing.Point(362, 183);
-            this.textBoxEX5.MaxLength = 10;
-            this.textBoxEX5.Name = "textBoxEX5";
-            this.textBoxEX5.Size = new System.Drawing.Size(120, 26);
-            this.textBoxEX5.TabIndex = 49;
-            this.textBoxEX5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.textBoxEX5.TextChanged += new System.EventHandler(this.valueChange);
-            this.textBoxEX5.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // textBoxEX4
-            // 
-            this.textBoxEX4.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
-            this.textBoxEX4.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.textBoxEX4.Location = new System.Drawing.Point(362, 153);
-            this.textBoxEX4.MaxLength = 10;
-            this.textBoxEX4.Name = "textBoxEX4";
-            this.textBoxEX4.Size = new System.Drawing.Size(120, 26);
-            this.textBoxEX4.TabIndex = 47;
-            this.textBoxEX4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.textBoxEX4.TextChanged += new System.EventHandler(this.valueChange);
-            this.textBoxEX4.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // txtInput29
-            // 
-            this.txtInput29.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
-            this.txtInput29.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput29.Location = new System.Drawing.Point(161, 153);
-            this.txtInput29.MaxLength = 10;
-            this.txtInput29.Name = "txtInput29";
-            this.txtInput29.Size = new System.Drawing.Size(120, 26);
-            this.txtInput29.TabIndex = 46;
-            this.txtInput29.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput29.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput29.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // txtInput30
-            // 
-            this.txtInput30.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
-            this.txtInput30.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput30.Location = new System.Drawing.Point(161, 183);
-            this.txtInput30.MaxLength = 10;
-            this.txtInput30.Name = "txtInput30";
-            this.txtInput30.Size = new System.Drawing.Size(120, 26);
-            this.txtInput30.TabIndex = 48;
-            this.txtInput30.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput30.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput30.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label81
             // 
             this.label81.BackColor = System.Drawing.Color.LightGreen;
@@ -2228,49 +1922,11 @@
             this.label31.Text = "工事指導";
             this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // cmbConstructionInstructor
-            // 
-            this.cmbConstructionInstructor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbConstructionInstructor.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbConstructionInstructor.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.cmbConstructionInstructor.FormattingEnabled = true;
-            this.cmbConstructionInstructor.Location = new System.Drawing.Point(372, 93);
-            this.cmbConstructionInstructor.Name = "cmbConstructionInstructor";
-            this.cmbConstructionInstructor.Size = new System.Drawing.Size(250, 27);
-            this.cmbConstructionInstructor.TabIndex = 45;
-            this.cmbConstructionInstructor.TextChanged += new System.EventHandler(this.valueChange);
-            // 
-            // comboBoxEX2
-            // 
-            this.comboBoxEX2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.comboBoxEX2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.comboBoxEX2.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.comboBoxEX2.FormattingEnabled = true;
-            this.comboBoxEX2.Location = new System.Drawing.Point(121, 33);
-            this.comboBoxEX2.Name = "comboBoxEX2";
-            this.comboBoxEX2.Size = new System.Drawing.Size(250, 27);
-            this.comboBoxEX2.TabIndex = 40;
-            this.comboBoxEX2.SelectedIndexChanged += new System.EventHandler(this.comboBoxEX1_SelectedIndexChanged);
-            this.comboBoxEX2.TextChanged += new System.EventHandler(this.valueChange);
-            // 
-            // cmbDisplayConstructionPerson
-            // 
-            this.cmbDisplayConstructionPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbDisplayConstructionPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbDisplayConstructionPerson.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.cmbDisplayConstructionPerson.FormattingEnabled = true;
-            this.cmbDisplayConstructionPerson.Location = new System.Drawing.Point(372, 33);
-            this.cmbDisplayConstructionPerson.Name = "cmbDisplayConstructionPerson";
-            this.cmbDisplayConstructionPerson.Size = new System.Drawing.Size(250, 27);
-            this.cmbDisplayConstructionPerson.TabIndex = 41;
-            this.cmbDisplayConstructionPerson.SelectedIndexChanged += new System.EventHandler(this.cmbDisplayConstructionPerson_SelectedIndexChanged);
-            this.cmbDisplayConstructionPerson.TextChanged += new System.EventHandler(this.valueChange);
-            // 
             // label113
             // 
             this.label113.BackColor = System.Drawing.Color.LightGreen;
             this.label113.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label113.Location = new System.Drawing.Point(372, 1);
+            this.label113.Location = new System.Drawing.Point(379, 1);
             this.label113.Name = "label113";
             this.label113.Size = new System.Drawing.Size(250, 30);
             this.label113.TabIndex = 16;
@@ -2281,7 +1937,7 @@
             // 
             this.label76.BackColor = System.Drawing.Color.LightGreen;
             this.label76.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label76.Location = new System.Drawing.Point(121, 1);
+            this.label76.Location = new System.Drawing.Point(129, 1);
             this.label76.Name = "label76";
             this.label76.Size = new System.Drawing.Size(250, 30);
             this.label76.TabIndex = 16;
@@ -2329,6 +1985,9 @@
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.panel8.BackColor = System.Drawing.Color.LawnGreen;
+            this.panel8.Controls.Add(this.btnLink);
+            this.panel8.Controls.Add(this.label74);
+            this.panel8.Controls.Add(this.dgvLink);
             this.panel8.Controls.Add(this.label85);
             this.panel8.Controls.Add(this.label84);
             this.panel8.Controls.Add(this.label83);
@@ -2350,6 +2009,107 @@
             this.panel8.Size = new System.Drawing.Size(660, 994);
             this.panel8.TabIndex = 180;
             // 
+            // btnLink
+            // 
+            this.btnLink.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnLink.Location = new System.Drawing.Point(508, 374);
+            this.btnLink.Name = "btnLink";
+            this.btnLink.Size = new System.Drawing.Size(120, 30);
+            this.btnLink.TabIndex = 168;
+            this.btnLink.TabStop = false;
+            this.btnLink.Text = "増減選択";
+            this.btnLink.UseVisualStyleBackColor = true;
+            this.btnLink.Click += new System.EventHandler(this.btnLink_Click);
+            // 
+            // label74
+            // 
+            this.label74.BackColor = System.Drawing.Color.PaleGreen;
+            this.label74.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label74.Location = new System.Drawing.Point(1, 220);
+            this.label74.Name = "label74";
+            this.label74.Size = new System.Drawing.Size(120, 30);
+            this.label74.TabIndex = 167;
+            this.label74.Text = "工事金額増減";
+            this.label74.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // dgvLink
+            // 
+            this.dgvLink.AllowUserToAddRows = false;
+            this.dgvLink.AllowUserToDeleteRows = false;
+            this.dgvLink.AllowUserToResizeColumns = false;
+            this.dgvLink.AllowUserToResizeRows = false;
+            this.dgvLink.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvLink.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgvLink.ColumnHeadersHeight = 24;
+            this.dgvLink.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgvLink.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column0,
+            this.Column1,
+            this.Column5,
+            this.Column2});
+            this.dgvLink.Location = new System.Drawing.Point(128, 220);
+            this.dgvLink.Name = "dgvLink";
+            this.dgvLink.RowHeadersVisible = false;
+            this.dgvLink.RowHeadersWidth = 20;
+            this.dgvLink.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dgvLink.RowTemplate.Height = 24;
+            this.dgvLink.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.dgvLink.Size = new System.Drawing.Size(500, 146);
+            this.dgvLink.TabIndex = 166;
+            this.dgvLink.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvLink_CellDoubleClick);
+            // 
+            // Column0
+            // 
+            this.Column0.Frozen = true;
+            this.Column0.HeaderText = "工事番号";
+            this.Column0.Name = "Column0";
+            this.Column0.ReadOnly = true;
+            this.Column0.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column0.Visible = false;
+            // 
+            // Column1
+            // 
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
+            this.Column1.Frozen = true;
+            this.Column1.HeaderText = "変更日";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column1.Width = 160;
+            // 
+            // Column5
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle3;
+            this.Column5.Frozen = true;
+            this.Column5.HeaderText = "見積金額";
+            this.Column5.Name = "Column5";
+            this.Column5.ReadOnly = true;
+            this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column5.Width = 160;
+            // 
+            // Column2
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle4;
+            this.Column2.Frozen = true;
+            this.Column2.HeaderText = "受注金額";
+            this.Column2.Name = "Column2";
+            this.Column2.ReadOnly = true;
+            this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column2.Width = 160;
+            // 
             // label85
             // 
             this.label85.BackColor = System.Drawing.Color.PaleGreen;
@@ -2496,45 +2256,6 @@
             this.label45.Text = "工事予算承認日";
             this.label45.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // textBoxEX10
-            // 
-            this.textBoxEX10.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
-            this.textBoxEX10.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.textBoxEX10.Location = new System.Drawing.Point(128, 153);
-            this.textBoxEX10.MaxLength = 10;
-            this.textBoxEX10.Name = "textBoxEX10";
-            this.textBoxEX10.Size = new System.Drawing.Size(120, 26);
-            this.textBoxEX10.TabIndex = 60;
-            this.textBoxEX10.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.textBoxEX10.TextChanged += new System.EventHandler(this.valueChange);
-            this.textBoxEX10.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // textBoxEX9
-            // 
-            this.textBoxEX9.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
-            this.textBoxEX9.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.textBoxEX9.Location = new System.Drawing.Point(128, 123);
-            this.textBoxEX9.MaxLength = 10;
-            this.textBoxEX9.Name = "textBoxEX9";
-            this.textBoxEX9.Size = new System.Drawing.Size(120, 26);
-            this.textBoxEX9.TabIndex = 59;
-            this.textBoxEX9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.textBoxEX9.TextChanged += new System.EventHandler(this.valueChange);
-            this.textBoxEX9.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // textBoxEX8
-            // 
-            this.textBoxEX8.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
-            this.textBoxEX8.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.textBoxEX8.Location = new System.Drawing.Point(128, 93);
-            this.textBoxEX8.MaxLength = 10;
-            this.textBoxEX8.Name = "textBoxEX8";
-            this.textBoxEX8.Size = new System.Drawing.Size(120, 26);
-            this.textBoxEX8.TabIndex = 58;
-            this.textBoxEX8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.textBoxEX8.TextChanged += new System.EventHandler(this.valueChange);
-            this.textBoxEX8.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label59
             // 
             this.label59.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
@@ -2796,47 +2517,11 @@
             this.label86.Text = "請求日";
             this.label86.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // textBoxEX6
-            // 
-            this.textBoxEX6.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.textBoxEX6.Location = new System.Drawing.Point(129, 98);
-            this.textBoxEX6.MaxLength = 10;
-            this.textBoxEX6.Name = "textBoxEX6";
-            this.textBoxEX6.Size = new System.Drawing.Size(120, 26);
-            this.textBoxEX6.TabIndex = 66;
-            this.textBoxEX6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.textBoxEX6.TextChanged += new System.EventHandler(this.valueChange);
-            this.textBoxEX6.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // txtInput36
-            // 
-            this.txtInput36.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput36.Location = new System.Drawing.Point(129, 3);
-            this.txtInput36.MaxLength = 10;
-            this.txtInput36.Name = "txtInput36";
-            this.txtInput36.Size = new System.Drawing.Size(120, 26);
-            this.txtInput36.TabIndex = 63;
-            this.txtInput36.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput36.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput36.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
-            // txtInput37
-            // 
-            this.txtInput37.ImeMode = System.Windows.Forms.ImeMode.Disable;
-            this.txtInput37.Location = new System.Drawing.Point(129, 133);
-            this.txtInput37.MaxLength = 10;
-            this.txtInput37.Name = "txtInput37";
-            this.txtInput37.Size = new System.Drawing.Size(120, 26);
-            this.txtInput37.TabIndex = 67;
-            this.txtInput37.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.txtInput37.TextChanged += new System.EventHandler(this.valueChange);
-            this.txtInput37.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
-            // 
             // label2
             // 
             this.label2.BackColor = System.Drawing.Color.RoyalBlue;
             this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label2.Location = new System.Drawing.Point(583, 37);
+            this.label2.Location = new System.Drawing.Point(586, 37);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(115, 25);
             this.label2.TabIndex = 0;
@@ -2898,10 +2583,10 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.txtInput33.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.txtInput33.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtInput33.Location = new System.Drawing.Point(145, 67);
+            this.txtInput33.Location = new System.Drawing.Point(147, 67);
             this.txtInput33.MaxLength = 120;
             this.txtInput33.Name = "txtInput33";
-            this.txtInput33.Size = new System.Drawing.Size(1184, 26);
+            this.txtInput33.Size = new System.Drawing.Size(1182, 26);
             this.txtInput33.TabIndex = 1;
             this.txtInput33.TextChanged += new System.EventHandler(this.valueChange);
             this.txtInput33.Validated += new System.EventHandler(this.txtInput33_Validated);
@@ -3260,29 +2945,6 @@
             this.lblLastUpdate.Text = "2015年12月31日";
             this.lblLastUpdate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // cmbConstructionPeriod
-            // 
-            this.cmbConstructionPeriod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbConstructionPeriod.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbConstructionPeriod.FormattingEnabled = true;
-            this.cmbConstructionPeriod.Location = new System.Drawing.Point(463, 37);
-            this.cmbConstructionPeriod.Name = "cmbConstructionPeriod";
-            this.cmbConstructionPeriod.Size = new System.Drawing.Size(115, 24);
-            this.cmbConstructionPeriod.TabIndex = 1;
-            this.toolTip1.SetToolTip(this.cmbConstructionPeriod, "売り上げ計上を行う営業期を入力してください");
-            // 
-            // cmbConstructionYear
-            // 
-            this.cmbConstructionYear.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbConstructionYear.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbConstructionYear.FormattingEnabled = true;
-            this.cmbConstructionYear.Location = new System.Drawing.Point(706, 37);
-            this.cmbConstructionYear.Name = "cmbConstructionYear";
-            this.cmbConstructionYear.Size = new System.Drawing.Size(134, 24);
-            this.cmbConstructionYear.TabIndex = 0;
-            this.toolTip1.SetToolTip(this.cmbConstructionYear, "工事の着工開始年度を入力してください");
-            this.cmbConstructionYear.Visible = false;
-            // 
             // btnApprovalList
             // 
             this.btnApprovalList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -3324,6 +2986,499 @@
             this.btnOtherProc.UseVisualStyleBackColor = false;
             this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
             // 
+            // comboBoxEX1
+            // 
+            this.comboBoxEX1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.comboBoxEX1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.comboBoxEX1.FormattingEnabled = true;
+            this.comboBoxEX1.Location = new System.Drawing.Point(129, 724);
+            this.comboBoxEX1.Name = "comboBoxEX1";
+            this.comboBoxEX1.Size = new System.Drawing.Size(250, 27);
+            this.comboBoxEX1.TabIndex = 22;
+            this.comboBoxEX1.SelectedIndexChanged += new System.EventHandler(this.comboBoxEX1_SelectedIndexChanged);
+            this.comboBoxEX1.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // cmbDisplayPerson
+            // 
+            this.cmbDisplayPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbDisplayPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbDisplayPerson.FormattingEnabled = true;
+            this.cmbDisplayPerson.Location = new System.Drawing.Point(379, 724);
+            this.cmbDisplayPerson.Name = "cmbDisplayPerson";
+            this.cmbDisplayPerson.Size = new System.Drawing.Size(250, 27);
+            this.cmbDisplayPerson.TabIndex = 23;
+            this.cmbDisplayPerson.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // cmbConstructionType
+            // 
+            this.cmbConstructionType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbConstructionType.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbConstructionType.FormattingEnabled = true;
+            this.cmbConstructionType.Location = new System.Drawing.Point(129, 602);
+            this.cmbConstructionType.Name = "cmbConstructionType";
+            this.cmbConstructionType.Size = new System.Drawing.Size(300, 27);
+            this.cmbConstructionType.TabIndex = 21;
+            this.cmbConstructionType.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // cmbOrdersDivision
+            // 
+            this.cmbOrdersDivision.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.cmbOrdersDivision.AutoCompleteCustomSource.AddRange(new string[] {
+            "株式会社",
+            "有限会社",
+            "合名会社",
+            "合資会社",
+            "合同会社"});
+            this.cmbOrdersDivision.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbOrdersDivision.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbOrdersDivision.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.cmbOrdersDivision.FormattingEnabled = true;
+            this.cmbOrdersDivision.Location = new System.Drawing.Point(129, 152);
+            this.cmbOrdersDivision.Name = "cmbOrdersDivision";
+            this.cmbOrdersDivision.Size = new System.Drawing.Size(528, 27);
+            this.cmbOrdersDivision.TabIndex = 7;
+            this.cmbOrdersDivision.SelectedIndexChanged += new System.EventHandler(this.cmbOrdersDivision_SelectedIndexChanged);
+            this.cmbOrdersDivision.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // cmbDisplayOrderers
+            // 
+            this.cmbDisplayOrderers.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbDisplayOrderers.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbDisplayOrderers.FormattingEnabled = true;
+            this.cmbDisplayOrderers.Location = new System.Drawing.Point(129, 183);
+            this.cmbDisplayOrderers.Name = "cmbDisplayOrderers";
+            this.cmbDisplayOrderers.Size = new System.Drawing.Size(372, 27);
+            this.cmbDisplayOrderers.TabIndex = 8;
+            this.cmbDisplayOrderers.SelectedIndexChanged += new System.EventHandler(this.cmbDisplayOrderers_SelectedIndexChanged);
+            this.cmbDisplayOrderers.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // txtInput28
+            // 
+            this.txtInput28.BackColor = System.Drawing.Color.White;
+            this.txtInput28.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.txtInput28.ForeColor = System.Drawing.Color.Black;
+            this.txtInput28.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput28.Location = new System.Drawing.Point(128, 104);
+            this.txtInput28.MaxLength = 10;
+            this.txtInput28.Name = "txtInput28";
+            this.txtInput28.Size = new System.Drawing.Size(274, 34);
+            this.txtInput28.TabIndex = 28;
+            this.txtInput28.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput28.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput28.Validated += new System.EventHandler(this.txtInput25_Validated);
+            // 
+            // txtInput25
+            // 
+            this.txtInput25.BackColor = System.Drawing.Color.White;
+            this.txtInput25.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.txtInput25.ForeColor = System.Drawing.Color.Black;
+            this.txtInput25.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput25.Location = new System.Drawing.Point(128, 64);
+            this.txtInput25.MaxLength = 10;
+            this.txtInput25.Name = "txtInput25";
+            this.txtInput25.Size = new System.Drawing.Size(274, 34);
+            this.txtInput25.TabIndex = 27;
+            this.txtInput25.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput25.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput25.Validated += new System.EventHandler(this.txtInput25_Validated);
+            // 
+            // cmbTransferConstruction
+            // 
+            this.cmbTransferConstruction.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbTransferConstruction.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbTransferConstruction.FormattingEnabled = true;
+            this.cmbTransferConstruction.Location = new System.Drawing.Point(128, 843);
+            this.cmbTransferConstruction.Name = "cmbTransferConstruction";
+            this.cmbTransferConstruction.Size = new System.Drawing.Size(300, 27);
+            this.cmbTransferConstruction.TabIndex = 39;
+            this.cmbTransferConstruction.SelectedIndexChanged += new System.EventHandler(this.cmbTransferConstruction_SelectedIndexChanged);
+            this.cmbTransferConstruction.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // txtInput27
+            // 
+            this.txtInput27.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput27.Location = new System.Drawing.Point(128, 33);
+            this.txtInput27.MaxLength = 10;
+            this.txtInput27.Name = "txtInput27";
+            this.txtInput27.Size = new System.Drawing.Size(120, 26);
+            this.txtInput27.TabIndex = 26;
+            this.txtInput27.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput27.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // txtInput02
+            // 
+            this.txtInput02.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput02.Location = new System.Drawing.Point(128, 182);
+            this.txtInput02.MaxLength = 10;
+            this.txtInput02.Name = "txtInput02";
+            this.txtInput02.Size = new System.Drawing.Size(120, 26);
+            this.txtInput02.TabIndex = 29;
+            this.txtInput02.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput02.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput02.Validated += new System.EventHandler(this.txtInput02_TextChanged);
+            // 
+            // txtInput06
+            // 
+            this.txtInput06.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput06.Location = new System.Drawing.Point(128, 212);
+            this.txtInput06.MaxLength = 10;
+            this.txtInput06.Name = "txtInput06";
+            this.txtInput06.Size = new System.Drawing.Size(120, 26);
+            this.txtInput06.TabIndex = 30;
+            this.txtInput06.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput06.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput06.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput12
+            // 
+            this.txtInput12.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput12.Location = new System.Drawing.Point(128, 302);
+            this.txtInput12.MaxLength = 10;
+            this.txtInput12.Name = "txtInput12";
+            this.txtInput12.Size = new System.Drawing.Size(120, 26);
+            this.txtInput12.TabIndex = 31;
+            this.txtInput12.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput12.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput12.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput13
+            // 
+            this.txtInput13.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput13.Location = new System.Drawing.Point(128, 332);
+            this.txtInput13.MaxLength = 10;
+            this.txtInput13.Name = "txtInput13";
+            this.txtInput13.Size = new System.Drawing.Size(120, 26);
+            this.txtInput13.TabIndex = 32;
+            this.txtInput13.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput13.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput13.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // textBoxEX2
+            // 
+            this.textBoxEX2.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBoxEX2.Location = new System.Drawing.Point(128, 562);
+            this.textBoxEX2.MaxLength = 10;
+            this.textBoxEX2.Name = "textBoxEX2";
+            this.textBoxEX2.Size = new System.Drawing.Size(120, 26);
+            this.textBoxEX2.TabIndex = 35;
+            this.textBoxEX2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.textBoxEX2.TextChanged += new System.EventHandler(this.valueChange);
+            this.textBoxEX2.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // textBoxEX1
+            // 
+            this.textBoxEX1.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBoxEX1.Location = new System.Drawing.Point(128, 502);
+            this.textBoxEX1.MaxLength = 10;
+            this.textBoxEX1.Name = "textBoxEX1";
+            this.textBoxEX1.Size = new System.Drawing.Size(120, 26);
+            this.textBoxEX1.TabIndex = 33;
+            this.textBoxEX1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.textBoxEX1.TextChanged += new System.EventHandler(this.valueChange);
+            this.textBoxEX1.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput03
+            // 
+            this.txtInput03.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput03.Location = new System.Drawing.Point(128, 532);
+            this.txtInput03.MaxLength = 10;
+            this.txtInput03.Name = "txtInput03";
+            this.txtInput03.Size = new System.Drawing.Size(120, 26);
+            this.txtInput03.TabIndex = 34;
+            this.txtInput03.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput03.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput03.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput38
+            // 
+            this.txtInput38.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput38.Location = new System.Drawing.Point(128, 632);
+            this.txtInput38.MaxLength = 10;
+            this.txtInput38.Name = "txtInput38";
+            this.txtInput38.Size = new System.Drawing.Size(120, 26);
+            this.txtInput38.TabIndex = 36;
+            this.txtInput38.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput38.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput38.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput34
+            // 
+            this.txtInput34.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput34.Location = new System.Drawing.Point(128, 662);
+            this.txtInput34.MaxLength = 10;
+            this.txtInput34.Name = "txtInput34";
+            this.txtInput34.Size = new System.Drawing.Size(120, 26);
+            this.txtInput34.TabIndex = 37;
+            this.txtInput34.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput34.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput34.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // comboBoxEX4
+            // 
+            this.comboBoxEX4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.comboBoxEX4.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.comboBoxEX4.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.comboBoxEX4.FormattingEnabled = true;
+            this.comboBoxEX4.Location = new System.Drawing.Point(129, 93);
+            this.comboBoxEX4.Name = "comboBoxEX4";
+            this.comboBoxEX4.Size = new System.Drawing.Size(250, 27);
+            this.comboBoxEX4.TabIndex = 44;
+            this.comboBoxEX4.SelectedIndexChanged += new System.EventHandler(this.comboBoxEX1_SelectedIndexChanged);
+            // 
+            // comboBoxEX3
+            // 
+            this.comboBoxEX3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.comboBoxEX3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.comboBoxEX3.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.comboBoxEX3.FormattingEnabled = true;
+            this.comboBoxEX3.Location = new System.Drawing.Point(129, 63);
+            this.comboBoxEX3.Name = "comboBoxEX3";
+            this.comboBoxEX3.Size = new System.Drawing.Size(250, 27);
+            this.comboBoxEX3.TabIndex = 42;
+            this.comboBoxEX3.SelectedIndexChanged += new System.EventHandler(this.comboBoxEX1_SelectedIndexChanged);
+            // 
+            // cmbDisplayConstrSubPerson
+            // 
+            this.cmbDisplayConstrSubPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbDisplayConstrSubPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbDisplayConstrSubPerson.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.cmbDisplayConstrSubPerson.FormattingEnabled = true;
+            this.cmbDisplayConstrSubPerson.Location = new System.Drawing.Point(379, 63);
+            this.cmbDisplayConstrSubPerson.Name = "cmbDisplayConstrSubPerson";
+            this.cmbDisplayConstrSubPerson.Size = new System.Drawing.Size(250, 27);
+            this.cmbDisplayConstrSubPerson.TabIndex = 43;
+            // 
+            // textBoxEX3
+            // 
+            this.textBoxEX3.Enabled = false;
+            this.textBoxEX3.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.textBoxEX3.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBoxEX3.Location = new System.Drawing.Point(129, 273);
+            this.textBoxEX3.MaxLength = 10;
+            this.textBoxEX3.Name = "textBoxEX3";
+            this.textBoxEX3.Size = new System.Drawing.Size(120, 26);
+            this.textBoxEX3.TabIndex = 50;
+            this.textBoxEX3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.textBoxEX3.TextChanged += new System.EventHandler(this.valueChange);
+            this.textBoxEX3.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput35
+            // 
+            this.txtInput35.Enabled = false;
+            this.txtInput35.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.txtInput35.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput35.Location = new System.Drawing.Point(129, 303);
+            this.txtInput35.MaxLength = 10;
+            this.txtInput35.Name = "txtInput35";
+            this.txtInput35.Size = new System.Drawing.Size(120, 26);
+            this.txtInput35.TabIndex = 51;
+            this.txtInput35.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput35.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput35.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput04
+            // 
+            this.txtInput04.Enabled = false;
+            this.txtInput04.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.txtInput04.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput04.Location = new System.Drawing.Point(129, 333);
+            this.txtInput04.MaxLength = 10;
+            this.txtInput04.Name = "txtInput04";
+            this.txtInput04.Size = new System.Drawing.Size(120, 26);
+            this.txtInput04.TabIndex = 52;
+            this.txtInput04.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput04.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput04.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // textBoxEX5
+            // 
+            this.textBoxEX5.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
+            this.textBoxEX5.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBoxEX5.Location = new System.Drawing.Point(362, 183);
+            this.textBoxEX5.MaxLength = 10;
+            this.textBoxEX5.Name = "textBoxEX5";
+            this.textBoxEX5.Size = new System.Drawing.Size(120, 26);
+            this.textBoxEX5.TabIndex = 49;
+            this.textBoxEX5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.textBoxEX5.TextChanged += new System.EventHandler(this.valueChange);
+            this.textBoxEX5.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // textBoxEX4
+            // 
+            this.textBoxEX4.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
+            this.textBoxEX4.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBoxEX4.Location = new System.Drawing.Point(362, 153);
+            this.textBoxEX4.MaxLength = 10;
+            this.textBoxEX4.Name = "textBoxEX4";
+            this.textBoxEX4.Size = new System.Drawing.Size(120, 26);
+            this.textBoxEX4.TabIndex = 47;
+            this.textBoxEX4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.textBoxEX4.TextChanged += new System.EventHandler(this.valueChange);
+            this.textBoxEX4.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput29
+            // 
+            this.txtInput29.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
+            this.txtInput29.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput29.Location = new System.Drawing.Point(161, 153);
+            this.txtInput29.MaxLength = 10;
+            this.txtInput29.Name = "txtInput29";
+            this.txtInput29.Size = new System.Drawing.Size(120, 26);
+            this.txtInput29.TabIndex = 46;
+            this.txtInput29.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput29.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput29.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput30
+            // 
+            this.txtInput30.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
+            this.txtInput30.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput30.Location = new System.Drawing.Point(161, 183);
+            this.txtInput30.MaxLength = 10;
+            this.txtInput30.Name = "txtInput30";
+            this.txtInput30.Size = new System.Drawing.Size(120, 26);
+            this.txtInput30.TabIndex = 48;
+            this.txtInput30.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput30.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput30.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // cmbConstructionInstructor
+            // 
+            this.cmbConstructionInstructor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbConstructionInstructor.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbConstructionInstructor.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.cmbConstructionInstructor.FormattingEnabled = true;
+            this.cmbConstructionInstructor.Location = new System.Drawing.Point(379, 93);
+            this.cmbConstructionInstructor.Name = "cmbConstructionInstructor";
+            this.cmbConstructionInstructor.Size = new System.Drawing.Size(250, 27);
+            this.cmbConstructionInstructor.TabIndex = 45;
+            this.cmbConstructionInstructor.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // comboBoxEX2
+            // 
+            this.comboBoxEX2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.comboBoxEX2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.comboBoxEX2.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.comboBoxEX2.FormattingEnabled = true;
+            this.comboBoxEX2.Location = new System.Drawing.Point(129, 33);
+            this.comboBoxEX2.Name = "comboBoxEX2";
+            this.comboBoxEX2.Size = new System.Drawing.Size(250, 27);
+            this.comboBoxEX2.TabIndex = 40;
+            this.comboBoxEX2.SelectedIndexChanged += new System.EventHandler(this.comboBoxEX1_SelectedIndexChanged);
+            this.comboBoxEX2.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // cmbDisplayConstructionPerson
+            // 
+            this.cmbDisplayConstructionPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbDisplayConstructionPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbDisplayConstructionPerson.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.cmbDisplayConstructionPerson.FormattingEnabled = true;
+            this.cmbDisplayConstructionPerson.Location = new System.Drawing.Point(379, 33);
+            this.cmbDisplayConstructionPerson.Name = "cmbDisplayConstructionPerson";
+            this.cmbDisplayConstructionPerson.Size = new System.Drawing.Size(250, 27);
+            this.cmbDisplayConstructionPerson.TabIndex = 41;
+            this.cmbDisplayConstructionPerson.SelectedIndexChanged += new System.EventHandler(this.cmbDisplayConstructionPerson_SelectedIndexChanged);
+            this.cmbDisplayConstructionPerson.TextChanged += new System.EventHandler(this.valueChange);
+            // 
+            // textBoxEX10
+            // 
+            this.textBoxEX10.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
+            this.textBoxEX10.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBoxEX10.Location = new System.Drawing.Point(128, 153);
+            this.textBoxEX10.MaxLength = 10;
+            this.textBoxEX10.Name = "textBoxEX10";
+            this.textBoxEX10.Size = new System.Drawing.Size(120, 26);
+            this.textBoxEX10.TabIndex = 60;
+            this.textBoxEX10.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.textBoxEX10.TextChanged += new System.EventHandler(this.valueChange);
+            this.textBoxEX10.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // textBoxEX9
+            // 
+            this.textBoxEX9.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
+            this.textBoxEX9.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBoxEX9.Location = new System.Drawing.Point(128, 123);
+            this.textBoxEX9.MaxLength = 10;
+            this.textBoxEX9.Name = "textBoxEX9";
+            this.textBoxEX9.Size = new System.Drawing.Size(120, 26);
+            this.textBoxEX9.TabIndex = 59;
+            this.textBoxEX9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.textBoxEX9.TextChanged += new System.EventHandler(this.valueChange);
+            this.textBoxEX9.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // textBoxEX8
+            // 
+            this.textBoxEX8.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold);
+            this.textBoxEX8.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBoxEX8.Location = new System.Drawing.Point(128, 93);
+            this.textBoxEX8.MaxLength = 10;
+            this.textBoxEX8.Name = "textBoxEX8";
+            this.textBoxEX8.Size = new System.Drawing.Size(120, 26);
+            this.textBoxEX8.TabIndex = 58;
+            this.textBoxEX8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.textBoxEX8.TextChanged += new System.EventHandler(this.valueChange);
+            this.textBoxEX8.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // textBoxEX6
+            // 
+            this.textBoxEX6.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBoxEX6.Location = new System.Drawing.Point(129, 98);
+            this.textBoxEX6.MaxLength = 10;
+            this.textBoxEX6.Name = "textBoxEX6";
+            this.textBoxEX6.Size = new System.Drawing.Size(120, 26);
+            this.textBoxEX6.TabIndex = 66;
+            this.textBoxEX6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.textBoxEX6.TextChanged += new System.EventHandler(this.valueChange);
+            this.textBoxEX6.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput36
+            // 
+            this.txtInput36.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput36.Location = new System.Drawing.Point(129, 3);
+            this.txtInput36.MaxLength = 10;
+            this.txtInput36.Name = "txtInput36";
+            this.txtInput36.Size = new System.Drawing.Size(120, 26);
+            this.txtInput36.TabIndex = 63;
+            this.txtInput36.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput36.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput36.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // txtInput37
+            // 
+            this.txtInput37.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.txtInput37.Location = new System.Drawing.Point(129, 133);
+            this.txtInput37.MaxLength = 10;
+            this.txtInput37.Name = "txtInput37";
+            this.txtInput37.Size = new System.Drawing.Size(120, 26);
+            this.txtInput37.TabIndex = 67;
+            this.txtInput37.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.txtInput37.TextChanged += new System.EventHandler(this.valueChange);
+            this.txtInput37.Validated += new System.EventHandler(this.txtInputDate_TextChanged);
+            // 
+            // cmbConstructionPeriod
+            // 
+            this.cmbConstructionPeriod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbConstructionPeriod.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbConstructionPeriod.FormattingEnabled = true;
+            this.cmbConstructionPeriod.Location = new System.Drawing.Point(463, 37);
+            this.cmbConstructionPeriod.Name = "cmbConstructionPeriod";
+            this.cmbConstructionPeriod.Size = new System.Drawing.Size(115, 24);
+            this.cmbConstructionPeriod.TabIndex = 1;
+            this.toolTip1.SetToolTip(this.cmbConstructionPeriod, "売り上げ計上を行う営業期を入力してください");
+            // 
+            // cmbConstructionYear
+            // 
+            this.cmbConstructionYear.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbConstructionYear.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbConstructionYear.FormattingEnabled = true;
+            this.cmbConstructionYear.Location = new System.Drawing.Point(709, 37);
+            this.cmbConstructionYear.Name = "cmbConstructionYear";
+            this.cmbConstructionYear.Size = new System.Drawing.Size(134, 24);
+            this.cmbConstructionYear.TabIndex = 0;
+            this.toolTip1.SetToolTip(this.cmbConstructionYear, "工事の着工開始年度を入力してください");
+            this.cmbConstructionYear.Visible = false;
+            // 
             // FrmConstructionBaseInfo
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -3378,6 +3533,7 @@
             this.panel7.PerformLayout();
             this.panel8.ResumeLayout(false);
             this.panel8.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvLink)).EndInit();
             this.panel9.ResumeLayout(false);
             this.panel9.PerformLayout();
             this.panel5.ResumeLayout(false);
@@ -3472,7 +3628,6 @@
         private System.Windows.Forms.Label label64;
         private System.Windows.Forms.Label label44;
         private System.Windows.Forms.Label label14;
-        private System.Windows.Forms.Label label74;
         private System.Windows.Forms.Label label5;
         private CustomControls.ComboBoxEX cmbOrdersDivision;
         private System.Windows.Forms.Button btnOrderer;
@@ -3616,5 +3771,15 @@
         private CustomControls.ComboBoxEX comboBoxEX4;
         private CustomControls.ComboBoxEX comboBoxEX3;
         private System.Windows.Forms.Label label113;
+        private System.Windows.Forms.Label label114;
+        private System.Windows.Forms.Label label115;
+        private System.Windows.Forms.Button btnFluctuation;
+        private System.Windows.Forms.Label label74;
+        private System.Windows.Forms.DataGridView dgvLink;
+        private System.Windows.Forms.Button btnLink;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column0;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.resx
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.resx	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.resx	(revision 6)
@@ -117,10 +117,22 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <metadata name="Column0.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
+    <value>17, 9</value>
   </metadata>
   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>47</value>
+    <value>35</value>
   </metadata>
 </root>
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 6)
@@ -71,8 +71,7 @@
             }
             finally
             {
-                etDB.close();
-                etDB = null;
+                etDB.close(); etDB = null;
             }
         }
         #endregion
@@ -957,6 +956,12 @@
                 else if (worklist[0].BillingSplitFlg == (int)CommonDefine.BaseInfoBillingSplitFlg.SplitBilling)
                     rdbBillingSplit.Checked = true;
 
+                // �H���������z�\��
+                DispLinkDataGrid();
+
+                // �H�����z�����{�^���\������
+                DispLinkButton(worklist[0]);
+
                 m_bChengeAns = false;
 
                 return true;
@@ -973,6 +978,105 @@
         }
         #endregion
 
+        #region �H�����z�����{�^���\������
+        /// <summary>
+        /// �H�����z�����{�^���\������
+        /// </summary>
+        /// <param name="BaseRec"></param>
+        private void DispLinkButton(ConstructionBaseInfo BaseRec)
+        {
+            IOEstimateData EstimateDB = new IOEstimateData();
+            try
+            {
+                bool bDispFlg = true;
+                
+                // �q�f�[�^�̓{�^����\�����Ȃ�
+                if (BaseRec.TyingFlg == (int)CommonDefine.BaseInfoTyingFlg.Tying) bDispFlg = false;
+
+                // ���Ϗ��f�[�^�������ꍇ�͕\�����Ȃ�
+                string strSQL = EstimateDB.CreatePrimarykeyString(m_ConstructionCode);
+                EstimateData EstimateRec = new EstimateData();
+                if (!EstimateDB.SelectAction(strSQL, ref EstimateRec)) bDispFlg = false;
+
+                // �{�^���\������
+                btnFluctuation.Visible = bDispFlg;
+
+                // �T�u�t�H�[���N�����͎q�f�[�^�ւ͍s���Ȃ�
+                if (m_SubForm)
+                {
+                    btnFluctuation.Visible = false;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                EstimateDB.close(); EstimateDB = null;
+            }
+        }
+        #endregion
+
+        #region �H���������z�O���b�h�\��
+        /// <summary>
+        /// �H���������z�O���b�h�\��
+        /// </summary>
+        private void DispLinkDataGrid()
+        {
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            DataGridView dgv = dgvLink;
+            try
+            {
+                int iCode = m_ConstructionCode / 100;
+
+                //string strSQL = "SELECT A.CONSTRUCTIONCODE, A.RequestedDate, C.PRICEVALUE, A.ORDERSDECISIONPRICE";
+                //strSQL += " FROM CONSTRUCTIONBASEINFO A, ESTIMATEDATA C";
+                //strSQL += string.Format(" WHERE A.CONSTRUCTIONSTATUSFLG != {0}", CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�� �� ��")).Key);
+                //strSQL += string.Format(" AND TRUNC(A.CONSTRUCTIONCODE / 100) = {0}", iCode);
+                //strSQL += " AND (A.CONSTRUCTIONCODE = C.CONSTRUCTIONCODE(+) AND C.FIXEDITEMCODE(+) = 'C')";
+                //strSQL += " ORDER BY A.CONSTRUCTIONCODE";
+
+                string strSQL = "SELECT A.CONSTRUCTIONCODE, A.RequestedDate, C.PRICEVALUE, A.ORDERSDECISIONPRICE";
+                strSQL += " FROM CONSTRUCTIONBASEINFO A";
+                strSQL += " LEFT OUTER JOIN ESTIMATEDATA C ON (A.CONSTRUCTIONCODE = C.CONSTRUCTIONCODE AND C.FIXEDITEMCODE = 'C')";
+                strSQL += string.Format(" WHERE A.CONSTRUCTIONSTATUSFLG != {0}", CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�� �� ��")).Key);
+                strSQL += string.Format(" AND TRUNC(A.CONSTRUCTIONCODE / 100) = {0}", iCode);
+                strSQL += " ORDER BY A.CONSTRUCTIONCODE";
+
+                ArrayList ArList = new ArrayList();
+                if (!BaseDB.ExecuteReader(strSQL, ref ArList)) return;
+
+                dgv.Rows.Clear();
+                string strDate = string.Empty;
+                foreach (object[] OneRec in ArList)
+                {
+                    if (strDate.Length == 0)
+                    {
+                        strDate = "���̍H��";
+                    }
+                    else
+                    {
+                        strDate = CommonMotions.cnvDate(OneRec[1]).ToShortDateString();
+                    }
+                    dgv.Rows.Add(CommonMotions.cnvInt(OneRec[0]),
+                                    strDate,
+                                    CommonMotions.cnvInt(OneRec[2]).ToString("#,0"),
+                                    CommonMotions.cnvInt(OneRec[3]).ToString("#,0"));
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                BaseDB.close(); BaseDB = null;
+                if (dgv.RowCount < 5) dgv.Rows.Add(5 - dgv.RowCount);
+            }
+        }
+        #endregion
+
         #region ���׃f�[�^�\������
         /// <summary>
         /// �f�[�^�\������
@@ -1012,8 +1116,7 @@
             }
             finally
             {
-                cbiDB.close();
-                cbiDB = null;
+                cbiDB.close(); cbiDB = null;
             }
         }
         #endregion
@@ -1425,8 +1528,7 @@
             }
             finally
             {
-                dvDB.close();
-                dvDB = null;
+                dvDB.close(); dvDB = null;
             }
         }
         #endregion
@@ -1600,8 +1702,7 @@
             }
             finally
             {
-                TypeDB.close();
-                TypeDB = null;
+                TypeDB.close(); TypeDB = null;
             }
         }
         #endregion
@@ -1710,6 +1811,58 @@
                 return false;
             }
         }
+        /// <summary>
+        /// �H�����������N�f�[�^�폜
+        /// </summary>
+        /// <param name="LinkDB"></param>
+        /// <returns></returns>
+        private bool ConstructionLinkDelete(IOConstructionBaseInfo BaseDB, IOConstructionLink LinkDB)
+        {
+            try
+            {
+                int ConstrCode = CommonMotions.cnvIntFromStringCode(m_DspCtrl[(int)DspCnt.ConstructionCode].Text, "-");
+
+                // �H����{����ǂ�
+                string strWhere = BaseDB.CreatePrimarykeyString(ConstrCode);
+                ConstructionBaseInfo BaseRec = new ConstructionBaseInfo();
+                if (!BaseDB.SelectAction(strWhere, ref BaseRec, false))
+                {
+                    MessageBox.Show("�H�����������N�f�[�^�F�H�����m�F�Ɏ��s���܂����B", "�m�F�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return false;
+                }
+
+                switch (BaseRec.TyingFlg)
+                {
+                    case (int)CommonDefine.BaseInfoTyingFlg.Pearent:
+                        // �R�Â��e���R�[�h
+                        strWhere = string.Format(" Where ConstructionCode = {0}", ConstrCode);
+                        break;
+                    case (int)CommonDefine.BaseInfoTyingFlg.Tying:
+                        // �R�Â��q���R�[�h
+                        strWhere = string.Format(" Where FluctuationCode = {0}", ConstrCode);
+                        break;
+                    case (int)CommonDefine.BaseInfoTyingFlg.Standard:
+                        // ���ʂ̃��R�[�h
+                        return true;
+                    default:
+                        break;
+                }
+                // �f�[�^������ꍇ
+                // �f�[�^�X�V
+                if (!LinkDB.DeleteAction(strWhere, false))
+                {
+                    MessageBox.Show("�H�����������N�f�[�^�F�폜�Ɏ��s���܂����B", "�폜�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return false;
+                }
+
+                return true;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
         #endregion
 
         #region �H����{���o�^
@@ -1716,7 +1869,11 @@
         /// <summary>
         /// �H����{���o�^
         /// </summary>
-        private bool ConstructionBaseInfoDataEntry(IOConstructionBaseInfo cbiDB, IOConstructionProgressDate cpdDB)
+        /// <param name="cbiDB"></param>
+        /// <param name="cpdDB"></param>
+        /// <returns></returns>
+        private bool ConstructionBaseInfoDataEntry(IOConstructionBaseInfo cbiDB,
+                                                    IOConstructionProgressDate cpdDB)
         {
             try
             {
@@ -1729,6 +1886,18 @@
                 // �H���R�[�h
                 work.ConstructionCode = CommonMotions.cnvIntFromStringCode(m_DspCtrl[(int)DspCnt.ConstructionCode].Text, "-");
 
+                // �H����{���̌���
+                string strWhere = string.Format(" Where ConstructionCode = {0}", work.ConstructionCode);
+
+                if (!cbiDB.SelectAction(strWhere, ref workList, false))
+                {
+                    MessageBox.Show("�H����{���F�o�^�m�F�Ɏ��s���܂����B", "�o�^�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return false;
+                }
+
+                // �R�t�f�[�^�t���O
+                if (workList.Count != 0) work.TyingFlg = workList[0].TyingFlg;
+
                 // �H���N�x
                 if (m_DspCtrl[(int)DspCnt.ConstructionYear].Text.Length != 0)
                     work.ConstructionYear = CommonMotions.cnvInt(m_DspCtrl[(int)DspCnt.ConstructionYear].Text);
@@ -1875,14 +2044,6 @@
                 if (m_DspCtrl[(int)DspCnt.BillingSendDate].Text.Length != 0)
                     work.BillingSendDate = CommonMotions.cnvUndecidedStringToDate(m_DspCtrl[(int)DspCnt.BillingSendDate].Text);
 
-                // ����������쐬
-                string strWhere = string.Format(" Where ConstructionCode = {0}", work.ConstructionCode);
-
-                if (!cbiDB.SelectAction(strWhere, ref workList, false))
-                {
-                    MessageBox.Show("�H����{���F�o�^�m�F�Ɏ��s���܂����B", "�o�^�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                    return false;
-                }
                 // �X�V�O��Ԃ̎擾
                 int BeforeStatus = 0;
 
@@ -2085,7 +2246,7 @@
                     m_DspCtrl[(int)DspCnt.ConstructionCode].Text = cbiDB.CreateNewCounstructionCode(PeriodValue).ToString();
                 }
 
-                //// �ꊇ�����Ȃ̂Őڑ����s��
+                // �ꊇ�����Ȃ̂Őڑ����s��
                 cbiDB.connect(); cbiDB.beginTran();
                 cbidDB.connect(); cbidDB.beginTran();
                 cpdDB.connect(); cpdDB.beginTran();
@@ -2110,6 +2271,12 @@
                 cbidDB.commit();
                 cpdDB.commit();
 
+                // �H���\�Z���f�[�^�X�V
+                BudgetDataChange();
+
+                // �H���ڍב䒠�f�[�^�X�V
+                LedgerDataChange();
+
                 // �o�^�����͕ω��t���O�N���A
                 m_bChengeAns = false;
 
@@ -2139,6 +2306,7 @@
             IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
             IOConstructionBaseInfoDetail cbidDB = new IOConstructionBaseInfoDetail();
             IOConstructionProgressDate cpdDB = new IOConstructionProgressDate();
+            IOConstructionLink LinkDB = new IOConstructionLink();
             try
             {
                 if (MessageBox.Show("�\�����̃f�[�^���폜���܂��B", "�폜�m�F"
@@ -2147,9 +2315,6 @@
                 if (MessageBox.Show("�u�͂�(Y)�v��I������ƕ\�����̍H�����͍폜����܂��I�I\n�{���ɂ�낵���ł����H", "�폜�m�F"
                         , MessageBoxButtons.YesNo, MessageBoxIcon.Information) != DialogResult.Yes) return false;
 
-                if (MessageBox.Show("�c�O�ł����I�I\n�В��A�������͐ꖱ���������܂��� (^.^)V �΁`��", "�폜�m�F"
-                        , MessageBoxButtons.YesNo, MessageBoxIcon.Information) != DialogResult.Yes) return false;
-
                 bool MacthFlg = false;
                 // �V�X�e�������ɂ���ăf�[�^�A�N�Z�X�ɐ���������
                 if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement)
@@ -2167,21 +2332,34 @@
                     // �����@���Ǘ��ҁi�@�\�����j
                     MacthFlg = true;
                 }
-                if (!MacthFlg) return MacthFlg;
+                if (!MacthFlg)
+                {
+                    MessageBox.Show("�c�O�ł����I�I\n��A�������͎В����������܂��� �΁`�� (^.^)V", "�폜�m�F", MessageBoxButtons.OK, MessageBoxIcon.Hand);
+                    return MacthFlg;
+                }
 
                 //// �ꊇ�����Ȃ̂Őڑ����s��
                 cbiDB.connect(); cbiDB.beginTran();
                 cbidDB.connect(); cbidDB.beginTran();
                 cpdDB.connect(); cpdDB.beginTran();
+                LinkDB.connect(); LinkDB.beginTran();
 
                 // �f�[�^�폜
+                if (!ConstructionLinkDelete(cbiDB, LinkDB))
+                {
+                    LinkDB.rollback();
+                    return false;
+                }
+
                 if (!ConstructionBaseInoDataDelete(cbiDB))
                 {
+                    LinkDB.rollback();
                     cbiDB.rollback();
                     return false;
                 }
                 if (!ConstructionBaseInfoDetailDataDelete(cbidDB))
                 {
+                    LinkDB.rollback();
                     cbiDB.rollback();
                     cbidDB.rollback();
                     return false;
@@ -2188,6 +2366,7 @@
                 }
                 if (!ConstructionProgressDateDelete(cpdDB))
                 {
+                    LinkDB.rollback();
                     cbiDB.rollback();
                     cbidDB.rollback();
                     cpdDB.rollback();
@@ -2198,7 +2377,9 @@
                 cbiDB.commit();
                 cbidDB.commit();
                 cpdDB.commit();
+                LinkDB.commit();
 
+
                 m_bChengeAns = false;
 
                 return true;
@@ -2213,6 +2394,7 @@
                 cbiDB.close(); cbiDB = null;
                 cbidDB.close(); cbidDB = null;
                 cpdDB.close(); cpdDB = null;
+                LinkDB.close(); LinkDB = null;
             }
         }
         #endregion
@@ -2249,19 +2431,19 @@
                 int transferCode = CommonMotions.cnvInt(cmbTransferConstruction.SelectedValue.ToString());
                 KeyValuePair<int, string> wkselect = (KeyValuePair<int, string>)cmbTransferConstruction.SelectedItem;
 
-                string titileofhonor = "";
+                string titleofhonor = "";
                 if (transferCode > 99999)
-                    titileofhonor = "�a";
+                    titleofhonor = "�a";
 
                 data.FromCode = CommonMotions.LoginUserData.PersonCode;
                 data.FromName = CommonMotions.LoginUserData.PersonName;
-                data.MessageTitile = "�H���Č����p�̌�";
+                data.MessageTitle = "�H���Č����p�̌�";
 
                 data.MessageContent = string.Format("�H���ԍ��F{0}\r\n�H�����́F{1}��\r\n{2}{3}�ֈ��p�܂��B\r\n�Ȃ��H�����e�̈��p���܂��̂ł̏������ƒS���҂͉c�ƒS���Ǝ��}�ł����킹�ĉ������i����3���ȓ��j\r\n��낵�����肢���܂��B",
                                                         m_DspCtrl[(int)DspCnt.ConstructionCode].Text,
                                                         m_DspCtrl[(int)DspCnt.ConstructionName].Text,
                                                         wkselect.Value,
-                                                        titileofhonor);
+                                                        titleofhonor);
 
                 // �����N���
                 data.LinkType = 1;
@@ -2361,7 +2543,7 @@
                 data.BranchNumber = 0;
                 string strWhere = mbdDB.CreatePrimarykeyString(data.RecordNumber, data.BranchNumber);
 
-                string titileofhonor = "�a";
+                string titleofhonor = "�a";
                 // �H���S���҃Z�b�g
                 int transferCode = CommonMotions.cnvInt(cmbDisplayConstructionPerson.SelectedValue.ToString());
                 KeyValuePair<int, string> wkselect = (KeyValuePair<int, string>)cmbDisplayConstructionPerson.SelectedItem;
@@ -2372,7 +2554,7 @@
                 KeyValuePair<int, string> wkInst = (KeyValuePair<int, string>)cmbConstructionInstructor.SelectedItem;
                 if (InstractorCode > 0)
                 {
-                    InstractorName = "\r\n" + wkInst.Value + titileofhonor + "���H���w������";
+                    InstractorName = "\r\n" + wkInst.Value + titleofhonor + "���H���w������";
                 }
 
                 // ���M�҃Z�b�g
@@ -2380,12 +2562,12 @@
                 data.FromName = CommonMotions.LoginUserData.PersonName;
 
 
-                data.MessageTitile = string.Format("{0}�H���S���҂ɂ���", m_DspCtrl[(int)DspCnt.ConstructionName].Text);
+                data.MessageTitle = string.Format("{0}�H���S���҂ɂ���", m_DspCtrl[(int)DspCnt.ConstructionName].Text);
                 data.MessageContent = string.Format("�H���ԍ��F{0}\r\n�H�����́F{1}��\r\n{2}{3}���H���S���҂�{4}���܂��B",
                                                         m_DspCtrl[(int)DspCnt.ConstructionCode].Text,
                                                         m_DspCtrl[(int)DspCnt.ConstructionName].Text,
                                                         wkselect.Value,
-                                                        titileofhonor,
+                                                        titleofhonor,
                                                         InstractorName);
                 data.MessageContent += string.Format("\r\n�Ȃ��H���̈��p���܂��̂ł̏������ƒS���҂͉c�ƒS���Ǝ��}�ł����킹�ĉ������i����3���ȓ��j\r\n�ł����킹��{�H�����Ɋ|�����ĉ������B\r\n��낵�����肢���܂��B");
 
@@ -3039,7 +3221,7 @@
             m_frmAppList = new FrmApprovalStatusList();
             m_frmAppList.ConstructionCode = m_ConstructionCode;
             m_frmAppList.LocationPoint = new Point(this.Right, this.Top);
-            m_frmAppList.ShowInTaskbar = false;
+            //m_frmAppList.ShowInTaskbar = false;
             // �N���[�X�h�n���h����������Œ�`����
             m_frmAppList.FormClosed += new FormClosedEventHandler(FrmAppList_FormClosed);
             m_frmAppList.Show();
@@ -3142,7 +3324,7 @@
                 // �H���ԍ����擾����
                 frm.ConstructionCode = m_ConstructionCode;
                 // �t�H�[���\��
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
 
                 // �߂�l�擾
@@ -3230,13 +3412,6 @@
         }
         #endregion
 
-        #region �H���ڍב䒠�f�[�^�쐬�H�����
-        /// <summary>
-        /// �H���ڍב䒠�f�[�^�쐬�H�����
-        /// </summary>
-        private static int[] s_CreateLedgerData = new int[] { 6 };
-        #endregion
-
         #region �H���䒠�f�[�^�쐬
         /// <summary>
         /// �H���䒠�f�[�^�쐬
@@ -3247,43 +3422,35 @@
             try
             {
                 // �c�U���p���H���̂ݏ������s��
-                bool ExcuteFlg = false;
-                for (int i = 0; i < s_CreateLedgerData.Length; i++)
-                {
-                    if (CommonMotions.cnvInt(cmbConstructionType.SelectedValue) == s_CreateLedgerData[i])
-                    {
-                        ExcuteFlg = true;
-                        break;
-                    }
-                }
-                if (!ExcuteFlg) return true;
+                int ConstStatus = GetStatusForCheckBox();
+                int ConstType = CommonMotions.cnvInt(cmbConstructionType.SelectedValue);
+                if (!CommonMotions.CheckCreateLedgerData(ConstStatus, ConstType)) return true;
 
-                // �H���䒠�f�[�^���݃`�F�b�N
                 string strSQL = LedgerDB.CreatePrimarykeyString(m_ConstructionCode);
                 ConstructionLedger LedgerRec = new ConstructionLedger();
-                // �f�[�^�����݂���Ώ������Ȃ�
+                // �H���ڍב䒠�f�[�^�����݂���Ώ������Ȃ�
                 if (LedgerDB.SelectAction(strSQL, ref LedgerRec)) return true;
 
-                // ���b�Z�[�W�\��
-                if (MessageBox.Show("�H���䒠�f�[�^���쐬���܂��A��낵���ł����H", "�o�^�m�F"
-                        , MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) return true;
-
                 // �H���ڍב䒠�f�[�^�쐬
-                ClsCreateLedgerData.CreateLedgerData(m_ConstructionCode);
-               
-                // �f�[�^���擾����
-                if (!LedgerDB.SelectAction(strSQL, ref LedgerRec))
+                if (!ClsCreateLedgerData.MakingLedgerData(m_ConstructionCode))
                 {
-                    MessageBox.Show("�H���ڍב䒠�f�[�^�F�X�V�m�F�Ɏ��s���܂����B", "�m�F�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    MessageBox.Show("�H���ڍב䒠�F�f�[�^�쐬�Ɏ��s���܂����B", "�o�^�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
                     return false;
                 }
+
+                // �f�[�^���擾����
+                LedgerDB.SelectAction(strSQL, ref LedgerRec);
+
+                // �󒍋��z�ώZ�t���OON
                 LedgerRec.IntegrationFlg = (int)CommonDefine.LedgerIntegration.Integration;
+
                 // �f�[�^�X�V
                 if (!LedgerDB.UpdateAction(strSQL, LedgerRec))
                 {
-                    MessageBox.Show("�H���ڍב䒠�f�[�^�F�X�V�Ɏ��s���܂����B", "�X�V�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    MessageBox.Show("�H���ڍב䒠�F�f�[�^�X�V�Ɏ��s���܂����B", "�X�V�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
                     return false;
                 }
+
                 return true;
             }
             catch (Exception ex)
@@ -3297,5 +3464,255 @@
             }
         }
         #endregion
+
+        #region �H�������f�[�^�쐬
+        /// <summary>
+        /// �H�������f�[�^�쐬
+        /// </summary>
+        private void CreateFluctuationData()
+        {
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            IOConstructionBaseInfoDetail DetailDB = new IOConstructionBaseInfoDetail();
+            IOConstructionProgressDate PDateDB = new IOConstructionProgressDate();
+            IOConstructionLink LinkDB = new IOConstructionLink();
+            FrmNewOrContinueCopy frm = new FrmNewOrContinueCopy();
+            try
+            {
+                // �V�K�쐬���͏������Ȃ�
+                if (m_ConstructionCode < 1) return;
+
+                if (MessageBox.Show("�����H���̌��ς菑���쐬���܂��B", "�����H���쐬�m�F",
+                                    MessageBoxButtons.OKCancel, MessageBoxIcon.Information) != DialogResult.OK) return;
+
+                    // �p���H���ԍ��쐬
+                int NewCode = BaseDB.CreateNextBranchCounstructionCode(m_ConstructionCode);
+
+                // �쐬���E�𒴂����ꍇ�̓G���[�ɂ���
+                if (NewCode < 0)
+                {
+                    MessageBox.Show("�V�K�H���ԍ����擾�ł��܂���B", "�p���쐬�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return;
+                }
+                else if ((NewCode - m_ConstructionCode) > 99)
+                {
+                    MessageBox.Show("�ύX�쐬�̏�����𒴂��܂����A\n����ȏ�͍쐬�ł��܂���A\n�V�K�H���Ƃ��č쐬���Ă��������B",
+                                    "�p���쐬�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return;
+                }
+
+                LinkDB.connect(); LinkDB.beginTran();
+                BaseDB.connect(); BaseDB.beginTran();
+                DetailDB.connect(); DetailDB.beginTran();
+                PDateDB.connect(); PDateDB.beginTran();
+
+                // �H�������f�[�^�쐬
+                ConstructionLink LinkRec = new ConstructionLink();
+                LinkRec.ConstructionCode = m_ConstructionCode;  // �H���R�[�h	
+                LinkRec.FluctuationCode = NewCode;              // �q�H���R�[�h	
+                if (!LinkDB.InsertAction(LinkRec, false))
+                {
+                    MessageBox.Show("�H�������f�[�^���쐬�ł��܂���B", "�f�[�^�쐬�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    LinkDB.rollback();
+                    return;
+                }
+
+                // �H�����쐬
+                if (!frm.RecordCopyTypeA(m_ConstructionCode, NewCode, BaseDB, DetailDB))
+                {
+                    MessageBox.Show("�H��������{��f�[�^���쐬�ł��܂���B", "�f�[�^�쐬�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    LinkDB.rollback();
+                    BaseDB.rollback();
+                    DetailDB.rollback();
+                    return;
+                }
+                // �H����񏉊��ݒ�
+                if (!UpdateConstructionInfo(m_ConstructionCode, NewCode, BaseDB, DetailDB))
+                {
+                    MessageBox.Show("�H��������{���f�[�^�̏����ݒ�Ɏ��s���܂����B", "�����ݒ�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    LinkDB.rollback();
+                    BaseDB.rollback();
+                    DetailDB.rollback();
+                    return;
+                }
+
+                // �Č��i�����t�f�[�^�o�^
+                if (!frm.ProgressDate(PDateDB, NewCode))
+                {
+                    MessageBox.Show("���Č��i�����t�f�[�^�o�^�Ɏ��s���܂����B", "�f�[�^�쐬�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    PDateDB.rollback();
+                    LinkDB.rollback();
+                    BaseDB.rollback();
+                    DetailDB.rollback();
+                    return;
+                }
+
+                LinkDB.commit();
+                BaseDB.commit();
+                DetailDB.commit();
+                PDateDB.commit();
+
+
+                // ���N���v���Z�X�Z�b�g
+                int NowPoint = ClsExcute.NextProcess((int)ClsExcute.ProcessExecuteNo.EstimateInput);
+                // �I���H���ԍ��Z�b�g
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(NewCode);
+
+                // �N���[�Y������OFF�ɂ���B
+                m_CloseingProcessOn = false;
+                // ��ʃN���[�Y
+                this.Close();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                LinkDB.close(); LinkDB = null;
+                BaseDB.close(); BaseDB = null;
+                DetailDB.close(); DetailDB = null;
+                PDateDB.close(); PDateDB = null;
+            }
+        }
+        #endregion
+
+        #region ���z�����f�[�^�����ݒ菈��
+        /// <summary>
+        /// ���z�����f�[�^�����ݒ菈��
+        /// </summary>
+        /// <param name="Code"></param>
+        /// <param name="DB1"></param>
+        /// <param name="DB2"></param>
+        /// <returns></returns>
+        private bool UpdateConstructionInfo(int OrgCode, int ToCode, IOConstructionBaseInfo DB1, IOConstructionBaseInfoDetail DB2)
+        {
+            try
+            {
+                // ���z�����������擾����
+                string strSQL = string.Format("SELECT COUNT(*) FROM CONSTRUCTIONBASEINFO A WHERE A.CONSTRUCTIONSTATUSFLG != {0}",
+                                                        CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�� �� ��")).Key);
+                strSQL += " AND A.CONSTRUCTIONCODE IN (SELECT B.FLUCTUATIONCODE FROM CONSTRUCTIONLINK B";
+                strSQL += string.Format(" WHERE B.CONSTRUCTIONCODE = {0})", OrgCode);
+
+                ArrayList arList = new ArrayList();
+                if (!DB1.ExecuteReader(strSQL, ref arList, false)) return false;
+                object[] wrkCount = (object[])arList[0];
+                int DataCount = CommonMotions.cnvInt(wrkCount[0]) + 1;
+
+                // ���f�[�^�ɕR�t���e�t���O�𗧂Ă�
+                strSQL = DB1.CreatePrimarykeyString(OrgCode);
+                if (!DB1.UpdateFeild(OrgCode,
+                                (int)IOConstructionBaseInfo.TableColumn.TYINGFLG,
+                                (int)CommonDefine.BaseInfoTyingFlg.Pearent, false)) return false;
+
+                // �쐬�f�[�^�������ݒ肷��
+                if (!InitSetBaseInfo(ToCode, DB1)) return false;
+                
+                // �H�����̂�ύX����
+                strSQL = DB2.CreatePrimarykeyString(ToCode, (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
+                ConstructionBaseInfoDetail DetailRec = new ConstructionBaseInfoDetail();
+                if (!DB2.SelectAction(strSQL, ref DetailRec, false)) return false;
+                DetailRec.DetailString += string.Format(s_FluctuationFormat, DataCount);
+                if (!DB2.UpdateAction(strSQL, DetailRec, false)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region ���z�������F�H����{��񏉊��ݒ�
+        /// <summary>
+        /// ���z�������F�H����{��񏉊��ݒ�
+        /// </summary>
+        /// <param name="cbRec"></param>
+        private bool InitSetBaseInfo(int ToCode, IOConstructionBaseInfo cbDB)
+        {
+            try
+            {
+                // �H����{���̐ݒ�
+                string strSQL = cbDB.CreatePrimarykeyString(ToCode);
+                ConstructionBaseInfo cbRec = new ConstructionBaseInfo();
+                if (!cbDB.SelectAction(strSQL, ref cbRec, false)) return false;
+
+                cbRec.TyingFlg = (int)CommonDefine.BaseInfoTyingFlg.Tying;                          // �R�t���t���O
+                cbRec.ConstructionStatusFlg = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�˗��󂯒�")).Key;  // �H���i�����
+                cbRec.RequestedDate = DateTime.Now;                                                 // �˗��󂯓�
+                cbRec.EstimatesSubmitDeadline = DateTime.Now.AddDays(s_EstimatesSubmitDeadline);	// ���ϒ�o����
+                cbRec.EstimatesSubmittedDate = DateTime.MinValue;	                                // ���ϒ�o��
+                cbRec.EstimatesExpirationDate = DateTime.MinValue;	                                // ���ϗL������
+                cbRec.ProvisionalOrderDate = DateTime.MinValue;                                     // ���󒍓�
+                cbRec.OrderDate = DateTime.MinValue;                                                // �󒍓�
+                cbRec.TransferConstructionDate = DateTime.MinValue;                                 // �������p��
+                cbRec.ConstructionStartingDate = DateTime.MinValue;                                 // �{�H�J�n��
+                cbRec.ConstructionCompletionDate = DateTime.MinValue;                               // �{�H������
+                cbRec.BillingStartDate = DateTime.MinValue;	                                        // ���������J�n��
+                cbRec.BillingDate = DateTime.MinValue;	                                            // ������
+
+                cbRec.OrderStartingDate = DateTime.MinValue;	                                    // �J�n�\���
+                cbRec.OrderCompletionDate = DateTime.MinValue;	                                    // �����\���
+                cbRec.PreparationStartDate = DateTime.MinValue;                                     // �{�H�����J�n��
+                cbRec.NonOrderDate = DateTime.MinValue;                                             // ��󒍓�
+                cbRec.OrdersDecisionPrice = 0;                                                      // �Ŕ��󒍌�����z
+                cbRec.OrdersDecisionPriceInTax = 0;                                                 // �ō��󒍌�����z
+                cbRec.TransferConstructionDate = DateTime.MinValue;                                 // �H���ڊǓ�
+                cbRec.ConstructionPeriodStart = DateTime.MinValue;                                  // �_��H���J�n
+                cbRec.ConstructionPeriodEnd = DateTime.MinValue;                                    // �_��H������
+                cbRec.ConstructionPeriodStart2 = DateTime.MinValue;                                 // �_��H���J�n�i�������j
+                cbRec.ConstructionPeriodEnd2 = DateTime.MinValue;                                   // �_��H�������i�������j
+                cbRec.StartDate = DateTime.MinValue;	                                            // �H���J�n��
+                cbRec.EndDate = DateTime.MinValue;                                                  // �H���I����
+                cbRec.PurchaseOrderMailingDate = DateTime.MinValue;                                 // �������X����
+                cbRec.PurchaseOrderReturnDate = DateTime.MinValue;                                  // �������ԑ���
+                cbRec.PurchaseOrderReturnCheckDate = DateTime.MinValue;                             // �������ԑ��m�F��
+                cbRec.BillingSendDate = DateTime.MinValue;                                          // �������X��/��n����
+
+                // �X�V����
+                if (!cbDB.UpdateAction(strSQL, cbRec, false)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region ���z�����f�[�^�I������
+        /// <summary>
+        /// ���z�����f�[�^�I������
+        /// </summary>
+        private void LinkDataExecute()
+        {
+            try
+            {
+                DataGridView dgv = dgvLink;
+                DataGridViewRow CurRow = dgv.CurrentRow;
+
+                int NewCode=CommonMotions.cnvInt(CurRow.Cells[(int)LinkGridColumn.ConstrCode].Value);
+                if (NewCode == 0) return;
+
+                // ���N���v���Z�X�Z�b�g
+                int NowPoint = ClsExcute.GetNowProcessPoint();
+                // �I���H���ԍ��Z�b�g
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter[0] = NewCode;
+
+                // �N���[�Y������OFF�ɂ���B
+                m_CloseingProcessOn = false;
+                // ��ʃN���[�Y
+                this.Close();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/ProcessControl.cs	(revision 6)
@@ -329,35 +329,42 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            // コピー等で処理が起動した場合は登録処理を起動する(工事情報入力)
-            if (m_DspCtrl[(int)DspCnt.ConstructionName].Text.Length == 0) m_bChengeAns = true;
+            try
+            {
+                // コピー等で処理が起動した場合は登録処理を起動する(工事情報入力)
+                if (m_DspCtrl[(int)DspCnt.ConstructionName].Text.Length == 0) m_bChengeAns = true;
 
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
-            {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -369,32 +376,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -646,7 +660,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
@@ -820,6 +834,8 @@
                 }
                 else
                 {
+                    // 初期表示
+                    InitDataLoad();
                     UpDateProcessContextMenu();
                     this.Activate();
                 }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.cs	(revision 6)
@@ -36,67 +36,71 @@
     public enum GroupName_ConstructionBudget
     {
         /// <summary>
-        /// ��
+        /// 0:��
         /// </summary>
         Empty = 0,
         /// <summary>
-        /// �o��
+        /// 1:�o��
         /// </summary>
         Expenses,
         /// <summary>
-        /// ���ʉ��ݔ�
+        /// 2:���ʉ��ݔ�
         /// </summary>
         CommonTempCosts,
         /// <summary>
-        /// �O����
+        /// 3:�O����
         /// </summary>
         OutSourceCosts,
         /// <summary>
-        /// ���Ў{�H
+        /// 4:���Ў{�H
         /// </summary>
         MyConstruction,
         /// <summary>
-        /// �w���i
+        /// 5:�w���i
         /// </summary>
         PurchaseCosts,
         /// <summary>
-        /// �ԗ����[�X��
+        /// 6:�ԗ����[�X��
         /// </summary>
         VehicleLeaseFee,
         /// <summary>
-        /// ��ʔ�i�ʍs���E�d�ԑ�j
+        /// 7:��ʔ�i�ʍs���E�d�ԑ�j
         /// </summary>
         TransportationCosts,
         /// <summary>
-        /// ���ԏ�E���ޒu����
+        /// 8:���ԏ�E���ޒu����
         /// </summary>
         ParkingCosts,
         /// <summary>
-        /// �h����
+        /// 9:�h����
         /// </summary>
         RoomChargeCosts,
         /// <summary>
-        /// �����
+        /// 10:�����
         /// </summary>
         DisposeCosts,
         /// <summary>
-        /// �w�������^
+        /// 11:�e���v
         /// </summary>
+        GrossProfit,
+        /// <summary>
+        /// 12:�w�������^
+        /// </summary>
         InstructorCosts,
         /// <summary>
-        /// �e���v
+        /// 13:���S�����^�o��
         /// </summary>
-        GrossProfit,
+        AssistantCosts,
         /// <summary>
-        /// ���^�o��
+        /// 14:���^�o��
         /// </summary>
         PayrollExpenses,
         /// <summary>
-        /// �����v
+        /// 15:�����v
         /// </summary>
         NetIncome,
         /// <summary>
-        /// ���v���z
+        /// 16:���v���z
         /// </summary>
         AllTotal,
     }
@@ -126,9 +130,9 @@
             ItemCode,               // �H��R�[�h
             ItemName,               // �H�햼
             TextName,               // �H�����e����
-            SubContractorType,      // ���͋Ǝ҃R�[�h�^�C�v
-            SubContractorCode,      // ���͋Ǝ҃R�[�h
-            SubContractorName,      // ���͋ƎҖ���
+            CompanyType,            // ���͋Ǝ҃R�[�h�^�C�v
+            CompanyCode,            // ���͋Ǝ҃R�[�h
+            CompanyName,            // ���͋ƎҖ���
             EstimatePrice,          // �ώZ�����ϋ��z
             NegotiationPrice,       // �ώZ�������z
             HopePrice,              // ������]���z
@@ -135,7 +139,7 @@
             Negotiation,            // ���t���O
             ExecPrice,              // ���s���z
             Percent,                // �\���䗦
-            TitileFlg,              // �^�C�g���s�t���O
+            TitleFlg,               // �^�C�g���s�t���O
             TotalFlg,               // ���v�s�t���O
             BlankFlg,               // �󔒍s�t���O
         }
@@ -164,22 +168,14 @@
             /// </summary>
             CreatorName,
             /// <summary>
-            /// �H���S���҂P�J�����z
+            /// �H�����S���Җ�
             /// </summary>
-            CreatorCosts,
+            AssistantName,
             /// <summary>
             /// �w������
             /// </summary>
             InstructorName,
             /// <summary>
-            /// �w�����P�J�����z
-            /// </summary>
-            InstructorCosts,
-            /// <summary>
-            /// �w�����H��
-            /// </summary>
-            InstructorTime,
-            /// <summary>
             /// �쐬��
             /// </summary>
             CreateDate,
@@ -204,9 +200,21 @@
             /// </summary>
             ConstructionType,
             /// <summary>
-            /// �U������
+            /// �S���ҐU������
             /// </summary>
             SalaryDays,
+            /// <summary>
+            /// ���S���ҐU������
+            /// </summary>
+            A_SalaryDays,
+            /// <summary>
+            /// �w�����U������
+            /// </summary>
+            I_SalaryDays,
+            /// <summary>
+            /// �����Җ�
+            /// </summary>
+            OrdersName,
         }
         #endregion
 
@@ -225,7 +233,7 @@
         /// <summary>
         /// �O���[�v�v�E�^�C�g���o�b�N�J���[
         /// </summary>
-        private static Color s_TitileRowBackColor = Color.LightGoldenrodYellow;
+        private static Color s_TitleRowBackColor = Color.LightGoldenrodYellow;
         /// <summary>
         /// �O���[�v�v�������z�o�b�N�J���[
         /// </summary>
@@ -248,7 +256,7 @@
         /// <summary>
         /// �O���b�h���ڍs�^�C�g��
         /// </summary>
-        private static string[] GroupTitile = new string[] { ""
+        private static string[] GroupTitle = new string[] { ""
                                                             , "�o�@�@��@�@"
                                                             , "�� �� �� �� ��"
                                                             , "�O�@�@���@�@��"
@@ -259,9 +267,10 @@
                                                             , "���ԏ�E���ޒu����"
                                                             , "�h�@�@���@�@��"
                                                             , "�����ޏ����"
+                                                            , "�e�@�@���@�@�v"
                                                             , "�w �� �� �� �^"
-                                                            , "�e�@�@���@�@�v"
-                                                            , "���@�^�@�o�@��"
+                                                            , "�� �S �� �� �� �^"
+                                                            , "�S �� �� �� �^"
                                                             , "���@�@���@�@�v"
                                                             , "���@�v�@���@�z"};
         #endregion
@@ -289,15 +298,19 @@
             /// </summary>
             DisposeCostsRowLine,
             /// <summary>
+            /// �e���v�s��
+            /// </summary>
+            GrossProfitRowLine,
+            /// <summary>
             /// �w���������s
             /// </summary>
             InstructorRowLine,
             /// <summary>
-            /// �e���v�s��
+            /// ���S���ҋ����s
             /// </summary>
-            GrossProfitRowLine,
+            AssistantRowLine,
             /// <summary>
-            /// �����s
+            /// �S���ҋ����s
             /// </summary>
             ConstructorRowLine,
             /// <summary>
@@ -311,18 +324,11 @@
         }
         #endregion
 
-        #region �w�������^�\���t�H�[�}�b�g
-        /// <summary>
-        /// �w�������^�\���t�H�[�}�b�g�i���ځj
-        /// </summary>
-        private const string s_InstructorFormat = "{0}�@�y{1}���z";
-        #endregion
-
         #region �H���\�Z���F�H���S���ҋ��^���\���t�H�[�}�b�g�i�H�����e�j
         /// <summary>
         /// �H���S���ҋ��^���\���t�H�[�}�b�g�i�H�����e�j
         /// </summary>
-        public static string s_InstructorMonthlyFormat = "{0}�����~��{1}�~/�ꖼ������";
+        public static string s_InstructorMonthlyFormat = "{0}�����~��{1}�~";
         #endregion
 
         #region �s�I��F
@@ -364,6 +370,11 @@
 
         #region �ϐ�
         /// <summary>
+        /// �������t���O
+        /// </summary>
+        private bool m_bInitFlg = true;
+
+        /// <summary>
         /// �t�B�[���h�l�ω��t���O
         /// </summary>
         private bool m_bChengeAns = false;
@@ -374,6 +385,11 @@
         private int m_ConstructionCode = 0;
 
         /// <summary>
+        /// �H�����F�t���O
+        /// </summary>
+        private bool m_ApprovalFlg = false;
+        
+        /// <summary>
         /// �I���{�^�������t���O
         /// </summary>
         private bool m_CloseingProcessOn = true;
@@ -392,19 +408,7 @@
         /// <summary>
         /// �o��X�g
         /// </summary>
-        private ArrayList ExpensesList = new ArrayList();
-        /// <summary>
-        /// �e�������o��i7���j
-        /// </summary>
-        private const double m_PartExpenses = 7.0;
-        /// <summary>
-        /// �������o��i8���j
-        /// </summary>
-        private const double m_OfficeExpenes = 8.0;
-        /// <summary>
-        /// �c�ƌo��i5���j
-        /// </summary>
-        private const double m_SaleseExpenes = 5.0;
+        private ArrayList m_ExpensesList = new ArrayList();
 
         /// <summary>
         /// �Y���H����{���
@@ -412,19 +416,6 @@
         private ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo();
 
         /// <summary>
-        /// �H����{�����
-        /// </summary>
-        private FrmConstructionBaseInfo m_frmBase = null;
-        /// <summary>
-        /// �ώZ���ϓ��͉��
-        /// </summary>
-        private FrmEstimateInput m_frmEstimate = null;
-        /// <summary>
-        /// �ώZ�\�Z���͉��
-        /// </summary>
-        private FrmEstimateBudget m_frmBudget = null;
-
-        /// <summary>
         /// ���F�҃��X�g�n���h��
         /// </summary>
         private FrmApprovalAuthorizerList m_frmAuthorizerList = null;
@@ -445,11 +436,6 @@
         private int[] m_CostsRowCount = null;
 
         /// <summary>
-        /// �w���������z
-        /// </summary>
-        private  int m_InstructorMonthryCost = 100000;
-
-        /// <summary>
         /// �w�b�_�[�p�c�[���`�b�v
         /// </summary>
         private ToolTip m_HeaderToolTip = null;
@@ -486,8 +472,50 @@
         private static int[] m_CellSize;
         #endregion
 
+        #region �H���S���҃R�[�h
+        /// <summary>
+        /// �H���S���҃R�[�h
+        /// </summary>
+        private int m_Constructor = 0;
         #endregion
 
+        #region ���S���҃R�[�h
+        /// <summary>
+        /// ���S���҃R�[�h
+        /// </summary>
+        private int m_SubConstractor = 0;
+        #endregion
+
+        #region �w�����R�[�h
+        /// <summary>
+        /// �w�����R�[�h
+        /// </summary>
+        private int m_Instructor = 0;
+        #endregion
+
+        #region �w���������z
+        /// <summary>
+        /// �w���������z
+        /// </summary>
+        private int m_InstructorMonthryCost = 0;
+        #endregion
+
+        #region ���S�������z
+        /// <summary>
+        /// ���S�������z
+        /// </summary>
+        private int m_AssistantMonthryCost = 0;
+        #endregion
+
+        #region �S���Ҍ����z
+        /// <summary>
+        /// �S���Ҍ����z
+        /// </summary>
+        private int m_CreatorMonthryCost = 0;
+        #endregion
+
+        #endregion
+
         #region �v���p�e�B
         /// <summary>
         /// �H���ԍ�
@@ -526,6 +554,27 @@
         }
         // *-----* ���ʏ����ݒ� *-----*
 
+        /// <summary>
+        /// �S���҃^�C�g���擾
+        /// </summary>
+        public string GetTitleConstructor
+        {
+            get { return GroupTitle[(int)GroupName_ConstructionBudget.PayrollExpenses]; }
+        }
+        /// <summary>
+        /// ���S���^�C�g���擾
+        /// </summary>
+        public string GetTitleAssistant
+        {
+            get { return GroupTitle[(int)GroupName_ConstructionBudget.AssistantCosts]; }
+        }
+        /// <summary>
+        /// �w�����^�C�g���擾
+        /// </summary>
+        public string GetTitleInstructor
+        {
+            get { return GroupTitle[(int)GroupName_ConstructionBudget.InstructorCosts]; }
+        }
         #endregion
 
         #region �R���X�g���N�^
@@ -602,78 +651,6 @@
         }
         #endregion
 
-        #region �H����{���̃N���[�Y���擾����
-        /// <summary>
-        /// �H����{���̃N���[�Y���擾����
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmBase_FormClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                this.Activate();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // �n���h���N���A
-                m_frmBase.Dispose(); m_frmBase = null;
-            }
-        }
-        #endregion
-
-        #region �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// <summary>
-        /// �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmEstimateClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                    this.Activate();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // �n���h���N���A
-                m_frmEstimate.Dispose(); m_frmEstimate = null;
-            }
-        }
-        #endregion
-
-        #region �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// <summary>
-        /// �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmBudgetClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                this.Activate();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // �n���h���N���A
-                m_frmBudget.Dispose(); m_frmBudget = null;
-            }
-        }
-        #endregion
-
         #region Entry�L�[�ł̈ړ�����
         /// <summary>
         /// Entry�L�[�ł̈ړ�����
@@ -719,15 +696,23 @@
                     return;
                 }
 
+                // �H���Č��̏��F��Ԃ��m�F����
+                m_ApprovalFlg = ApprovalCheck();
+
+                // �S���ғ����擾
+                if (!SetConstructorCode())
+                {
+                    MessageBox.Show("�S���ҏ�񂪐���������܂���", "�G���[�\��", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    this.Close();
+                    return;
+                }
+
                 // 16���ȍ~�͕������ƂɌo���ݒ肷��
                 if (m_ConstructionBaseInfo.ConstructionPeriod < 16)
                 {
-                    object[] Expenses1 = new object[] { "��Ќo��", m_OfficeExpenes };
-                    object[] Expenses2 = new object[] { "�c�ƌo��", m_SaleseExpenes };
-                    object[] Expenses3 = new object[] { "�e�����o��", m_PartExpenses };
-                    ExpensesList.Add(Expenses1);
-                    ExpensesList.Add(Expenses2);
-                    ExpensesList.Add(Expenses3);
+                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[0].Key, CommonDefine.BeforeExpenses[0].Value });
+                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[1].Key, CommonDefine.BeforeExpenses[1].Value });
+                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[2].Key, CommonDefine.BeforeExpenses[2].Value });
                 }
                 else
                 {
@@ -814,6 +799,7 @@
 
                 // �ύX�t���OOFF
                 m_bChengeAns = false;
+                m_bInitFlg = false;
             }
             catch (System.Exception ex)
             {
@@ -943,7 +929,7 @@
             {
                 DataGridViewCell CurCell = dgv.CurrentCell;
                 // ���͉�Ж��̂ݏ�������
-                if (CurCell.ColumnIndex != (int)DispGridColumn.SubContractorName) return;
+                if (CurCell.ColumnIndex != (int)DispGridColumn.CompanyName) return;
                 
                 DataGridViewRow CurRow = dgv.CurrentRow;
                 // ���ʉ��ݔ�E�O����̂ݏ�������
@@ -952,9 +938,9 @@
                     && GroupNo != (int)GroupName_ConstructionBudget.OutSourceCosts) return;
                 
                 // ���͉�ЃR�[�h�E���̂��N���A����
-                CurRow.Cells[(int)(int)DispGridColumn.SubContractorType].Value = 0;
-                CurRow.Cells[(int)(int)DispGridColumn.SubContractorCode].Value = 0;
-                CurRow.Cells[(int)(int)DispGridColumn.SubContractorName].Value = string.Empty;
+                CurRow.Cells[(int)(int)DispGridColumn.CompanyType].Value = 0;
+                CurRow.Cells[(int)(int)DispGridColumn.CompanyCode].Value = 0;
+                CurRow.Cells[(int)(int)DispGridColumn.CompanyName].Value = string.Empty;
                 m_bChengeAns = true;
             }
 
@@ -993,7 +979,7 @@
                 {
                     case (int)DispGridColumn.ItemName:                          // ����
                     case (int)DispGridColumn.TextName:                          // �H�����e
-                    case (int)DispGridColumn.SubContractorName:                 // ���͉��
+                    case (int)DispGridColumn.CompanyName:                 // ���͉��
                         dgv.ImeMode = ImeMode.On;
                         break;
                     default:
@@ -1065,13 +1051,13 @@
             if (dgv.ReadOnly) return;
 
             // �^�C�g���͏������Ȃ�
-            if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) return;
+            if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) return;
 
             int GroupNo = CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)DispGridColumn.GroupCount].Value);
             switch (e.ColumnIndex)
             {
                 // ----- ���͉�Ж��Z��
-                case (int)DispGridColumn.SubContractorName:
+                case (int)DispGridColumn.CompanyName:
                     switch (GroupNo)
                     {
                         // ���Ў{�H�O���[�v�E�O����O���[�v�E���ʉ��݃O���[�v�ȊO�͏������Ȃ�
@@ -1260,13 +1246,13 @@
         /// <param name="e"></param>
         private void btnPetition_Click(object sender, EventArgs e)
         {
-            IOEstimateData EstimateDB = new IOEstimateData();
+            IOConstructionBudget BudgetDB = new IOConstructionBudget();
             try
             {
                 // �ώZ�\�Z�f�[�^�������ꍇ�͓o�^����
-                string strSQL = EstimateDB.CreatePrimarykeyString(m_ConstructionCode);
-                EstimateData DataRec = new EstimateData();
-                if (!EstimateDB.SelectAction(strSQL, ref DataRec)) m_bChengeAns = true;
+                string strSQL = BudgetDB.CreatePrimarykeyString(m_ConstructionCode);
+                ConstructionBudget DataRec = new ConstructionBudget();
+                if (!BudgetDB.SelectAction(strSQL, ref DataRec)) m_bChengeAns = true;
 
                 // �f�[�^�ύX�L���̓f�[�^�o�^
                 if (m_bChengeAns)
@@ -1298,7 +1284,7 @@
             }
             finally
             {
-                EstimateDB.close(); EstimateDB = null;
+                BudgetDB.close(); BudgetDB = null;
             }
         }
         #endregion
@@ -1485,125 +1471,121 @@
         }
         #endregion
 
-        #region ���H���I���{�^��
+        #region �S���ҋ��^�U�����W�I�{�^���ύX��
         /// <summary>
-        /// ���H���I���{�^��
+        /// �S���ҋ��^�U�����W�I�{�^���ύX��
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void button1_Click(object sender, EventArgs e)
+        private void Grp1radioButton_CheckedChanged(object sender, EventArgs e)
         {
-            // �t�H�[�����\������Ă���ꍇ�͉�ʂ��I�������Ĕ�����
-            if (m_frmSelectDate != null)
+            textBox1.Enabled = false;
+            textBox1.Text = "";
+
+            // �����w��̎��̂ݓ������͗L
+            // �S�����Čv�Z
+            if (radioButton1.Checked)
             {
-                m_frmSelectDate.Close();
-                return;
+                // ���^�o��Čv�Z
+                if (!m_bInitFlg) CreatePayrollCosts(false);
             }
-            DispSelectDateControl(true);
+            else if (radioButton2.Checked)
+            {
+                // ���^�o��N���A
+                if (!m_bInitFlg) ClearDetailLine((int)CostsRowLine.ConstructorRowLine);
+            }
+            else if (radioButton3.Checked)
+            {
+                textBox1.Enabled = true;
+                textBox1.Focus();
+            }
+
+            // �ύX�t���OON
+            m_bChengeAns = true;
         }
         #endregion
 
-        #region �������I���{�^��
+        #region �S���ҋ��^�敪��������
         /// <summary>
-        /// �������I���{�^��
+        /// �S���ҋ��^�敪�����w��
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void button2_Click(object sender, EventArgs e)
+        private void textBox_Validated(object sender, EventArgs e)
         {
-            // �t�H�[�����\������Ă���ꍇ�͉�ʂ��I�������Ĕ�����
-            if (m_frmSelectDate != null)
+            try
             {
-                m_frmSelectDate.Close();
-                return;
+                // �S���ҋ��^�v�Z
+                CreatePayrollCosts(false);
             }
-            DispSelectDateControl(false);
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
         }
         #endregion
 
-        #region ���H�E�������t�I���N���[�Y
+        #region ���S���ҋ��^�U�����W�I�{�^���ύX��
         /// <summary>
-        /// ���H�E�������t�I���N���[�Y
+        /// ���S���ҋ��^�U�����W�I�{�^���ύX��
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void FrmSelectDate_FormClosed(object sender, FormClosedEventArgs e)
+        private void Grp2radioButton_CheckedChanged(object sender, EventArgs e)
         {
-            try
+            textBox2.Enabled = false;
+            textBox2.Text = "";
+
+            // �����w��̎��̂ݓ������͗L
+            // �U�蕪���Čv�Z
+            if (radioButton4.Checked)
             {
-                this.Activate();
-                // �I����Ԏ擾
-                if (m_frmSelectDate.EndButton == DialogResult.Cancel) return;
-
-                // ���H�E��������
-                if (m_frmSelectDate.StartDateFlg)
-                {
-                    m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text = m_frmSelectDate.ExcuteDate.ToShortDateString();
-                }
-                else
-                {
-                    m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text = m_frmSelectDate.ExcuteDate.ToShortDateString();
-                }
-                // �H���̌v�Z
-                DateTime StDate = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text);
-                DateTime EdDate = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text);
-                m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text = CommonMotions.DiffMounthTimes(StDate, EdDate).ToString("0.00");
-
-                // �w�����s���X�V����
-                if (m_ConstructionBaseInfo.ConstructionInstructor != 0) UpDateInstructorLine();
-                // �����s���X�V����
-                CreatePayrollExpenses(false);
-
-                // �e���v�s�v�Z
-                CalculateGrossProfit();
-
-                // �����v�v�Z
-                CalculateNetIncome();
-
-                // ���v�v�Z
-                CalculateAllTotal();
+                // ���S���ҋ��^�o��Čv�Z
+                if (!m_bInitFlg) CreateAssistantCosts(false);
             }
-            catch (Exception ex)
+            else if (radioButton5.Checked)
             {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                // ���S���ҋ��^�o��N���A
+                if (!m_bInitFlg) ClearDetailLine((int)CostsRowLine.AssistantRowLine);
             }
-            finally
+            else if (radioButton6.Checked)
             {
-                // �n���h���N���A
-                m_frmSelectDate.Dispose(); m_frmSelectDate = null;
+                textBox2.Enabled = true;
+                textBox2.Focus();
             }
+
+            // �ύX�t���OON
+            m_bChengeAns = true;
         }
         #endregion
 
-        #region ���^�U�����W�I�{�^���ύX��
+        #region �w�������^�敪����
         /// <summary>
-        /// ���^�U�����W�I�{�^���ύX��
+        /// �w�������^�敪����
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void radioButton_CheckedChanged(object sender, EventArgs e)
+        private void Grp3radioButton_CheckedChanged(object sender, EventArgs e)
         {
-            RadioButton chkbox = (RadioButton)sender;
-            
-            m_DspLabelCtrl[(int)DspLblCtrlName.SalaryDays].Enabled = false;
-            m_DspLabelCtrl[(int)DspLblCtrlName.SalaryDays].Text = "";
+            textBox3.Enabled = false;
+            textBox3.Text = "";
 
             // �����w��̎��̂ݓ������͗L
             // �S�����Čv�Z
-            if (radioButton1.Checked)
+            if (radioButton7.Checked)
             {
-                // ���^�o��Čv�Z
-                CreatePayrollExpenses(false);
+                // �w�����ҋ��^�o��Čv�Z
+                if (!m_bInitFlg) CreateInstructorCosts(false);
             }
-            else if (radioButton2.Checked)
+            else if (radioButton8.Checked)
             {
-                // ���^�o��N���A
-                ClearPayrollExpenses();
+                // �w�����ҋ��^�o��N���A
+                if (!m_bInitFlg) ClearDetailLine((int)CostsRowLine.InstructorRowLine);
             }
-            else if (radioButton3.Checked)
+            else if (radioButton9.Checked)
             {
-                m_DspLabelCtrl[(int)DspLblCtrlName.SalaryDays].Enabled = true;
-                m_DspLabelCtrl[(int)DspLblCtrlName.SalaryDays].Focus();
+                textBox3.Enabled = true;
+                textBox3.Focus();
             }
 
             // �ύX�t���OON
@@ -1611,44 +1593,38 @@
         }
         #endregion
 
-        #region ���^�敪��������
+        #region ���S���ҐU�����t����
         /// <summary>
-        /// ���^�敪�����w��
+        /// ���S���ҐU�����t����
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void textBox_Validated(object sender, EventArgs e)
+        private void textBox2_Validated(object sender, EventArgs e)
         {
             try
             {
-                // �s�ʒu�擾
-                int RowCnt = m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine];
-                // �s�������ꍇ�͏������Ȃ�
-                if (RowCnt < 1) return;
+                // ���S���ҋ��^�v�Z
+                CreateAssistantCosts(false);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
 
-                int daycount = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.SalaryDays].Text);
-                // �S�����^
-                int monthSalary = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.CreatorCosts].Text);
-                double dmouthlySalary = monthSalary / CommonDefine.s_WorkingDaysOfMonth;
-
-                int TotalSalary = (daycount * CommonMotions.cnvRound(dmouthlySalary));
-
-                DataGridViewRow CurrentRow = dgvAllDisplay.Rows[RowCnt];
-                CurrentRow.Cells[(int)DispGridColumn.TextName].Value = MakePersonSalaryString();
-                // ���z�Z�b�g
-                CurrentRow.Cells[(int)DispGridColumn.HopePrice].Value = TotalSalary.ToString("#,0");
-                CurrentRow.Cells[(int)DispGridColumn.ExecPrice].Value = TotalSalary.ToString("#,0");
-                // �䗦�v�Z
-                CurrentRow.Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent(TotalSalary).ToString("0.00");
-
-                // �e���v�s�v�Z
-                CalculateGrossProfit();
-
-                // �����v�v�Z
-                CalculateNetIncome();
-
-                // ���v�v�Z
-                CalculateAllTotal();
+        #region �w�����U�����t����
+        /// <summary>
+        /// �w�����U�����t����
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void textBox3_Validated(object sender, EventArgs e)
+        {
+            try
+            {
+                // �w�������^�v�Z
+                CreateInstructorCosts(false);
             }
             catch (Exception ex)
             {
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.designer.cs	(revision 6)
@@ -45,23 +45,38 @@
             this.btnDataEntry = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
             this.panel1 = new System.Windows.Forms.Panel();
+            this.lblLabel06 = new System.Windows.Forms.Label();
+            this.label23 = new System.Windows.Forms.Label();
+            this.pnlGroup3 = new System.Windows.Forms.Panel();
+            this.label22 = new System.Windows.Forms.Label();
+            this.radioButton7 = new System.Windows.Forms.RadioButton();
+            this.textBox3 = new System.Windows.Forms.TextBox();
+            this.radioButton8 = new System.Windows.Forms.RadioButton();
+            this.radioButton9 = new System.Windows.Forms.RadioButton();
+            this.pnlGroup2 = new System.Windows.Forms.Panel();
             this.label9 = new System.Windows.Forms.Label();
-            this.panel3 = new System.Windows.Forms.Panel();
+            this.radioButton4 = new System.Windows.Forms.RadioButton();
+            this.textBox2 = new System.Windows.Forms.TextBox();
+            this.radioButton5 = new System.Windows.Forms.RadioButton();
+            this.radioButton6 = new System.Windows.Forms.RadioButton();
+            this.label10 = new System.Windows.Forms.Label();
+            this.label8 = new System.Windows.Forms.Label();
+            this.pnlGroup1 = new System.Windows.Forms.Panel();
             this.label14 = new System.Windows.Forms.Label();
+            this.radioButton1 = new System.Windows.Forms.RadioButton();
             this.textBox1 = new System.Windows.Forms.TextBox();
+            this.radioButton2 = new System.Windows.Forms.RadioButton();
             this.radioButton3 = new System.Windows.Forms.RadioButton();
-            this.radioButton2 = new System.Windows.Forms.RadioButton();
-            this.radioButton1 = new System.Windows.Forms.RadioButton();
-            this.button2 = new System.Windows.Forms.Button();
-            this.button1 = new System.Windows.Forms.Button();
-            this.label10 = new System.Windows.Forms.Label();
+            this.label11 = new System.Windows.Forms.Label();
+            this.label20 = new System.Windows.Forms.Label();
+            this.label19 = new System.Windows.Forms.Label();
+            this.label21 = new System.Windows.Forms.Label();
             this.label15 = new System.Windows.Forms.Label();
-            this.label11 = new System.Windows.Forms.Label();
-            this.label8 = new System.Windows.Forms.Label();
             this.pnlApproval = new System.Windows.Forms.Panel();
             this.lblApprovalCount = new System.Windows.Forms.Label();
             this.btnPetition = new System.Windows.Forms.Button();
             this.btnApproval = new System.Windows.Forms.Button();
+            this.label18 = new System.Windows.Forms.Label();
             this.pnlApprovalButton = new System.Windows.Forms.Panel();
             this.btnOnApproval = new System.Windows.Forms.Button();
             this.btnNotApproval = new System.Windows.Forms.Button();
@@ -68,7 +83,6 @@
             this.btnOnHold = new System.Windows.Forms.Button();
             this.label17 = new System.Windows.Forms.Label();
             this.label16 = new System.Windows.Forms.Label();
-            this.btnApprovalList = new System.Windows.Forms.Button();
             this.lblConstructionCodelabel = new System.Windows.Forms.Label();
             this.lblLabel01 = new System.Windows.Forms.Label();
             this.label3 = new System.Windows.Forms.Label();
@@ -80,6 +94,7 @@
             this.label6 = new System.Windows.Forms.Label();
             this.label12 = new System.Windows.Forms.Label();
             this.lblLabel04 = new System.Windows.Forms.Label();
+            this.btnApprovalList = new System.Windows.Forms.Button();
             this.label4 = new System.Windows.Forms.Label();
             this.label2 = new System.Windows.Forms.Label();
             this.btnLineDel = new System.Windows.Forms.Button();
@@ -106,14 +121,13 @@
             this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.lblCreatorCost = new System.Windows.Forms.Label();
             this.btnDispDown = new System.Windows.Forms.Button();
             this.btnDispUp = new System.Windows.Forms.Button();
-            this.lblInstructorCost = new System.Windows.Forms.Label();
-            this.lblInstructorTime = new System.Windows.Forms.Label();
             this.btnOtherProc = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
-            this.panel3.SuspendLayout();
+            this.pnlGroup3.SuspendLayout();
+            this.pnlGroup2.SuspendLayout();
+            this.pnlGroup1.SuspendLayout();
             this.pnlApproval.SuspendLayout();
             this.pnlApprovalButton.SuspendLayout();
             this.panel2.SuspendLayout();
@@ -181,19 +195,23 @@
             this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Top;
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
             this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.panel1.Controls.Add(this.label9);
-            this.panel1.Controls.Add(this.panel3);
-            this.panel1.Controls.Add(this.button2);
-            this.panel1.Controls.Add(this.button1);
+            this.panel1.Controls.Add(this.lblLabel06);
+            this.panel1.Controls.Add(this.label23);
+            this.panel1.Controls.Add(this.pnlGroup3);
+            this.panel1.Controls.Add(this.pnlGroup2);
             this.panel1.Controls.Add(this.label10);
+            this.panel1.Controls.Add(this.label8);
+            this.panel1.Controls.Add(this.pnlGroup1);
+            this.panel1.Controls.Add(this.label11);
+            this.panel1.Controls.Add(this.label20);
+            this.panel1.Controls.Add(this.label19);
+            this.panel1.Controls.Add(this.label21);
             this.panel1.Controls.Add(this.label15);
-            this.panel1.Controls.Add(this.label11);
-            this.panel1.Controls.Add(this.label8);
             this.panel1.Controls.Add(this.pnlApproval);
+            this.panel1.Controls.Add(this.label18);
             this.panel1.Controls.Add(this.pnlApprovalButton);
             this.panel1.Controls.Add(this.label17);
             this.panel1.Controls.Add(this.label16);
-            this.panel1.Controls.Add(this.btnApprovalList);
             this.panel1.Controls.Add(this.lblConstructionCodelabel);
             this.panel1.Controls.Add(this.lblLabel01);
             this.panel1.Controls.Add(this.label3);
@@ -207,159 +225,336 @@
             this.panel1.Controls.Add(this.lblLabel04);
             this.panel1.Location = new System.Drawing.Point(7, 40);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(1290, 143);
+            this.panel1.Size = new System.Drawing.Size(1330, 160);
             this.panel1.TabIndex = 0;
             // 
+            // lblLabel06
+            // 
+            this.lblLabel06.BackColor = System.Drawing.Color.White;
+            this.lblLabel06.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblLabel06.ForeColor = System.Drawing.Color.Black;
+            this.lblLabel06.Location = new System.Drawing.Point(127, 35);
+            this.lblLabel06.Name = "lblLabel06";
+            this.lblLabel06.Size = new System.Drawing.Size(820, 25);
+            this.lblLabel06.TabIndex = 64;
+            this.lblLabel06.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // label23
+            // 
+            this.label23.BackColor = System.Drawing.Color.SandyBrown;
+            this.label23.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label23.Location = new System.Drawing.Point(5, 35);
+            this.label23.Name = "label23";
+            this.label23.Size = new System.Drawing.Size(114, 25);
+            this.label23.TabIndex = 63;
+            this.label23.Text = "発注者名称";
+            this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // pnlGroup3
+            // 
+            this.pnlGroup3.BackColor = System.Drawing.Color.MistyRose;
+            this.pnlGroup3.Controls.Add(this.label22);
+            this.pnlGroup3.Controls.Add(this.radioButton7);
+            this.pnlGroup3.Controls.Add(this.textBox3);
+            this.pnlGroup3.Controls.Add(this.radioButton8);
+            this.pnlGroup3.Controls.Add(this.radioButton9);
+            this.pnlGroup3.Location = new System.Drawing.Point(959, 122);
+            this.pnlGroup3.Name = "pnlGroup3";
+            this.pnlGroup3.Size = new System.Drawing.Size(360, 30);
+            this.pnlGroup3.TabIndex = 62;
+            // 
+            // label22
+            // 
+            this.label22.AutoSize = true;
+            this.label22.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label22.Location = new System.Drawing.Point(328, 7);
+            this.label22.Name = "label22";
+            this.label22.Size = new System.Drawing.Size(25, 16);
+            this.label22.TabIndex = 15;
+            this.label22.Text = "日";
+            // 
+            // radioButton7
+            // 
+            this.radioButton7.AutoSize = true;
+            this.radioButton7.Checked = true;
+            this.radioButton7.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton7.Location = new System.Drawing.Point(7, 5);
+            this.radioButton7.Name = "radioButton7";
+            this.radioButton7.Size = new System.Drawing.Size(94, 20);
+            this.radioButton7.TabIndex = 6;
+            this.radioButton7.TabStop = true;
+            this.radioButton7.Text = "全日振分";
+            this.radioButton7.UseVisualStyleBackColor = true;
+            this.radioButton7.CheckedChanged += new System.EventHandler(this.Grp3radioButton_CheckedChanged);
+            // 
+            // textBox3
+            // 
+            this.textBox3.BackColor = System.Drawing.Color.White;
+            this.textBox3.Enabled = false;
+            this.textBox3.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.textBox3.Location = new System.Drawing.Point(272, 4);
+            this.textBox3.MaxLength = 6;
+            this.textBox3.Name = "textBox3";
+            this.textBox3.Size = new System.Drawing.Size(56, 23);
+            this.textBox3.TabIndex = 13;
+            this.textBox3.TabStop = false;
+            this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            this.textBox3.Validated += new System.EventHandler(this.textBox3_Validated);
+            // 
+            // radioButton8
+            // 
+            this.radioButton8.AutoSize = true;
+            this.radioButton8.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton8.Location = new System.Drawing.Point(101, 5);
+            this.radioButton8.Name = "radioButton8";
+            this.radioButton8.Size = new System.Drawing.Size(77, 20);
+            this.radioButton8.TabIndex = 7;
+            this.radioButton8.Text = "未振分";
+            this.radioButton8.UseVisualStyleBackColor = true;
+            this.radioButton8.CheckedChanged += new System.EventHandler(this.Grp3radioButton_CheckedChanged);
+            // 
+            // radioButton9
+            // 
+            this.radioButton9.AutoSize = true;
+            this.radioButton9.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton9.Location = new System.Drawing.Point(178, 5);
+            this.radioButton9.Name = "radioButton9";
+            this.radioButton9.Size = new System.Drawing.Size(94, 20);
+            this.radioButton9.TabIndex = 14;
+            this.radioButton9.Text = "日数指定";
+            this.radioButton9.UseVisualStyleBackColor = true;
+            this.radioButton9.CheckedChanged += new System.EventHandler(this.Grp3radioButton_CheckedChanged);
+            // 
+            // pnlGroup2
+            // 
+            this.pnlGroup2.BackColor = System.Drawing.Color.Beige;
+            this.pnlGroup2.Controls.Add(this.label9);
+            this.pnlGroup2.Controls.Add(this.radioButton4);
+            this.pnlGroup2.Controls.Add(this.textBox2);
+            this.pnlGroup2.Controls.Add(this.radioButton5);
+            this.pnlGroup2.Controls.Add(this.radioButton6);
+            this.pnlGroup2.Location = new System.Drawing.Point(959, 92);
+            this.pnlGroup2.Name = "pnlGroup2";
+            this.pnlGroup2.Size = new System.Drawing.Size(360, 30);
+            this.pnlGroup2.TabIndex = 61;
+            // 
             // label9
             // 
-            this.label9.BackColor = System.Drawing.Color.Yellow;
-            this.label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label9.ForeColor = System.Drawing.Color.Black;
-            this.label9.Location = new System.Drawing.Point(375, 104);
+            this.label9.AutoSize = true;
+            this.label9.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label9.Location = new System.Drawing.Point(328, 7);
             this.label9.Name = "label9";
-            this.label9.Size = new System.Drawing.Size(114, 25);
-            this.label9.TabIndex = 52;
-            this.label9.Text = "給与振分";
-            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.label9.Size = new System.Drawing.Size(25, 16);
+            this.label9.TabIndex = 12;
+            this.label9.Text = "日";
             // 
-            // panel3
+            // radioButton4
             // 
-            this.panel3.BackColor = System.Drawing.Color.Yellow;
-            this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.panel3.Controls.Add(this.label14);
-            this.panel3.Controls.Add(this.textBox1);
-            this.panel3.Controls.Add(this.radioButton3);
-            this.panel3.Controls.Add(this.radioButton2);
-            this.panel3.Controls.Add(this.radioButton1);
-            this.panel3.Location = new System.Drawing.Point(497, 99);
-            this.panel3.Name = "panel3";
-            this.panel3.Size = new System.Drawing.Size(370, 34);
-            this.panel3.TabIndex = 51;
+            this.radioButton4.AutoSize = true;
+            this.radioButton4.Checked = true;
+            this.radioButton4.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton4.Location = new System.Drawing.Point(7, 5);
+            this.radioButton4.Name = "radioButton4";
+            this.radioButton4.Size = new System.Drawing.Size(94, 20);
+            this.radioButton4.TabIndex = 6;
+            this.radioButton4.TabStop = true;
+            this.radioButton4.Text = "全日振分";
+            this.radioButton4.UseVisualStyleBackColor = true;
+            this.radioButton4.CheckedChanged += new System.EventHandler(this.Grp2radioButton_CheckedChanged);
             // 
+            // textBox2
+            // 
+            this.textBox2.BackColor = System.Drawing.Color.White;
+            this.textBox2.Enabled = false;
+            this.textBox2.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.textBox2.Location = new System.Drawing.Point(272, 4);
+            this.textBox2.MaxLength = 6;
+            this.textBox2.Name = "textBox2";
+            this.textBox2.Size = new System.Drawing.Size(56, 23);
+            this.textBox2.TabIndex = 10;
+            this.textBox2.TabStop = false;
+            this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            this.textBox2.Validated += new System.EventHandler(this.textBox2_Validated);
+            // 
+            // radioButton5
+            // 
+            this.radioButton5.AutoSize = true;
+            this.radioButton5.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton5.Location = new System.Drawing.Point(101, 5);
+            this.radioButton5.Name = "radioButton5";
+            this.radioButton5.Size = new System.Drawing.Size(77, 20);
+            this.radioButton5.TabIndex = 7;
+            this.radioButton5.Text = "未振分";
+            this.radioButton5.UseVisualStyleBackColor = true;
+            this.radioButton5.CheckedChanged += new System.EventHandler(this.Grp2radioButton_CheckedChanged);
+            // 
+            // radioButton6
+            // 
+            this.radioButton6.AutoSize = true;
+            this.radioButton6.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton6.Location = new System.Drawing.Point(178, 5);
+            this.radioButton6.Name = "radioButton6";
+            this.radioButton6.Size = new System.Drawing.Size(94, 20);
+            this.radioButton6.TabIndex = 11;
+            this.radioButton6.Text = "日数指定";
+            this.radioButton6.UseVisualStyleBackColor = true;
+            this.radioButton6.CheckedChanged += new System.EventHandler(this.Grp2radioButton_CheckedChanged);
+            // 
+            // label10
+            // 
+            this.label10.BackColor = System.Drawing.Color.SandyBrown;
+            this.label10.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label10.Location = new System.Drawing.Point(5, 125);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(96, 25);
+            this.label10.TabIndex = 35;
+            this.label10.Text = "工　期";
+            this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label8
+            // 
+            this.label8.BackColor = System.Drawing.Color.White;
+            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label8.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.label8.ForeColor = System.Drawing.Color.Black;
+            this.label8.Location = new System.Drawing.Point(319, 125);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(120, 25);
+            this.label8.TabIndex = 36;
+            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // pnlGroup1
+            // 
+            this.pnlGroup1.BackColor = System.Drawing.Color.MediumAquamarine;
+            this.pnlGroup1.Controls.Add(this.label14);
+            this.pnlGroup1.Controls.Add(this.radioButton1);
+            this.pnlGroup1.Controls.Add(this.textBox1);
+            this.pnlGroup1.Controls.Add(this.radioButton2);
+            this.pnlGroup1.Controls.Add(this.radioButton3);
+            this.pnlGroup1.Location = new System.Drawing.Point(959, 62);
+            this.pnlGroup1.Name = "pnlGroup1";
+            this.pnlGroup1.Size = new System.Drawing.Size(360, 30);
+            this.pnlGroup1.TabIndex = 60;
+            // 
             // label14
             // 
             this.label14.AutoSize = true;
-            this.label14.Location = new System.Drawing.Point(343, 8);
+            this.label14.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label14.Location = new System.Drawing.Point(328, 7);
             this.label14.Name = "label14";
             this.label14.Size = new System.Drawing.Size(25, 16);
-            this.label14.TabIndex = 4;
+            this.label14.TabIndex = 9;
             this.label14.Text = "日";
             // 
+            // radioButton1
+            // 
+            this.radioButton1.AutoSize = true;
+            this.radioButton1.Checked = true;
+            this.radioButton1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton1.Location = new System.Drawing.Point(7, 5);
+            this.radioButton1.Name = "radioButton1";
+            this.radioButton1.Size = new System.Drawing.Size(94, 20);
+            this.radioButton1.TabIndex = 6;
+            this.radioButton1.TabStop = true;
+            this.radioButton1.Text = "全日振分";
+            this.radioButton1.UseVisualStyleBackColor = true;
+            this.radioButton1.CheckedChanged += new System.EventHandler(this.Grp1radioButton_CheckedChanged);
+            // 
             // textBox1
             // 
+            this.textBox1.BackColor = System.Drawing.Color.White;
             this.textBox1.Enabled = false;
-            this.textBox1.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.textBox1.Location = new System.Drawing.Point(287, 3);
+            this.textBox1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.textBox1.Location = new System.Drawing.Point(272, 4);
             this.textBox1.MaxLength = 6;
             this.textBox1.Name = "textBox1";
-            this.textBox1.Size = new System.Drawing.Size(56, 26);
-            this.textBox1.TabIndex = 0;
+            this.textBox1.Size = new System.Drawing.Size(56, 23);
+            this.textBox1.TabIndex = 5;
+            this.textBox1.TabStop = false;
             this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
             this.textBox1.Validated += new System.EventHandler(this.textBox_Validated);
             // 
+            // radioButton2
+            // 
+            this.radioButton2.AutoSize = true;
+            this.radioButton2.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton2.Location = new System.Drawing.Point(101, 5);
+            this.radioButton2.Name = "radioButton2";
+            this.radioButton2.Size = new System.Drawing.Size(77, 20);
+            this.radioButton2.TabIndex = 7;
+            this.radioButton2.Text = "未振分";
+            this.radioButton2.UseVisualStyleBackColor = true;
+            this.radioButton2.CheckedChanged += new System.EventHandler(this.Grp1radioButton_CheckedChanged);
+            // 
             // radioButton3
             // 
             this.radioButton3.AutoSize = true;
-            this.radioButton3.Location = new System.Drawing.Point(193, 6);
+            this.radioButton3.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton3.Location = new System.Drawing.Point(178, 5);
             this.radioButton3.Name = "radioButton3";
             this.radioButton3.Size = new System.Drawing.Size(94, 20);
-            this.radioButton3.TabIndex = 2;
+            this.radioButton3.TabIndex = 8;
             this.radioButton3.Text = "日数指定";
             this.radioButton3.UseVisualStyleBackColor = true;
-            this.radioButton3.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
+            this.radioButton3.CheckedChanged += new System.EventHandler(this.Grp1radioButton_CheckedChanged);
             // 
-            // radioButton2
+            // label11
             // 
-            this.radioButton2.AutoSize = true;
-            this.radioButton2.Location = new System.Drawing.Point(108, 6);
-            this.radioButton2.Name = "radioButton2";
-            this.radioButton2.Size = new System.Drawing.Size(77, 20);
-            this.radioButton2.TabIndex = 1;
-            this.radioButton2.Text = "未振分";
-            this.radioButton2.UseVisualStyleBackColor = true;
-            this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
+            this.label11.BackColor = System.Drawing.Color.White;
+            this.label11.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label11.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.label11.ForeColor = System.Drawing.Color.Black;
+            this.label11.Location = new System.Drawing.Point(537, 125);
+            this.label11.Name = "label11";
+            this.label11.Size = new System.Drawing.Size(120, 25);
+            this.label11.TabIndex = 36;
+            this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // radioButton1
+            // label20
             // 
-            this.radioButton1.AutoSize = true;
-            this.radioButton1.Checked = true;
-            this.radioButton1.Location = new System.Drawing.Point(6, 6);
-            this.radioButton1.Name = "radioButton1";
-            this.radioButton1.Size = new System.Drawing.Size(94, 20);
-            this.radioButton1.TabIndex = 0;
-            this.radioButton1.TabStop = true;
-            this.radioButton1.Text = "全日振分";
-            this.radioButton1.UseVisualStyleBackColor = true;
-            this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
+            this.label20.BackColor = System.Drawing.Color.Beige;
+            this.label20.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label20.Location = new System.Drawing.Point(665, 95);
+            this.label20.Name = "label20";
+            this.label20.Size = new System.Drawing.Size(114, 25);
+            this.label20.TabIndex = 55;
+            this.label20.Text = "副担当者";
+            this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // button2
+            // label19
             // 
-            this.button2.BackColor = System.Drawing.Color.SandyBrown;
-            this.button2.Location = new System.Drawing.Point(861, 71);
-            this.button2.Name = "button2";
-            this.button2.Size = new System.Drawing.Size(114, 25);
-            this.button2.TabIndex = 50;
-            this.button2.TabStop = false;
-            this.button2.Text = "完　了　日";
-            this.button2.UseVisualStyleBackColor = false;
-            this.button2.Click += new System.EventHandler(this.button2_Click);
+            this.label19.BackColor = System.Drawing.Color.SandyBrown;
+            this.label19.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label19.Location = new System.Drawing.Point(441, 125);
+            this.label19.Name = "label19";
+            this.label19.Size = new System.Drawing.Size(96, 25);
+            this.label19.TabIndex = 54;
+            this.label19.Text = "完 了 日";
+            this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // button1
+            // label21
             // 
-            this.button1.BackColor = System.Drawing.Color.SandyBrown;
-            this.button1.Location = new System.Drawing.Point(613, 71);
-            this.button1.Name = "button1";
-            this.button1.Size = new System.Drawing.Size(114, 25);
-            this.button1.TabIndex = 50;
-            this.button1.TabStop = false;
-            this.button1.Text = "着　工　日";
-            this.button1.UseVisualStyleBackColor = false;
-            this.button1.Click += new System.EventHandler(this.button1_Click);
+            this.label21.BackColor = System.Drawing.Color.White;
+            this.label21.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label21.ForeColor = System.Drawing.Color.Black;
+            this.label21.Location = new System.Drawing.Point(787, 95);
+            this.label21.Name = "label21";
+            this.label21.Size = new System.Drawing.Size(160, 25);
+            this.label21.TabIndex = 56;
+            this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
-            // label10
-            // 
-            this.label10.BackColor = System.Drawing.Color.SandyBrown;
-            this.label10.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label10.Location = new System.Drawing.Point(375, 71);
-            this.label10.Name = "label10";
-            this.label10.Size = new System.Drawing.Size(114, 25);
-            this.label10.TabIndex = 35;
-            this.label10.Text = "工　　期";
-            this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // label15
             // 
             this.label15.BackColor = System.Drawing.Color.White;
             this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label15.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.label15.ForeColor = System.Drawing.Color.Black;
-            this.label15.Location = new System.Drawing.Point(497, 71);
+            this.label15.Location = new System.Drawing.Point(101, 125);
             this.label15.Name = "label15";
-            this.label15.Size = new System.Drawing.Size(100, 25);
+            this.label15.Size = new System.Drawing.Size(120, 25);
             this.label15.TabIndex = 36;
             this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // label11
-            // 
-            this.label11.BackColor = System.Drawing.Color.White;
-            this.label11.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label11.ForeColor = System.Drawing.Color.Black;
-            this.label11.Location = new System.Drawing.Point(983, 71);
-            this.label11.Name = "label11";
-            this.label11.Size = new System.Drawing.Size(114, 25);
-            this.label11.TabIndex = 36;
-            this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label8
-            // 
-            this.label8.BackColor = System.Drawing.Color.White;
-            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label8.ForeColor = System.Drawing.Color.Black;
-            this.label8.Location = new System.Drawing.Point(735, 71);
-            this.label8.Name = "label8";
-            this.label8.Size = new System.Drawing.Size(114, 25);
-            this.label8.TabIndex = 36;
-            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // pnlApproval
             // 
             this.pnlApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -369,7 +564,7 @@
             this.pnlApproval.Controls.Add(this.lblApprovalCount);
             this.pnlApproval.Controls.Add(this.btnPetition);
             this.pnlApproval.Controls.Add(this.btnApproval);
-            this.pnlApproval.Location = new System.Drawing.Point(1013, 99);
+            this.pnlApproval.Location = new System.Drawing.Point(1057, 0);
             this.pnlApproval.Name = "pnlApproval";
             this.pnlApproval.Size = new System.Drawing.Size(262, 34);
             this.pnlApproval.TabIndex = 48;
@@ -415,6 +610,17 @@
             this.btnApproval.UseVisualStyleBackColor = false;
             this.btnApproval.Click += new System.EventHandler(this.btnApproval_Click);
             // 
+            // label18
+            // 
+            this.label18.BackColor = System.Drawing.Color.SandyBrown;
+            this.label18.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label18.Location = new System.Drawing.Point(223, 125);
+            this.label18.Name = "label18";
+            this.label18.Size = new System.Drawing.Size(96, 25);
+            this.label18.TabIndex = 53;
+            this.label18.Text = "着 工 日";
+            this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // pnlApprovalButton
             // 
             this.pnlApprovalButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -424,7 +630,7 @@
             this.pnlApprovalButton.Controls.Add(this.btnOnApproval);
             this.pnlApprovalButton.Controls.Add(this.btnNotApproval);
             this.pnlApprovalButton.Controls.Add(this.btnOnHold);
-            this.pnlApprovalButton.Location = new System.Drawing.Point(1013, 99);
+            this.pnlApprovalButton.Location = new System.Drawing.Point(1057, 0);
             this.pnlApprovalButton.Name = "pnlApprovalButton";
             this.pnlApprovalButton.Size = new System.Drawing.Size(262, 34);
             this.pnlApprovalButton.TabIndex = 49;
@@ -470,10 +676,11 @@
             // 
             this.label17.BackColor = System.Drawing.Color.White;
             this.label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label17.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label17.ForeColor = System.Drawing.Color.Black;
-            this.label17.Location = new System.Drawing.Point(127, 71);
+            this.label17.Location = new System.Drawing.Point(427, 95);
             this.label17.Name = "label17";
-            this.label17.Size = new System.Drawing.Size(240, 25);
+            this.label17.Size = new System.Drawing.Size(230, 25);
             this.label17.TabIndex = 47;
             this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
@@ -481,7 +688,7 @@
             // 
             this.label16.BackColor = System.Drawing.Color.SandyBrown;
             this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label16.Location = new System.Drawing.Point(5, 71);
+            this.label16.Location = new System.Drawing.Point(305, 95);
             this.label16.Name = "label16";
             this.label16.Size = new System.Drawing.Size(114, 25);
             this.label16.TabIndex = 46;
@@ -488,20 +695,6 @@
             this.label16.Text = "工事種別";
             this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // btnApprovalList
-            // 
-            this.btnApprovalList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnApprovalList.BackColor = System.Drawing.Color.Gold;
-            this.btnApprovalList.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnApprovalList.ForeColor = System.Drawing.Color.Black;
-            this.btnApprovalList.Location = new System.Drawing.Point(1105, 71);
-            this.btnApprovalList.Name = "btnApprovalList";
-            this.btnApprovalList.Size = new System.Drawing.Size(170, 25);
-            this.btnApprovalList.TabIndex = 45;
-            this.btnApprovalList.Text = "申請状況確認";
-            this.btnApprovalList.UseVisualStyleBackColor = false;
-            this.btnApprovalList.Click += new System.EventHandler(this.btnApprovalList_Click);
-            // 
             // lblConstructionCodelabel
             // 
             this.lblConstructionCodelabel.BackColor = System.Drawing.Color.SandyBrown;
@@ -518,11 +711,13 @@
             // 
             this.lblLabel01.BackColor = System.Drawing.Color.White;
             this.lblLabel01.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblLabel01.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.lblLabel01.ForeColor = System.Drawing.Color.Black;
             this.lblLabel01.Location = new System.Drawing.Point(127, 5);
             this.lblLabel01.Name = "lblLabel01";
-            this.lblLabel01.Size = new System.Drawing.Size(115, 25);
+            this.lblLabel01.Size = new System.Drawing.Size(110, 25);
             this.lblLabel01.TabIndex = 31;
+            this.lblLabel01.Text = "00000000-00";
             this.lblLabel01.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             // 
             // label3
@@ -529,7 +724,7 @@
             // 
             this.label3.BackColor = System.Drawing.Color.SandyBrown;
             this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label3.Location = new System.Drawing.Point(5, 38);
+            this.label3.Location = new System.Drawing.Point(5, 65);
             this.label3.Name = "label3";
             this.label3.Size = new System.Drawing.Size(114, 25);
             this.label3.TabIndex = 33;
@@ -541,9 +736,9 @@
             this.lblLabel03.BackColor = System.Drawing.Color.White;
             this.lblLabel03.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel03.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel03.Location = new System.Drawing.Point(127, 38);
+            this.lblLabel03.Location = new System.Drawing.Point(127, 65);
             this.lblLabel03.Name = "lblLabel03";
-            this.lblLabel03.Size = new System.Drawing.Size(470, 25);
+            this.lblLabel03.Size = new System.Drawing.Size(530, 25);
             this.lblLabel03.TabIndex = 34;
             this.lblLabel03.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
@@ -552,9 +747,9 @@
             this.lblLabel02.BackColor = System.Drawing.Color.White;
             this.lblLabel02.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel02.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel02.Location = new System.Drawing.Point(250, 5);
+            this.lblLabel02.Location = new System.Drawing.Point(245, 5);
             this.lblLabel02.Name = "lblLabel02";
-            this.lblLabel02.Size = new System.Drawing.Size(1025, 25);
+            this.lblLabel02.Size = new System.Drawing.Size(702, 25);
             this.lblLabel02.TabIndex = 32;
             this.lblLabel02.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
@@ -562,7 +757,7 @@
             // 
             this.label7.BackColor = System.Drawing.Color.SandyBrown;
             this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label7.Location = new System.Drawing.Point(5, 104);
+            this.label7.Location = new System.Drawing.Point(5, 95);
             this.label7.Name = "label7";
             this.label7.Size = new System.Drawing.Size(114, 25);
             this.label7.TabIndex = 35;
@@ -571,20 +766,20 @@
             // 
             // label13
             // 
-            this.label13.BackColor = System.Drawing.Color.SandyBrown;
+            this.label13.BackColor = System.Drawing.Color.MistyRose;
             this.label13.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label13.Location = new System.Drawing.Point(983, 38);
+            this.label13.Location = new System.Drawing.Point(665, 125);
             this.label13.Name = "label13";
             this.label13.Size = new System.Drawing.Size(114, 25);
             this.label13.TabIndex = 35;
-            this.label13.Text = "担当指導員";
+            this.label13.Text = "工事指導員";
             this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label5
             // 
-            this.label5.BackColor = System.Drawing.Color.SandyBrown;
+            this.label5.BackColor = System.Drawing.Color.MediumAquamarine;
             this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label5.Location = new System.Drawing.Point(613, 38);
+            this.label5.Location = new System.Drawing.Point(665, 65);
             this.label5.Name = "label5";
             this.label5.Size = new System.Drawing.Size(114, 25);
             this.label5.TabIndex = 35;
@@ -595,8 +790,9 @@
             // 
             this.label6.BackColor = System.Drawing.Color.White;
             this.label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label6.Font = new System.Drawing.Font("MS UI Gothic", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label6.ForeColor = System.Drawing.Color.Black;
-            this.label6.Location = new System.Drawing.Point(127, 104);
+            this.label6.Location = new System.Drawing.Point(127, 95);
             this.label6.Name = "label6";
             this.label6.Size = new System.Drawing.Size(170, 25);
             this.label6.TabIndex = 36;
@@ -607,9 +803,9 @@
             this.label12.BackColor = System.Drawing.Color.White;
             this.label12.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label12.ForeColor = System.Drawing.Color.Black;
-            this.label12.Location = new System.Drawing.Point(1105, 38);
+            this.label12.Location = new System.Drawing.Point(787, 125);
             this.label12.Name = "label12";
-            this.label12.Size = new System.Drawing.Size(170, 25);
+            this.label12.Size = new System.Drawing.Size(160, 25);
             this.label12.TabIndex = 36;
             this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
@@ -618,17 +814,30 @@
             this.lblLabel04.BackColor = System.Drawing.Color.White;
             this.lblLabel04.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel04.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel04.Location = new System.Drawing.Point(735, 38);
+            this.lblLabel04.Location = new System.Drawing.Point(787, 65);
             this.lblLabel04.Name = "lblLabel04";
-            this.lblLabel04.Size = new System.Drawing.Size(170, 25);
+            this.lblLabel04.Size = new System.Drawing.Size(160, 25);
             this.lblLabel04.TabIndex = 36;
             this.lblLabel04.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
+            // btnApprovalList
+            // 
+            this.btnApprovalList.BackColor = System.Drawing.Color.Gold;
+            this.btnApprovalList.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnApprovalList.ForeColor = System.Drawing.Color.Black;
+            this.btnApprovalList.Location = new System.Drawing.Point(7, 9);
+            this.btnApprovalList.Name = "btnApprovalList";
+            this.btnApprovalList.Size = new System.Drawing.Size(150, 25);
+            this.btnApprovalList.TabIndex = 45;
+            this.btnApprovalList.Text = "申請状況確認";
+            this.btnApprovalList.UseVisualStyleBackColor = false;
+            this.btnApprovalList.Click += new System.EventHandler(this.btnApprovalList_Click);
+            // 
             // label4
             // 
             this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label4.ForeColor = System.Drawing.Color.White;
-            this.label4.Location = new System.Drawing.Point(1063, 8);
+            this.label4.Location = new System.Drawing.Point(1103, 8);
             this.label4.Name = "label4";
             this.label4.Size = new System.Drawing.Size(114, 25);
             this.label4.TabIndex = 35;
@@ -641,7 +850,7 @@
             this.label2.BackColor = System.Drawing.Color.White;
             this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label2.ForeColor = System.Drawing.Color.Black;
-            this.label2.Location = new System.Drawing.Point(1177, 8);
+            this.label2.Location = new System.Drawing.Point(1217, 8);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(120, 25);
             this.label2.TabIndex = 36;
@@ -683,9 +892,9 @@
             this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
             this.panel2.Controls.Add(this.lblCellTotal);
             this.panel2.Controls.Add(this.dgvAllDisplay);
-            this.panel2.Location = new System.Drawing.Point(7, 187);
+            this.panel2.Location = new System.Drawing.Point(7, 204);
             this.panel2.Name = "panel2";
-            this.panel2.Size = new System.Drawing.Size(1290, 463);
+            this.panel2.Size = new System.Drawing.Size(1290, 446);
             this.panel2.TabIndex = 0;
             // 
             // lblCellTotal
@@ -693,9 +902,9 @@
             this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
             this.lblCellTotal.AutoSize = true;
             this.lblCellTotal.BackColor = System.Drawing.Color.WhiteSmoke;
-            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.lblCellTotal.ForeColor = System.Drawing.Color.Black;
-            this.lblCellTotal.Location = new System.Drawing.Point(100, 443);
+            this.lblCellTotal.Location = new System.Drawing.Point(100, 426);
             this.lblCellTotal.Name = "lblCellTotal";
             this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
             this.lblCellTotal.TabIndex = 36;
@@ -747,7 +956,7 @@
             this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
             this.dgvAllDisplay.RowTemplate.Height = 21;
             this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dgvAllDisplay.Size = new System.Drawing.Size(1278, 433);
+            this.dgvAllDisplay.Size = new System.Drawing.Size(1278, 416);
             this.dgvAllDisplay.TabIndex = 1;
             this.dgvAllDisplay.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick);
             this.dgvAllDisplay.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
@@ -864,6 +1073,7 @@
             // 
             dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
             dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             dataGridViewCellStyle5.Format = "N0";
             dataGridViewCellStyle5.NullValue = null;
             this.Column7.DefaultCellStyle = dataGridViewCellStyle5;
@@ -878,6 +1088,7 @@
             // 
             dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
             dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            dataGridViewCellStyle6.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.Column8.DefaultCellStyle = dataGridViewCellStyle6;
             this.Column8.HeaderText = "積算時交渉金額";
             this.Column8.Name = "Column8";
@@ -890,6 +1101,7 @@
             // 
             dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
             dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            dataGridViewCellStyle7.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.Column11.DefaultCellStyle = dataGridViewCellStyle7;
             this.Column11.HeaderText = "発注希望金額＊担当者記入";
             this.Column11.Name = "Column11";
@@ -911,6 +1123,7 @@
             // 
             dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
             dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
+            dataGridViewCellStyle9.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.Column12.DefaultCellStyle = dataGridViewCellStyle9;
             this.Column12.HeaderText = "実行金額";
             this.Column12.Name = "Column12";
@@ -921,6 +1134,7 @@
             // Column9
             // 
             dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle10.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.Column9.DefaultCellStyle = dataGridViewCellStyle10;
             this.Column9.HeaderText = "比率(％)";
             this.Column9.Name = "Column9";
@@ -955,15 +1169,6 @@
             this.Column17.Visible = false;
             this.Column17.Width = 5;
             // 
-            // lblCreatorCost
-            // 
-            this.lblCreatorCost.BackColor = System.Drawing.Color.White;
-            this.lblCreatorCost.Location = new System.Drawing.Point(12, 5);
-            this.lblCreatorCost.Name = "lblCreatorCost";
-            this.lblCreatorCost.Size = new System.Drawing.Size(32, 25);
-            this.lblCreatorCost.TabIndex = 40;
-            this.lblCreatorCost.Visible = false;
-            // 
             // btnDispDown
             // 
             this.btnDispDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -992,24 +1197,6 @@
             this.btnDispUp.Visible = false;
             this.btnDispUp.Click += new System.EventHandler(this.btnDispUp_Click);
             // 
-            // lblInstructorCost
-            // 
-            this.lblInstructorCost.BackColor = System.Drawing.Color.White;
-            this.lblInstructorCost.Location = new System.Drawing.Point(50, 5);
-            this.lblInstructorCost.Name = "lblInstructorCost";
-            this.lblInstructorCost.Size = new System.Drawing.Size(32, 25);
-            this.lblInstructorCost.TabIndex = 43;
-            this.lblInstructorCost.Visible = false;
-            // 
-            // lblInstructorTime
-            // 
-            this.lblInstructorTime.BackColor = System.Drawing.Color.White;
-            this.lblInstructorTime.Location = new System.Drawing.Point(87, 5);
-            this.lblInstructorTime.Name = "lblInstructorTime";
-            this.lblInstructorTime.Size = new System.Drawing.Size(32, 25);
-            this.lblInstructorTime.TabIndex = 43;
-            this.lblInstructorTime.Visible = false;
-            // 
             // btnOtherProc
             // 
             this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
@@ -1030,11 +1217,8 @@
             this.BackColor = System.Drawing.Color.Black;
             this.ClientSize = new System.Drawing.Size(1344, 692);
             this.Controls.Add(this.btnOtherProc);
-            this.Controls.Add(this.lblInstructorTime);
-            this.Controls.Add(this.lblInstructorCost);
             this.Controls.Add(this.btnDispDown);
             this.Controls.Add(this.btnDispUp);
-            this.Controls.Add(this.lblCreatorCost);
             this.Controls.Add(this.label4);
             this.Controls.Add(this.panel2);
             this.Controls.Add(this.btnLineDel);
@@ -1042,6 +1226,7 @@
             this.Controls.Add(this.panel1);
             this.Controls.Add(this.btnDataDelete);
             this.Controls.Add(this.btnDataEntry);
+            this.Controls.Add(this.btnApprovalList);
             this.Controls.Add(this.btnEnd);
             this.Controls.Add(this.label1);
             this.Controls.Add(this.label2);
@@ -1058,8 +1243,12 @@
             this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmConstructionBudget_KeyDown);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
-            this.panel3.ResumeLayout(false);
-            this.panel3.PerformLayout();
+            this.pnlGroup3.ResumeLayout(false);
+            this.pnlGroup3.PerformLayout();
+            this.pnlGroup2.ResumeLayout(false);
+            this.pnlGroup2.PerformLayout();
+            this.pnlGroup1.ResumeLayout(false);
+            this.pnlGroup1.PerformLayout();
             this.pnlApproval.ResumeLayout(false);
             this.pnlApprovalButton.ResumeLayout(false);
             this.panel2.ResumeLayout(false);
@@ -1094,15 +1283,12 @@
         private System.Windows.Forms.Panel panel2;
         private System.Windows.Forms.Label lblCellTotal;
         private DataGridViewEX dgvAllDisplay;
-        private System.Windows.Forms.Label lblCreatorCost;
         private System.Windows.Forms.Button btnApprovalList;
         private System.Windows.Forms.Label label13;
         private System.Windows.Forms.Label label12;
         private System.Windows.Forms.Button btnDispDown;
         private System.Windows.Forms.Button btnDispUp;
-        private System.Windows.Forms.Label lblInstructorCost;
         private System.Windows.Forms.Label label15;
-        private System.Windows.Forms.Label lblInstructorTime;
         private System.Windows.Forms.Label label16;
         private System.Windows.Forms.Label label10;
         private System.Windows.Forms.Label label17;
@@ -1115,15 +1301,19 @@
         private System.Windows.Forms.Button btnOnApproval;
         private System.Windows.Forms.Button btnNotApproval;
         private System.Windows.Forms.Button btnOnHold;
-        private System.Windows.Forms.Button button2;
-        private System.Windows.Forms.Button button1;
-        private System.Windows.Forms.Label label9;
-        private System.Windows.Forms.Panel panel3;
+        private System.Windows.Forms.Label label20;
+        private System.Windows.Forms.Label label21;
+        private System.Windows.Forms.Label label19;
+        private System.Windows.Forms.Label label18;
+        private System.Windows.Forms.Label label14;
         private System.Windows.Forms.TextBox textBox1;
         private System.Windows.Forms.RadioButton radioButton3;
         private System.Windows.Forms.RadioButton radioButton2;
         private System.Windows.Forms.RadioButton radioButton1;
-        private System.Windows.Forms.Label label14;
+        private System.Windows.Forms.RadioButton radioButton8;
+        private System.Windows.Forms.RadioButton radioButton7;
+        private System.Windows.Forms.RadioButton radioButton5;
+        private System.Windows.Forms.RadioButton radioButton4;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
@@ -1143,5 +1333,16 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column13;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column16;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column17;
+        private System.Windows.Forms.Label label22;
+        private System.Windows.Forms.TextBox textBox3;
+        private System.Windows.Forms.RadioButton radioButton9;
+        private System.Windows.Forms.Label label9;
+        private System.Windows.Forms.TextBox textBox2;
+        private System.Windows.Forms.RadioButton radioButton6;
+        private System.Windows.Forms.Panel pnlGroup1;
+        private System.Windows.Forms.Panel pnlGroup3;
+        private System.Windows.Forms.Panel pnlGroup2;
+        private System.Windows.Forms.Label lblLabel06;
+        private System.Windows.Forms.Label label23;
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs	(revision 6)
@@ -124,6 +124,57 @@
         }
         #endregion
 
+        #region 工事承認確認
+        /// <summary>
+        /// 工事が承認されているか確認する
+        /// </summary>
+        /// <returns></returns>
+        private bool ApprovalCheck()
+        {
+            IOProcessApproval AppDB = new IOProcessApproval();
+            try
+            {
+                // 工事予算の承認データを取得する
+                int Code = ClsExcute.AppovalList.First(x => x.Value.Equals("工事予算書承認")).Key;
+                string strSQL = AppDB.CreatePrimarykeyString(m_ConstructionCode, Code, 1);
+                ProcessApproval AppRec = new ProcessApproval();
+                if (!AppDB.SelectAction(strSQL, ref AppRec)) return false;
+
+                // 承認されているか？
+                if (AppRec.ApprovalStatus != (int)CommonDefine.ApprovalStatus.Approval) return false;
+
+                // 承認されている場合
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                AppDB.close(); AppDB = null;
+            }
+        }
+        #endregion
+
+        #region 経費率データ読込み並び
+        /// <summary>
+        /// 経費率データ読込み並び
+        /// </summary>
+        private enum ExpensesArray
+        {
+            /// <summary>
+            /// 経費名称
+            /// </summary>
+            ExpensesName = 0,
+            /// <summary>
+            /// 経費率
+            /// </summary>
+            ExpensesRate,
+        }
+        #endregion
+
         #region 経費率リスト取得処理
         /// <summary>
         /// 経費率リストを取得する
@@ -136,19 +187,20 @@
             try
             {
                 // 工事担当者マスタ取得
-                string strPerson = picDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionPersonCode);
+                string strPerson = picDB.CreatePrimarykeyString(m_Constructor);
                 PersonInChargeMaster picRec = new PersonInChargeMaster();
                 if(!picDB.SelectAction(strPerson,ref picRec)) return false;
 
                 // 部署経費率マスタ取得
                 string strSQL = "SELECT A.NAMESTRING, NVL(B.EXPENSESRATIO, 0)";
-                strSQL += " FROM DIVISIONMASTER A, ";
-                strSQL += " (SELECT NAMECODE, DEPARTMENTCODE, EXPENSESRATIO FROM DEPARTMENTEXPENSESMASTER";
-                strSQL += string.Format(" WHERE DEPARTMENTCODE = {0}) B", picRec.DepartmentCode);
+                strSQL += " FROM DIVISIONMASTER A";
+                strSQL += " LEFT OUTER JOIN";
+                strSQL += string.Format(" (SELECT NAMECODE, DEPARTMENTCODE, EXPENSESRATIO FROM DEPARTMENTEXPENSESMASTER WHERE DEPARTMENTCODE = {0}) B", picRec.DepartmentCode);
+                strSQL += " ON A.NAMECODE = B.NAMECODE";
                 strSQL += string.Format(" WHERE A.DIVISIONCODE = {0}", (int)CommonDefine.DivisionMasterCodeDefine.ConstructionExpenses);
-                strSQL += " AND A.NAMECODE = B.NAMECODE(+) ORDER BY A.DISPLAYORDER";
-                if (!expDB.ExecuteReader(strSQL, ref ExpensesList)) return false;
-                if (ExpensesList.Count == 0) return false;
+                strSQL += " ORDER BY A.DISPLAYORDER";
+                if (!expDB.ExecuteReader(strSQL, ref m_ExpensesList)) return false;
+                if (m_ExpensesList.Count == 0) return false;
 
                 return true;
             }
@@ -179,12 +231,12 @@
             m_DspLabelCtrl[(int)DspLblCtrlName.ConstName] = lblLabel02;
             m_DspLabelCtrl[(int)DspLblCtrlName.ConstPlace] = lblLabel03;
 
+            m_DspLabelCtrl[(int)DspLblCtrlName.OrdersName] = lblLabel06;
+
             m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName] = lblLabel04;
-            m_DspLabelCtrl[(int)DspLblCtrlName.CreatorCosts] = lblCreatorCost;
 
+            m_DspLabelCtrl[(int)DspLblCtrlName.AssistantName] = label21;
             m_DspLabelCtrl[(int)DspLblCtrlName.InstructorName] = label12;
-            m_DspLabelCtrl[(int)DspLblCtrlName.InstructorCosts] = lblInstructorCost;
-            m_DspLabelCtrl[(int)DspLblCtrlName.InstructorTime] = lblInstructorTime;
 
             m_DspLabelCtrl[(int)DspLblCtrlName.CreateDate] = label2;
             m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice] = label6;
@@ -195,6 +247,8 @@
             m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType] = label17;
 
             m_DspLabelCtrl[(int)DspLblCtrlName.SalaryDays] = textBox1;
+            m_DspLabelCtrl[(int)DspLblCtrlName.A_SalaryDays] = textBox2;
+            m_DspLabelCtrl[(int)DspLblCtrlName.I_SalaryDays] = textBox3;
 
             // データ行数
             int DispLineCnt = Enum.GetNames(typeof(CostsRowLine)).Length;
@@ -241,50 +295,79 @@
         }
         #endregion
 
-        #region 受注金額を取得する
+        #region 工事担当者／副担当／指導員情報取得
         /// <summary>
-        /// 積算見積・積算予算から受注金額を取得する
+        /// 工事担当者／副担当／指導員情報取得
         /// </summary>
         /// <returns></returns>
-        private int GetOrdersDecision(bool ExistBudget)
+        private bool SetConstructorCode()
         {
-            IOEstimateBudgetDetail BudgetDB = new IOEstimateBudgetDetail();
-            IOEstimateData EstimateDB = new IOEstimateData();
+            IOMPersonInCharge picDB = new IOMPersonInCharge();
+            IOConstructionBudget cbDB = new IOConstructionBudget();
             try
             {
-                int iRet = 0;
-                if (ExistBudget)
-                {   // 積算予算書から金額を取得する
-                    string strSQL = "SELECT SUM(NEGOTIATIONPRICE) FROM ESTIMATEBUDGETDETAIL";
-                    strSQL += string.Format(" WHERE CONSTRUCTIONCODE = {0}", m_ConstructionCode);
-                    ArrayList arList = new ArrayList();
-                    if (!BudgetDB.ExecuteReader(strSQL, ref arList)) return 0;
-                    if (arList.Count == 0) return 0;
-
-                    object[] wrkobj = (object[])arList[0];
-                    iRet = (int)CommonMotions.cnvDouble(wrkobj[0]);
+                // 工事予算書を取得する
+                ConstructionBudget cbRec = new ConstructionBudget();
+                string strSQL = cbDB.CreatePrimarykeyString(m_ConstructionCode);
+                // 読込時承認後はエラーにする
+                if (!cbDB.SelectAction(strSQL, ref cbRec))
+                {
+                    if (m_ApprovalFlg) return false;
                 }
-                else
-                {   // 積算見積書から金額を取得する
-                    string strSQL = EstimateDB.CreatePrimarykeyString(m_ConstructionCode);
-                    strSQL += " AND FixedItemCode = 'A'";
-                    List<EstimateData> DataList = new List<EstimateData>();
-                    if (!EstimateDB.SelectAction(strSQL, ref DataList)) return 0;
-                    if (DataList.Count == 0) return 0;
-                    iRet = (int)DataList[0].PriceValue;
-                }
 
-                return iRet;
+                // ----- 工事担当者情報
+                // 工事担当者取得：工事予算が承認されていない間は変更可能
+                m_Constructor = m_ConstructionBaseInfo.ConstructionPersonCode;
+                if (m_ApprovalFlg) m_Constructor = cbRec.CreatorCode;
+
+                // 工事担当者のマスタを読み込む
+                strSQL = picDB.CreatePrimarykeyString(m_Constructor);
+                PersonInChargeMaster personRec = new PersonInChargeMaster();
+                picDB.SelectAction(strSQL, ref personRec);
+
+                // 担当者給与単価セット
+                m_CreatorMonthryCost = (int)(personRec.MonthlySalary * CommonDefine.s_SalaryExpenses);
+                if (m_ApprovalFlg) m_CreatorMonthryCost = (int)cbRec.CreatorCosts;
+
+                // ----- 副工事担当者情報
+                // 副工事担当者取得：工事予算が承認されていない間は変更可能
+                m_SubConstractor = m_ConstructionBaseInfo.ConstrSubPersonCode;
+                if (m_ApprovalFlg) m_SubConstractor = cbRec.AssistantCode;
+
+                // 副工事担当者のマスタを読み込む
+                strSQL = picDB.CreatePrimarykeyString(m_SubConstractor);
+                PersonInChargeMaster subPersonRec = new PersonInChargeMaster();
+                picDB.SelectAction(strSQL, ref subPersonRec);
+
+                // 副担当者給与単価セット
+                m_AssistantMonthryCost = CommonDefine.AssistantMonthryCost;
+                if (m_ApprovalFlg) m_AssistantMonthryCost = (int)cbRec.AssistantCosts;
+
+                // ----- 指導員情報
+                // 指導員取得：工事予算が承認されていない間は変更可能
+                m_Instructor = m_ConstructionBaseInfo.ConstructionInstructor;
+                if (m_ApprovalFlg) m_Instructor = cbRec.InstructorCode;
+
+                // 指導員のマスタを読み込む
+                strSQL = picDB.CreatePrimarykeyString(m_Instructor);
+                PersonInChargeMaster instructorRec = new PersonInChargeMaster();
+                picDB.SelectAction(strSQL, ref instructorRec);
+
+                // 指導員給与単価セット
+                m_InstructorMonthryCost = CommonDefine.InstructorMonthryCost;
+                if (m_ApprovalFlg) m_InstructorMonthryCost = (int)cbRec.InstructorCosts;
+
+                return true;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return 0;
+                return false;
             }
             finally
             {
-                BudgetDB.close(); BudgetDB = null;
-                EstimateDB.close(); EstimateDB = null;
+                picDB.close(); picDB = null;
+                cbDB.close(); cbDB = null;
             }
         }
         #endregion
@@ -293,7 +376,7 @@
         /// <summary>
         /// ヘッダー情報表示
         /// </summary>
-        private bool DispHeader(bool ExistBudget)
+        private bool DispHeader()
         {
             IOConstructionBaseInfoDetail cbidDB = new IOConstructionBaseInfoDetail();
             IOMPersonInCharge picDB = new IOMPersonInCharge();
@@ -301,130 +384,192 @@
             IOConstructionBudget cbDB = new IOConstructionBudget();
             try
             {
-                m_HeaderToolTip = new ToolTip();
-
                 // 工事予算書を取得する
+                ConstructionBudget cbRec = new ConstructionBudget();
                 string strSQL = cbDB.CreatePrimarykeyString(m_ConstructionCode);
-                ConstructionBudget cbRec = new ConstructionBudget();
                 bool bBudgetExist = cbDB.SelectAction(strSQL, ref cbRec);
 
-                // データ表示
-                m_DspLabelCtrl[(int)DspLblCtrlName.CreateDate].Text = cbRec.CreateDate.ToShortDateString();                                                     // 作成日
-                
-                m_DspLabelCtrl[(int)DspLblCtrlName.ConstCode].Text = CommonMotions.cnvStringCodeFromInt(m_ConstructionBaseInfo.ConstructionCode, "-", 8);       // 工事コード
-                
-                int OrdersPrice = (int)m_ConstructionBaseInfo.OrdersDecisionPrice;
-                if (OrdersPrice == 0) OrdersPrice = GetOrdersDecision(ExistBudget);
-                m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text = @"\" + OrdersPrice.ToString("#,0") + "-";                                                // 受注金額
+                m_HeaderToolTip = new ToolTip();
 
+                // ----- 基本データ表示
+                // 工事コード
+                m_DspLabelCtrl[(int)DspLblCtrlName.ConstCode].Text = CommonMotions.cnvStringCodeFromInt(m_ConstructionBaseInfo.ConstructionCode, "-", 8);
 
                 // 工事基本情報明細取得
                 strSQL = cbidDB.CreatePrimarykeyString(m_ConstructionCode, (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
                 ConstructionBaseInfoDetail workRec = new ConstructionBaseInfoDetail();
                 if (!cbidDB.SelectAction(strSQL, ref workRec)) return false;
-                m_DspLabelCtrl[(int)DspLblCtrlName.ConstName].Text = workRec.DetailString;                                                                      // 工事名称
+                
+                // 工事名称
+                m_DspLabelCtrl[(int)DspLblCtrlName.ConstName].Text = workRec.DetailString;
                 m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.ConstName], workRec.DetailString);
                 
+                // 工事場所
                 strSQL = cbidDB.CreatePrimarykeyString(m_ConstructionCode);
                 strSQL += string.Format(" And (DetailNo = {0} Or DetailNo = {1} Or DetailNo = {2})",
-                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace1,                                   // 工事場所１
-                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace2,                                   // 工事場所２
-                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);                                  // 工事場所３
+                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace1,    // 工事場所１
+                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace2,    // 工事場所２
+                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);   // 工事場所３
                 strSQL += " Order By DetailNo";
                 List<ConstructionBaseInfoDetail> workList = new List<ConstructionBaseInfoDetail>();
                 cbidDB.SelectAction(strSQL, ref workList);
                 string Place = string.Empty;
-                foreach (ConstructionBaseInfoDetail wrkRec in workList)
-                {
-                    Place += wrkRec.DetailString;
-                }
-                m_DspLabelCtrl[(int)DspLblCtrlName.ConstPlace].Text = Place;                                                                                    // 工事場所
+                foreach (ConstructionBaseInfoDetail wrkRec in workList) Place += wrkRec.DetailString;
+                m_DspLabelCtrl[(int)DspLblCtrlName.ConstPlace].Text = Place;
                 m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.ConstPlace], Place);
 
+                ConstructionBaseInfoDetail OrderRec = new ConstructionBaseInfoDetail();
+                string strOrder = cbidDB.CreatePrimarykeyString(m_ConstructionCode, (int)ConstructionBaseInfoDetail.DetailDataNo.OrderersName);
+                cbidDB.SelectAction(strOrder, ref OrderRec);
+                m_DspLabelCtrl[(int)DspLblCtrlName.OrdersName].Text = OrderRec.DetailString;                                 // 発注者名称
+
+                // 受注金額
+                int OrdersPrice = (int)m_ConstructionBaseInfo.OrdersDecisionPrice;
+                m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text = @"\" + OrdersPrice.ToString("#,0");
+
+                // ----- 工事種別マスタ取得
+                // 工事種別
+                strSQL = ctypeDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionType);
+                ConstructionTypeMaster ctypeRec = new ConstructionTypeMaster();
+                ctypeDB.SelectAction(strSQL, ref ctypeRec);
+                m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType].Text = ctypeRec.NameString;
+                Font workFont = m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType].Font;
+                // 文字数が多い場合はFontを小さくする
+                if (ctypeRec.NameString.Length > 13) workFont = new Font(m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType].Font.FontFamily, 9);
+                m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType].Font = workFont;
+                m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType], ctypeRec.NameString);
+
+                // 作成日
+                if (!bBudgetExist)
+                    m_DspLabelCtrl[(int)DspLblCtrlName.CreateDate].Text = DateTime.Now.ToShortDateString();
+                else
+                    m_DspLabelCtrl[(int)DspLblCtrlName.CreateDate].Text = cbRec.CreateDate.ToShortDateString();
+
                 // 工事担当者取得
-                int PersonCode = m_ConstructionBaseInfo.ConstructionPersonCode;
-                strSQL = picDB.CreatePrimarykeyString(PersonCode);
+                strSQL = picDB.CreatePrimarykeyString(m_Constructor);
                 PersonInChargeMaster personRec = new PersonInChargeMaster();
                 picDB.SelectAction(strSQL, ref personRec);
+                m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName].Text = personRec.PersonName;
+                m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName], personRec.PersonName);
 
-                // 給与単価セット
-                m_DspLabelCtrl[(int)DspLblCtrlName.CreatorCosts].Text = CommonMotions.cnvRound(personRec.MonthlySalary).ToString();
+                // 副担当者取得
+                pnlGroup2.Visible = false;
+                if (m_SubConstractor != 0)
+                {
+                    pnlGroup2.Visible = true;
+                    strSQL = picDB.CreatePrimarykeyString(m_SubConstractor);
+                    PersonInChargeMaster subPersonRec = new PersonInChargeMaster();
+                    picDB.SelectAction(strSQL, ref subPersonRec);
+                    m_DspLabelCtrl[(int)DspLblCtrlName.AssistantName].Text = subPersonRec.PersonName;
+                    m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.AssistantName], subPersonRec.PersonName);
+                }
 
-                m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName].Text = personRec.PersonName;                                                                    // 作成者
-                m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName], personRec.PersonName);
-                
-                // 担当指導員取得
-                PersonCode = m_ConstructionBaseInfo.ConstructionInstructor;
-                if (PersonCode != 0)
+                // 指導員取得
+                pnlGroup3.Visible = false;
+                if (m_Instructor != 0)
                 {
-                    strSQL = picDB.CreatePrimarykeyString(PersonCode);
+                    pnlGroup3.Visible = true;
+                    strSQL = picDB.CreatePrimarykeyString(m_Instructor);
                     PersonInChargeMaster instructorRec = new PersonInChargeMaster();
                     picDB.SelectAction(strSQL, ref instructorRec);
-                    m_DspLabelCtrl[(int)DspLblCtrlName.InstructorName].Text = instructorRec.PersonName;                                                         // 担当指導員
-                    m_DspLabelCtrl[(int)DspLblCtrlName.InstructorCosts].Text = m_InstructorMonthryCost.ToString();
+                    m_DspLabelCtrl[(int)DspLblCtrlName.InstructorName].Text = instructorRec.PersonName;
                     m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.InstructorName], instructorRec.PersonName);
                 }
 
-                DateTime StDate = cbRec.ConstructionStart;
-                DateTime EdDate = cbRec.ConstructionEnd;
-                bool bDsp = true;
-                // 開始日が無い場合
-                if (StDate == DateTime.MinValue) StDate = m_ConstructionBaseInfo.ConstructionPeriodStart;
-                // 完了日が無い場合
-                if (EdDate == DateTime.MinValue) EdDate = m_ConstructionBaseInfo.ConstructionPeriodEnd;
+                DateTime StDate = m_ConstructionBaseInfo.ConstructionPeriodStart;
+                DateTime EdDate = m_ConstructionBaseInfo.ConstructionPeriodEnd;
+                bool bDsp = false;
+                if (m_ApprovalFlg) StDate = cbRec.ConstructionStart;
+                if (m_ApprovalFlg) EdDate = cbRec.ConstructionEnd;
 
-                if (StDate != DateTime.MinValue)
+                m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text = CommonMotions.cnvDateToUndecidedString(StDate);             // 工期（開始）
+                if (StDate != DateTime.MinValue) bDsp = true;
+
+                m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text = CommonMotions.cnvDateToUndecidedString(EdDate);             // 工期（終了）
+                if (EdDate != DateTime.MinValue) bDsp = true;
+
+                // 工期計算
+                if (bDsp) m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text = CommonMotions.DiffMounthTimes(StDate, EdDate).ToString("0.00");
+
+                // 担当者給与振分区分
+                if (bBudgetExist)
                 {
-                    m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text = StDate.ToShortDateString();                                 // 契約工期開始
+                    textBox1.Enabled = false;
+                    switch (cbRec.SalaryFlg)
+                    {
+                        case (int)CommonDefine.SalaryDevision.All:       // 全日
+                            radioButton1.Checked = true;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.Noting:    // 振分無
+                            radioButton2.Checked = true;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.DaysInput: // 日数入力
+                            radioButton3.Checked = true;
+                            textBox1.Enabled = true;
+                            break;
+                    }
+                    textBox1.Text = cbRec.SalaryDays.ToString("#,#");
                 }
                 else
                 {
-                    m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text = CommonMotions.cnvDateToUndecidedString(StDate);             // 工期（開始）
-                    bDsp = false;
+                    radioButton1.Checked = true;
                 }
 
-                if (EdDate != DateTime.MinValue)
+                // 副担当者給与振分区分
+                if (bBudgetExist)
                 {
-                    m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text = EdDate.ToShortDateString();                                 // 契約工期完成
+                    textBox2.Enabled = false;
+                    switch (cbRec.A_SalaryFlg)
+                    {
+                        case (int)CommonDefine.SalaryDevision.All:       // 全日
+                            radioButton4.Checked = true;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.Noting:    // 振分無
+                            radioButton5.Checked = true;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.DaysInput: // 日数入力
+                            radioButton6.Checked = true;
+                            textBox2.Enabled = true;
+                            break;
+                    }
+                    textBox2.Text = cbRec.A_SalaryDays.ToString("#,#");
                 }
                 else
                 {
-                    m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text = CommonMotions.cnvDateToUndecidedString(EdDate);             // 工期（終了）
-                    bDsp = false;
+                    radioButton4.Checked = true;
                 }
 
-                // 工期計算
-                if (bDsp) m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text = CommonMotions.DiffMounthTimes(StDate, EdDate).ToString("0.00");
-
-                // 工事種別マスタ取得
-                // 担当者マスタ取得
-                strSQL = ctypeDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionType);
-                ConstructionTypeMaster ctypeRec = new ConstructionTypeMaster();
-                ctypeDB.SelectAction(strSQL, ref ctypeRec);
-                m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType].Text = ctypeRec.NameString;                                                                   // 工事種別
-                m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType], ctypeRec.NameString);
-
-                // 給与振分区分
-                switch (cbRec.SalaryFlg)
+                // 指導員給与振分区分
+                if (bBudgetExist)
                 {
-                    case (int)CommonDefine.SalaryDevision.All:       // 全日
-                        radioButton1.Checked = true;
-                        break;
-                    case (int)CommonDefine.SalaryDevision.Noting:    // 振分無
-                        radioButton2.Checked = true;
-                        break;
-                    case (int)CommonDefine.SalaryDevision.DaysInput: // 日数入力
-                        radioButton3.Checked = true;
-                        textBox1.Text = cbRec.SalaryDays.ToString();
-                        break;
+                    textBox3.Enabled = false;
+                    switch (cbRec.I_SalaryFlg)
+                    {
+                        case (int)CommonDefine.SalaryDevision.All:       // 全日
+                            radioButton7.Checked = true;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.Noting:    // 振分無
+                            radioButton8.Checked = true;
+                            break;
+                        case (int)CommonDefine.SalaryDevision.DaysInput: // 日数入力
+                            radioButton9.Checked = true;
+                            textBox3.Enabled = true;
+                            break;
+                    }
+                    textBox3.Text = cbRec.I_SalaryDays.ToString("#,#");
                 }
-                // 担当者給与セット
-                m_DspLabelCtrl[(int)DspLblCtrlName.CreatorCosts].Text = (personRec.MonthlySalary * CommonDefine.s_SalaryExpenses).ToString("#,0");
-                // 指導員給与セット
-                m_DspLabelCtrl[(int)DspLblCtrlName.InstructorCosts].Text = m_InstructorMonthryCost.ToString("#,0");
-                // 指導員稼働月数
-                m_DspLabelCtrl[(int)DspLblCtrlName.InstructorTime].Text = m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text.ToString();
-
+                else
+                {
+                    radioButton7.Checked = true;
+                }
+                // 一般ユーザーは人件費を変更できない
+                int User = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key;                  // 一般ユーザー
+                if (CommonMotions.LoginUserData.SecurityManagement == User)
+                {
+                    pnlGroup1.Enabled = false;
+                    pnlGroup2.Enabled = false;
+                    pnlGroup3.Enabled = false;
+                }
                 return true;
             }
             catch (Exception ex)
@@ -447,7 +592,7 @@
         /// データ行を作成する
         /// </summary>
         /// <param name="SetData"></param>
-        private void CreateTitileRow(int TitileNo, string TitileName)
+        private void CreateTitleRow(int TitleNo, string TitleName)
         {
             try
             {
@@ -457,11 +602,11 @@
 
                 // データ作成
                 object[] SetData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
-                SetData[(int)DispGridColumn.No] = TitileNo;
+                SetData[(int)DispGridColumn.No] = TitleNo;
                 SetData[(int)DispGridColumn.FixFlg] = "*";
-                SetData[(int)DispGridColumn.GroupCount] = TitileNo;
-                SetData[(int)DispGridColumn.ItemName] = TitileName;
-                SetData[(int)DispGridColumn.TitileFlg] = "1";
+                SetData[(int)DispGridColumn.GroupCount] = TitleNo;
+                SetData[(int)DispGridColumn.ItemName] = TitleName;
+                SetData[(int)DispGridColumn.TitleFlg] = "1";
 
                 // 行データセット
                 dgv.Rows[rowcnt].SetValues(SetData);
@@ -469,7 +614,7 @@
                 // 行の色を変える
                 for (int i = 0; i < (int)DispGridColumn.BlankFlg; i++)
                 {
-                    dgv.Rows[rowcnt].Cells[i].Style.BackColor = s_TitileRowBackColor;
+                    dgv.Rows[rowcnt].Cells[i].Style.BackColor = s_TitleRowBackColor;
                 }
 
                 // 表示した行を書込み禁止にする
@@ -516,7 +661,7 @@
                         // 購入品の入力ロック解除
                         CurRow.Cells[(int)DispGridColumn.TextName].ReadOnly = false;
                         CurRow.Cells[(int)DispGridColumn.ItemName].ReadOnly = false;
-                        CurRow.Cells[(int)DispGridColumn.SubContractorName].ReadOnly = false;
+                        CurRow.Cells[(int)DispGridColumn.CompanyName].ReadOnly = false;
                         break;
                     case (int)GroupName_ConstructionBudget.VehicleLeaseFee:
                         // 車両リース代
@@ -528,13 +673,13 @@
                         // 宿泊費
                         CurRow.Cells[(int)DispGridColumn.ItemName].ReadOnly = false;
                         CurRow.Cells[(int)DispGridColumn.TextName].ReadOnly = false;
-                        CurRow.Cells[(int)DispGridColumn.SubContractorName].ReadOnly = false;
+                        CurRow.Cells[(int)DispGridColumn.CompanyName].ReadOnly = false;
                         break;
                     case (int)GroupName_ConstructionBudget.DisposeCosts:
                         // 処分費の入力ロック解除
                         CurRow.Cells[(int)DispGridColumn.ItemName].ReadOnly = false;
                         CurRow.Cells[(int)DispGridColumn.TextName].ReadOnly = false;
-                        CurRow.Cells[(int)DispGridColumn.SubContractorName].ReadOnly = false;
+                        CurRow.Cells[(int)DispGridColumn.CompanyName].ReadOnly = false;
                         break;
                 }
             }
@@ -564,7 +709,7 @@
                 // 行データセット
                 CurRow.SetValues(SetData);
                 // フラグセット
-                CurRow.Cells[(int)DispGridColumn.TitileFlg].Value = "0";
+                CurRow.Cells[(int)DispGridColumn.TitleFlg].Value = "0";
                 CurRow.Cells[(int)DispGridColumn.TotalFlg].Value = "0";
                 CurRow.Cells[(int)DispGridColumn.BlankFlg].Value = "0";
 
@@ -654,7 +799,7 @@
                 foreach (DataGridViewRow wrkRow in dgv.Rows)
                 {
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
                     // 行の色をデフォルト色へ変更
@@ -686,12 +831,12 @@
                 DataGridView dgv = dgvAllDisplay;
                 DataGridViewRow CurRow = dgv.Rows[CurrentRow];
 
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1)
                 {   // タイトル行
                     // 行の色を変える
                     for (int i = 0; i < (int)DispGridColumn.BlankFlg; i++)
                     {
-                        dgv.Rows[m_BeforeGridRow].Cells[i].Style.BackColor = s_TitileRowBackColor;
+                        dgv.Rows[m_BeforeGridRow].Cells[i].Style.BackColor = s_TitleRowBackColor;
                     }
                 }
                 else if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TotalFlg].Value) == 1)
@@ -759,16 +904,16 @@
             try
             {
                 // 受注金額取得
-                double OrdersPrice = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", "").Replace("-", ""));
+                double OrdersPrice = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", ""));
 
                 // グループ名表示
-                CreateTitileRow((int)GroupName_ConstructionBudget.Expenses, GroupTitile[(int)GroupName_ConstructionBudget.Expenses]);
+                CreateTitleRow((int)GroupName_ConstructionBudget.Expenses, GroupTitle[(int)GroupName_ConstructionBudget.Expenses]);
 
                 int icnt = 1;
-                foreach (object[] wrkExpense in ExpensesList)
+                foreach (object[] wrkExpense in m_ExpensesList)
                 {
                     // 経費率取得
-                    double dExpenses = CommonMotions.cnvDouble(wrkExpense[1]);
+                    double dExpenses = CommonMotions.cnvDouble(wrkExpense[(int)ExpensesArray.ExpensesRate]);
 
                     object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
                     // データセット
@@ -775,7 +920,7 @@
                     RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.Expenses;
                     
                     // 経費名称セット
-                    string strVallue = CommonMotions.cnvString(wrkExpense[0]);
+                    string strVallue = CommonMotions.cnvString(wrkExpense[(int)ExpensesArray.ExpensesName]);
                     RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", (int)GroupName_ConstructionBudget.Expenses, icnt);
                     RowData[(int)DispGridColumn.FixFlg] = "*";
                     RowData[(int)DispGridColumn.ItemName] = string.Format("{0}({1}%)", strVallue, dExpenses.ToString("0.00"));
@@ -808,7 +953,7 @@
             double dwork = 0;
 
             // 受注金額取得
-            double dBase = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", "").Replace("-", ""));
+            double dBase = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", ""));
             if (dBase == 0) return dwork;
 
             dwork = dInput / dBase * 100.0;
@@ -829,11 +974,8 @@
                 // 表示クリア
                 ClearDisplay();
 
-                // 予算データの存在確認
-                bool bBudget = ExistBudgetData();
-
                 // ヘッダー表示
-                if (!DispHeader(bBudget)) return;
+                if (!DispHeader()) return;
 
                 // グリッド行削除
                 dgvAllDisplay.Rows.Clear();
@@ -841,6 +983,36 @@
                 // データがある場合は表示を行う
                 if (InitDispData()) return;
                 
+                // データが無い場合は前プロセスデータから表示
+                NotBudgetData();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                // 表示行が足りない場合は追加する
+                SetBlankRow(dgvAllDisplay);
+
+                // 変更フラグのクリア
+                m_bChengeAns = false;
+            }
+        }
+        #endregion
+
+        #region 前プロセスデータよりの表示処理
+        /// <summary>
+        /// 前プロセスデータよりの表示処理
+        /// </summary>
+        /// <param name="bBudget"></param>
+        private void NotBudgetData()
+        {
+            try
+            {
+                // 積算予算データの存在確認
+                bool bBudget = ExistBudgetData();
+
                 // 経費セット
                 SetExpenses();
 
@@ -880,28 +1052,27 @@
                     SetDisposeCosts_Estimate();
                 }
 
-                // 16期以降は指導員金額を表示する
-                if (m_ConstructionBaseInfo.ConstructionPeriod >= 16)
-                {   // 指導員給与
-                    CreateInstructorCosts();
-                }
-                
-                // 粗利益
-                CreateGrossProfit();
-                CalculateGrossProfit();
+                // 粗利益行作成
+                CreateGrossProfit(true);
 
-                
-                // 16期以降は給与を表示する
+                // 16期以降は人件費金額を表示する
                 if (m_ConstructionBaseInfo.ConstructionPeriod >= 16)
-                {   // 給与経費
-                    CreatePayrollExpenses(true);
+                {
+                    // 指導員給与
+                    CreateInstructorCosts(true);
 
+                    // 副担当者給与経費
+                    CreateAssistantCosts(true);
+
+                    // 担当者給与経費
+                    CreatePayrollCosts(true);
+
                     // 純利益
-                    CreateNetIncome();
+                    CreateNetIncome(true);
                 }
 
                 // 合計金額
-                CreateAllTotal();
+                CreateAllTotal(true);
 
             }
             catch (Exception ex)
@@ -908,14 +1079,6 @@
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-            finally
-            {
-                // 表示行が足りない場合は追加する
-                SetBlankRow(dgvAllDisplay);
-
-                // 変更フラグのクリア
-                m_bChengeAns = false;
-            }
         }
         #endregion
 
@@ -959,6 +1122,13 @@
                     HopePriceValue += InstructorHope;
                     ExecPriceValue += InstructorExec;
 
+                    // 副担当者の給与取得
+                    int SubCreatorHope = 0;
+                    int SubCreatorExec = 0;
+                    GetAssistantLineValue(ref SubCreatorHope, ref SubCreatorExec);
+                    HopePriceValue += SubCreatorHope;
+                    ExecPriceValue += SubCreatorExec;
+
                     // 担当者の給与取得
                     int CreatorHope = 0;
                     int CreatorExec = 0;
@@ -991,42 +1161,13 @@
         }
         #endregion
 
-        #region 合計金額計算
+        #region 合計金額作成・再計算
         /// <summary>
-        /// 合計金額計算
+        /// 合計金額作成・再計算
         /// </summary>
-        private void CalculateAllTotal()
+        private void CreateAllTotal(bool CrearteRow)
         {
-            DataGridView dgv = dgvAllDisplay;
 
-            int EstimatePriceValue = 0;
-            int NegotiationPriceValue = 0;
-            int HopePriceValue = 0;
-            int ExecPriceValue = 0;
-            double PercentValue = 0;
-
-            // 合計値取得
-            GetDetailTotal(ref EstimatePriceValue, ref NegotiationPriceValue, ref HopePriceValue, ref ExecPriceValue, ref PercentValue, true);
-
-            // データセット
-            int LineCnt = m_CostsRowCount[(int)CostsRowLine.AllTotalRowLine];
-            if (LineCnt == 0) return;
-            dgv.Rows[LineCnt].Cells[(int)DispGridColumn.EstimatePrice].Value = EstimatePriceValue.ToString("#,0");
-            dgv.Rows[LineCnt].Cells[(int)DispGridColumn.NegotiationPrice].Value = NegotiationPriceValue.ToString("#,0");
-            dgv.Rows[LineCnt].Cells[(int)DispGridColumn.HopePrice].Value = HopePriceValue.ToString("#,0");
-            dgv.Rows[LineCnt].Cells[(int)DispGridColumn.ExecPrice].Value = ExecPriceValue.ToString("#,0");
-            dgv.Rows[LineCnt].Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent((double)ExecPriceValue).ToString("0.00");
-
-        }
-        #endregion
-
-        #region 合計金額作成
-        /// <summary>
-        /// 合計金額作成
-        /// </summary>
-        private void CreateAllTotal()
-        {
-
             DataGridView dgv = dgvAllDisplay;
 
             int EstimatePriceValue = 0;
@@ -1038,43 +1179,56 @@
             // 合計値取得
             GetDetailTotal(ref EstimatePriceValue, ref NegotiationPriceValue, ref HopePriceValue, ref ExecPriceValue, ref PercentValue, true);
 
-            // 空白行
-            AddEmptyRow();
+            if (CrearteRow)
+            {
+                // 空白行
+                AddEmptyRow();
 
-            object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
-            // データセット
-            RowData[(int)DispGridColumn.FixFlg] = "*";
-            RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.AllTotal;
-            RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionBudget.AllTotal];
-            RowData[(int)DispGridColumn.EstimatePrice] = EstimatePriceValue.ToString("#,0");
-            RowData[(int)DispGridColumn.NegotiationPrice] = NegotiationPriceValue.ToString("#,0");
-            RowData[(int)DispGridColumn.HopePrice] = HopePriceValue.ToString("#,0");
-            RowData[(int)DispGridColumn.ExecPrice] = ExecPriceValue.ToString("#,0");
-            RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecPriceValue).ToString("0.00");
+                object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
+                // データセット
+                RowData[(int)DispGridColumn.FixFlg] = "*";
+                RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.AllTotal;
+                RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionBudget.AllTotal];
+                RowData[(int)DispGridColumn.EstimatePrice] = EstimatePriceValue.ToString("#,0");
+                RowData[(int)DispGridColumn.NegotiationPrice] = NegotiationPriceValue.ToString("#,0");
+                RowData[(int)DispGridColumn.HopePrice] = HopePriceValue.ToString("#,0");
+                RowData[(int)DispGridColumn.ExecPrice] = ExecPriceValue.ToString("#,0");
+                RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecPriceValue).ToString("0.00");
 
-            // 行セット
-            CreateDataRow(RowData, true);
+                // 行セット
+                CreateDataRow(RowData, true);
 
-            // 行位置取得
-            int LineCnt = dgv.RowCount - 1;
-            m_CostsRowCount[(int)CostsRowLine.AllTotalRowLine] = LineCnt;
+                // 行位置取得
+                int LineCnt = dgv.RowCount - 1;
+                m_CostsRowCount[(int)CostsRowLine.AllTotalRowLine] = LineCnt;
 
-            // 総合計フラグON
-            dgv.Rows[LineCnt].Cells[(int)DispGridColumn.TotalFlg].Value = 2;
+                // 総合計フラグON
+                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.TotalFlg].Value = 2;
 
-            // 工事価格計は行を大きくする
-            dgv.Rows[LineCnt].Height = dgv.RowTemplate.Height * 2;
-            float FontSize = dgv.DefaultCellStyle.Font.Size;
-            Font DrowFont = new Font(dgv.DefaultCellStyle.Font.FontFamily, FontSize * 2);
-            dgv.Rows[LineCnt].Cells[(int)DispGridColumn.No].Style.Font = DrowFont;
+                // 工事価格計は行を大きくする
+                dgv.Rows[LineCnt].Height = dgv.RowTemplate.Height * 2;
+                float FontSize = dgv.DefaultCellStyle.Font.Size;
+                Font DrowFont = new Font(dgv.DefaultCellStyle.Font.FontFamily, FontSize * 2);
+                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.No].Style.Font = DrowFont;
 
-            // 行の色を変える
-            for (int i = 0; i < (int)DispGridColumn.BlankFlg; i++)
+                // 行の色を変える
+                for (int i = 0; i < (int)DispGridColumn.BlankFlg; i++)
+                {
+                    dgv.Rows[LineCnt].Cells[i].Style.ForeColor = Color.White;
+                    dgv.Rows[LineCnt].Cells[i].Style.BackColor = Color.Black;
+                }
+            }
+            else
             {
-                dgv.Rows[LineCnt].Cells[i].Style.ForeColor = Color.White;
-                dgv.Rows[LineCnt].Cells[i].Style.BackColor = Color.Black;
+                // データセット
+                int LineCnt = m_CostsRowCount[(int)CostsRowLine.AllTotalRowLine];
+                if (LineCnt == 0) return;
+                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.EstimatePrice].Value = EstimatePriceValue.ToString("#,0");
+                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.NegotiationPrice].Value = NegotiationPriceValue.ToString("#,0");
+                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.HopePrice].Value = HopePriceValue.ToString("#,0");
+                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.ExecPrice].Value = ExecPriceValue.ToString("#,0");
+                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent((double)ExecPriceValue).ToString("0.00");
             }
-
         }
         #endregion
 
@@ -1089,6 +1243,11 @@
                 // 総計グリッドを読込専用にする
                 dgvAllDisplay.ReadOnly = true;
 
+                // 各グループボックスを使用禁止にする
+                pnlGroup1.Enabled = false;
+                pnlGroup2.Enabled = false;
+                pnlGroup3.Enabled = false;
+
                 // データ編集に関するボタンを非表示にする
                 btnDataEntry.Visible = false;                       // 登録ボタン
                 btnDataDelete.Visible = false;                      // 削除ボタン
@@ -1119,7 +1278,7 @@
                 m_frmAuthorizerList.LocationPoint = new Point(this.Right, this.Top);
 
                 // タスクバーに表示しない
-                m_frmAuthorizerList.ShowInTaskbar = false;
+                //m_frmAuthorizerList.ShowInTaskbar = false;
 
                 // クロースドハンドラをこちらで定義する
                 m_frmAuthorizerList.FormClosed += new FormClosedEventHandler(FrmApprovalAuthorizerList_FormClosed);
@@ -1132,92 +1291,6 @@
         }
         #endregion
 
-        #region 着工・完了日選択画面を表示
-        /// <summary>
-        /// 着工・完了日選択画面を表示する
-        /// </summary>
-        private void DispSelectDateControl(bool bStart)
-        {
-            try
-            {
-                // 着工・完了日選択画面表示
-                m_frmSelectDate = new FrmSelectDate();
-                // パラメータセット
-                m_frmSelectDate.ConstructionCode = m_ConstructionCode;
-                m_frmSelectDate.StartDateFlg = bStart;
-                if (bStart)
-                    m_frmSelectDate.ExcuteDate = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text);
-                else
-                    m_frmSelectDate.ExcuteDate = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text);
-
-                // タスクバーに表示しない
-                //m_frmSelectDate.ShowInTaskbar = false;
-
-                // クロースドハンドラをこちらで定義する
-                m_frmSelectDate.FormClosed += new FormClosedEventHandler(FrmSelectDate_FormClosed);
-                m_frmSelectDate.ShowDialog();
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region 工事予算書データ読込時・指導員データ判定
-        /// <summary>
-        /// 工事予算書データ読込時、指導員データが変わっていた場合の処理
-        /// </summary>
-        /// <param name="DetailRec"></param>
-        private void InitDispDataTitile_InstructorCosts(ConstructionBudgetDetail DetailRec)
-        {
-            try
-            {
-                DataGridView dgv = dgvAllDisplay;
-
-                // 指導員データ取得
-                double dOrderCosts = DetailRec.OrderDesiredAmount;
-                double dExecCosts = DetailRec.ExecutionAmount;
-                double dRate = DetailRec.AmountConfigRate;
-                string FirstString = DetailRec.FirstString;
-                string SecondString = DetailRec.SecondString;
-                // 指導員が工事情報に設定されていない場合
-                if (m_ConstructionBaseInfo.ConstructionInstructor == 0)
-                {
-                    // ０以外の場合はクリア
-                    if (DetailRec.ExecutionAmount != 0)
-                    {
-                        dOrderCosts = 0;
-                        dExecCosts = 0;
-                        dRate = 0;
-                        FirstString = string.Empty;
-                        SecondString = string.Empty;
-                    }
-                }
-                else
-                {
-                    // 設定されているのに金額が０の場合へ計算する
-                    if (DetailRec.ExecutionAmount == 0)
-                    {
-                        // 指導員データ作成
-                        CreateInstructorData(ref dExecCosts, ref FirstString, ref SecondString);
-                        dOrderCosts = dExecCosts;
-                    }
-                }
-                DetailRec.FirstString = FirstString;                            // 項目
-                DetailRec.SecondString = SecondString;                          // 工事内容
-                DetailRec.OrderDesiredAmount = dOrderCosts;                     // 発注希望金額
-                DetailRec.ExecutionAmount = dExecCosts;                         // 実行金額
-                DetailRec.AmountConfigRate = CalculattionPercent(dExecCosts);   // 金額構成率
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
         #region 工事予算書データ読込時タイトル表示
         /// <summary>
         /// 工事予算書データ読込時タイトルが無いグループがあるので判定する
@@ -1224,7 +1297,7 @@
         /// </summary>
         /// <param name="DetailRec"></param>
         /// <param name="GroupNo"></param>
-        private void InitDispDataTitile(ConstructionBudgetDetail DetailRec, int GroupNo)
+        private void InitDispDataTitle(ConstructionBudgetDetail DetailRec, int GroupNo)
         {
             DataGridView dgv = dgvAllDisplay;
 
@@ -1278,6 +1351,13 @@
                     m_CostsRowCount[(int)CostsRowLine.DisposeCostsRowLine] = dgv.RowCount;
                     bReturnFlg = true;
                     break;
+                // 粗利益
+                case (int)GroupName_ConstructionBudget.GrossProfit:
+                    // 空行を入れる
+                    AddEmptyRow();
+                    m_CostsRowCount[(int)CostsRowLine.GrossProfitRowLine] = dgv.RowCount;
+                    bReturnFlg = true;
+                    break;
                 // 指導員給与
                 case (int)GroupName_ConstructionBudget.InstructorCosts:
                     // 空白行
@@ -1284,16 +1364,14 @@
                     AddEmptyRow();
                     m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = dgv.RowCount;
                     bReturnFlg = true;
-                    InitDispDataTitile_InstructorCosts(DetailRec);
+                    //InitDispDataTitle_InstructorCosts(DetailRec);
                     break;
-                // 粗利益
-                case (int)GroupName_ConstructionBudget.GrossProfit:
-                    // 指導員給与が無い場合は空行を入れる
-                    if (m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] == 0) AddEmptyRow();
-                    m_CostsRowCount[(int)CostsRowLine.GrossProfitRowLine] = dgv.RowCount;
+                // 副担当者給与経費
+                case (int)GroupName_ConstructionBudget.AssistantCosts:
+                    m_CostsRowCount[(int)CostsRowLine.AssistantRowLine] = dgv.RowCount;
                     bReturnFlg = true;
                     break;
-                // 給与経費
+                // 担当者給与経費
                 case (int)GroupName_ConstructionBudget.PayrollExpenses:
                     m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine] = dgv.RowCount;
                     bReturnFlg = true;
@@ -1308,7 +1386,7 @@
             if (bReturnFlg) return;
 
             // グループ名表示
-            CreateTitileRow(DetailRec.GroupCount, GroupTitile[DetailRec.GroupCount]);
+            CreateTitleRow(DetailRec.GroupCount, GroupTitle[DetailRec.GroupCount]);
 
             // カウンタ等クリア
             GroupNo = DetailRec.GroupCount;
@@ -1341,40 +1419,27 @@
                 int GroupNo = (int)GroupName_ConstructionBudget.Expenses;
                 int icnt = 1;
                 // グループ名表示
-                CreateTitileRow(GroupNo, GroupTitile[GroupNo]);
+                CreateTitleRow(GroupNo, GroupTitle[GroupNo]);
                 foreach (ConstructionBudgetDetail DetailRec in DetailList)
                 {
                     // グループ番号が違えばタイトル行表示
                     if (GroupNo != DetailRec.GroupCount)
                     {
-                            // 指導員金額より前のグループ番号は必ず連番にする（グループタイトルが抜けるのを防止するため）
-                        if ((GroupNo + 1) != DetailRec.GroupCount)
+                        // 指導員金額より前のグループ番号は必ず連番にする（グループタイトルが抜けるのを防止するため）
+                        if ((GroupNo + 1) != DetailRec.GroupCount && DetailRec.GroupCount < (int)GroupName_ConstructionBudget.InstructorCosts)
                         {
+                            // 現在レコードの番号までグループタイトルを表示する
                             for (int i = (GroupNo + 1); i < DetailRec.GroupCount; i++)
                             {
-                                // 16期より前は指導員金額・担当者給与・純利益を表示しない
-                                if (m_ConstructionBaseInfo.ConstructionPeriod < 16)
-                                {
-                                    switch (DetailRec.GroupCount + 1)
-                                    {
-                                        // 指導員給与
-                                        case (int)GroupName_ConstructionBudget.InstructorCosts:
-                                        // 給与経費
-                                        case (int)GroupName_ConstructionBudget.PayrollExpenses:
-                                        // 純利益
-                                        case (int)GroupName_ConstructionBudget.NetIncome:
-                                            continue;
-                                    }
-                                }
-
+                                // 未設定グループタイトル表示
                                 ConstructionBudgetDetail DummyRec = new ConstructionBudgetDetail();
                                 DummyRec.GroupCount = i;
-                                InitDispDataTitile(DummyRec, i);
+                                InitDispDataTitle(DummyRec, i);
                             }
                         }
 
                         // 工事予算書データ読込時タイトル処理
-                        InitDispDataTitile(DetailRec, GroupNo);
+                        InitDispDataTitle(DetailRec, GroupNo);
                         GroupNo = DetailRec.GroupCount;
                         icnt = 1;
                     }
@@ -1398,9 +1463,9 @@
                     RowData[(int)DispGridColumn.GroupCount] = DetailRec.GroupCount;
                     RowData[(int)DispGridColumn.ItemName] = DetailRec.FirstString;
                     RowData[(int)DispGridColumn.TextName] = DetailRec.SecondString;
-                    RowData[(int)DispGridColumn.SubContractorType] = DetailRec.CompanyType;
-                    RowData[(int)DispGridColumn.SubContractorCode] = DetailRec.CompanyCode;
-                    RowData[(int)DispGridColumn.SubContractorName] = DetailRec.CompanyName;
+                    RowData[(int)DispGridColumn.CompanyType] = DetailRec.CompanyType;
+                    RowData[(int)DispGridColumn.CompanyCode] = DetailRec.CompanyCode;
+                    RowData[(int)DispGridColumn.CompanyName] = DetailRec.CompanyName;
                     // 共通仮設費・外注費・自社施工のみ積算金額がある
                     if (DetailRec.GroupCount == (int)GroupName_ConstructionBudget.CommonTempCosts ||
                         DetailRec.GroupCount == (int)GroupName_ConstructionBudget.OutSourceCosts ||
@@ -1414,40 +1479,42 @@
                     RowData[(int)DispGridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
                     //RowData[(int)DispGridColumn.Percent] = DetailRec.AmountConfigRate.ToString("0.00");
                     RowData[(int)DispGridColumn.Percent] = CalculattionPercent(DetailRec.ExecutionAmount).ToString("0.00");
+                    // 協力業社交渉フラグ
+                    RowData[(int)DispGridColumn.Negotiation] = s_NegoStr[DetailRec.NegotiateFlg];
 
                     // 行セット
-                    bool bEnable = false;
-                    // 共通仮設費・外注費・自社施工のみ積算金額がある
                     switch (DetailRec.GroupCount)
                     {
-                        case (int)GroupName_ConstructionBudget.GrossProfit:         // 粗利益
-                        case (int)GroupName_ConstructionBudget.NetIncome:           // 純利益
-                        case (int)GroupName_ConstructionBudget.InstructorCosts:     // 指導員給与
-                        case (int)GroupName_ConstructionBudget.PayrollExpenses:     // 給与経費
-                            bEnable = true;
+                        case (int)GroupName_ConstructionBudget.PayrollExpenses:
+                            // 担当者給与
+                            CreatePayrollCosts(true);
                             break;
+                        case (int)GroupName_ConstructionBudget.AssistantCosts:
+                            // 副担当者給与
+                            CreateAssistantCosts(true);
+                            break;
+                        case (int)GroupName_ConstructionBudget.InstructorCosts:
+                            // 指導員給与
+                            CreateInstructorCosts(true);
+                            break;
+                        case (int)GroupName_ConstructionBudget.GrossProfit:
+                            // 粗利益行計算
+                            CreateGrossProfit(true);
+                            break;
+                        case (int)GroupName_ConstructionBudget.NetIncome:
+                            // 純利益計算
+                            CreateNetIncome(true);
+                            break;
+                        default:
+                            // 通常は行作成
+                            CreateDataRow(RowData, false);
+                            break;
                     }
-                    // 協力業社交渉フラグ
-                    RowData[(int)DispGridColumn.Negotiation] = s_NegoStr[DetailRec.NegotiateFlg];
-
-                    CreateDataRow(RowData, bEnable);
                     icnt++;
-
-                    // 給与の内容は毎回更新する
-                    if (DetailRec.GroupCount == (int)GroupName_ConstructionBudget.PayrollExpenses)
-                    {
-                        CreatePayrollExpenses(false);
-                    }
                 }
 
-                // 粗利益行計算
-                CalculateGrossProfit();
-
-                // 純利益計算
-                CalculateNetIncome();
-
                 // 合計金額
-                CreateAllTotal();
+                CreateAllTotal(true);
 
                 return true;
             }
@@ -1531,7 +1598,7 @@
             try
             {
                 // グループ名表示
-                CreateTitileRow((int)GroupName_ConstructionBudget.CommonTempCosts, GroupTitile[(int)GroupName_ConstructionBudget.CommonTempCosts]);
+                CreateTitleRow((int)GroupName_ConstructionBudget.CommonTempCosts, GroupTitle[(int)GroupName_ConstructionBudget.CommonTempCosts]);
 
                 // データ読込
                 List<EstimateBudgetDetail> DetailList = new List<EstimateBudgetDetail>();
@@ -1590,7 +1657,7 @@
             try
             {
                 // グループ名表示
-                CreateTitileRow((int)GroupName_ConstructionBudget.CommonTempCosts, GroupTitile[(int)GroupName_ConstructionBudget.CommonTempCosts]);
+                CreateTitleRow((int)GroupName_ConstructionBudget.CommonTempCosts, GroupTitle[(int)GroupName_ConstructionBudget.CommonTempCosts]);
 
                 // データ読込
                 string strSQL = string.Format(" WHERE CONSTRUCTIONCODE = {0}", m_ConstructionCode);
@@ -1611,9 +1678,9 @@
                     RowData[(int)DispGridColumn.FixFlg] = "*";
                     RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.CommonTempCosts;
                     RowData[(int)DispGridColumn.ItemName] = DetailRec.ItemName;
-                    RowData[(int)DispGridColumn.SubContractorType] = "0";
-                    RowData[(int)DispGridColumn.SubContractorCode] = "0";
-                    RowData[(int)DispGridColumn.SubContractorName] = "";
+                    RowData[(int)DispGridColumn.CompanyType] = "0";
+                    RowData[(int)DispGridColumn.CompanyCode] = "0";
+                    RowData[(int)DispGridColumn.CompanyName] = "";
                     RowData[(int)DispGridColumn.EstimatePrice] = DetailRec.LineTotal.ToString("#,0");
                     RowData[(int)DispGridColumn.NegotiationPrice] = "0";
                     RowData[(int)DispGridColumn.HopePrice] = DetailRec.LineTotal.ToString("#,0");
@@ -1653,7 +1720,7 @@
             try
             {
                 // グループ名表示
-                CreateTitileRow((int)GroupName_ConstructionBudget.OutSourceCosts, GroupTitile[(int)GroupName_ConstructionBudget.OutSourceCosts]);
+                CreateTitleRow((int)GroupName_ConstructionBudget.OutSourceCosts, GroupTitle[(int)GroupName_ConstructionBudget.OutSourceCosts]);
 
                 // 外注費の行カウントを取得する
                 m_CostsRowCount[(int)CostsRowLine.OutSourceCostsLine] = dgvAllDisplay.RowCount - 1;
@@ -1674,9 +1741,9 @@
                     RowData[(int)DispGridColumn.FixFlg] = "*";
                     RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.OutSourceCosts;
                     RowData[(int)DispGridColumn.ItemName] = DetailRec.SecondString;
-                    RowData[(int)DispGridColumn.SubContractorType] = 0;
-                    RowData[(int)DispGridColumn.SubContractorCode] = DetailRec.CompanyCode;
-                    RowData[(int)DispGridColumn.SubContractorName] = DetailRec.FirstString;
+                    RowData[(int)DispGridColumn.CompanyType] = 0;
+                    RowData[(int)DispGridColumn.CompanyCode] = DetailRec.CompanyCode;
+                    RowData[(int)DispGridColumn.CompanyName] = DetailRec.FirstString;
                     RowData[(int)DispGridColumn.EstimatePrice] = DetailRec.EstimatePrice.ToString("#,0");
                     RowData[(int)DispGridColumn.NegotiationPrice] = DetailRec.NegotiationPrice.ToString("#,0");
                     RowData[(int)DispGridColumn.HopePrice] = DetailRec.NegotiationPrice.ToString("#,0");
@@ -1716,7 +1783,7 @@
             try
             {
                 // グループ名表示
-                CreateTitileRow((int)GroupName_ConstructionBudget.OutSourceCosts, GroupTitile[(int)GroupName_ConstructionBudget.OutSourceCosts]);
+                CreateTitleRow((int)GroupName_ConstructionBudget.OutSourceCosts, GroupTitle[(int)GroupName_ConstructionBudget.OutSourceCosts]);
 
                 // 外注費の行カウントを取得する
                 m_CostsRowCount[(int)CostsRowLine.OutSourceCostsLine] = dgvAllDisplay.RowCount - 1;
@@ -1836,9 +1903,9 @@
             RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.OutSourceCosts;
             RowData[(int)DispGridColumn.ItemName] = ItemName;
             RowData[(int)DispGridColumn.TextName] = ComponentName;
-            RowData[(int)DispGridColumn.SubContractorType] = 0;
-            RowData[(int)DispGridColumn.SubContractorCode] = CompanyCode;
-            RowData[(int)DispGridColumn.SubContractorName] = CompanyName;
+            RowData[(int)DispGridColumn.CompanyType] = 0;
+            RowData[(int)DispGridColumn.CompanyCode] = CompanyCode;
+            RowData[(int)DispGridColumn.CompanyName] = CompanyName;
             RowData[(int)DispGridColumn.EstimatePrice] = SumaryValue.ToString("#,0");
             RowData[(int)DispGridColumn.NegotiationPrice] = "0"; ;
             RowData[(int)DispGridColumn.HopePrice] = SumaryValue.ToString("#,0");
@@ -1881,7 +1948,7 @@
             try
             {
                 // グループ名表示
-                CreateTitileRow((int)GroupName_ConstructionBudget.MyConstruction, GroupTitile[(int)GroupName_ConstructionBudget.MyConstruction]);
+                CreateTitleRow((int)GroupName_ConstructionBudget.MyConstruction, GroupTitle[(int)GroupName_ConstructionBudget.MyConstruction]);
 
                 // 自社施工の行カウントを取得する
                 m_CostsRowCount[(int)CostsRowLine.MyConstructionLine] = dgvAllDisplay.RowCount - 1;
@@ -1942,7 +2009,7 @@
             try
             {
                 // グループ名表示
-                CreateTitileRow((int)GroupName_ConstructionBudget.MyConstruction, GroupTitile[(int)GroupName_ConstructionBudget.MyConstruction]);
+                CreateTitleRow((int)GroupName_ConstructionBudget.MyConstruction, GroupTitle[(int)GroupName_ConstructionBudget.MyConstruction]);
 
                 // 自社施工の行カウントを取得する
                 m_CostsRowCount[(int)CostsRowLine.MyConstructionLine] = dgvAllDisplay.RowCount - 1;
@@ -1972,9 +2039,9 @@
                     RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.MyConstruction;
                     RowData[(int)DispGridColumn.ItemName] = CommonMotions.cnvString(wrkrec[1]).Trim();
                     RowData[(int)DispGridColumn.TextName] = CommonMotions.cnvString(wrkrec[5]).Trim();
-                    RowData[(int)DispGridColumn.SubContractorType] = "0";
-                    RowData[(int)DispGridColumn.SubContractorCode] = "0";
-                    RowData[(int)DispGridColumn.SubContractorName] = "";
+                    RowData[(int)DispGridColumn.CompanyType] = "0";
+                    RowData[(int)DispGridColumn.CompanyCode] = "0";
+                    RowData[(int)DispGridColumn.CompanyName] = "";
                     RowData[(int)DispGridColumn.EstimatePrice] = CommonMotions.cnvInt(wrkrec[2]).ToString("#,0");
                     RowData[(int)DispGridColumn.NegotiationPrice] = "0";
                     RowData[(int)DispGridColumn.HopePrice] = CommonMotions.cnvInt(wrkrec[2]).ToString("#,0");
@@ -2042,7 +2109,7 @@
                 RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.DisposeCosts;
 
                 RowData[(int)DispGridColumn.ComponentCode] = CompomentCode;
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionBudget.DisposeCosts];
+                RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionBudget.DisposeCosts];
                 RowData[(int)DispGridColumn.EstimatePrice] = EstimatePrice.ToString("#,0");
                 RowData[(int)DispGridColumn.NegotiationPrice] = NegoPrice.ToString("#,0");
                 RowData[(int)DispGridColumn.HopePrice] = NegoPrice.ToString("#,0");
@@ -2055,9 +2122,6 @@
                 // 発生処分費の行カウントを取得する
                 m_CostsRowCount[(int)CostsRowLine.DisposeCostsRowLine] = dgvAllDisplay.RowCount - 1;
 
-                // 空白行
-                AddEmptyRow();
-
                 return true;
             }
             catch (Exception ex)
@@ -2112,7 +2176,7 @@
                 RowData[(int)DispGridColumn.ComponentCode] = CompomentCode;
                 RowData[(int)DispGridColumn.ItemCode] = string.Empty;
 
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionBudget.DisposeCosts];
+                RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionBudget.DisposeCosts];
                 RowData[(int)DispGridColumn.EstimatePrice] = EstimatePrice.ToString("#,0");
                 RowData[(int)DispGridColumn.NegotiationPrice] = EstimatePrice.ToString("#,0");
                 RowData[(int)DispGridColumn.HopePrice] = EstimatePrice.ToString("#,0");
@@ -2125,9 +2189,6 @@
                 // 発生処分費の行カウントを取得する
                 m_CostsRowCount[(int)CostsRowLine.DisposeCostsRowLine] = dgvAllDisplay.RowCount - 1;
 
-                // 空白行
-                AddEmptyRow();
-
                 return true;
             }
             catch (Exception ex)
@@ -2181,7 +2242,7 @@
             IOEstimateBudgetDetail DetailDB = new IOEstimateBudgetDetail();
             try
             {
-                CreateTitileRow((int)GroupName_ConstructionBudget.PurchaseCosts, GroupTitile[(int)GroupName_ConstructionBudget.PurchaseCosts]);
+                CreateTitleRow((int)GroupName_ConstructionBudget.PurchaseCosts, GroupTitle[(int)GroupName_ConstructionBudget.PurchaseCosts]);
 
                 string strSQL = DetailDB.CreatePrimarykeyString(m_ConstructionCode);
                 strSQL += string.Format(" AND GROUPCOUNT = {0}", (int)GroupName_EstimateBudget.PurchasePrice);
@@ -2194,9 +2255,9 @@
                 RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", (int)GroupName_ConstructionBudget.PurchaseCosts, 1);
                 RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.PurchaseCosts;
                 RowData[(int)DispGridColumn.ItemName] = DetailRec.FirstString;
-                RowData[(int)DispGridColumn.SubContractorType] = 0;
-                RowData[(int)DispGridColumn.SubContractorCode] = DetailRec.CompanyCode;
-                RowData[(int)DispGridColumn.SubContractorName] = DetailRec.SecondString;
+                RowData[(int)DispGridColumn.CompanyType] = 0;
+                RowData[(int)DispGridColumn.CompanyCode] = DetailRec.CompanyCode;
+                RowData[(int)DispGridColumn.CompanyName] = DetailRec.SecondString;
                 RowData[(int)DispGridColumn.EstimatePrice] = DetailRec.EstimatePrice.ToString("#,0");
                 RowData[(int)DispGridColumn.NegotiationPrice] = DetailRec.NegotiationPrice.ToString("#,0");
                 RowData[(int)DispGridColumn.HopePrice] = DetailRec.NegotiationPrice.ToString("#,0");
@@ -2225,7 +2286,7 @@
         {
             try
             {
-                CreateTitileRow((int)GroupName_ConstructionBudget.PurchaseCosts, GroupTitile[(int)GroupName_ConstructionBudget.PurchaseCosts]);
+                CreateTitleRow((int)GroupName_ConstructionBudget.PurchaseCosts, GroupTitle[(int)GroupName_ConstructionBudget.PurchaseCosts]);
 
                 object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
                 // データセット
@@ -2263,7 +2324,7 @@
                 RowData[(int)DispGridColumn.FixFlg] = "*";
                 RowData[(int)DispGridColumn.No] = i;
                 RowData[(int)DispGridColumn.GroupCount] = i;
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[i];
+                RowData[(int)DispGridColumn.ItemName] = GroupTitle[i];
                 RowData[(int)DispGridColumn.EstimatePrice] = "";
                 RowData[(int)DispGridColumn.NegotiationPrice] = "";
                 RowData[(int)DispGridColumn.HopePrice] = "0";
@@ -2276,108 +2337,239 @@
         }
         #endregion
 
-        #region 指導員の表示データを作成
+        #region 副担当給与行作成
         /// <summary>
-        /// 指導員の表示データを作成する
+        /// 副担当給与表示
         /// </summary>
-        /// <param name="dCosts"></param>
-        /// <param name="ItemString"></param>
-        /// <param name="Content"></param>
-        private void CreateInstructorData(ref double dCosts, ref string ItemString, ref string Content)
+        /// <returns></returns>
+        private void CreateAssistantCosts(bool CreateRowLine)
         {
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
             try
             {
                 // 工期取得
-                double BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
+                double BetweenTimes = 0;
                 // デフォルト項目
-                ItemString = GroupTitile[(int)GroupName_ConstructionBudget.InstructorCosts];
+                string ItemString = GroupTitle[(int)GroupName_ConstructionBudget.AssistantCosts];
+                // 給与計算
+                double CostsValue = 0;
                 // 工事内容
-                Content = string.Format(s_InstructorMonthlyFormat, BetweenTimes.ToString("0.00"), m_InstructorMonthryCost.ToString("#,0"));
+                string Content = string.Empty;
 
-                // 指導員コスト（１カ月単価）を見えないラベルにセットする
-                m_DspLabelCtrl[(int)DspLblCtrlName.InstructorCosts].Text = m_InstructorMonthryCost.ToString();
+                // 指導員コードの設定           
+                int CodeType = (int)CommonDefine.SearchLogDataType.Person;
+                int PersonCode = m_SubConstractor;
 
-                // 指導員金額
-                dCosts = 0;
-                dCosts = m_InstructorMonthryCost * BetweenTimes;
+                // 設定無時はセットしない
+                if (PersonCode == 0) goto GridSet;
+                if (!pnlGroup2.Visible) goto GridSet;
 
-                // 担当者マスタを読込
-                string strSQL = picDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionInstructor);
-                PersonInChargeMaster PicRec = new PersonInChargeMaster();
-                if (picDB.SelectAction(strSQL, ref PicRec))
+                if (radioButton4.Checked)
+                {   // ----- 振分
+                    // 工期取得
+                    BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
+                    // 給与計算
+                    CostsValue = CommonDefine.AssistantMonthryCost * BetweenTimes;
+                    Content = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, CommonDefine.AssistantMonthryCost.ToString("#,0"));
+                }
+                else if (radioButton5.Checked)
                 {
-                    // 項目
-                    ItemString = string.Format(s_InstructorFormat, GroupTitile[(int)GroupName_ConstructionBudget.InstructorCosts], PicRec.SealPrintName);
+                    CodeType = 0;
+                    PersonCode = 0;
                 }
+                else if (radioButton6.Checked)
+                {   // ----- 日数指定
+                    // 日数取得
+                    int daycount = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.A_SalaryDays].Text);
+                    // 日額給与取得
+                    double daylySalary = CommonDefine.AssistantMonthryCost / CommonDefine.s_WorkingDaysOfMonth;
+                    CostsValue = daylySalary * daycount;
+                    Content = string.Format(CommonDefine.s_SalaryCostDaylyFormat, daycount.ToString("0"), daylySalary.ToString("#,0"));
+                }
+
+                // 工事内容
+                if (!CheckUserAndLeader()) Content = string.Empty;
+
+            GridSet:
+                DataGridView dgv = dgvAllDisplay;
+                if (CreateRowLine)
+                {
+                    object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
+                    // データセット
+                    RowData[(int)DispGridColumn.FixFlg] = "*";
+                    RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.AssistantCosts;
+                    RowData[(int)DispGridColumn.ItemName] = ItemString;
+                    RowData[(int)DispGridColumn.TextName] = Content;
+                    RowData[(int)DispGridColumn.CompanyType] = CodeType;
+                    RowData[(int)DispGridColumn.CompanyCode] = PersonCode;
+                    RowData[(int)DispGridColumn.EstimatePrice] = "";
+                    RowData[(int)DispGridColumn.NegotiationPrice] = "";
+                    RowData[(int)DispGridColumn.HopePrice] = CostsValue.ToString("#,0");
+                    RowData[(int)DispGridColumn.ExecPrice] = CostsValue.ToString("#,0");
+                    RowData[(int)DispGridColumn.Percent] = CalculattionPercent((CostsValue * BetweenTimes)).ToString("0.00");
+
+                    // 行セット
+                    CreateDataRow(RowData, true);
+
+                    // 行位置取得
+                    m_CostsRowCount[(int)CostsRowLine.AssistantRowLine] = dgv.RowCount - 1;
+
+                    return;     // 新規作成はここで抜ける
+                }
+                // 副担当行取得
+                int LineCnt = m_CostsRowCount[(int)CostsRowLine.AssistantRowLine];
+                if (LineCnt == 0) return;
+                DataGridViewRow CurRow = dgv.Rows[LineCnt];
+
+                // データセット
+                CurRow.Cells[(int)DispGridColumn.TextName].Value = Content;
+                CurRow.Cells[(int)DispGridColumn.EstimatePrice].Value = "";
+                CurRow.Cells[(int)DispGridColumn.NegotiationPrice].Value = "";
+                CurRow.Cells[(int)DispGridColumn.HopePrice].Value = CostsValue.ToString("#,0");
+                CurRow.Cells[(int)DispGridColumn.ExecPrice].Value = CostsValue.ToString("#,0");
+                CurRow.Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent(CostsValue).ToString("0.00");
+
+                // 粗利益行計算
+                CreateGrossProfit(false);
+
+                // 純利益計算
+                CreateNetIncome(false);
+
+                // 合計計算
+                CreateAllTotal(false);
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-            finally
-            {
-                picDB.close(); picDB = null;
-            }
         }
         #endregion
 
+        #region 副担当金額取得
+        /// <summary>
+        /// 副担当金額取得
+        /// </summary>
+        /// <param name="AssistantHope"></param>
+        /// <param name="AssistantExec"></param>
+        private void GetAssistantLineValue(ref int AssistantHope, ref int AssistantExec)
+        {
+
+            DataGridView dgv = dgvAllDisplay;
+            // 16期以降はは表示する
+            if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
+
+            int AssistantLine = m_CostsRowCount[(int)CostsRowLine.AssistantRowLine];
+            if (AssistantLine == 0) return;
+            AssistantHope = CommonMotions.cnvInt(dgv.Rows[AssistantLine].Cells[(int)DispGridColumn.HopePrice].Value);
+            AssistantExec = CommonMotions.cnvInt(dgv.Rows[AssistantLine].Cells[(int)DispGridColumn.ExecPrice].Value);
+        }
+        #endregion
+
         #region 指導員給与行作成
         /// <summary>
         /// 指導員給与表示
         /// </summary>
         /// <returns></returns>
-        private void CreateInstructorCosts()
+        private void CreateInstructorCosts(bool CreateRowLine)
         {
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
             try
             {
+                DataGridView dgv = dgvAllDisplay;
                 // 工期取得
-                double BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
+                double BetweenTimes = 0;
                 // デフォルト項目
-                string ItemString = GroupTitile[(int)GroupName_ConstructionBudget.InstructorCosts];
+                string ItemString = GroupTitle[(int)GroupName_ConstructionBudget.InstructorCosts];
+                // 給与計算
+                double CostsValue = 0;
                 // 工事内容
                 string Content = string.Empty;
 
-                // 指導員単価
-                double dCosts = 0;
+                // 指導員コードの設定           
+                int CodeType = (int)CommonDefine.SearchLogDataType.Person;
+                int PersonCode = m_Instructor;
 
-                // 指導員がある場合は指導員データをセットする
-                if (m_ConstructionBaseInfo.ConstructionInstructor != 0)
+                // 設定無時はセットしない
+                if (PersonCode == 0) goto GridSet;
+                if (!pnlGroup3.Visible) goto GridSet;
+
+                if (radioButton7.Checked)
+                {   // ----- 全日振分
+                    // 工期取得
+                    BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
+                    // 給与計算
+                    CostsValue = CommonDefine.InstructorMonthryCost * BetweenTimes;
+                    Content = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, CommonDefine.InstructorMonthryCost.ToString("#,0"));
+                }
+                else if (radioButton8.Checked)
                 {
-                    m_DspLabelCtrl[(int)DspLblCtrlName.InstructorCosts].Text = m_InstructorMonthryCost.ToString();
-                    CreateInstructorData(ref dCosts, ref ItemString, ref Content);
+                    CodeType = 0;
+                    PersonCode = 0;
                 }
+                else if (radioButton9.Checked)
+                {   // ----- 日数指定
+                    // 日数取得
+                    int daycount = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.I_SalaryDays].Text);
+                    // 日額給与取得
+                    double daylySalary = CommonDefine.AssistantMonthryCost / CommonDefine.s_WorkingDaysOfMonth;
+                    CostsValue = daylySalary * daycount;
+                    Content = string.Format(CommonDefine.s_SalaryCostDaylyFormat, daycount.ToString("0"), daylySalary.ToString("#,0"));
+                }
 
-                object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
+                // 工事内容
+                if (!CheckUserAndLeader()) Content = string.Empty;
+                
+            GridSet:
+
+                if (CreateRowLine)
+                {
+                    object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
+                    // データセット
+                    RowData[(int)DispGridColumn.FixFlg] = "*";
+                    RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.InstructorCosts;
+                    RowData[(int)DispGridColumn.ItemName] = ItemString;
+                    RowData[(int)DispGridColumn.TextName] = Content;
+                    RowData[(int)DispGridColumn.CompanyType] = CodeType;
+                    RowData[(int)DispGridColumn.CompanyCode] = PersonCode;
+                    RowData[(int)DispGridColumn.EstimatePrice] = "";
+                    RowData[(int)DispGridColumn.NegotiationPrice] = "";
+                    RowData[(int)DispGridColumn.HopePrice] = CostsValue.ToString("#,0");
+                    RowData[(int)DispGridColumn.ExecPrice] = CostsValue.ToString("#,0");
+                    RowData[(int)DispGridColumn.Percent] = CalculattionPercent((CostsValue * BetweenTimes)).ToString("0.00");
+
+                    // 行セット
+                    CreateDataRow(RowData, true);
+
+                    // 行位置取得
+                    m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = dgv.RowCount - 1;
+
+                    return;     // 新規作成はここで抜ける
+                }
+
+                // 指導員行取得
+                int LineCnt = m_CostsRowCount[(int)CostsRowLine.InstructorRowLine];
+                if (LineCnt == 0) return;
+                DataGridViewRow CurRow = dgv.Rows[LineCnt];
+
                 // データセット
-                RowData[(int)DispGridColumn.FixFlg] = "*";
-                RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.InstructorCosts;
-                RowData[(int)DispGridColumn.ItemName] = ItemString;
-                RowData[(int)DispGridColumn.TextName] = Content;
-                RowData[(int)DispGridColumn.EstimatePrice] = "";
-                RowData[(int)DispGridColumn.NegotiationPrice] = "";
-                RowData[(int)DispGridColumn.HopePrice] = dCosts.ToString("#,0");
-                RowData[(int)DispGridColumn.ExecPrice] = dCosts.ToString("#,0");
-                RowData[(int)DispGridColumn.Percent] = CalculattionPercent((dCosts * BetweenTimes)).ToString("0.00");
+                CurRow.Cells[(int)DispGridColumn.TextName].Value = Content;
+                CurRow.Cells[(int)DispGridColumn.EstimatePrice].Value = "";
+                CurRow.Cells[(int)DispGridColumn.NegotiationPrice].Value = "";
+                CurRow.Cells[(int)DispGridColumn.HopePrice].Value = CostsValue.ToString("#,0");
+                CurRow.Cells[(int)DispGridColumn.ExecPrice].Value = CostsValue.ToString("#,0");
+                CurRow.Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent(CostsValue).ToString("0.00");
 
-                // 行セット
-                CreateDataRow(RowData, true);
+                // 粗利益行計算
+                CreateGrossProfit(false);
 
-                // 行位置取得
-                DataGridView dgv = dgvAllDisplay;
-                int LineCnt = dgv.RowCount - 1;
-                m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = LineCnt;
+                // 純利益計算
+                CreateNetIncome(false);
 
+                // 合計計算
+                CreateAllTotal(false);
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-            finally
-            {
-                picDB.close(); picDB = null;
-            }
         }
         #endregion
 
@@ -2392,68 +2584,21 @@
 
             DataGridView dgv = dgvAllDisplay;
             // 16期以降はは表示する
-            if (m_ConstructionBaseInfo.ConstructionPeriod >= 16)
-            {
-                int InstructorLine = m_CostsRowCount[(int)CostsRowLine.InstructorRowLine];
-                if (InstructorLine == 0) return;
-                InstructorHope = CommonMotions.cnvInt(dgv.Rows[InstructorLine].Cells[(int)DispGridColumn.HopePrice].Value);
-                InstructorExec = CommonMotions.cnvInt(dgv.Rows[InstructorLine].Cells[(int)DispGridColumn.ExecPrice].Value);
-            }
-        }
-        #endregion
+            if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
 
-        #region 粗利益行計算
-        /// <summary>
-        /// 粗利益行計算
-        /// </summary>
-        /// <returns></returns>
-        private void CalculateGrossProfit()
-        {
-            try
-            {
-                // 受注金額取得
-                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", "").Replace("-", ""));
-
-                int EstimatePriceValue = 0;
-                int NegotiationPriceValue = 0;
-                int HopePriceValue = 0;
-                int ExecPriceValue = 0;
-                double PercentValue = 0;
-
-                // 合計値取得
-                GetDetailTotal(ref EstimatePriceValue, ref NegotiationPriceValue, ref HopePriceValue, ref ExecPriceValue, ref PercentValue);
-
-                DataGridView dgv = dgvAllDisplay;
-                // 指導員の給与取得
-                int InstructorHope = 0;
-                int InstructorExec = 0;
-                GetInstructorLineValue(ref InstructorHope, ref InstructorExec);
-
-                // 粗利益行カウント取得
-                int LineCnt = m_CostsRowCount[(int)CostsRowLine.GrossProfitRowLine];
-                if (LineCnt == 0) return;
-
-                // データセット
-                int HopeValue = OrdersPrice - (HopePriceValue + InstructorHope);
-                int ExecValue = OrdersPrice - (ExecPriceValue + InstructorExec);
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.HopePrice].Value = HopeValue.ToString("#,0");
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.ExecPrice].Value = ExecValue.ToString("#,0");
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent((double)ExecValue).ToString("0.00");
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
+            int InstructorLine = m_CostsRowCount[(int)CostsRowLine.InstructorRowLine];
+            if (InstructorLine == 0) return;
+            InstructorHope = CommonMotions.cnvInt(dgv.Rows[InstructorLine].Cells[(int)DispGridColumn.HopePrice].Value);
+            InstructorExec = CommonMotions.cnvInt(dgv.Rows[InstructorLine].Cells[(int)DispGridColumn.ExecPrice].Value);
         }
         #endregion
 
-        #region 粗利益行作成
+        #region 粗利益行作成・再計算
         /// <summary>
-        /// 粗利益表示
+        /// 粗利益表示・再計算
         /// </summary>
         /// <returns></returns>
-        private void CreateGrossProfit()
+        private void CreateGrossProfit(bool CrearteRow)
         {
             try
             {
@@ -2460,7 +2605,7 @@
                 DataGridView dgv = dgvAllDisplay;
 
                 // 受注金額取得
-                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", "").Replace("-", ""));
+                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", ""));
 
                 int EstimatePriceValue = 0;
                 int NegotiationPriceValue = 0;
@@ -2471,74 +2616,43 @@
                 // 合計値取得
                 GetDetailTotal(ref EstimatePriceValue, ref NegotiationPriceValue, ref HopePriceValue, ref ExecPriceValue, ref PercentValue);
 
-                // 指導員の給与取得
-                int InstructorHope = 0;
-                int InstructorExec = 0;
-                GetInstructorLineValue(ref InstructorHope, ref InstructorExec);
+                int HopeValue = OrdersPrice - HopePriceValue;
+                int ExecValue = OrdersPrice - ExecPriceValue;
 
-                int HopeValue = OrdersPrice - HopePriceValue - InstructorHope;
-                int ExecValue = OrdersPrice - ExecPriceValue - InstructorExec;
-
-                object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
-                // データセット
-                RowData[(int)DispGridColumn.FixFlg] = "*";
-                RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.GrossProfit;
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionBudget.GrossProfit];
-                // 16期以降は指導員金額を表示する
-                if (m_ConstructionBaseInfo.ConstructionPeriod >= 16)
+                if (CrearteRow)
                 {
-                    RowData[(int)DispGridColumn.TextName] = "（この項目に担当者給与は経費計上されてません。）";
-                }
-                RowData[(int)DispGridColumn.EstimatePrice] = "";
-                RowData[(int)DispGridColumn.NegotiationPrice] = "";
-                RowData[(int)DispGridColumn.HopePrice] = HopeValue.ToString("#,0");
-                RowData[(int)DispGridColumn.ExecPrice] = ExecValue.ToString("#,0");
-                RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecValue).ToString("0.00");
+                    object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
+                    // データセット
+                    RowData[(int)DispGridColumn.FixFlg] = "*";
+                    RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.GrossProfit;
+                    RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionBudget.GrossProfit];
+                    RowData[(int)DispGridColumn.EstimatePrice] = "";
+                    RowData[(int)DispGridColumn.NegotiationPrice] = "";
+                    RowData[(int)DispGridColumn.HopePrice] = HopeValue.ToString("#,0");
+                    RowData[(int)DispGridColumn.ExecPrice] = ExecValue.ToString("#,0");
+                    RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecValue).ToString("0.00");
 
-                // 行セット
-                CreateDataRow(RowData, true);
+                    // 空白行
+                    AddEmptyRow();
 
-                // 行位置取得
-                int LineCnt = dgv.RowCount - 1;
-                m_CostsRowCount[(int)CostsRowLine.GrossProfitRowLine] = LineCnt;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
+                    // 行セット
+                    CreateDataRow(RowData, true);
 
-        #region 給与経費行のクリア
-        /// <summary>
-        /// 給与経費行のクリア
-        /// </summary>
-        /// <returns></returns>
-        private void ClearPayrollExpenses()
-        {
-            try
-            {
-                // 16期以降は給与を表示する
-                if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
+                    // 行位置取得
+                    m_CostsRowCount[(int)CostsRowLine.GrossProfitRowLine] = dgv.RowCount - 1;
+                }
+                else
+                {
 
-                // 行位置取得
-                DataGridView dgv = dgvAllDisplay;
-                int LineCnt = m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine];
-                DataGridViewRow wrkRow = dgv.Rows[LineCnt];
+                    // 粗利益行カウント取得
+                    int LineCnt = m_CostsRowCount[(int)CostsRowLine.GrossProfitRowLine];
+                    if (LineCnt == 0) return;
 
-                wrkRow.Cells[(int)DispGridColumn.TextName].Value = "";
-                wrkRow.Cells[(int)DispGridColumn.HopePrice].Value = "0";
-                wrkRow.Cells[(int)DispGridColumn.ExecPrice].Value = "0";
-                wrkRow.Cells[(int)DispGridColumn.Percent].Value = "0.00";
-
-                // 粗利益行計算
-                CalculateGrossProfit();
-
-                // 純利益計算
-                CalculateNetIncome();
-
-                // 合計計算
-                CalculateAllTotal();
+                    // データセット
+                    dgv.Rows[LineCnt].Cells[(int)DispGridColumn.HopePrice].Value = HopeValue.ToString("#,0");
+                    dgv.Rows[LineCnt].Cells[(int)DispGridColumn.ExecPrice].Value = ExecValue.ToString("#,0");
+                    dgv.Rows[LineCnt].Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent((double)ExecValue).ToString("0.00");
+                }
             }
             catch (Exception ex)
             {
@@ -2547,12 +2661,12 @@
         }
         #endregion
 
-        #region 給与経費行作成
+        #region 給与経費行作成・再計算
         /// <summary>
-        /// 給与経費行作成
+        /// 給与経費行作成・再計算
         /// </summary>
         /// <returns></returns>
-        private void CreatePayrollExpenses(bool CreateRowLine)
+        private void CreatePayrollCosts(bool CreateRowLine)
         {
             try
             {
@@ -2559,6 +2673,7 @@
                 // 16期以降は給与を表示する
                 if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
 
+                DataGridView dgv = dgvAllDisplay;
                 // 工期取得
                 double BetweenTimes = 0;
                 // 給与単価
@@ -2568,6 +2683,14 @@
                 // 文字列
                 string Content = string.Empty;
 
+                // 工事担当者コードの設定           
+                int CodeType = (int)CommonDefine.SearchLogDataType.Person;
+                int PersonCode = m_Constructor;
+
+                // 設定無時はセットしない
+                if (PersonCode == 0) goto GridSet;
+                if (!pnlGroup1.Visible) goto GridSet;
+
                 if (radioButton1.Checked)
                 {   // ----- 全日振分
                     // 工期取得
@@ -2574,18 +2697,23 @@
                     BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
 
                     // 給与単価
-                    monthSalary = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.CreatorCosts].Text);
+                    monthSalary = m_CreatorMonthryCost;
 
                     // 給与計算
                     CostsValue = monthSalary * BetweenTimes;
-                    Content = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes.ToString("0.00"), monthSalary.ToString("#,0"));
+                    Content = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, monthSalary.ToString("#,0"));
                 }
+                else if (radioButton2.Checked)
+                {
+                    CodeType = 0;
+                    PersonCode = 0;
+                }
                 else if (radioButton3.Checked)
                 {   // ----- 日数指定
                     // 日数取得
                     int daycount = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.SalaryDays].Text);
                     // 担当給与
-                     monthSalary = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.CreatorCosts].Text);
+                    monthSalary = m_CreatorMonthryCost;
                     // 日額給与取得
                     double daylySalary = monthSalary / CommonDefine.s_WorkingDaysOfMonth;
                     CostsValue = daylySalary * daycount;
@@ -2593,10 +2721,9 @@
                 }
 
                 // 工事内容
-                if (!CheckUserAndLeader())
-                {
-                    Content = string.Empty;
-                }
+                if (!CheckUserAndLeader()) Content = string.Empty;
+
+            GridSet:
                 if (CreateRowLine)
                 {
                     object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
@@ -2603,8 +2730,10 @@
                     // データセット
                     RowData[(int)DispGridColumn.FixFlg] = "*";
                     RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.PayrollExpenses;
-                    RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionBudget.PayrollExpenses];
+                    RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionBudget.PayrollExpenses];
                     RowData[(int)DispGridColumn.TextName] = Content;
+                    RowData[(int)DispGridColumn.CompanyType] = CodeType;
+                    RowData[(int)DispGridColumn.CompanyCode] = PersonCode;
                     RowData[(int)DispGridColumn.EstimatePrice] = "";
                     RowData[(int)DispGridColumn.NegotiationPrice] = "";
                     RowData[(int)DispGridColumn.HopePrice] = CostsValue.ToString("#,0");
@@ -2615,35 +2744,32 @@
                     CreateDataRow(RowData, true);
 
                     // 行位置取得
-                    DataGridView dgv = dgvAllDisplay;
-                    int LineCnt = dgv.RowCount - 1;
-                    m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine] = LineCnt;
+                    m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine] = dgv.RowCount - 1;
+
+                    return;     // 新規作成はここで抜ける
                 }
-                else
-                {
-                    // 給与行取得
-                    int LineCnt = m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine];
-                    if (LineCnt == 0) return;
-                    DataGridView dgv = dgvAllDisplay;
-                    DataGridViewRow CurRow = dgv.Rows[LineCnt];
 
-                    // データセット
-                    CurRow.Cells[(int)DispGridColumn.TextName].Value = Content;
-                    CurRow.Cells[(int)DispGridColumn.EstimatePrice].Value = "";
-                    CurRow.Cells[(int)DispGridColumn.NegotiationPrice].Value = "";
-                    CurRow.Cells[(int)DispGridColumn.HopePrice].Value = CostsValue.ToString("#,0");
-                    CurRow.Cells[(int)DispGridColumn.ExecPrice].Value = CostsValue.ToString("#,0");
-                    CurRow.Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent(CostsValue).ToString("0.00");
+                // 給与行取得
+                int LineCnt = m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine];
+                if (LineCnt == 0) return;
+                DataGridViewRow CurRow = dgv.Rows[LineCnt];
 
-                    // 粗利益行計算
-                    CalculateGrossProfit();
+                // データセット
+                CurRow.Cells[(int)DispGridColumn.TextName].Value = Content;
+                CurRow.Cells[(int)DispGridColumn.EstimatePrice].Value = "";
+                CurRow.Cells[(int)DispGridColumn.NegotiationPrice].Value = "";
+                CurRow.Cells[(int)DispGridColumn.HopePrice].Value = CostsValue.ToString("#,0");
+                CurRow.Cells[(int)DispGridColumn.ExecPrice].Value = CostsValue.ToString("#,0");
+                CurRow.Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent(CostsValue).ToString("0.00");
 
-                    // 純利益計算
-                    CalculateNetIncome();
+                // 粗利益行計算
+                CreateGrossProfit(false);
 
-                    // 合計計算
-                    CalculateAllTotal();
-                }
+                // 純利益計算
+                CreateNetIncome(false);
+
+                // 合計計算
+                CreateAllTotal(false);
             }
             catch (Exception ex)
             {
@@ -2662,29 +2788,31 @@
         {
             DataGridView dgv = dgvAllDisplay;
             // 16期以降のみ処理する
-            if (m_ConstructionBaseInfo.ConstructionPeriod >= 16)
-            {
-                int CreatorLine = m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine];
-                if (CreatorLine == 0) return;
-                CreatorHope = CommonMotions.cnvInt(dgv.Rows[CreatorLine].Cells[(int)DispGridColumn.HopePrice].Value);
-                CreatorExec = CommonMotions.cnvInt(dgv.Rows[CreatorLine].Cells[(int)DispGridColumn.ExecPrice].Value);
-            }
+            if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
+
+            int CreatorLine = m_CostsRowCount[(int)CostsRowLine.ConstructorRowLine];
+            if (CreatorLine == 0) return;
+            CreatorHope = CommonMotions.cnvInt(dgv.Rows[CreatorLine].Cells[(int)DispGridColumn.HopePrice].Value);
+            CreatorExec = CommonMotions.cnvInt(dgv.Rows[CreatorLine].Cells[(int)DispGridColumn.ExecPrice].Value);
         }
         #endregion
 
-        #region 純利益計算
+        #region 純利益作成・再計算
         /// <summary>
-        /// 純利益計算
+        /// 純利益作成・再計算
         /// </summary>
         /// <returns></returns>
-        private void CalculateNetIncome()
+        private void CreateNetIncome(bool CreateRowLine)
         {
             try
             {
                 DataGridView dgv = dgvAllDisplay;
 
+                // 16期以降は給与を表示する
+                if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
+
                 // 受注金額取得
-                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", "").Replace("-", ""));
+                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", ""));
 
                 int EstimatePriceValue = 0;
                 int NegotiationPriceValue = 0;
@@ -2700,22 +2828,52 @@
                 int InstructorExec = 0;
                 GetInstructorLineValue(ref InstructorHope, ref InstructorExec);
 
+                // 副担当者の給与取得
+                int SubCreatorHope = 0;
+                int SubCreatorExec = 0;
+                GetAssistantLineValue(ref SubCreatorHope, ref SubCreatorExec);
+
                 // 担当者の給与取得
                 int CreatorHope = 0;
                 int CreatorExec = 0;
                 GetCreatorLineValue(ref CreatorHope, ref CreatorExec);
 
-                int HopeValue = OrdersPrice - HopePriceValue - InstructorHope - CreatorHope;
-                int ExecValue = OrdersPrice - ExecPriceValue - InstructorExec - CreatorExec;
+                int HopeValue = OrdersPrice - HopePriceValue - InstructorHope - SubCreatorHope - CreatorHope;
+                int ExecValue = OrdersPrice - ExecPriceValue - InstructorExec - SubCreatorExec - CreatorExec;
 
-                // 純利益行カウント取得
-                int LineCnt = m_CostsRowCount[(int)CostsRowLine.NetIncomeRowLine];
-                if (LineCnt == 0) return;
+                if (CreateRowLine)
+                {
+                    object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
+                    // データセット
+                    RowData[(int)DispGridColumn.FixFlg] = "*";
+                    RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.NetIncome;
+                    RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionBudget.NetIncome];
+                    RowData[(int)DispGridColumn.EstimatePrice] = "";
+                    RowData[(int)DispGridColumn.NegotiationPrice] = "";
+                    RowData[(int)DispGridColumn.HopePrice] = HopeValue.ToString("#,0");
+                    RowData[(int)DispGridColumn.ExecPrice] = ExecValue.ToString("#,0");
+                    RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecValue).ToString("0.00");
 
-                // データセット
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.HopePrice].Value = HopeValue.ToString("#,0");
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.ExecPrice].Value = ExecValue.ToString("#,0");
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent((double)ExecValue).ToString("0.00");
+                    // 空白行
+                    AddEmptyRow();
+
+                    // 行セット
+                    CreateDataRow(RowData, true);
+
+                    // 行位置取得
+                    m_CostsRowCount[(int)CostsRowLine.NetIncomeRowLine] = dgv.RowCount - 1;
+                }
+                else
+                {
+                    // 純利益行カウント取得
+                    int LineCnt = m_CostsRowCount[(int)CostsRowLine.NetIncomeRowLine];
+                    if (LineCnt == 0) return;
+
+                    // データセット
+                    dgv.Rows[LineCnt].Cells[(int)DispGridColumn.HopePrice].Value = HopeValue.ToString("#,0");
+                    dgv.Rows[LineCnt].Cells[(int)DispGridColumn.ExecPrice].Value = ExecValue.ToString("#,0");
+                    dgv.Rows[LineCnt].Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent((double)ExecValue).ToString("0.00");
+                }
             }
             catch (Exception ex)
             {
@@ -2724,62 +2882,36 @@
         }
         #endregion
 
-        #region 純利益作成
+        #region 行のクリア
         /// <summary>
-        /// 純利益作成
+        /// 行のクリア
         /// </summary>
         /// <returns></returns>
-        private void CreateNetIncome()
+        private void ClearDetailLine(int RowArrayCount)
         {
             try
             {
-                DataGridView dgv = dgvAllDisplay;
-
                 // 16期以降は給与を表示する
                 if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
 
-                // 受注金額取得
-                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", "").Replace("-", ""));
+                // 行位置取得
+                DataGridView dgv = dgvAllDisplay;
+                int LineCnt = m_CostsRowCount[RowArrayCount];
+                DataGridViewRow wrkRow = dgv.Rows[LineCnt];
 
-                int EstimatePriceValue = 0;
-                int NegotiationPriceValue = 0;
-                int HopePriceValue = 0;
-                int ExecPriceValue = 0;
-                double PercentValue = 0;
+                wrkRow.Cells[(int)DispGridColumn.TextName].Value = "";
+                wrkRow.Cells[(int)DispGridColumn.HopePrice].Value = "0";
+                wrkRow.Cells[(int)DispGridColumn.ExecPrice].Value = "0";
+                wrkRow.Cells[(int)DispGridColumn.Percent].Value = "0.00";
 
-                // 合計値取得
-                GetDetailTotal(ref EstimatePriceValue, ref NegotiationPriceValue, ref HopePriceValue, ref ExecPriceValue, ref PercentValue);
+                // 粗利益行計算
+                CreateGrossProfit(false);
 
-                // 指導員の給与取得
-                int InstructorHope = 0;
-                int InstructorExec = 0;
-                GetInstructorLineValue(ref InstructorHope, ref InstructorExec);
+                // 純利益計算
+                CreateNetIncome(false);
 
-                // 担当者の給与取得
-                int CreatorHope = 0;
-                int CreatorExec = 0;
-                GetCreatorLineValue(ref CreatorHope, ref CreatorExec);
-
-                int HopeValue = OrdersPrice - HopePriceValue - InstructorHope - CreatorHope;
-                int ExecValue = OrdersPrice - ExecPriceValue - InstructorExec - CreatorExec;
-
-                object[] RowData = new object[Enum.GetNames(typeof(DispGridColumn)).Length];
-                // データセット
-                RowData[(int)DispGridColumn.FixFlg] = "*";
-                RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionBudget.NetIncome;
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionBudget.NetIncome];
-                RowData[(int)DispGridColumn.EstimatePrice] = "";
-                RowData[(int)DispGridColumn.NegotiationPrice] = "";
-                RowData[(int)DispGridColumn.HopePrice] = HopeValue.ToString("#,0");
-                RowData[(int)DispGridColumn.ExecPrice] = ExecValue.ToString("#,0");
-                RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecValue).ToString("0.00");
-
-                // 行セット
-                CreateDataRow(RowData, true);
-
-                // 行位置取得
-                int LineCnt = dgv.RowCount - 1;
-                m_CostsRowCount[(int)CostsRowLine.NetIncomeRowLine] = LineCnt;
+                // 合計計算
+                CreateAllTotal(false);
             }
             catch (Exception ex)
             {
@@ -2855,13 +2987,11 @@
                 if (GroupCount == (int)GroupName_ConstructionBudget.OutSourceCosts
                     || GroupCount == (int)GroupName_ConstructionBudget.PurchaseCosts
                     || GroupCount == (int)GroupName_ConstructionBudget.MyConstruction)
-                {   // 外注費・自社施工・購入品グループの場合は上に追加
-                    InsertCnt = CurRow.Index;
-                    // タイトルの場合は下
-                    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) InsertCnt++;
+                {   // 外注費・自社施工・購入品グループの場合は下に追加
+                    InsertCnt = CurRow.Index + 1;
                 }
                 else if (GroupCount == 0)
-                {   // 空白行で外注費・自社施工・購入品のすぐ後は対象とする
+                {   // 空白行で外注費・自社施工・購入品のすぐ後は対象とする（上に追加）
                     DataGridViewRow wrkRow = dgv.Rows[dgv.CurrentRow.Index - 1];
                     GroupCount = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value);
                     if (GroupCount == (int)GroupName_ConstructionBudget.OutSourceCosts
@@ -2926,7 +3056,7 @@
                 SetData.Cells[(int)DispGridColumn.ExecPrice].Value = "0";
                 SetData.Cells[(int)DispGridColumn.Percent].Value = "0.00";
                 // フラグセット
-                dgv.Rows[InsertCnt].Cells[(int)DispGridColumn.TitileFlg].Value = "0";
+                dgv.Rows[InsertCnt].Cells[(int)DispGridColumn.TitleFlg].Value = "0";
                 dgv.Rows[InsertCnt].Cells[(int)DispGridColumn.TotalFlg].Value = "0";
                 dgv.Rows[InsertCnt].Cells[(int)DispGridColumn.BlankFlg].Value = "0";
 
@@ -2983,7 +3113,7 @@
                 {   // 外注費・自社施工・購入品グループの場合は削除
                     RemoveCnt = CurRow.Index;
                     // タイトルの場合は削除無
-                    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) RemoveCnt = 0;
+                    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) RemoveCnt = 0;
                 }
 
                 // 選択行が不正ならば処理しない
@@ -3079,11 +3209,11 @@
                     UpCnt = CurRow.Index;
                     // １行上を取得する
                     DataGridViewRow wrkRow = dgv.Rows[dgv.CurrentRow.Index - 1];
-                    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1)
                     {   // タイトルの場合は処理しない
                         UpCnt = 0;
                     }
-                    else if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                    else if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1)
                     {   // １行上がタイトルの場合は処理しない
                         UpCnt = 0;
                     }
@@ -3130,7 +3260,7 @@
                     DownCnt = CurRow.Index;
                     // １行下を取得する
                     DataGridViewRow wrkRow = dgv.Rows[dgv.CurrentRow.Index + 1];
-                    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1)
                     {   // タイトルの場合は処理しない
                         DownCnt = 0;
                     }
@@ -3233,17 +3363,23 @@
                 // 工事コード
                 work.ConstructionCode = m_ConstructionCode;
                 // 作成者コード
-                work.CreatorCode = m_ConstructionBaseInfo.ConstructionPersonCode;
+                work.CreatorCode = m_Constructor;
                 // 作成者名
                 work.CreatorName = m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName].Text;
                 // 作成者給与
-                work.CreatorCosts = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.CreatorCosts].Text);
+                work.CreatorCosts = (double)m_CreatorMonthryCost;
+                // 工事副担当者コード
+                work.AssistantCode = m_SubConstractor;
+                // 工事副担当者名
+                work.AssistantName = m_DspLabelCtrl[(int)DspLblCtrlName.AssistantName].Text;
+                // 工事副担当者給与
+                work.AssistantCosts = (double)m_AssistantMonthryCost;
                 // 工事指導員コード
-                work.InstructorCode = m_ConstructionBaseInfo.ConstructionInstructor;
+                work.InstructorCode = m_Instructor;
                 // 工事指導員名
                 work.InstructorName = m_DspLabelCtrl[(int)DspLblCtrlName.InstructorName].Text;
                 // 工事指導員給与
-                work.InstructorCosts = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.InstructorCosts].Text);
+                work.InstructorCosts = (double)m_InstructorMonthryCost;
                 // 工期（単位・月）
                 work.ConstructionTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
                 // 	契約工期開始
@@ -3252,9 +3388,12 @@
                 work.ConstructionEnd = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text);
 
                 // 指導員稼働月数
-                work.InstructorTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.InstructorTime].Text);
+                work.InstructorTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
 
-                // 給与振分区分
+                int HopeValue = 0;
+                int ExecValue = 0;
+                // 担当者給与振分区分
+                GetCreatorLineValue(ref HopeValue, ref ExecValue);
                 if (radioButton1.Checked)
                 {
                     work.SalaryFlg = (int)CommonDefine.SalaryDevision.All;       // 全日
@@ -3269,6 +3408,40 @@
                     work.SalaryDays = CommonMotions.cnvInt(textBox1.Text);
                 }
 
+                // 副担当者給与振分区分
+                HopeValue = 0; ExecValue = 0;
+                GetAssistantLineValue(ref HopeValue, ref ExecValue);
+                if (radioButton4.Checked)
+                {
+                    work.A_SalaryFlg = (int)CommonDefine.SalaryDevision.All;       // 全日
+                }
+                else if (radioButton5.Checked)
+                {
+                    work.A_SalaryFlg = (int)CommonDefine.SalaryDevision.Noting;    // 振分無
+                }
+                else if (radioButton6.Checked)
+                {
+                    work.A_SalaryFlg = (int)CommonDefine.SalaryDevision.DaysInput; // 日数入力
+                    work.A_SalaryDays = CommonMotions.cnvInt(textBox2.Text);
+                }
+
+                // 指導員給与振分区分
+                HopeValue = 0; ExecValue = 0;
+                GetInstructorLineValue(ref HopeValue, ref ExecValue);
+                if (radioButton7.Checked)
+                {
+                    work.I_SalaryFlg = (int)CommonDefine.SalaryDevision.All;       // 全日
+                }
+                else if (radioButton8.Checked)
+                {
+                    work.I_SalaryFlg = (int)CommonDefine.SalaryDevision.Noting;    // 振分無
+                }
+                else if (radioButton6.Checked)
+                {
+                    work.I_SalaryFlg = (int)CommonDefine.SalaryDevision.DaysInput; // 日数入力
+                    work.I_SalaryDays = CommonMotions.cnvInt(textBox3.Text);
+                }
+
                 // 検索文字列作成
                 string strWhere = BudgetDB.CreatePrimarykeyString(work.ConstructionCode);
 
@@ -3339,8 +3512,8 @@
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) continue;
 
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
@@ -3364,17 +3537,13 @@
                     // 項目名称
                     work.FirstString = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn.ItemName].Value);
                     // 工事内容
-                    if (work.GroupCount == (int)GroupName_ConstructionBudget.PayrollExpenses)
-                    {
-                        wrkRow.Cells[(int)DispGridColumn.TextName].Value = MakePersonSalaryString();
-                    }
                     work.SecondString = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn.TextName].Value);
                     // 協力会社コードタイプ   
-                    work.CompanyType = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.SubContractorType].Value);
+                    work.CompanyType = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.CompanyType].Value);
                     // 協力会社コード
-                    work.CompanyCode = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.SubContractorCode].Value);
+                    work.CompanyCode = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.CompanyCode].Value);
                     // 協力会社名称
-                    work.CompanyName = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn.SubContractorName].Value);
+                    work.CompanyName = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn.CompanyName].Value);
                     // 積算時見積金額
                     work.EstimatePrice = CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn.EstimatePrice].Value);
                     // 積算時交渉金額
@@ -3469,8 +3638,8 @@
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) != 0) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) != 0) continue;
 
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) != 0) continue;
@@ -3497,7 +3666,6 @@
                         CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_ConstructionBudget.OutSourceCosts ||
                         CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_ConstructionBudget.MyConstruction)
                     {
-
                         // 交渉金額行毎のチェック
                         if (!CommonMotions.chkNumeric(wrkRow.Cells[(int)DispGridColumn.NegotiationPrice].Value))
                         {
@@ -3795,14 +3963,14 @@
 
                 frm.ConstructionCode = m_ConstructionCode;
                 frm.StartupSource = (int)ClsExcute.ProcessExecuteNo.ConstructionBudget;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton == System.Windows.Forms.DialogResult.OK)
                 {
                     SubContractorMaster selRec = frm.SelectData;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorType].Value = frm.DataType;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorCode].Value = selRec.CompanyCode;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorName].Value = selRec.CompanyName;
+                    dgv.CurrentRow.Cells[(int)DispGridColumn.CompanyType].Value = frm.DataType;
+                    dgv.CurrentRow.Cells[(int)DispGridColumn.CompanyCode].Value = selRec.CompanyCode;
+                    dgv.CurrentRow.Cells[(int)DispGridColumn.CompanyName].Value = selRec.CompanyName;
                 }
             }
             catch (System.Exception ex)
@@ -3829,15 +3997,16 @@
                 // 対象グリッド取得
                 DataGridView dgv = dgvAllDisplay;
 
+
                 frm.ConstructionCode = m_ConstructionCode;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton == System.Windows.Forms.DialogResult.OK)
                 {
                     SuppliersMaster selRec = frm.SelectData;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorType].Value = 0;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorCode].Value = selRec.SuppliersCode;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorName].Value = selRec.SuppliersName1 + " " + selRec.SuppliersName2;
+                    dgv.CurrentRow.Cells[(int)DispGridColumn.CompanyType].Value = 0;
+                    dgv.CurrentRow.Cells[(int)DispGridColumn.CompanyCode].Value = selRec.SuppliersCode;
+                    dgv.CurrentRow.Cells[(int)DispGridColumn.CompanyName].Value = selRec.SuppliersName1 + " " + selRec.SuppliersName2;
                     m_bChengeAns = true;
                 }
             }
@@ -3871,8 +4040,6 @@
                 btnDataDelete.Visible = false;
                 btnLineAdd.Visible = false;
                 btnLineDel.Visible = false;
-                button1.Enabled = false;
-                button2.Enabled = false;
 
             }
             catch (Exception ex)
@@ -3882,43 +4049,6 @@
         }
         #endregion
 
-        #region 指導員の行を更新
-        /// <summary>
-        /// 指導員の行を更新する
-        /// </summary>
-        private void UpDateInstructorLine()
-        {
-            try
-            {
-                // 設定無は処理しない
-                if (m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] < 1) return;
-                
-                // 工期取得
-                double BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
-                // デフォルト項目
-                string ItemString = string.Empty;
-                // 工事内容
-                string Content = string.Empty;
-                // 指導員単価
-                double dCosts = 0;
-                // 行データ作成
-                CreateInstructorData(ref dCosts, ref ItemString, ref Content);
-
-                DataGridViewRow RowData = dgvAllDisplay.Rows[m_CostsRowCount[(int)CostsRowLine.InstructorRowLine]];
-                // データセット
-                RowData.Cells[(int)DispGridColumn.ItemName].Value = ItemString;
-                RowData.Cells[(int)DispGridColumn.TextName].Value = Content;
-                RowData.Cells[(int)DispGridColumn.HopePrice].Value = dCosts.ToString("#,0");
-                RowData.Cells[(int)DispGridColumn.ExecPrice].Value = dCosts.ToString("#,0");
-                RowData.Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent((dCosts * BetweenTimes)).ToString("0.00");
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
         #region セルの入力後処理
         /// <summary>
         /// セルの入力後処理
@@ -3935,8 +4065,8 @@
                 if (CommonMotions.chkObjectIsNull(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TotalFlg].Value)) return;
                 if (CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TotalFlg].Value) != 0) return;
 
-                if (CommonMotions.chkObjectIsNull(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TitileFlg].Value)) return;
-                if (CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TitileFlg].Value) != 0) return;
+                if (CommonMotions.chkObjectIsNull(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TitleFlg].Value)) return;
+                if (CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TitleFlg].Value) != 0) return;
 
                 if (CommonMotions.chkObjectIsNull(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.BlankFlg].Value)) return;
                 if (CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.BlankFlg].Value) != 0) return;
@@ -3964,13 +4094,13 @@
                 dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent(ExceValue).ToString("0.00");
 
                 // 粗利益行計算
-                CalculateGrossProfit();
+                CreateGrossProfit(false);
 
                 // 純利益計算
-                CalculateNetIncome();
+                CreateNetIncome(false);
 
                 // 合計計算
-                CalculateAllTotal();
+                CreateAllTotal(false);
             }
             catch (System.Exception ex)
             {
@@ -4014,60 +4144,63 @@
         }
         #endregion
 
-        #region 自分以外の一般ユーザーと所属長をチェックする
+        #region ユーザーをチェックする
         /// <summary>
-        /// 自分以外の一般ユーザーと所属長をチェックする
+        /// ユーザーをチェックする
         /// </summary>
         /// <returns></returns>
         private bool CheckUserAndLeader()
         {
-            IOConstructionBudget BudgetDB = new IOConstructionBudget();
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
+                bool bPermit = false;
                 if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement)
                 {
-                    // システム管理者（すべて対象）
-                    return true;
+                    // システム管理者
+                    bPermit = true;
                 }
-                else
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key)
                 {
-                    // 最高機密管理者（すべて対象）・
-                    for (int i = (int)CommonDefine.SysManaDivNo.PresidentAuthority; i <= (int)CommonDefine.SysManaDivNo.SupervisorAuthority; i++)
-                    {
-                        if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[i].Key) return true;
-                    }
+                    // 最高機密管理者
+                    bPermit = true;
                 }
-
-                // 工事予算書データ読込
-                string strSQL = BudgetDB.CreatePrimarykeyString(m_ConstructionCode);
-                ConstructionBudget BudgetRec = new ConstructionBudget();
-                bool bBudget = BudgetDB.SelectAction(strSQL, ref BudgetRec);
-                // 工事予算書データが無い場合は工事情報で確認する
-                if (!bBudget)
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
                 {
-                    // 工事担当者をデータにセットする
-                    BudgetRec.CreatorCode = m_ConstructionBaseInfo.ConstructionPersonCode;
+                    // 統括責任者
+                    bPermit = true;
                 }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
+                {
 
-                int userSecCode = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key;
-                // 自分以外の一般ユーザーはfalse
-                if (CommonMotions.LoginUserData.SecurityManagement == userSecCode && CommonMotions.LoginUserData.PersonCode != BudgetRec.CreatorCode)
-                {
-                    return false;
+                    // 上長は工事が自部署の関連だけ
+                    List<int> PersonList = new List<int>();
+                    PersonList.Add(m_ConstructionBaseInfo.SalesPersonCode);
+                    PersonList.Add(m_ConstructionBaseInfo.ConstructionPersonCode);
+                    if (m_ConstructionBaseInfo.ConstrSubPersonCode != 0) PersonList.Add(m_ConstructionBaseInfo.ConstrSubPersonCode);
+                    if (m_ConstructionBaseInfo.ConstructionInstructor != 0) PersonList.Add(m_ConstructionBaseInfo.ConstructionInstructor);
+
+                    foreach (int Personcode in PersonList)
+                    {
+                        string strSQL = PersonDB.CreatePrimarykeyString(Personcode);
+                        PersonInChargeMaster PersonRec = new PersonInChargeMaster();
+                        if (!PersonDB.SelectAction(strSQL, ref PersonRec)) continue;
+
+                        // 所属上長では無ければfalse
+                        if (PersonRec.DepartmentCode == CommonMotions.LoginUserData.DepartmentCode)
+                        {
+                            bPermit = true;
+                            break;
+                        }
+                    }
+
                 }
-                int LeaderSecCode = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key;
-                if (CommonMotions.LoginUserData.SecurityManagement == LeaderSecCode)
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
                 {
-                    strSQL = PersonDB.CreatePrimarykeyString(BudgetRec.CreatorCode);
-                    PersonInChargeMaster PersonRec = new PersonInChargeMaster();
-                    if (!PersonDB.SelectAction(strSQL, ref PersonRec)) return false;
-
-                    // 所属上長では無ければfalse
-                    if (PersonRec.DepartmentCode != CommonMotions.LoginUserData.DepartmentCode) return false;
+                    // 一般ユーザー
+                    bPermit = false;
                 }
-
-                return true;
+                return bPermit;
             }
             catch (Exception ex)
             {
@@ -4076,50 +4209,10 @@
             }
             finally
             {
-                BudgetDB.close(); BudgetDB = null;
                 PersonDB.close(); PersonDB = null;
             }
         }
         #endregion
 
-        #region 担当者給与文字列を作成する
-        /// <summary>
-        /// 担当者給与文字列を作成する
-        /// </summary>
-        /// <returns></returns>
-        private string MakePersonSalaryString()
-        {
-            try
-            {
-                string sRet = string.Empty;
-                
-                if (radioButton1.Checked)
-                {   // ----- 全日振分
-                    // 工期取得
-                    double BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
-                    // 給与単価
-                    int monthSalary = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.CreatorCosts].Text);
-                    sRet = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes.ToString("0.00"), monthSalary.ToString("#,0"));
-                }
-                else if (radioButton3.Checked)
-                {   // ----- 日数指定
-                    // 日数取得
-                    int daycount = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.SalaryDays].Text);
-                    // 担当給与
-                    int monthSalary = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.CreatorCosts].Text);
-                    // 日額給与取得
-                    double daylySalary = monthSalary / CommonDefine.s_WorkingDaysOfMonth;
-                    sRet = string.Format(CommonDefine.s_SalaryCostDaylyFormat, daycount.ToString("0"), daylySalary.ToString("#,0"));
-                }
-
-                return sRet;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return string.Empty;
-            }
-        }
-        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/ProcessControl.cs	(revision 6)
@@ -329,32 +329,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -366,32 +373,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -643,7 +657,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
@@ -718,6 +732,7 @@
                 int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
                 FrmConstructionBaseInfo frm = (FrmConstructionBaseInfo)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
                 bool ThisEnd = frm.ParentEnd;
+                bool DataChange = frm.DataChenge;
 
                 // ハンドルクリア
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
@@ -734,6 +749,14 @@
                 else
                 {
                     this.Activate();
+                    // データ変更がある場合は再表示
+                    if (DataChange)
+                    {
+                        GetBaseInfoData();
+                        SetConstructorCode();
+                        if (m_ConstructionBaseInfo.ConstructionPeriod >= 16) GetExpensesList();
+                        InitDataLoad();
+                    }
                 }
             }
             catch (Exception ex)
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs	(revision 6)
@@ -36,63 +36,67 @@
     public enum GroupName_ConstructionLedger
     {
         /// <summary>
-        /// ��
+        /// 0:��
         /// </summary>
         Empty = 0,
         /// <summary>
-        /// �o��
+        /// 1:�o��
         /// </summary>
         Expenses,
         /// <summary>
-        /// �{�H��
+        /// 2:�{�H��
         /// </summary>
         ConstructionCosts,
         /// <summary>
-        /// ��ʔ�i�ʍs���E�d�ԑ�j
+        /// 3:��ʔ�i�ʍs���E�d�ԑ�j
         /// </summary>
         TransportationCosts,
         /// <summary>
-        /// �w���i
+        /// 4:�w���i
         /// </summary>
         PurchaseCosts,
         /// <summary>
-        /// �ԗ����[�X��
+        /// 5:�ԗ����[�X��
         /// </summary>
         VehicleLeaseFee,
         /// <summary>
-        /// ���ԏ�E���ޒu����
+        /// 6:���ԏ�E���ޒu����
         /// </summary>
         ParkingCosts,
         /// <summary>
-        /// �h����
+        /// 7:�h����
         /// </summary>
         RoomChargeCosts,
         /// <summary>
-        /// �����
+        /// 8:�����
         /// </summary>
         DisposeCosts,
         /// <summary>
-        /// �w���������s
+        /// 9:�w���������s
         /// </summary>
         Instructor,
         /// <summary>
-        /// �����s
+        /// 10:���S���ҋ����s
         /// </summary>
-        PayrollExpenses,
+        Assistant,
         /// <summary>
-        /// �����v
+        /// 11:�S���ҋ����s
         /// </summary>
+        Payroll,
+        /// <summary>
+        /// 12:�����v
+        /// </summary>
         NetIncome,
         /// <summary>
-        /// ���v���z
+        /// 13:���v���z
         /// </summary>
         AllTotal,
         /// <summary>
-        /// �������z
+        /// 14:�������z
         /// </summary>
         BillingAmount,
         /// <summary>
-        /// ���ݗ��v���z
+        /// 15:���ݗ��v���z
         /// </summary>
         CurrentProfit,
     }
@@ -113,7 +117,7 @@
         /// <summary>
         /// �\���J����
         /// </summary>
-        private enum DispGridColumn
+        private enum GridColumn
         {
             No = 0,
             FixFlg,
@@ -122,17 +126,18 @@
             ItemCode,
             ItemName,
             TextName,
-            SubContractorType,
-            SubContractorCode,
-            SubContractorName,
+            CompanyType,
+            CompanyCode,
+            CompanyName,
             EstimatePrice,
             ExecPrice,
             Percent,
-            TitileFlg,
+            TitleFlg,
             TotalFlg,
             BlankFlg,
             IndependentFlg,
             ChildFlg,
+            FluctuationFlg,
             payment,
         }
 
@@ -175,6 +180,10 @@
             /// </summary>
             CreatorName,
             /// <summary>
+            /// ���S����
+            /// </summary>
+            AssistantName,
+            /// <summary>
             /// �w������
             /// </summary>
             InstructorName,
@@ -206,6 +215,10 @@
             /// �\�Z����
             /// </summary>
             BudgetOverrun,
+            /// <summary>
+            /// �����Җ�
+            /// </summary>
+            OrdersName,
         }
         #endregion
 
@@ -217,7 +230,7 @@
         /// <summary>
         /// �O���[�v�v�E�^�C�g���o�b�N�J���[
         /// </summary>
-        private static Color s_TitileRowBackColor = Color.LightGoldenrodYellow;
+        private static Color s_TitleRowBackColor = Color.LightGoldenrodYellow;
         /// <summary>
         /// �O���[�v�v�������z�o�b�N�J���[
         /// </summary>
@@ -240,7 +253,7 @@
         /// <summary>
         /// �O���b�h���ڍs�^�C�g��
         /// </summary>
-        private static string[] s_GroupTitile = new string[] { ""
+        private static string[] s_GroupTitle = new string[] { ""
                                                             , "�o�@�@�@�@�@��"
                                                             , "�{�@�@�H�@�@��"
                                                             , "��ʔ�i�ʍs���E�d�ԑ�j"
@@ -250,7 +263,8 @@
                                                             , "�h�@�@���@�@��"
                                                             , "���@���@��@��"
                                                             , "�w �� �� �� �^"
-                                                            , "���@�^�@�o�@��"
+                                                            , "�� �S �� �� �� �^"
+                                                            , "�S �� �� �� �^"
                                                             , "���@�@���@�@�v"
                                                             , "���@�v�@���@�z"
                                                             , "���@���@���@�z"
@@ -262,7 +276,7 @@
         /// <summary>
         /// �Œ�J�����^�C�g��
         /// </summary>
-        private static string[] ColumnsTitile = new string[] { "�x�@���@���@�v",
+        private static string[] ColumnsTitle = new string[] { "�x�@���@���@�v",
                                                                 "�x �� �� �\ �z",
                                                                 "�x�@���@���@��",
                                                                 "�x �� �� �U �g"};
@@ -275,59 +289,63 @@
         private enum CostsRowLine
         {
             /// <summary>
-            /// �o��
+            /// 0:�o��
             /// </summary>
             ExpensesRowLine = 0,
             /// <summary>
-            /// �{�H��
+            /// 1:�{�H��
             /// </summary>
             ConstructionCostLine,
             /// <summary>
-            /// �w���i
+            /// 2:�w���i
             /// </summary>
             PurchaseCostsRowLine,
             /// <summary>
-            /// �ԗ����[�X��
+            /// 3:�ԗ����[�X��
             /// </summary>
             VehicleLeaseFeeRowLine,
             /// <summary>
-            /// ��ʔ�i�ʍs���E�d�ԑ�j
+            /// 4:��ʔ�i�ʍs���E�d�ԑ�j
             /// </summary>
             TransportationCostsRowLine,
             /// <summary>
-            /// ���ԏ�E���ޒu����
+            /// 5:���ԏ�E���ޒu����
             /// </summary>
             ParkingCostsRowLine,
             /// <summary>
-            /// �h����
+            /// 6:�h����
             /// </summary>
             RoomChargeCostsRowLine,
             /// <summary>
-            /// �����
+            /// 7:�����
             /// </summary>
             DisposeCostsRowLine,
             /// <summary>
-            /// �w���������s
+            /// 8:�w���������s
             /// </summary>
             InstructorRowLine,
             /// <summary>
-            /// �����s
+            /// 9:���S���ҋ����s
             /// </summary>
-            PayrollExpensesRowLine,
+            AssistantRowLine,
             /// <summary>
-            /// �����v
+            /// 10:�����s
             /// </summary>
+            PayrollRowLine,
+            /// <summary>
+            /// 11:�����v
+            /// </summary>
             NetIncomeRowLine,
             /// <summary>
-            /// ���v���z
+            /// 12:���v���z
             /// </summary>
             AllTotalRowLine,
             /// <summary>
-            /// �������z
+            /// 13:�������z
             /// </summary>
             BillingAmountRowLine,
             /// <summary>
-            /// ���ݗ��v���z
+            /// 14:���ݗ��v���z
             /// </summary>
             CurrentProfitRowLine,
         }
@@ -351,7 +369,7 @@
             /// </summary>
             Totals = -4,
             /// <summary>
-            /// ����
+            /// �x���\�z
             /// </summary>
             Results = -3,
             /// <summary>
@@ -387,6 +405,11 @@
         private int m_ConstructionCode = 0;
 
         /// <summary>
+        /// �ǉ��H���R�[�h
+        /// </summary>
+        private int m_AddingConstrCode = 0;
+
+        /// <summary>
         /// �I���{�^�������t���O
         /// </summary>
         private bool m_CloseingProcessOn = true;
@@ -407,41 +430,11 @@
         private int m_WindowHeight = 0;
 
         /// <summary>
-        /// �o��X�g
-        /// </summary>
-        private ArrayList ExpensesList = new ArrayList();
-        /// <summary>
-        /// �e�������o��i7���j
-        /// </summary>
-        private const double m_PartExpenses = 7.0;
-        /// <summary>
-        /// �������o��i8���j
-        /// </summary>
-        private const double m_OfficeExpenes = 8.0;
-        /// <summary>
-        /// �c�ƌo��i5���j
-        /// </summary>
-        private const double m_SaleseExpenes = 5.0;
-
-        /// <summary>
         /// �Y���H����{���
         /// </summary>
         private ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo();
 
         /// <summary>
-        /// �H����{�����
-        /// </summary>
-        private FrmConstructionBaseInfo m_frmBase = null;
-        /// <summary>
-        /// �ώZ���ϓ��͉��
-        /// </summary>
-        private FrmEstimateInput m_frmEstimate = null;
-        /// <summary>
-        /// �ώZ�\�Z���͉��
-        /// </summary>
-        private FrmEstimateBudget m_frmBudget = null;
-
-        /// <summary>
         /// ���F�҃��X�g�n���h��
         /// </summary>
         private FrmApprovalAuthorizerList m_frmAuthorizerList = null;
@@ -449,24 +442,24 @@
         /// <summary>
         /// ���x���R���g���[���ێ��z��
         /// </summary>
-        private Control[] m_DspLabelCtrl = new Control[12];
+        private Control[] m_DspLabelCtrl = null;
 
         /// <summary>
         /// ��`�s�J�E���g�z��
         /// </summary>
-        private int[] m_CostsRowCount = new int[14];
+        private int[] m_CostsRowCount = null;
 
         /// <summary>
         /// �x�����쐬�G���A
         /// </summary>
-        private DataGridViewColumn[] m_GridPaymentColList;
-        private DataGridViewCellStyle[] m_GridPaymentCellStyleList;
+        private DataGridViewColumn[] m_GridPaymentColList = null;
+        private DataGridViewCellStyle[] m_GridPaymentCellStyleList = null;
 
         /// <summary>
         /// ���v�E���ї��쐬�G���A
         /// </summary>
-        private DataGridViewColumn[] m_GridTotalColList;
-        private DataGridViewCellStyle[] m_GridTotalCellStyleList;
+        private DataGridViewColumn[] m_GridTotalColList = null;
+        private DataGridViewCellStyle[] m_GridTotalCellStyleList = null;
 
         #region Cell���T�C�Y
         /// <summary>
@@ -492,8 +485,15 @@
         private bool m_ParentEnd = false;
         // *-----* ���ʏ����ݒ� *-----*
 
+        #region �o��X�g
+        /// <summary>
+        /// �o��X�g
+        /// </summary>
+        private ArrayList m_ExpensesList = new ArrayList();
         #endregion
 
+        #endregion
+
         #region �v���p�e�B
         /// <summary>
         /// �H���ԍ�
@@ -518,7 +518,7 @@
         /// </summary>
         public int GetGridColumsCount
         {
-            get { return Enum.GetNames(typeof(DispGridColumn)).Length; }
+            get { return Enum.GetNames(typeof(GridColumn)).Length; }
         }
 
         /// <summary>
@@ -530,13 +530,30 @@
         }
 
         /// <summary>
-        /// �H���ڍב䒠�f�[�^�쐬
+        /// �H���ڍב䒠�f�[�^�ۑ�
         /// </summary>
-        public bool CreateLedgerData
+        public bool SaveLedgerData
         {
-            get { return NonDspLedgerCreate(); }
+            get { return NonDspLedgerSave(); }
         }
 
+        /// <summary>
+        /// �ǉ��H���R�[�h
+        /// </summary>
+        public int AddingConstrCode
+        {
+            get { return m_AddingConstrCode; }
+            set { m_AddingConstrCode = value; }
+        }
+
+        /// <summary>
+        /// �H���ڍב䒠�f�[�^�Ƀf�[�^�ǉ�
+        /// </summary>
+        public bool AddDataLedger
+        {
+            get { return AdditionLedgerData(); }
+        }
+
         // *-----* ���ʏ����ݒ� *-----*
         /// <summary>
         /// �T�u�t�H�[���t���O
@@ -556,6 +573,28 @@
         }
         // *-----* ���ʏ����ݒ� *-----*
 
+        /// <summary>
+        /// �S���҃^�C�g���擾
+        /// </summary>
+        public string GetTitleConstructor
+        {
+            get { return s_GroupTitle[(int)GroupName_ConstructionLedger.Payroll]; }
+        }
+        /// <summary>
+        /// ���S���^�C�g���擾
+        /// </summary>
+        public string GetTitleAssistant
+        {
+            get { return s_GroupTitle[(int)GroupName_ConstructionLedger.Assistant]; }
+        }
+        /// <summary>
+        /// �w�����^�C�g���擾
+        /// </summary>
+        public string GetTitleInstructor
+        {
+            get { return s_GroupTitle[(int)GroupName_ConstructionLedger.Instructor]; }
+        }
+
         #endregion
 
         #region �R���X�g���N�^
@@ -632,78 +671,6 @@
         }
         #endregion
 
-        #region �H����{���̃N���[�Y���擾����
-        /// <summary>
-        /// �H����{���̃N���[�Y���擾����
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmBase_FormClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                this.Activate();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // �n���h���N���A
-                m_frmBase.Dispose(); m_frmBase = null;
-            }
-        }
-        #endregion
-
-        #region �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// <summary>
-        /// �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmEstimateClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                    this.Activate();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // �n���h���N���A
-                m_frmEstimate.Dispose(); m_frmEstimate = null;
-            }
-        }
-        #endregion
-
-        #region �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// <summary>
-        /// �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmBudgetClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                this.Activate();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // �n���h���N���A
-                m_frmBudget.Dispose(); m_frmBudget = null;
-            }
-        }
-        #endregion
-
         #region Entry�L�[�ł̈ړ�����
         /// <summary>
         /// Entry�L�[�ł̈ړ�����
@@ -734,6 +701,24 @@
                     return;
                 }
 
+                // 16���ȍ~�͕������ƂɌo���ݒ肷��
+                if (m_ConstructionBaseInfo.ConstructionPeriod < 16)
+                {
+                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[0].Key, CommonDefine.BeforeExpenses[0].Value });
+                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[1].Key, CommonDefine.BeforeExpenses[1].Value });
+                    m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[2].Key, CommonDefine.BeforeExpenses[2].Value });
+                }
+                else
+                {
+                    // �������Ƃ̌o����擾����
+                    if (!GetExpensesList())
+                    {
+                        MessageBox.Show("�o��ݒ肳��Ă��܂��񂵂܂���", "�G���[�\��", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                        this.Close();
+                        return;
+                    }
+                }
+
                 // �����ݒ�
                 InitSettingLoad();
 
@@ -750,20 +735,6 @@
                 CreateProcessContextMenu(m_SubForm);
                 // *-----* �����ړ��{�^���ݒ� *-----*
 
-                // ���F��ʂ́u���F�Ώۃf�[�^������v����̋N�����͏��F�{�^���̕\��������
-                bool bApproval = ClsApprovalPermission.ExceApprovalScreen();
-                if (bApproval)
-                {
-                    // �H���Č��̊Ǘ��������擾����
-                    int DepartmentCode = ClsApprovalPermission.GetFromConstructionTheDepartment(m_ConstructionCode);
-                    // ���F�ΏۃR�[�h���擾����
-                    int ApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals("�H���\�Z�����F")).Key;
-                    // �Č��ɑ΂��Đ\��������Ă��邩���m�F����
-                    bool Pettition = ClsApprovalPermission.CheckPetition(m_ConstructionCode, ApprovalCode);
-                    // ���O�C���҂����F�҂����m�F����
-                    bool Approvaler = ClsApprovalPermission.CheckUserForApprover(ApprovalCode, DepartmentCode);
-                }
-
                 // �����������҂��f�[�^�ɃA�N�Z�X����ꍇ�͏�ɎQ�ƃ��[�h
                 //if (CommonMotions.LoginUserData.DepartmentCode == CommonDefine.s_GeneralAffairsDevision)
                 //{
@@ -812,26 +783,6 @@
         }
         #endregion
 
-        #region �t�H�[���N��������
-        /// <summary>
-        /// �t�H�[���N��������
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmConstructionLedger_Shown(object sender, EventArgs e)
-        {
-            try
-            {
-                // ���F�҈ꗗ�\��
-                //DispAuthtorizerListControl();
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
         #region ���F�҈ꗗ�N���[�Y
         /// <summary>
         /// ���F�҈ꗗ�̃N���[�Y���擾����
@@ -865,58 +816,6 @@
         }
         #endregion
 
-        #region ���F�҈ꗗ�\��
-        /// <summary>
-        /// ���F�҈ꗗ�\��
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnApprovalList_Click(object sender, EventArgs e)
-        {
-            // �t�H�[�����\������Ă���ꍇ�͑O�ʕ\�����Ĕ�����
-            if (m_frmAuthorizerList != null)
-            {
-                m_frmAuthorizerList.Activate();
-                return;
-            }
-
-            // ���F�󋵉�ʕ\��
-            DispAuthtorizerListControl();
-        }
-        #endregion
-
-        #region ���F�҉�ʕ\��
-        /// <summary>
-        /// ���F��ʂ�\������
-        /// </summary>
-        private void DispAuthtorizerListControl()
-        {
-            try
-            {
-                // ���F�҈ꗗ�\��
-                m_frmAuthorizerList = new FrmApprovalAuthorizerList();
-                // �p�����[�^�Z�b�g
-                m_frmAuthorizerList.ConstructionCode = m_ConstructionCode;
-                int ProgressComplete = ClsExcute.AppovalList.First(x => x.Value.Equals("�H���\�Z�����F")).Key;
-
-                m_frmAuthorizerList.ApprovalCode = ProgressComplete;
-                // �ʒu�ݒ�
-                m_frmAuthorizerList.LocationPoint = new Point(this.Right, this.Top);
-
-                // �^�X�N�o�[�ɕ\�����Ȃ�
-                m_frmAuthorizerList.ShowInTaskbar = false;
-
-                // �N���[�X�h�n���h����������Œ�`����
-                m_frmAuthorizerList.FormClosed += new FormClosedEventHandler(FrmApprovalAuthorizerList_FormClosed);
-                m_frmAuthorizerList.Show();
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
         #region �Z���̃L�[�_�E��
         /// <summary>
         /// �Z���̃L�[�_�E������
@@ -938,18 +837,18 @@
             {
                 DataGridViewCell CurCell = dgvAllDisplay.CurrentCell;
                 // ���͉�Ж��̂ݏ�������
-                if (CurCell.ColumnIndex != (int)DispGridColumn.SubContractorName) return;
+                if (CurCell.ColumnIndex != (int)GridColumn.CompanyName) return;
                 
                 DataGridViewRow CurRow = dgvAllDisplay.CurrentRow;
                 // ���ʉ��ݔ�E�O����̂ݏ�������
-                int GroupNo = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                int GroupNo = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value);
                 if (GroupNo != (int)GroupName_ConstructionBudget.CommonTempCosts
                     && GroupNo != (int)GroupName_ConstructionBudget.OutSourceCosts) return;
                 
                 // ���͉�ЃR�[�h�E���̂��N���A����
-                CurRow.Cells[(int)(int)DispGridColumn.SubContractorType].Value = 0;
-                CurRow.Cells[(int)(int)DispGridColumn.SubContractorCode].Value = 0;
-                CurRow.Cells[(int)(int)DispGridColumn.SubContractorName].Value = string.Empty;
+                CurRow.Cells[(int)(int)GridColumn.CompanyType].Value = 0;
+                CurRow.Cells[(int)(int)GridColumn.CompanyCode].Value = 0;
+                CurRow.Cells[(int)(int)GridColumn.CompanyName].Value = string.Empty;
                 m_bChengeAns = true;
             }
         }
@@ -965,115 +864,16 @@
         {
             try
             {
+                // �I�����͏������Ȃ�
+                if (!this.Visible) return;
+                if (ActiveControl.Name.Equals(btnEnd.Name)) return;
+                
                 DataGridView dgv = dgvAllDisplay;
                 DataGridViewRow CurRow = dgv.CurrentRow;
-                // ���׈ȊO�͏������Ȃ�
-                if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)DispGridColumn.TotalFlg].Value)) return;
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) return;
 
-                if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value)) return;
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) != 0) return;
+                // �Čv�Z����
+                RowReCalculate(CurRow, e.RowIndex, e.ColumnIndex);
 
-                if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)DispGridColumn.BlankFlg].Value)) return;
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.BlankFlg].Value) != 0) return;
-
-                // �󔒍s�͏������Ȃ�
-                if (BlankLine(e.RowIndex)) return;
-
-                // �O���[�v�ԍ��擾
-                int GroupNo = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.GroupCount].Value);
-
-                // ���͒l�ҏW
-                switch (e.ColumnIndex)
-                {
-                    case (int)DispGridColumn.EstimatePrice:
-                        // �\����z
-                        CurRow.Cells[e.ColumnIndex].Value = CommonMotions.cnvInt(CurRow.Cells[e.ColumnIndex].Value).ToString("#,#");
-                        break;
-                    case (int)DispGridColumn.ExecPrice:
-                        // ���s���z
-                        int execprice = CommonMotions.cnvInt(CurRow.Cells[e.ColumnIndex].Value);
-                        CurRow.Cells[e.ColumnIndex].Value = execprice.ToString("#,#");
-
-                        if (GroupNo != (int)GroupName_ConstructionLedger.BillingAmount && GroupNo != (int)GroupName_ConstructionLedger.CurrentProfit)
-                        {
-                            // �䗦�v�Z
-                            CurRow.Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent(execprice).ToString("0.00");
-                        }
-                        break;
-                    default:
-                        // ���̑�
-                        if (e.ColumnIndex >= (int)DispGridColumn.payment)
-                        {
-                            CurRow.Cells[e.ColumnIndex].Value = CommonMotions.cnvInt(CurRow.Cells[e.ColumnIndex].Value).ToString("#,#");
-                        }
-                        break;
-                }
-
-                // �]�����ڂ�����Ɨ����ڂł���Ύ��s�̍��v��\�����Ȃ�
-                bool bDspTotalFlg = true;
-                int nextRowCnt = CurRow.Index + 1;
-                if (nextRowCnt < dgv.RowCount)
-                {
-                    // ���s�͓Ɨ�����
-                    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.IndependentFlg].Value) == 1)
-                    {
-                        // ���s�͏]������
-                        if (CommonMotions.cnvInt(dgv.Rows[nextRowCnt].Cells[(int)DispGridColumn.ChildFlg].Value) == 1)
-                            bDspTotalFlg = false;
-                    }
-                }
-
-                // ���v�\��
-                int TotalCols = dgv.ColumnCount + (int)ColPayTotal.Totals;
-                int RowTotal = 0;
-                if (bDspTotalFlg)
-                {
-                    // �x�����z�̍��v
-                    RowTotal = 0;
-                    for (int i = (int)DispGridColumn.payment; i < TotalCols; i++)
-                    {
-                        RowTotal += CommonMotions.cnvInt(CurRow.Cells[i].Value);
-                    }
-                }
-                else
-                {   // �\�����Ȃ��Ƃ��͎x�����v��0�ɂ���
-                    RowTotal = 0;
-                }
-
-                // �O���[�v�ɂ���Ďx���v�Z�̕\������ύX����
-                switch (GroupNo)
-                {
-                    case (int)GroupName_ConstructionLedger.NetIncome:
-                        // �����v�͎x�����z�����v�Z���Ȃ�
-                    case (int)GroupName_ConstructionLedger.BillingAmount:
-                        // �������z�͎x�����z�����v�Z���Ȃ�
-                        break;
-                    default:
-
-                        // ���ѕ\��
-                        int ExecPrice = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.ExecPrice].Value);
-                        int ResultCols = dgv.ColumnCount + (int)ColPayTotal.Results;
-                        int ResultValue = (ExecPrice - RowTotal);
-                        CurRow.Cells[TotalCols].Value = RowTotal.ToString("#,0");
-                        CurRow.Cells[ResultCols].Value = ResultValue.ToString("#,0");
-
-                        // �x���\�z�E�x�����߂̕ҏW
-                        SetOverPayment(CurRow.Index);
-                        break;
-                }
-                // �������z�v�Z
-                CalculateBillingAmount();
-
-                // �����v�v�Z
-                CalculateNetIncome();
-                
-                // ���v�v�Z
-                CalculateAllTotal();
-
-                /// ���ݗ��v�v�Z
-                CalculateCurrentProfit();
-
             }
             catch (System.Exception ex)
             {
@@ -1110,9 +910,9 @@
                 //IME�̃��[�h��ύX����
                 switch (e.ColumnIndex)
                 {
-                    case (int)DispGridColumn.ItemName:                          // ����
-                    case (int)DispGridColumn.TextName:                          // �H�����e
-                    case (int)DispGridColumn.SubContractorName:                 // ���͉��
+                    case (int)GridColumn.ItemName:                          // ����
+                    case (int)GridColumn.TextName:                          // �H�����e
+                    case (int)GridColumn.CompanyName:                 // ���͉��
                         dgv.ImeMode = ImeMode.On;
                         break;
                     default:
@@ -1181,16 +981,16 @@
             DataGridView dgv = dgvAllDisplay;
 
             // �^�C�g���͏������Ȃ�
-            if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) return;
+            if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)GridColumn.TitleFlg].Value) == 1) return;
 
             switch (e.ColumnIndex)
             {
                 // ----- ���͉�Ж��Z��
-                case (int)DispGridColumn.SubContractorName:
+                case (int)GridColumn.CompanyName:
                     // �O���b�h���Ə����݋֎~�͏����I��
                     if (dgv.ReadOnly) return;
 
-                    int GroupNo = CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                    int GroupNo = CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)GridColumn.GroupCount].Value);
                     switch (GroupNo)
                     {
                         case (int)GroupName_ConstructionLedger.ConstructionCosts:
@@ -1206,7 +1006,7 @@
                         default:
                             break;
                     }
-
+                    dgv.EndEdit();
                     break;
                 default:
                     break;
@@ -1369,5 +1169,43 @@
 
         }
         #endregion
+
+        #region ���S���ҕύX�{�^������
+        /// <summary>
+        /// ���S���ҕύX�{�^������
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnAssistantChange_Click(object sender, EventArgs e)
+        {
+            ChangeAssistantOrInstractor((int)CommonDefine.PersonSelectFlg.Assistant);
+        }
+        #endregion
+
+        #region �w�����ύX�{�^������
+        /// <summary>
+        /// �w�����ύX�{�^������
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnInstractorChange_Click(object sender, EventArgs e)
+        {
+            // ���S���ҁ^�w�����ύX����
+            ChangeAssistantOrInstractor((int)CommonDefine.PersonSelectFlg.Instructor);
+        }
+        #endregion
+
+        #region �󒍋��z�ύX�{�^������
+        /// <summary>
+        /// �󒍋��z�ύX�{�^������
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnChangePrice_Click(object sender, EventArgs e)
+        {
+            // �󒍋��z�ύX����
+            OpenOrderPriceChangeWindow();
+        }
+        #endregion
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.designer.cs	(revision 6)
@@ -30,25 +30,26 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
             this.label1 = new System.Windows.Forms.Label();
             this.btnDataDelete = new System.Windows.Forms.Button();
             this.btnDataEntry = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
             this.panel1 = new System.Windows.Forms.Panel();
+            this.label20 = new System.Windows.Forms.Label();
+            this.label21 = new System.Windows.Forms.Label();
+            this.label18 = new System.Windows.Forms.Label();
+            this.lblBudgetOverrun = new System.Windows.Forms.Label();
             this.btnComplate = new System.Windows.Forms.Button();
             this.lblComplate = new System.Windows.Forms.Label();
-            this.label18 = new System.Windows.Forms.Label();
-            this.lblBudgetOverrun = new System.Windows.Forms.Label();
             this.label17 = new System.Windows.Forms.Label();
             this.label16 = new System.Windows.Forms.Label();
-            this.btnApprovalList = new System.Windows.Forms.Button();
             this.lblConstructionCodelabel = new System.Windows.Forms.Label();
             this.lblLabel01 = new System.Windows.Forms.Label();
             this.label3 = new System.Windows.Forms.Label();
@@ -73,9 +74,6 @@
             this.panel2 = new System.Windows.Forms.Panel();
             this.lblCellTotal = new System.Windows.Forms.Label();
             this.dgvAllDisplay = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
-            this.btnDispDown = new System.Windows.Forms.Button();
-            this.btnDispUp = new System.Windows.Forms.Button();
-            this.btnOtherProc = new System.Windows.Forms.Button();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -94,6 +92,15 @@
             this.Column17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.btnDispDown = new System.Windows.Forms.Button();
+            this.btnDispUp = new System.Windows.Forms.Button();
+            this.btnOtherProc = new System.Windows.Forms.Button();
+            this.btnAssistantChange = new System.Windows.Forms.Button();
+            this.btnInstractorChange = new System.Windows.Forms.Button();
+            this.btnChangePrice = new System.Windows.Forms.Button();
+            this.lblLabel06 = new System.Windows.Forms.Label();
+            this.label23 = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             this.panel2.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).BeginInit();
@@ -160,13 +167,16 @@
             this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Top;
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
             this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.panel1.Controls.Add(this.lblLabel06);
+            this.panel1.Controls.Add(this.label23);
+            this.panel1.Controls.Add(this.label20);
+            this.panel1.Controls.Add(this.label21);
+            this.panel1.Controls.Add(this.label18);
+            this.panel1.Controls.Add(this.lblBudgetOverrun);
             this.panel1.Controls.Add(this.btnComplate);
             this.panel1.Controls.Add(this.lblComplate);
-            this.panel1.Controls.Add(this.label18);
-            this.panel1.Controls.Add(this.lblBudgetOverrun);
             this.panel1.Controls.Add(this.label17);
             this.panel1.Controls.Add(this.label16);
-            this.panel1.Controls.Add(this.btnApprovalList);
             this.panel1.Controls.Add(this.lblConstructionCodelabel);
             this.panel1.Controls.Add(this.lblLabel01);
             this.panel1.Controls.Add(this.label3);
@@ -186,37 +196,41 @@
             this.panel1.Controls.Add(this.lblLabel04);
             this.panel1.Location = new System.Drawing.Point(7, 40);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(1290, 140);
+            this.panel1.Size = new System.Drawing.Size(1330, 160);
             this.panel1.TabIndex = 0;
             // 
-            // btnComplate
+            // label20
             // 
-            this.btnComplate.BackColor = System.Drawing.Color.Red;
-            this.btnComplate.Font = new System.Drawing.Font("ＭＳ ゴシック", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnComplate.Location = new System.Drawing.Point(1245, 0);
-            this.btnComplate.Name = "btnComplate";
-            this.btnComplate.Size = new System.Drawing.Size(34, 34);
-            this.btnComplate.TabIndex = 51;
-            this.btnComplate.Text = "済";
-            this.btnComplate.UseVisualStyleBackColor = false;
-            this.btnComplate.Click += new System.EventHandler(this.btnComplate_Click);
+            this.label20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.label20.BackColor = System.Drawing.Color.Beige;
+            this.label20.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label20.Location = new System.Drawing.Point(665, 95);
+            this.label20.Name = "label20";
+            this.label20.Size = new System.Drawing.Size(114, 25);
+            this.label20.TabIndex = 57;
+            this.label20.Text = "副担当者";
+            this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // lblComplate
+            // label21
             // 
-            this.lblComplate.BackColor = System.Drawing.Color.White;
-            this.lblComplate.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblComplate.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lblComplate.Location = new System.Drawing.Point(983, 2);
-            this.lblComplate.Name = "lblComplate";
-            this.lblComplate.Size = new System.Drawing.Size(262, 30);
-            this.lblComplate.TabIndex = 50;
-            this.lblComplate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.label21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.label21.BackColor = System.Drawing.Color.White;
+            this.label21.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label21.ForeColor = System.Drawing.Color.Black;
+            this.label21.Location = new System.Drawing.Point(787, 95);
+            this.label21.Name = "label21";
+            this.label21.Size = new System.Drawing.Size(160, 25);
+            this.label21.TabIndex = 58;
+            this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
             // label18
             // 
+            this.label18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label18.BackColor = System.Drawing.Color.SandyBrown;
             this.label18.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label18.Location = new System.Drawing.Point(983, 104);
+            this.label18.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label18.ForeColor = System.Drawing.Color.Black;
+            this.label18.Location = new System.Drawing.Point(959, 95);
             this.label18.Name = "label18";
             this.label18.Size = new System.Drawing.Size(114, 25);
             this.label18.TabIndex = 48;
@@ -225,23 +239,50 @@
             // 
             // lblBudgetOverrun
             // 
+            this.lblBudgetOverrun.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.lblBudgetOverrun.BackColor = System.Drawing.Color.White;
             this.lblBudgetOverrun.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblBudgetOverrun.Font = new System.Drawing.Font("MS UI Gothic", 12F, System.Drawing.FontStyle.Bold);
             this.lblBudgetOverrun.ForeColor = System.Drawing.Color.Red;
-            this.lblBudgetOverrun.Location = new System.Drawing.Point(1105, 104);
+            this.lblBudgetOverrun.Location = new System.Drawing.Point(1081, 95);
             this.lblBudgetOverrun.Name = "lblBudgetOverrun";
             this.lblBudgetOverrun.Size = new System.Drawing.Size(170, 25);
             this.lblBudgetOverrun.TabIndex = 49;
             this.lblBudgetOverrun.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             // 
+            // btnComplate
+            // 
+            this.btnComplate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnComplate.BackColor = System.Drawing.Color.Red;
+            this.btnComplate.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnComplate.Location = new System.Drawing.Point(1285, 0);
+            this.btnComplate.Name = "btnComplate";
+            this.btnComplate.Size = new System.Drawing.Size(34, 34);
+            this.btnComplate.TabIndex = 51;
+            this.btnComplate.Text = "済";
+            this.btnComplate.UseVisualStyleBackColor = false;
+            this.btnComplate.Click += new System.EventHandler(this.btnComplate_Click);
+            // 
+            // lblComplate
+            // 
+            this.lblComplate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.lblComplate.BackColor = System.Drawing.Color.White;
+            this.lblComplate.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblComplate.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lblComplate.Location = new System.Drawing.Point(959, 2);
+            this.lblComplate.Name = "lblComplate";
+            this.lblComplate.Size = new System.Drawing.Size(326, 30);
+            this.lblComplate.TabIndex = 50;
+            this.lblComplate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // label17
             // 
             this.label17.BackColor = System.Drawing.Color.White;
             this.label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label17.ForeColor = System.Drawing.Color.Black;
-            this.label17.Location = new System.Drawing.Point(127, 71);
+            this.label17.Location = new System.Drawing.Point(427, 95);
             this.label17.Name = "label17";
-            this.label17.Size = new System.Drawing.Size(240, 25);
+            this.label17.Size = new System.Drawing.Size(230, 25);
             this.label17.TabIndex = 47;
             this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
@@ -249,7 +290,7 @@
             // 
             this.label16.BackColor = System.Drawing.Color.SandyBrown;
             this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label16.Location = new System.Drawing.Point(5, 71);
+            this.label16.Location = new System.Drawing.Point(305, 95);
             this.label16.Name = "label16";
             this.label16.Size = new System.Drawing.Size(114, 25);
             this.label16.TabIndex = 46;
@@ -256,25 +297,11 @@
             this.label16.Text = "工事種別";
             this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // btnApprovalList
-            // 
-            this.btnApprovalList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnApprovalList.BackColor = System.Drawing.Color.Gold;
-            this.btnApprovalList.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnApprovalList.ForeColor = System.Drawing.Color.Black;
-            this.btnApprovalList.Location = new System.Drawing.Point(1105, 71);
-            this.btnApprovalList.Name = "btnApprovalList";
-            this.btnApprovalList.Size = new System.Drawing.Size(170, 25);
-            this.btnApprovalList.TabIndex = 45;
-            this.btnApprovalList.Text = "申請状況確認";
-            this.btnApprovalList.UseVisualStyleBackColor = false;
-            this.btnApprovalList.Click += new System.EventHandler(this.btnApprovalList_Click);
-            // 
             // lblConstructionCodelabel
             // 
             this.lblConstructionCodelabel.BackColor = System.Drawing.Color.SandyBrown;
             this.lblConstructionCodelabel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblConstructionCodelabel.ForeColor = System.Drawing.Color.White;
+            this.lblConstructionCodelabel.ForeColor = System.Drawing.Color.Black;
             this.lblConstructionCodelabel.Location = new System.Drawing.Point(5, 5);
             this.lblConstructionCodelabel.Name = "lblConstructionCodelabel";
             this.lblConstructionCodelabel.Size = new System.Drawing.Size(114, 25);
@@ -286,10 +313,11 @@
             // 
             this.lblLabel01.BackColor = System.Drawing.Color.White;
             this.lblLabel01.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblLabel01.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold);
             this.lblLabel01.ForeColor = System.Drawing.Color.Black;
             this.lblLabel01.Location = new System.Drawing.Point(127, 5);
             this.lblLabel01.Name = "lblLabel01";
-            this.lblLabel01.Size = new System.Drawing.Size(115, 25);
+            this.lblLabel01.Size = new System.Drawing.Size(110, 25);
             this.lblLabel01.TabIndex = 31;
             this.lblLabel01.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             // 
@@ -297,7 +325,7 @@
             // 
             this.label3.BackColor = System.Drawing.Color.SandyBrown;
             this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label3.Location = new System.Drawing.Point(5, 38);
+            this.label3.Location = new System.Drawing.Point(5, 65);
             this.label3.Name = "label3";
             this.label3.Size = new System.Drawing.Size(114, 25);
             this.label3.TabIndex = 33;
@@ -309,9 +337,9 @@
             this.lblLabel03.BackColor = System.Drawing.Color.White;
             this.lblLabel03.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel03.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel03.Location = new System.Drawing.Point(127, 38);
+            this.lblLabel03.Location = new System.Drawing.Point(127, 65);
             this.lblLabel03.Name = "lblLabel03";
-            this.lblLabel03.Size = new System.Drawing.Size(470, 25);
+            this.lblLabel03.Size = new System.Drawing.Size(530, 25);
             this.lblLabel03.TabIndex = 34;
             this.lblLabel03.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
@@ -320,43 +348,46 @@
             this.lblLabel02.BackColor = System.Drawing.Color.White;
             this.lblLabel02.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel02.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel02.Location = new System.Drawing.Point(250, 5);
+            this.lblLabel02.Location = new System.Drawing.Point(245, 5);
             this.lblLabel02.Name = "lblLabel02";
-            this.lblLabel02.Size = new System.Drawing.Size(725, 25);
+            this.lblLabel02.Size = new System.Drawing.Size(702, 25);
             this.lblLabel02.TabIndex = 32;
             this.lblLabel02.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
             // label14
             // 
+            this.label14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label14.BackColor = System.Drawing.Color.SandyBrown;
             this.label14.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label14.Location = new System.Drawing.Point(861, 71);
+            this.label14.Location = new System.Drawing.Point(441, 125);
             this.label14.Name = "label14";
-            this.label14.Size = new System.Drawing.Size(114, 25);
+            this.label14.Size = new System.Drawing.Size(96, 25);
             this.label14.TabIndex = 35;
-            this.label14.Text = "完　了　日";
+            this.label14.Text = "完 了 日";
             this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label10
             // 
+            this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label10.BackColor = System.Drawing.Color.SandyBrown;
             this.label10.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label10.Location = new System.Drawing.Point(375, 71);
+            this.label10.Location = new System.Drawing.Point(5, 125);
             this.label10.Name = "label10";
-            this.label10.Size = new System.Drawing.Size(114, 25);
+            this.label10.Size = new System.Drawing.Size(96, 25);
             this.label10.TabIndex = 35;
-            this.label10.Text = "工　　期";
+            this.label10.Text = "工　期";
             this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label9
             // 
+            this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label9.BackColor = System.Drawing.Color.SandyBrown;
             this.label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label9.Location = new System.Drawing.Point(613, 71);
+            this.label9.Location = new System.Drawing.Point(223, 125);
             this.label9.Name = "label9";
-            this.label9.Size = new System.Drawing.Size(114, 25);
+            this.label9.Size = new System.Drawing.Size(96, 25);
             this.label9.TabIndex = 35;
-            this.label9.Text = "着　工　日";
+            this.label9.Text = "着 工 日";
             this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label7
@@ -363,7 +394,7 @@
             // 
             this.label7.BackColor = System.Drawing.Color.SandyBrown;
             this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label7.Location = new System.Drawing.Point(5, 104);
+            this.label7.Location = new System.Drawing.Point(5, 95);
             this.label7.Name = "label7";
             this.label7.Size = new System.Drawing.Size(114, 25);
             this.label7.TabIndex = 35;
@@ -372,9 +403,10 @@
             // 
             // label13
             // 
-            this.label13.BackColor = System.Drawing.Color.SandyBrown;
+            this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.label13.BackColor = System.Drawing.Color.MistyRose;
             this.label13.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label13.Location = new System.Drawing.Point(983, 38);
+            this.label13.Location = new System.Drawing.Point(665, 125);
             this.label13.Name = "label13";
             this.label13.Size = new System.Drawing.Size(114, 25);
             this.label13.TabIndex = 35;
@@ -383,9 +415,10 @@
             // 
             // label5
             // 
-            this.label5.BackColor = System.Drawing.Color.SandyBrown;
+            this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.label5.BackColor = System.Drawing.Color.MediumAquamarine;
             this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label5.Location = new System.Drawing.Point(613, 38);
+            this.label5.Location = new System.Drawing.Point(665, 65);
             this.label5.Name = "label5";
             this.label5.Size = new System.Drawing.Size(114, 25);
             this.label5.TabIndex = 35;
@@ -394,34 +427,40 @@
             // 
             // label15
             // 
+            this.label15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label15.BackColor = System.Drawing.Color.White;
             this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label15.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold);
             this.label15.ForeColor = System.Drawing.Color.Black;
-            this.label15.Location = new System.Drawing.Point(497, 71);
+            this.label15.Location = new System.Drawing.Point(101, 125);
             this.label15.Name = "label15";
-            this.label15.Size = new System.Drawing.Size(100, 25);
+            this.label15.Size = new System.Drawing.Size(120, 25);
             this.label15.TabIndex = 36;
             this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label11
             // 
+            this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label11.BackColor = System.Drawing.Color.White;
             this.label11.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label11.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold);
             this.label11.ForeColor = System.Drawing.Color.Black;
-            this.label11.Location = new System.Drawing.Point(983, 71);
+            this.label11.Location = new System.Drawing.Point(537, 125);
             this.label11.Name = "label11";
-            this.label11.Size = new System.Drawing.Size(114, 25);
+            this.label11.Size = new System.Drawing.Size(120, 25);
             this.label11.TabIndex = 36;
             this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label8
             // 
+            this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label8.BackColor = System.Drawing.Color.White;
             this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label8.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold);
             this.label8.ForeColor = System.Drawing.Color.Black;
-            this.label8.Location = new System.Drawing.Point(735, 71);
+            this.label8.Location = new System.Drawing.Point(319, 125);
             this.label8.Name = "label8";
-            this.label8.Size = new System.Drawing.Size(114, 25);
+            this.label8.Size = new System.Drawing.Size(120, 25);
             this.label8.TabIndex = 36;
             this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
@@ -429,8 +468,9 @@
             // 
             this.label6.BackColor = System.Drawing.Color.White;
             this.label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label6.Font = new System.Drawing.Font("MS UI Gothic", 12F, System.Drawing.FontStyle.Bold);
             this.label6.ForeColor = System.Drawing.Color.Black;
-            this.label6.Location = new System.Drawing.Point(127, 104);
+            this.label6.Location = new System.Drawing.Point(127, 95);
             this.label6.Name = "label6";
             this.label6.Size = new System.Drawing.Size(170, 25);
             this.label6.TabIndex = 36;
@@ -438,23 +478,25 @@
             // 
             // label12
             // 
+            this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label12.BackColor = System.Drawing.Color.White;
             this.label12.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label12.ForeColor = System.Drawing.Color.Black;
-            this.label12.Location = new System.Drawing.Point(1105, 38);
+            this.label12.Location = new System.Drawing.Point(787, 125);
             this.label12.Name = "label12";
-            this.label12.Size = new System.Drawing.Size(170, 25);
+            this.label12.Size = new System.Drawing.Size(160, 25);
             this.label12.TabIndex = 36;
             this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
             // lblLabel04
             // 
+            this.lblLabel04.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.lblLabel04.BackColor = System.Drawing.Color.White;
             this.lblLabel04.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel04.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel04.Location = new System.Drawing.Point(735, 38);
+            this.lblLabel04.Location = new System.Drawing.Point(787, 65);
             this.lblLabel04.Name = "lblLabel04";
-            this.lblLabel04.Size = new System.Drawing.Size(170, 25);
+            this.lblLabel04.Size = new System.Drawing.Size(160, 25);
             this.lblLabel04.TabIndex = 36;
             this.lblLabel04.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
@@ -462,7 +504,7 @@
             // 
             this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label4.ForeColor = System.Drawing.Color.White;
-            this.label4.Location = new System.Drawing.Point(1063, 8);
+            this.label4.Location = new System.Drawing.Point(1103, 8);
             this.label4.Name = "label4";
             this.label4.Size = new System.Drawing.Size(114, 25);
             this.label4.TabIndex = 35;
@@ -475,7 +517,7 @@
             this.label2.BackColor = System.Drawing.Color.White;
             this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label2.ForeColor = System.Drawing.Color.Black;
-            this.label2.Location = new System.Drawing.Point(1177, 8);
+            this.label2.Location = new System.Drawing.Point(1217, 8);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(120, 25);
             this.label2.TabIndex = 36;
@@ -517,9 +559,9 @@
             this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
             this.panel2.Controls.Add(this.lblCellTotal);
             this.panel2.Controls.Add(this.dgvAllDisplay);
-            this.panel2.Location = new System.Drawing.Point(7, 184);
+            this.panel2.Location = new System.Drawing.Point(7, 204);
             this.panel2.Name = "panel2";
-            this.panel2.Size = new System.Drawing.Size(1290, 467);
+            this.panel2.Size = new System.Drawing.Size(1290, 447);
             this.panel2.TabIndex = 36;
             // 
             // lblCellTotal
@@ -527,9 +569,9 @@
             this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
             this.lblCellTotal.AutoSize = true;
             this.lblCellTotal.BackColor = System.Drawing.Color.WhiteSmoke;
-            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9.75F, System.Drawing.FontStyle.Bold);
             this.lblCellTotal.ForeColor = System.Drawing.Color.Black;
-            this.lblCellTotal.Location = new System.Drawing.Point(100, 447);
+            this.lblCellTotal.Location = new System.Drawing.Point(100, 427);
             this.lblCellTotal.Name = "lblCellTotal";
             this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
             this.lblCellTotal.TabIndex = 36;
@@ -545,14 +587,14 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dgvAllDisplay.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+            dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle29.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle29;
             this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Column1,
@@ -572,7 +614,8 @@
             this.Column16,
             this.Column17,
             this.Column8,
-            this.Column11});
+            this.Column11,
+            this.Column19});
             this.dgvAllDisplay.Location = new System.Drawing.Point(6, 4);
             this.dgvAllDisplay.Name = "dgvAllDisplay";
             this.dgvAllDisplay.RowHeadersVisible = false;
@@ -580,7 +623,7 @@
             this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
             this.dgvAllDisplay.RowTemplate.Height = 21;
             this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dgvAllDisplay.Size = new System.Drawing.Size(1278, 438);
+            this.dgvAllDisplay.Size = new System.Drawing.Size(1278, 418);
             this.dgvAllDisplay.TabIndex = 35;
             this.dgvAllDisplay.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick);
             this.dgvAllDisplay.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
@@ -590,51 +633,10 @@
             this.dgvAllDisplay.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
             this.dgvAllDisplay.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvAllDisplay_MouseUp);
             // 
-            // btnDispDown
-            // 
-            this.btnDispDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnDispDown.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnDispDown.Location = new System.Drawing.Point(1300, 418);
-            this.btnDispDown.Name = "btnDispDown";
-            this.btnDispDown.Size = new System.Drawing.Size(40, 40);
-            this.btnDispDown.TabIndex = 42;
-            this.btnDispDown.TabStop = false;
-            this.btnDispDown.Text = "▼";
-            this.btnDispDown.UseVisualStyleBackColor = true;
-            this.btnDispDown.Visible = false;
-            this.btnDispDown.Click += new System.EventHandler(this.btnDispDown_Click);
-            // 
-            // btnDispUp
-            // 
-            this.btnDispUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnDispUp.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnDispUp.Location = new System.Drawing.Point(1300, 354);
-            this.btnDispUp.Name = "btnDispUp";
-            this.btnDispUp.Size = new System.Drawing.Size(40, 40);
-            this.btnDispUp.TabIndex = 41;
-            this.btnDispUp.TabStop = false;
-            this.btnDispUp.Text = "▲";
-            this.btnDispUp.UseVisualStyleBackColor = true;
-            this.btnDispUp.Visible = false;
-            this.btnDispUp.Click += new System.EventHandler(this.btnDispUp_Click);
-            // 
-            // btnOtherProc
-            // 
-            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
-            this.btnOtherProc.Location = new System.Drawing.Point(7, 656);
-            this.btnOtherProc.Name = "btnOtherProc";
-            this.btnOtherProc.Size = new System.Drawing.Size(200, 30);
-            this.btnOtherProc.TabIndex = 95;
-            this.btnOtherProc.TabStop = false;
-            this.btnOtherProc.Text = "他の画面へ";
-            this.btnOtherProc.UseVisualStyleBackColor = false;
-            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
-            // 
             // Column1
             // 
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
+            dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle30;
             this.Column1.Frozen = true;
             this.Column1.HeaderText = "№";
             this.Column1.Name = "Column1";
@@ -685,8 +687,8 @@
             // 
             // Column5
             // 
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle3;
+            dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle31;
             this.Column5.Frozen = true;
             this.Column5.HeaderText = "項　　　目";
             this.Column5.Name = "Column5";
@@ -697,8 +699,8 @@
             // 
             // Column6
             // 
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            this.Column6.DefaultCellStyle = dataGridViewCellStyle4;
+            dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column6.DefaultCellStyle = dataGridViewCellStyle32;
             this.Column6.Frozen = true;
             this.Column6.HeaderText = "業　　　種";
             this.Column6.Name = "Column6";
@@ -736,11 +738,11 @@
             // 
             // Column7
             // 
-            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle5.Format = "N0";
-            dataGridViewCellStyle5.NullValue = null;
-            this.Column7.DefaultCellStyle = dataGridViewCellStyle5;
+            dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle33.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle33.Format = "N0";
+            dataGridViewCellStyle33.NullValue = null;
+            this.Column7.DefaultCellStyle = dataGridViewCellStyle33;
             this.Column7.Frozen = true;
             this.Column7.HeaderText = "予定（見積）金額";
             this.Column7.Name = "Column7";
@@ -751,9 +753,9 @@
             // 
             // Column12
             // 
-            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
-            this.Column12.DefaultCellStyle = dataGridViewCellStyle6;
+            dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle34.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
+            this.Column12.DefaultCellStyle = dataGridViewCellStyle34;
             this.Column12.Frozen = true;
             this.Column12.HeaderText = "実　行　金　額";
             this.Column12.Name = "Column12";
@@ -764,8 +766,8 @@
             // 
             // Column9
             // 
-            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.Column9.DefaultCellStyle = dataGridViewCellStyle7;
+            dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column9.DefaultCellStyle = dataGridViewCellStyle35;
             this.Column9.Frozen = true;
             this.Column9.HeaderText = "比率(％)";
             this.Column9.Name = "Column9";
@@ -825,6 +827,116 @@
             this.Column11.Visible = false;
             this.Column11.Width = 5;
             // 
+            // Column19
+            // 
+            this.Column19.Frozen = true;
+            this.Column19.HeaderText = "増減フラグ";
+            this.Column19.Name = "Column19";
+            this.Column19.ReadOnly = true;
+            this.Column19.Visible = false;
+            // 
+            // btnDispDown
+            // 
+            this.btnDispDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnDispDown.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnDispDown.Location = new System.Drawing.Point(1300, 418);
+            this.btnDispDown.Name = "btnDispDown";
+            this.btnDispDown.Size = new System.Drawing.Size(40, 40);
+            this.btnDispDown.TabIndex = 42;
+            this.btnDispDown.TabStop = false;
+            this.btnDispDown.Text = "▼";
+            this.btnDispDown.UseVisualStyleBackColor = true;
+            this.btnDispDown.Visible = false;
+            this.btnDispDown.Click += new System.EventHandler(this.btnDispDown_Click);
+            // 
+            // btnDispUp
+            // 
+            this.btnDispUp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnDispUp.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnDispUp.Location = new System.Drawing.Point(1300, 354);
+            this.btnDispUp.Name = "btnDispUp";
+            this.btnDispUp.Size = new System.Drawing.Size(40, 40);
+            this.btnDispUp.TabIndex = 41;
+            this.btnDispUp.TabStop = false;
+            this.btnDispUp.Text = "▲";
+            this.btnDispUp.UseVisualStyleBackColor = true;
+            this.btnDispUp.Visible = false;
+            this.btnDispUp.Click += new System.EventHandler(this.btnDispUp_Click);
+            // 
+            // btnOtherProc
+            // 
+            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
+            this.btnOtherProc.Location = new System.Drawing.Point(7, 656);
+            this.btnOtherProc.Name = "btnOtherProc";
+            this.btnOtherProc.Size = new System.Drawing.Size(200, 30);
+            this.btnOtherProc.TabIndex = 95;
+            this.btnOtherProc.TabStop = false;
+            this.btnOtherProc.Text = "他の画面へ";
+            this.btnOtherProc.UseVisualStyleBackColor = false;
+            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
+            // 
+            // btnAssistantChange
+            // 
+            this.btnAssistantChange.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnAssistantChange.BackColor = System.Drawing.Color.Beige;
+            this.btnAssistantChange.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold);
+            this.btnAssistantChange.Location = new System.Drawing.Point(381, 656);
+            this.btnAssistantChange.Name = "btnAssistantChange";
+            this.btnAssistantChange.Size = new System.Drawing.Size(130, 30);
+            this.btnAssistantChange.TabIndex = 96;
+            this.btnAssistantChange.Text = "副担当者変更";
+            this.btnAssistantChange.UseVisualStyleBackColor = false;
+            this.btnAssistantChange.Click += new System.EventHandler(this.btnAssistantChange_Click);
+            // 
+            // btnInstractorChange
+            // 
+            this.btnInstractorChange.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnInstractorChange.BackColor = System.Drawing.Color.MistyRose;
+            this.btnInstractorChange.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold);
+            this.btnInstractorChange.Location = new System.Drawing.Point(519, 656);
+            this.btnInstractorChange.Name = "btnInstractorChange";
+            this.btnInstractorChange.Size = new System.Drawing.Size(130, 30);
+            this.btnInstractorChange.TabIndex = 97;
+            this.btnInstractorChange.Text = "指導員変更";
+            this.btnInstractorChange.UseVisualStyleBackColor = false;
+            this.btnInstractorChange.Click += new System.EventHandler(this.btnInstractorChange_Click);
+            // 
+            // btnChangePrice
+            // 
+            this.btnChangePrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnChangePrice.BackColor = System.Drawing.Color.Gold;
+            this.btnChangePrice.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold);
+            this.btnChangePrice.Location = new System.Drawing.Point(243, 656);
+            this.btnChangePrice.Name = "btnChangePrice";
+            this.btnChangePrice.Size = new System.Drawing.Size(130, 30);
+            this.btnChangePrice.TabIndex = 99;
+            this.btnChangePrice.Text = "受注金額変更";
+            this.btnChangePrice.UseVisualStyleBackColor = false;
+            this.btnChangePrice.Click += new System.EventHandler(this.btnChangePrice_Click);
+            // 
+            // lblLabel06
+            // 
+            this.lblLabel06.BackColor = System.Drawing.Color.White;
+            this.lblLabel06.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblLabel06.ForeColor = System.Drawing.Color.Black;
+            this.lblLabel06.Location = new System.Drawing.Point(127, 35);
+            this.lblLabel06.Name = "lblLabel06";
+            this.lblLabel06.Size = new System.Drawing.Size(820, 25);
+            this.lblLabel06.TabIndex = 66;
+            this.lblLabel06.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // label23
+            // 
+            this.label23.BackColor = System.Drawing.Color.SandyBrown;
+            this.label23.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label23.Location = new System.Drawing.Point(5, 35);
+            this.label23.Name = "label23";
+            this.label23.Size = new System.Drawing.Size(114, 25);
+            this.label23.TabIndex = 65;
+            this.label23.Text = "発注者名称";
+            this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // FrmConstructionLedger
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -831,6 +943,9 @@
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
             this.BackColor = System.Drawing.Color.Black;
             this.ClientSize = new System.Drawing.Size(1344, 692);
+            this.Controls.Add(this.btnChangePrice);
+            this.Controls.Add(this.btnInstractorChange);
+            this.Controls.Add(this.btnAssistantChange);
             this.Controls.Add(this.btnOtherProc);
             this.Controls.Add(this.btnDispDown);
             this.Controls.Add(this.btnDispUp);
@@ -852,7 +967,6 @@
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmConstructionLedger_FormClosing);
             this.Load += new System.EventHandler(this.FrmConstructionLedger_Load);
-            this.Shown += new System.EventHandler(this.FrmConstructionLedger_Shown);
             this.SizeChanged += new System.EventHandler(this.FrmConstructionLedger_SizeChanged);
             this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmConstructionLedger_KeyDown);
             this.panel1.ResumeLayout(false);
@@ -889,7 +1003,6 @@
         private System.Windows.Forms.Panel panel2;
         private System.Windows.Forms.Label lblCellTotal;
         private DataGridViewEX dgvAllDisplay;
-        private System.Windows.Forms.Button btnApprovalList;
         private System.Windows.Forms.Label label13;
         private System.Windows.Forms.Label label12;
         private System.Windows.Forms.Button btnDispDown;
@@ -904,6 +1017,11 @@
         private System.Windows.Forms.Label lblBudgetOverrun;
         private System.Windows.Forms.Label lblComplate;
         private System.Windows.Forms.Button btnComplate;
+        private System.Windows.Forms.Label label20;
+        private System.Windows.Forms.Label label21;
+        private System.Windows.Forms.Button btnAssistantChange;
+        private System.Windows.Forms.Button btnInstractorChange;
+        private System.Windows.Forms.Button btnChangePrice;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
@@ -922,5 +1040,8 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column17;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column19;
+        private System.Windows.Forms.Label lblLabel06;
+        private System.Windows.Forms.Label label23;
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.resx
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.resx	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.resx	(revision 6)
@@ -120,6 +120,9 @@
   <metadata name="lblCellTotal.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="lblCellTotal.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
@@ -162,4 +165,7 @@
   <metadata name="Column11.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="Column19.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
 </root>
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs	(revision 6)
@@ -30,6 +30,9 @@
                 m_GridWidth = dgvAllDisplay.Width;
                 m_WindowWidth = this.Width;
                 m_WindowHeight = this.Height;
+
+                // 削除ボタンはデバック専用
+                if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode) btnDataDelete.Visible = true;
             }
             catch (Exception ex)
             {
@@ -48,14 +51,14 @@
             {
                 DataGridView dgv = dgvAllDisplay;
 
-                int CellWidth1 = m_CellSize[(int)DispGridColumn.ItemName];
-                int CellWidth2 = m_CellSize[(int)DispGridColumn.TextName];
-                int CellWidth3 = m_CellSize[(int)DispGridColumn.SubContractorName];
+                int CellWidth1 = m_CellSize[(int)GridColumn.ItemName];
+                int CellWidth2 = m_CellSize[(int)GridColumn.TextName];
+                int CellWidth3 = m_CellSize[(int)GridColumn.CompanyName];
                 // 最大化の場合
                 if (!bNormal)
                 {
                     int allWidth = 0;
-                    for (int i = 0; i < dgv.ColumnCount;i++ )
+                    for (int i = 0; i < dgv.ColumnCount; i++)
                     {
                         allWidth += m_CellSize[i];
                     }
@@ -68,9 +71,9 @@
                     CellWidth3 += idifference;
                 }
 
-                dgv.Columns[(int)DispGridColumn.ItemName].Width = CellWidth1;
-                dgv.Columns[(int)DispGridColumn.TextName].Width = CellWidth2;
-                dgv.Columns[(int)DispGridColumn.SubContractorName].Width = CellWidth3;
+                dgv.Columns[(int)GridColumn.ItemName].Width = CellWidth1;
+                dgv.Columns[(int)GridColumn.TextName].Width = CellWidth2;
+                dgv.Columns[(int)GridColumn.CompanyName].Width = CellWidth3;
 
             }
             catch (Exception ex)
@@ -107,6 +110,23 @@
         }
         #endregion
 
+        #region 経費率データ読込み並び
+        /// <summary>
+        /// 経費率データ読込み並び
+        /// </summary>
+        private enum ExpensesArray
+        {
+            /// <summary>
+            /// 経費名称
+            /// </summary>
+            ExpensesName = 0,
+            /// <summary>
+            /// 経費率
+            /// </summary>
+            ExpensesRate,
+        }
+        #endregion
+
         #region 経費率リスト取得処理
         /// <summary>
         /// 経費率リストを取得する
@@ -121,17 +141,18 @@
                 // 工事担当者マスタ取得
                 string strPerson = picDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionPersonCode);
                 PersonInChargeMaster picRec = new PersonInChargeMaster();
-                if(!picDB.SelectAction(strPerson,ref picRec)) return false;
+                if (!picDB.SelectAction(strPerson, ref picRec)) return false;
 
                 // 部署経費率マスタ取得
                 string strSQL = "SELECT A.NAMESTRING, NVL(B.EXPENSESRATIO, 0)";
-                strSQL += " FROM DIVISIONMASTER A, ";
-                strSQL += " (SELECT NAMECODE, DEPARTMENTCODE, EXPENSESRATIO FROM DEPARTMENTEXPENSESMASTER";
-                strSQL += string.Format(" WHERE DEPARTMENTCODE = {0}) B", picRec.DepartmentCode);
+                strSQL += " FROM DIVISIONMASTER A";
+                strSQL += " LEFT OUTER JOIN";
+                strSQL += string.Format(" (SELECT NAMECODE, DEPARTMENTCODE, EXPENSESRATIO FROM DEPARTMENTEXPENSESMASTER WHERE DEPARTMENTCODE = {0}) B", picRec.DepartmentCode);
+                strSQL += " ON A.NAMECODE = B.NAMECODE";
                 strSQL += string.Format(" WHERE A.DIVISIONCODE = {0}", (int)CommonDefine.DivisionMasterCodeDefine.ConstructionExpenses);
-                strSQL += "AND A.NAMECODE = B.NAMECODE(+) ORDER BY A.DISPLAYORDER";
-                if (!expDB.ExecuteReader(strSQL, ref ExpensesList)) return false;
-                if (ExpensesList.Count == 0) return false;
+                strSQL += " ORDER BY A.DISPLAYORDER";
+                if (!expDB.ExecuteReader(strSQL, ref m_ExpensesList)) return false;
+                if (m_ExpensesList.Count == 0) return false;
 
                 return true;
             }
@@ -154,13 +175,19 @@
         /// </summary>
         private void SetDisplayObject()
         {
-            // ヘッダー情報
+            // 表示オブジェクト領域確保
+            int CtrlCnt = Enum.GetNames(typeof(DspLblCtrlName)).Length;
+            m_DspLabelCtrl = new Control[CtrlCnt];
+
+            // 表示オブジェクトセット
             m_DspLabelCtrl[(int)DspLblCtrlName.ConstCode] = lblLabel01;
             m_DspLabelCtrl[(int)DspLblCtrlName.ConstName] = lblLabel02;
             m_DspLabelCtrl[(int)DspLblCtrlName.ConstPlace] = lblLabel03;
 
+            m_DspLabelCtrl[(int)DspLblCtrlName.OrdersName] = lblLabel06;
+
             m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName] = lblLabel04;
-
+            m_DspLabelCtrl[(int)DspLblCtrlName.AssistantName] = label21;
             m_DspLabelCtrl[(int)DspLblCtrlName.InstructorName] = label12;
 
             m_DspLabelCtrl[(int)DspLblCtrlName.CreateDate] = label2;
@@ -171,6 +198,10 @@
 
             m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType] = label17;
             m_DspLabelCtrl[(int)DspLblCtrlName.BudgetOverrun] = lblBudgetOverrun;
+
+            // データ行数領域確保
+            int DispLineCnt = Enum.GetNames(typeof(CostsRowLine)).Length;
+            m_CostsRowCount = new int[DispLineCnt];
         }
         #endregion
 
@@ -180,13 +211,20 @@
         /// </summary>
         private void ClearDisplay()
         {
-            foreach (Control wrk in m_DspLabelCtrl)
+            try
             {
-                if (CommonMotions.chkObjectIsNull(wrk)) continue;
-                wrk.Text = "";
+                foreach (Control wrk in m_DspLabelCtrl)
+                {
+                    if (CommonMotions.chkObjectIsNull(wrk)) continue;
+                    wrk.Text = "";
+                }
+
+                m_bChengeAns = false;
             }
-
-            m_bChengeAns = false;
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
         }
         #endregion
 
@@ -213,6 +251,37 @@
         }
         #endregion
 
+        #region デフォルトカラム以外を削除する
+        /// <summary>
+        /// デフォルトカラム以外を削除する
+        /// </summary>
+        private void RemoveExtensionColumn()
+        {
+            try
+            {
+                // グリッドデフォルトカラム数取得
+                int ColumnsCnt = Enum.GetNames(typeof(GridColumn)).Length - 1;
+                DataGridView dgv = dgvAllDisplay;
+
+                // デフォルト以上に無ければ処理しない
+                if (dgv.ColumnCount <= ColumnsCnt) return;
+
+                for (int i = dgv.ColumnCount - 1; i > ColumnsCnt; i--)
+                {
+                    dgv.Columns.RemoveAt(i);
+                }
+
+                m_GridPaymentColList = null;
+                m_GridTotalColList = null;
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region ヘッダー情報表示
         /// <summary>
         /// ヘッダー情報表示
@@ -227,40 +296,44 @@
             {
                 m_HeaderToolTip = new ToolTip();
 
-                // 工事予算書を取得する
+                // デフォルトカラム以外を削除する
+                RemoveExtensionColumn();
+
+                // 工事詳細台帳を取得する
                 string strSQL = LedgerDB.CreatePrimarykeyString(m_ConstructionCode);
                 ConstructionLedger LedgerRec = new ConstructionLedger();
                 bool bBudgetExist = LedgerDB.SelectAction(strSQL, ref LedgerRec);
 
                 // データ表示
-                m_DspLabelCtrl[(int)DspLblCtrlName.CreateDate].Text = LedgerRec.CreateDate.ToShortDateString();                                                     // 作成日
-                
-                m_DspLabelCtrl[(int)DspLblCtrlName.ConstCode].Text = CommonMotions.cnvStringCodeFromInt(m_ConstructionCode, "-", 8);                            // 工事コード
-                
+                m_DspLabelCtrl[(int)DspLblCtrlName.CreateDate].Text = LedgerRec.CreateDate.ToShortDateString();                                 // 作成日
+
+                m_DspLabelCtrl[(int)DspLblCtrlName.ConstCode].Text = CommonMotions.cnvStringCodeFromInt(m_ConstructionCode, "-", 8);            // 工事コード
+
                 // 受注金額をそのまま持ってくるか、集計するか
                 int OrdersPrice = 0;
                 if (LedgerRec.IntegrationFlg == (int)CommonDefine.LedgerIntegration.Normal)
                 {
-                    OrdersPrice = (int)m_ConstructionBaseInfo.OrdersDecisionPrice;
+                    // 変更がない場合は工事情報より持ってくる
+                    OrdersPrice = GetOrderPraiceTotal();
                 }
                 else
                 {
                     OrdersPrice = GetEstimateTotal();
                 }
-                m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text = @"\" + OrdersPrice.ToString("#,0") + "-";                                                // 受注金額
+                m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text = @"\" + OrdersPrice.ToString("#,0");                                // 受注金額
 
                 // 工事基本情報明細取得
                 strSQL = cbidDB.CreatePrimarykeyString(m_ConstructionCode, (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
                 ConstructionBaseInfoDetail workRec = new ConstructionBaseInfoDetail();
                 if (!cbidDB.SelectAction(strSQL, ref workRec)) return false;
-                m_DspLabelCtrl[(int)DspLblCtrlName.ConstName].Text = workRec.DetailString;                                                                      // 工事名称
+                m_DspLabelCtrl[(int)DspLblCtrlName.ConstName].Text = workRec.DetailString;                                                      // 工事名称
                 m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.ConstName], workRec.DetailString);
 
                 strSQL = cbidDB.CreatePrimarykeyString(m_ConstructionCode);
                 strSQL += string.Format(" And (DetailNo = {0} Or DetailNo = {1} Or DetailNo = {2})",
-                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace1,                                   // 工事場所１
-                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace2,                                   // 工事場所２
-                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);                                  // 工事場所３
+                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace1,                                    // 工事場所１
+                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace2,                                    // 工事場所２
+                                            (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);                                   // 工事場所３
                 strSQL += " Order By DetailNo";
                 List<ConstructionBaseInfoDetail> workList = new List<ConstructionBaseInfoDetail>();
                 cbidDB.SelectAction(strSQL, ref workList);
@@ -269,9 +342,14 @@
                 {
                     Place += wrkRec.DetailString;
                 }
-                m_DspLabelCtrl[(int)DspLblCtrlName.ConstPlace].Text = Place;                                                                                    // 工事場所
+                m_DspLabelCtrl[(int)DspLblCtrlName.ConstPlace].Text = Place;                                                                    // 工事場所
                 m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.ConstPlace], Place);
 
+                ConstructionBaseInfoDetail OrderRec = new ConstructionBaseInfoDetail();
+                string strOrder = cbidDB.CreatePrimarykeyString(m_ConstructionCode, (int)ConstructionBaseInfoDetail.DetailDataNo.OrderersName);
+                cbidDB.SelectAction(strOrder, ref OrderRec);
+                m_DspLabelCtrl[(int)DspLblCtrlName.OrdersName].Text = OrderRec.DetailString;                                                    // 発注者名称
+
                 // 工事担当者取得
                 int PersonCode = LedgerRec.CreatorCode;
                 if (PersonCode == 0) PersonCode = m_ConstructionBaseInfo.ConstructionPersonCode;
@@ -279,9 +357,20 @@
                 PersonInChargeMaster personRec = new PersonInChargeMaster();
                 picDB.SelectAction(strSQL, ref personRec);
 
-                m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName].Text = personRec.PersonName;                                                                    // 作成者
+                m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName].Text = personRec.PersonName;                                                    // 作成者
                 m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName], personRec.PersonName);
-                
+
+                // 副担当取得
+                PersonCode = m_ConstructionBaseInfo.ConstrSubPersonCode;
+                if (PersonCode != 0)
+                {
+                    strSQL = picDB.CreatePrimarykeyString(PersonCode);
+                    PersonInChargeMaster AssistantRec = new PersonInChargeMaster();
+                    picDB.SelectAction(strSQL, ref AssistantRec);
+                    m_DspLabelCtrl[(int)DspLblCtrlName.AssistantName].Text = AssistantRec.PersonName;                                           // 担当指導員
+                    m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.AssistantName], AssistantRec.PersonName);
+                }
+
                 // 担当指導員取得
                 PersonCode = m_ConstructionBaseInfo.ConstructionInstructor;
                 if (PersonCode != 0)
@@ -289,21 +378,30 @@
                     strSQL = picDB.CreatePrimarykeyString(PersonCode);
                     PersonInChargeMaster instructorRec = new PersonInChargeMaster();
                     picDB.SelectAction(strSQL, ref instructorRec);
-                    m_DspLabelCtrl[(int)DspLblCtrlName.InstructorName].Text = instructorRec.PersonName;                                                         // 担当指導員
+                    m_DspLabelCtrl[(int)DspLblCtrlName.InstructorName].Text = instructorRec.PersonName;                                         // 担当指導員
                     m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.InstructorName], instructorRec.PersonName);
                 }
 
-                DateTime StDate = LedgerRec.ConstructionStart;
-                DateTime EdDate = LedgerRec.ConstructionEnd;
-                
+                //DateTime StDate = LedgerRec.ConstructionStart;
+                //DateTime EdDate = LedgerRec.ConstructionEnd;
+
+                DateTime StDate = DateTime.MinValue;
+                DateTime EdDate = DateTime.MinValue;
+
                 // 開始日が無い場合
                 if (StDate == DateTime.MinValue) StDate = m_ConstructionBaseInfo.ConstructionPeriodStart;
                 // 完了日が無い場合
-                if (EdDate == DateTime.MinValue) EdDate = m_ConstructionBaseInfo.ConstructionPeriodEnd;
+                if (EdDate == DateTime.MinValue)
+                {
+                    // 延長がある場合は延長を入れる
+                    if (m_ConstructionBaseInfo.ConstructionPeriodEnd2 != DateTime.MinValue) EdDate = m_ConstructionBaseInfo.ConstructionPeriodEnd2;
+                    else EdDate = m_ConstructionBaseInfo.ConstructionPeriodEnd;
 
-                m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text = StDate.ToShortDateString();                                                         // 契約工期開始
-                m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text = EdDate.ToShortDateString();                                                         // 契約工期完成
+                }
 
+                m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text = StDate.ToShortDateString();                                             // 契約工期開始
+                m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text = EdDate.ToShortDateString();                                             // 契約工期完成
+
                 m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text = CommonMotions.DiffMounthTimes(StDate, EdDate).ToString("0.00");
 
                 // 工事種別マスタ取得
@@ -311,7 +409,7 @@
                 strSQL = ctypeDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionType);
                 ConstructionTypeMaster ctypeRec = new ConstructionTypeMaster();
                 ctypeDB.SelectAction(strSQL, ref ctypeRec);
-                m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType].Text = ctypeRec.NameString;                                                                   // 工事種別
+                m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType].Text = ctypeRec.NameString;                                                // 工事種別
                 m_HeaderToolTip.SetToolTip(m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType], ctypeRec.NameString);
 
                 // 支払枠を作成する
@@ -340,6 +438,15 @@
                 // ToolTipが表示されるようにする
                 comptip.SetToolTip(btnComplate, "このボタンを押すと台帳入力済みになって入力出来なくなります！！");
 
+                // 一般ユーザーは人件費を変更できない
+                int User = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key;                  // 一般ユーザー
+                if (CommonMotions.LoginUserData.SecurityManagement == User)
+                {
+                    btnAssistantChange.Visible = false;
+                    btnInstractorChange.Visible = false;
+                    // 受注金額変更ボタンは上長以上のみ
+                    btnChangePrice.Visible = false;
+                }
 
                 return true;
             }
@@ -358,6 +465,50 @@
         }
         #endregion
 
+        #region 工事増減を含むデータ合計取得
+        /// <summary>
+        /// 工事増減を含むデータ合計取得
+        /// </summary>
+        /// <returns></returns>
+        private int GetOrderPraiceTotal()
+        {
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            try
+            {
+                int OrdersPrice = 0;
+                if (m_ConstructionBaseInfo.TyingFlg == (int)CommonDefine.BaseInfoTyingFlg.Standard)
+                {
+                    // 変更がない場合は工事情報より持ってくる
+                    OrdersPrice = (int)m_ConstructionBaseInfo.OrdersDecisionPrice;
+                }
+                else if (m_ConstructionBaseInfo.TyingFlg == (int)CommonDefine.BaseInfoTyingFlg.Pearent)
+                {
+                    string strSQL = "SELECT SUM(A.ORDERSDECISIONPRICE) FROM CONSTRUCTIONBASEINFO A";
+                    strSQL += string.Format(" WHERE A.CONSTRUCTIONSTATUSFLG != {0}", CommonDefine.ProjectsStatus.First(x => x.Value.Equals("非 受 注")).Key);
+                    strSQL += " AND A.CONSTRUCTIONCODE IN (SELECT FLUCTUATIONCODE FROM CONSTRUCTIONLINK";
+                    strSQL += string.Format(" WHERE CONSTRUCTIONCODE = {0})", m_ConstructionCode);
+                    ArrayList arList = new ArrayList();
+                    if (BaseDB.ExecuteReader(strSQL, ref arList))
+                    {
+                        object[] wrkobj = (object[])arList[0];
+                        OrdersPrice = CommonMotions.cnvInt(wrkobj[0]);
+                    }
+                    OrdersPrice += (int)m_ConstructionBaseInfo.OrdersDecisionPrice;
+                }
+                return OrdersPrice;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+            finally
+            {
+                BaseDB.close(); BaseDB = null;
+            }
+        }
+        #endregion
+
         #region 積算見積りデータ合計取得
         /// <summary>
         /// 積算見積りデータ合計取得
@@ -387,9 +538,9 @@
         }
         #endregion
 
-        #region 完了タイトルセット
+        #region 入力完了処理
         /// <summary>
-        /// 完了タイトルセット
+        /// 入力完了処理
         /// </summary>
         private void SetInputComplate(bool bUpdate)
         {
@@ -400,12 +551,12 @@
             lblComplate.Text = ComplateString[1];
             lblComplate.BackColor = Color.Black;
             lblComplate.ForeColor = Color.White;
-            
+
             // ボタンを消す
             btnComplate.Visible = false;
-            
+
             // ラベルのサイズを変える
-            lblComplate.Width += 30; 
+            lblComplate.Width += 30;
 
             // 画面ロック
             SeeModeLock();
@@ -419,13 +570,13 @@
                 lblComplate.Text = ComplateString[0];
                 lblComplate.BackColor = BeforeBackColor;
                 lblComplate.ForeColor = BeforeForeColor;
-                
+
                 // ボタンを消す
                 btnComplate.Visible = true;
-                
+
                 // ラベルのサイズを変える
                 lblComplate.Width -= 30;
-                
+
                 // 画面ロック
                 SeeModeLock(true);
 
@@ -432,11 +583,52 @@
                 return;
             }
 
+            // 支払補填枠再計算
+            RowAllCalcPayResult();
+
             // データ更新
             DataEntryProcess(false);
         }
         #endregion
 
+        #region 支払可能額・支払補填枠の再計算
+        /// <summary>
+        /// 支払可能額・支払補填枠の再計算
+        /// </summary>
+        private void RowAllCalcPayResult()
+        {
+            try
+            {
+                DataGridView dgv = dgvAllDisplay;
+                int GridColCnt=dgv.ColumnCount;
+
+                // グリッドの全行を対象にする
+                foreach (DataGridViewRow CurRow in dgv.Rows)
+                {
+                    // 空白行は処理しない
+                    if (BlankLine(CurRow.Index)) continue;
+
+                    for (int ix = ((int)GridColumn.payment + 1); ix < dgv.ColumnCount; ix++)
+                    {
+                        // 空白カラムは処理しない
+                        if (CommonMotions.cnvString(CurRow.Cells[ix].Value).Length == 0) continue;
+                        
+                        // 行の計算
+                        RowReCalculate(CurRow, CurRow.Index, ix);
+                    }
+                    // 支払可能額を支払補填枠へセットする
+                    int Burdens = GridColCnt + (int)ColPayTotal.PaymentBurdens;
+                    int Results = GridColCnt + (int)ColPayTotal.Results;
+                    CurRow.Cells[Burdens].Value = CommonMotions.cnvInt(CurRow.Cells[Results].Value).ToString("#,0");
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region 支払欄カラム作成
         /// <summary>
         /// 支払欄カラムを作成する
@@ -445,6 +637,9 @@
         {
             try
             {
+                if (m_GridPaymentColList != null) return;
+                if (m_GridTotalColList != null) return;
+
                 DataGridView dgv = dgvAllDisplay;
                 // 支払欄数取得
                 int ColumnCount = CommonMotions.cnvRoundUp(CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text));
@@ -452,7 +647,7 @@
                 ColumnCount += 3;
 
                 // 月毎支払欄作成
-                DateTime dtTitileDate = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text);
+                DateTime dtTitleDate = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text);
                 m_GridPaymentColList = new DataGridViewColumn[ColumnCount];
                 m_GridPaymentCellStyleList = new DataGridViewCellStyle[ColumnCount];
                 for (int i = 0; i < ColumnCount; i++)
@@ -463,12 +658,13 @@
 
                     // セル作成
                     m_GridPaymentColList[i] = new DataGridViewColumn();
+                    m_GridPaymentColList[i].CellTemplate = new DataGridViewTextBoxCell();
                     dgv.Columns.Add(m_GridPaymentColList[i]);
 
                     // カラムの設定
                     m_GridPaymentColList[i].CellTemplate = new DataGridViewTextBoxCell();
                     m_GridPaymentColList[i].DefaultCellStyle = m_GridPaymentCellStyleList[i];
-                    m_GridPaymentColList[i].HeaderText = string.Format("{0}年{1}月", dtTitileDate.AddMonths(i).Year, dtTitileDate.AddMonths(i).Month);
+                    m_GridPaymentColList[i].HeaderText = string.Format("{0}年{1}月", dtTitleDate.AddMonths(i).Year, dtTitleDate.AddMonths(i).Month);
 
                     m_GridPaymentColList[i].Name = string.Format("ColPayment{0}", i);
                     m_GridPaymentColList[i].ReadOnly = false;
@@ -489,12 +685,13 @@
 
                     // セル作成
                     m_GridTotalColList[i] = new DataGridViewColumn();
+                    m_GridTotalColList[i].CellTemplate = new DataGridViewTextBoxCell();
                     dgv.Columns.Add(m_GridTotalColList[i]);
 
                     // カラムの設定
                     m_GridTotalColList[i].CellTemplate = new DataGridViewTextBoxCell();
                     m_GridTotalColList[i].DefaultCellStyle = m_GridTotalCellStyleList[i];
-                    m_GridTotalColList[i].HeaderText = ColumnsTitile[i];
+                    m_GridTotalColList[i].HeaderText = ColumnsTitle[i];
 
                     m_GridTotalColList[i].Name = string.Format("ColPayTotal{0}", i);
                     // 補填枠は入力可にする
@@ -520,7 +717,7 @@
         /// データ行を作成する
         /// </summary>
         /// <param name="SetData"></param>
-        private void CreateTitileRow(int TitileNo, string TitileName)
+        private void CreateTitleRow(int TitleNo, string TitleName)
         {
             try
             {
@@ -532,11 +729,11 @@
 
                 // データ作成
                 object[] SetData = new object[colcnt];
-                SetData[(int)DispGridColumn.No] = TitileNo;
-                SetData[(int)DispGridColumn.FixFlg] = "*";
-                SetData[(int)DispGridColumn.GroupCount] = TitileNo;
-                SetData[(int)DispGridColumn.ItemName] = TitileName;
-                SetData[(int)DispGridColumn.TitileFlg] = "1";
+                SetData[(int)GridColumn.No] = TitleNo;
+                SetData[(int)GridColumn.FixFlg] = "*";
+                SetData[(int)GridColumn.GroupCount] = TitleNo;
+                SetData[(int)GridColumn.ItemName] = TitleName;
+                SetData[(int)GridColumn.TitleFlg] = "1";
 
                 // 行データセット
                 dgv.Rows[rowcnt].SetValues(SetData);
@@ -544,7 +741,7 @@
                 // 行の色を変える
                 for (int i = 0; i < colcnt; i++)
                 {
-                    dgv.Rows[rowcnt].Cells[i].Style.BackColor = s_TitileRowBackColor;
+                    dgv.Rows[rowcnt].Cells[i].Style.BackColor = s_TitleRowBackColor;
                 }
 
                 // 表示した行を書込み禁止にする
@@ -570,7 +767,7 @@
                 // 行追加
                 int rowcnt = dgv.Rows.Add(1);
                 // カラム数取得
-                int colcnt=dgv.Columns.Count;
+                int colcnt = dgv.Columns.Count;
 
                 // カレント行取得
                 DataGridViewRow CurRow = dgv.Rows[rowcnt];
@@ -578,9 +775,9 @@
                 // 行データセット
                 CurRow.SetValues(SetData);
                 // フラグセット
-                CurRow.Cells[(int)DispGridColumn.TitileFlg].Value = "0";
-                CurRow.Cells[(int)DispGridColumn.TotalFlg].Value = "0";
-                CurRow.Cells[(int)DispGridColumn.BlankFlg].Value = "0";
+                CurRow.Cells[(int)GridColumn.TitleFlg].Value = "0";
+                CurRow.Cells[(int)GridColumn.TotalFlg].Value = "0";
+                CurRow.Cells[(int)GridColumn.BlankFlg].Value = "0";
             }
             catch (System.Exception ex)
             {
@@ -603,7 +800,7 @@
                 // 行追加
                 int rowcnt = dgv.Rows.Add(1);
                 // フラグON
-                dgv.Rows[rowcnt].Cells[(int)DispGridColumn.BlankFlg].Value = 1;
+                dgv.Rows[rowcnt].Cells[(int)GridColumn.BlankFlg].Value = 1;
                 // 行の色を変える
                 for (int i = 0; i < colcnt; i++)
                 {
@@ -633,7 +830,7 @@
                 // カラム数
                 int colcnt = dgv.Columns.Count;
                 // 総合計は処理しない
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TotalFlg].Value) == 2) return;
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TotalFlg].Value) == 2) return;
 
                 // 行の色を変える
                 for (int i = 0; i < colcnt; i++)
@@ -640,6 +837,11 @@
                 {
                     dgv.Rows[m_BeforeGridRow].Cells[i].Style.BackColor = s_RowSelectColor;
                 }
+                // 増減データは色を付ける
+                if (CommonMotions.cnvInt(dgv.Rows[m_BeforeGridRow].Cells[(int)GridColumn.FluctuationFlg].Value) != 0)
+                {
+                    dgv.Rows[m_BeforeGridRow].Cells[(int)GridColumn.No].Style.BackColor = Color.Red;
+                }
             }
             catch (System.Exception ex)
             {
@@ -661,9 +863,9 @@
                 DataGridView dgv = dgvAllDisplay;
                 foreach (DataGridViewRow wrkRow in dgv.Rows)
                 {
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.BlankFlg].Value) == 1) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.TitleFlg].Value) == 1) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.TotalFlg].Value) != 0) continue;
 
                     // 行の色をデフォルト色へ変更
                     DefaultRowChangeColor(wrkRow.Index);
@@ -694,30 +896,31 @@
                 DataGridView dgv = dgvAllDisplay;
                 DataGridViewRow CurRow = dgv.Rows[CurrentRow];
                 int colcnt = dgv.Columns.Count;
-                int GroupNo = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                int GroupNo = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value);
                 int RowCount = CurRow.Index;
 
                 Color SetBackColor = Color.White;
                 Color SetForeColor = Color.Black;
 
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TitleFlg].Value) == 1)
                 {   // タイトル行
-                        SetBackColor = s_TitileRowBackColor;
+                    SetBackColor = s_TitleRowBackColor;
                 }
-                else if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TotalFlg].Value) == 1)
+                else if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TotalFlg].Value) == 1)
                 {   // 合計行
 
                 }
-                else if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1)
+                else if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.BlankFlg].Value) == 1)
                 {   // ブランク行
                     SetBackColor = Color.White;
                 }
-                else if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TotalFlg].Value) == 2)
+                else if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TotalFlg].Value) == 2)
                 {   // 総合計
                     SetForeColor = Color.White;
                     SetBackColor = Color.Black;
                 }
-                else if(RowCount == m_CostsRowCount[(int)CostsRowLine.BillingAmountRowLine]){
+                else if (RowCount == m_CostsRowCount[(int)CostsRowLine.BillingAmountRowLine])
+                {
                     // 請求金額
                 }
 
@@ -734,13 +937,19 @@
                         switch (i)
                         {
                             // 積算時見積金額
-                            case (int)DispGridColumn.EstimatePrice:
+                            case (int)GridColumn.EstimatePrice:
                                 SetBackColor = Color.FromArgb(192, 255, 255);
                                 break;
                             // 実行金額
-                            case (int)DispGridColumn.ExecPrice:
+                            case (int)GridColumn.ExecPrice:
                                 SetBackColor = Color.FromArgb(255, 224, 192);
                                 break;
+                            // 行番号
+                            case (int)GridColumn.No:
+                                // 増減工事フラグがONの場合は色を変える
+                                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.FluctuationFlg].Value) != 0) SetBackColor = Color.Red;
+                                else SetBackColor = Color.White;
+                                    break;
                             default:
                                 SetBackColor = Color.White;
                                 //if (i == dgv.ColumnCount + (int)ColPayTotal.Totals && GroupNo == (int)GroupName_ConstructionLedger.CurrentProfit)
@@ -752,7 +961,7 @@
                                 break;
                         }
                         CurRow.Cells[i].Style.BackColor = SetBackColor;
-                        if(CurRow.Cells[i].Style.ForeColor != Color.Red) CurRow.Cells[i].Style.ForeColor = SetForeColor;
+                        if (CurRow.Cells[i].Style.ForeColor != Color.Red) CurRow.Cells[i].Style.ForeColor = SetForeColor;
                     }
                     return;
                 }
@@ -778,19 +987,27 @@
         /// <returns></returns>
         private double CalculattionPercent(double dInput)
         {
-            double dwork = 0;
+            try
+            {
+                double dwork = 0;
 
-            // 受注金額取得
-            double dBase = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", "").Replace("-", ""));
-            if (dBase == 0) return dwork;
+                // 受注金額取得
+                double dBase = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
+                if (dBase == 0) return dwork;
 
-            dwork = dInput / dBase * 100.0;
+                dwork = dInput / dBase * 100.0;
 
-            return dwork;
+                return dwork;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
         }
         #endregion
 
-        #region 初期時データ取得
+        #region データ表示処理
         /// <summary>
         /// 初期時データ取得
         /// </summary>
@@ -805,14 +1022,14 @@
                 // ヘッダー表示
                 if (!DispHeader()) return;
 
-                // グリッド行削除
-                dgvAllDisplay.Rows.Clear();
-
                 // データがある場合は表示を行う
-                if (InitDispData()) return;
-                
-                // データが無い場合は工事予算書より作成する
-                DispDataFromConstructionBudget();
+                if (!InitDispData())
+                {
+                    // データが無い場合は工事予算書より作成する
+                    //（データは工事予算承認時に作成されるが承認時の作成でも
+                    // 見えないフォームを起動してデータを作成しているので以下の処理は共通）
+                    DispDataFromConstructionBudget();
+                }
 
             }
             catch (Exception ex)
@@ -832,12 +1049,14 @@
         /// 工事予算書よりデータを取得する
         /// </summary>
         /// <returns></returns>
-        private bool DispDataFromConstructionBudget()
+        private void DispDataFromConstructionBudget()
         {
             try
             {
+                // グリッド行削除
+                dgvAllDisplay.Rows.Clear();
 
-                // 工事予算書より経費を取り込む
+                // 経費を表示する
                 DispDataFromConstructionBudget1();
 
                 // 空白行
@@ -869,80 +1088,73 @@
                 CreateNetIncome();
 
                 // 合計金額
-                CreateAllTotal();
+                CreateAllTotal(true);
 
                 // 請求金額作成
-                ConstructionLedgerDetail SaveBillingData = new ConstructionLedgerDetail();
-                CreateBillingAmount(SaveBillingData);
+                CreateBillingAmount();
 
                 // 現在利益作成
                 CreateCurrentProfit();
 
-                // 初期時は詳細台帳データを作成する
-                // データ登録
-                if (!DataEntryProcess(false)) return false;
-
                 // 表示行が足りない場合は追加する
                 SetBlankRow(dgvAllDisplay);
 
-                return true;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
             }
         }
         #endregion
 
-        #region 工事予算書より経費を取り込む
+        #region 経費を表示する
         /// <summary>
-        /// 工事予算書より経費を取り込む
+        /// 経費を表示する
         /// </summary>
         /// <returns></returns>
         private bool DispDataFromConstructionBudget1()
         {
-            IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
             try
             {
-                // 工事予算書明細データを読み込む
-                string strSQL = DetailDB.CreatePrimarykeyString(m_ConstructionCode);
-                strSQL += string.Format(" AND GROUPCOUNT = {0}", (int)GroupName_ConstructionBudget.Expenses);
-                strSQL += " ORDER BY GroupCount ASC, LineCount ASC";
-                List<ConstructionBudgetDetail> DetailList = new List<ConstructionBudgetDetail>();
-                if (!DetailDB.SelectAction(strSQL, ref DetailList)) return false;
-                if (DetailList.Count == 0) return false;
-
                 DataGridView dgv = dgvAllDisplay;
                 int GroupNo = (int)GroupName_ConstructionLedger.Expenses;
                 int icnt = 0;
+                // 受注金額取得
+                double OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
 
                 // グループ名表示
-                CreateTitileRow(GroupNo, s_GroupTitile[GroupNo]);
+                CreateTitleRow(GroupNo, s_GroupTitle[GroupNo]);
 
                 // 行位置取得
                 m_CostsRowCount[(int)CostsRowLine.ExpensesRowLine] = dgv.RowCount - 1;
 
-                foreach (ConstructionBudgetDetail DetailRec in DetailList)
+                foreach (object[] wrkExpense in m_ExpensesList)
                 {
+                    // 経費率取得
+                    string strVallue = CommonMotions.cnvString(wrkExpense[(int)ExpensesArray.ExpensesName]);
+                    double dExpenses = CommonMotions.cnvDouble(wrkExpense[(int)ExpensesArray.ExpensesRate]);
+
                     object[] RowData = new object[dgv.Columns.Count];
+
+                    // 金額計算
+                    double CalcValue = OrdersPrice * (dExpenses / 100.0);
+                    
                     // データセット
-                    RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", GroupNo, ++icnt);
-                    RowData[(int)DispGridColumn.FixFlg] = "*";
-                    RowData[(int)DispGridColumn.GroupCount] = GroupNo;
-                    RowData[(int)DispGridColumn.ItemName] = DetailRec.FirstString;
-                    RowData[(int)DispGridColumn.TextName] = DetailRec.SecondString;
-                    RowData[(int)DispGridColumn.SubContractorType] = DetailRec.CompanyType;
-                    RowData[(int)DispGridColumn.SubContractorCode] = DetailRec.CompanyCode;
-                    RowData[(int)DispGridColumn.SubContractorName] = DetailRec.CompanyName;
-                    RowData[(int)DispGridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
-                    RowData[(int)DispGridColumn.Percent] = DetailRec.AmountConfigRate.ToString("0.00");
-                    RowData[(int)DispGridColumn.payment] = DetailRec.ExecutionAmount.ToString("#,0");
-                    RowData[(int)DispGridColumn.IndependentFlg] = "1";
+                    RowData[(int)GridColumn.No] = string.Format("{0}-{1}", GroupNo, ++icnt);
+                    RowData[(int)GridColumn.FixFlg] = "*";
+                    RowData[(int)GridColumn.GroupCount] = GroupNo;
+                    RowData[(int)GridColumn.ItemName] = string.Format("{0}({1}%)", strVallue, dExpenses.ToString("0.00"));
+                    RowData[(int)GridColumn.CompanyType] = 0;
+                    RowData[(int)GridColumn.CompanyCode] = 0;
+                    RowData[(int)GridColumn.ExecPrice] = ((int)CalcValue).ToString("#,#");
+                    RowData[(int)GridColumn.Percent] = dExpenses.ToString("0.00");
+                    RowData[(int)GridColumn.IndependentFlg] = "1";
+                    RowData[(int)GridColumn.FluctuationFlg] = "0";
+                    RowData[(int)GridColumn.payment] = ((int)CalcValue).ToString("#,#");
 
                     // 合計欄位置取得
                     int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
-                    RowData[TotalPoint] = DetailRec.ExecutionAmount.ToString("#,0");
+                    RowData[TotalPoint] = ((int)CalcValue).ToString("#,#");
                     // 実績欄位置取得
                     int ResultPoint = dgv.ColumnCount + (int)ColPayTotal.Results;
                     RowData[ResultPoint] = "0";
@@ -957,10 +1169,6 @@
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
                 return false;
             }
-            finally
-            {
-                DetailDB.close(); DetailDB = null;
-            }
         }
         #endregion
 
@@ -969,7 +1177,7 @@
         /// 工事予算書より施工費を取り込む
         /// </summary>
         /// <returns></returns>
-        private bool DispDataFromConstructionBudget2()
+        private void DispDataFromConstructionBudget2()
         {
             IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
             try
@@ -981,14 +1189,14 @@
                 strSQL += string.Format(" OR GROUPCOUNT = {0})", (int)GroupName_ConstructionBudget.MyConstruction);         // 自社施工
                 strSQL += " ORDER BY GroupCount ASC, LineCount ASC";
                 List<ConstructionBudgetDetail> DetailList = new List<ConstructionBudgetDetail>();
-                if (!DetailDB.SelectAction(strSQL, ref DetailList)) return false;
-                if (DetailList.Count == 0) return false;
+                if (!DetailDB.SelectAction(strSQL, ref DetailList)) return;
+                if (DetailList.Count == 0) return;
 
                 DataGridView dgv = dgvAllDisplay;
                 int GroupNo = (int)GroupName_ConstructionLedger.ConstructionCosts;
                 int icnt = 0;
                 // グループ名表示
-                CreateTitileRow(GroupNo, s_GroupTitile[GroupNo]);
+                CreateTitleRow(GroupNo, s_GroupTitle[GroupNo]);
 
                 // 行位置取得
                 m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine] = dgv.RowCount - 1;
@@ -997,18 +1205,19 @@
                 {
                     object[] RowData = new object[dgv.Columns.Count];
                     // データセット
-                    RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", GroupNo, ++icnt);
-                    RowData[(int)DispGridColumn.FixFlg] = "*";
-                    RowData[(int)DispGridColumn.GroupCount] = GroupNo;
-                    RowData[(int)DispGridColumn.ItemName] = DetailRec.FirstString;
-                    RowData[(int)DispGridColumn.TextName] = DetailRec.SecondString;
-                    RowData[(int)DispGridColumn.SubContractorCode] = DetailRec.CompanyType;
-                    RowData[(int)DispGridColumn.SubContractorCode] = DetailRec.CompanyCode;
-                    RowData[(int)DispGridColumn.SubContractorName] = DetailRec.CompanyName;
-                    RowData[(int)DispGridColumn.EstimatePrice] = DetailRec.EstimatePrice.ToString("#,0");
-                    RowData[(int)DispGridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
-                    RowData[(int)DispGridColumn.Percent] = DetailRec.AmountConfigRate.ToString("0.00");
-                    RowData[(int)DispGridColumn.IndependentFlg] = "1";
+                    RowData[(int)GridColumn.No] = string.Format("{0}-{1}", GroupNo, ++icnt);
+                    RowData[(int)GridColumn.FixFlg] = "*";
+                    RowData[(int)GridColumn.GroupCount] = GroupNo;
+                    RowData[(int)GridColumn.ItemName] = DetailRec.FirstString;
+                    RowData[(int)GridColumn.TextName] = DetailRec.SecondString;
+                    RowData[(int)GridColumn.CompanyCode] = DetailRec.CompanyType;
+                    RowData[(int)GridColumn.CompanyCode] = DetailRec.CompanyCode;
+                    RowData[(int)GridColumn.CompanyName] = DetailRec.CompanyName;
+                    RowData[(int)GridColumn.EstimatePrice] = DetailRec.EstimatePrice.ToString("#,0");
+                    RowData[(int)GridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
+                    RowData[(int)GridColumn.Percent] = DetailRec.AmountConfigRate.ToString("0.00");
+                    RowData[(int)GridColumn.IndependentFlg] = "1";
+                    RowData[(int)GridColumn.FluctuationFlg] = "0";
 
                     // 合計欄位置取得
                     int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
@@ -1020,12 +1229,10 @@
                     // 行セット
                     CreateDataRow(RowData);
                 }
-                return true;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
             }
             finally
             {
@@ -1039,7 +1246,7 @@
         /// 購入品ブロックを作成する
         /// </summary>
         /// <returns></returns>
-        private bool DispDataFromConstructionBudget3()
+        private void DispDataFromConstructionBudget3()
         {
             try
             {
@@ -1046,7 +1253,7 @@
                 int icnt = 1;
                 int Block = (int)GroupName_ConstructionLedger.TransportationCosts;
                 // グループ名表示
-                CreateTitileRow(Block ,s_GroupTitile[(int)GroupName_ConstructionLedger.PurchaseCosts] + "　　等");
+                CreateTitleRow(Block, s_GroupTitle[(int)GroupName_ConstructionLedger.PurchaseCosts] + "　　等");
 
                 // 交通費表示
                 GetDispDataFromConstructionBudget(Block, (int)GroupName_ConstructionBudget.TransportationCosts, icnt++);
@@ -1061,12 +1268,10 @@
                 // 処分費等
                 GetDispDataFromConstructionBudget(Block, (int)GroupName_ConstructionBudget.DisposeCosts, icnt++);
 
-                return true;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
             }
         }
         #endregion
@@ -1076,7 +1281,7 @@
         /// 工事予算書より購入品を取り込む
         /// </summary>
         /// <returns></returns>
-        private bool DispPurchaseCostsFromConstructionBudget(int BlockCnt ,int icnt)
+        private void DispPurchaseCostsFromConstructionBudget(int BlockCnt, int icnt)
         {
             IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
             try
@@ -1086,8 +1291,8 @@
                 strSQL += DetailDB.CreatePrimarykeyString(m_ConstructionCode);
                 strSQL += string.Format(" AND GROUPCOUNT = {0}", (int)GroupName_ConstructionBudget.PurchaseCosts);       // 購入品
                 ArrayList DetailList = new ArrayList();
-                if (!DetailDB.ExecuteReader(strSQL, ref DetailList)) return false;
-                if (DetailList.Count == 0) return false;
+                if (!DetailDB.ExecuteReader(strSQL, ref DetailList)) return;
+                if (DetailList.Count == 0) return;
 
                 DataGridView dgv = dgvAllDisplay;
                 int GroupNo = (int)GroupName_ConstructionLedger.PurchaseCosts;
@@ -1098,14 +1303,15 @@
 
                 object[] RowData = new object[dgv.Columns.Count];
                 // データセット
-                RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", BlockCnt, icnt);
-                RowData[(int)DispGridColumn.FixFlg] = "*";
-                RowData[(int)DispGridColumn.GroupCount] = GroupNo;
-                RowData[(int)DispGridColumn.ItemName] = s_GroupTitile[GroupNo];
-                RowData[(int)DispGridColumn.EstimatePrice] = CommonMotions.cnvInt(wrkobj[0]).ToString("#,0");
-                RowData[(int)DispGridColumn.ExecPrice] = CommonMotions.cnvInt(wrkobj[1]).ToString("#,0");
-                RowData[(int)DispGridColumn.Percent] = CommonMotions.cnvDouble(wrkobj[2]).ToString("0.00");
-                RowData[(int)DispGridColumn.IndependentFlg] = "1";
+                RowData[(int)GridColumn.No] = string.Format("{0}-{1}", BlockCnt, icnt);
+                RowData[(int)GridColumn.FixFlg] = "*";
+                RowData[(int)GridColumn.GroupCount] = GroupNo;
+                RowData[(int)GridColumn.ItemName] = s_GroupTitle[GroupNo];
+                RowData[(int)GridColumn.EstimatePrice] = CommonMotions.cnvInt(wrkobj[0]).ToString("#,0");
+                RowData[(int)GridColumn.ExecPrice] = CommonMotions.cnvInt(wrkobj[1]).ToString("#,0");
+                RowData[(int)GridColumn.Percent] = CommonMotions.cnvDouble(wrkobj[2]).ToString("0.00");
+                RowData[(int)GridColumn.IndependentFlg] = "1";
+                RowData[(int)GridColumn.FluctuationFlg] = "0";
 
                 // 合計欄位置取得
                 int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
@@ -1117,12 +1323,10 @@
                 // 行セット
                 CreateDataRow(RowData);
 
-                return true;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
             }
             finally
             {
@@ -1136,7 +1340,7 @@
         /// 工事予算書よりデータを取り込む
         /// </summary>
         /// <returns></returns>
-        private bool GetDispDataFromConstructionBudget(int BlockNo, int GroupNo, int DataNo)
+        private void GetDispDataFromConstructionBudget(int BlockNo, int GroupNo, int DataNo)
         {
             IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
             try
@@ -1147,55 +1351,77 @@
                 strSQL += " ORDER BY LineCount ASC";
 
                 ConstructionBudgetDetail DetailRec = new ConstructionBudgetDetail();
-                if (!DetailDB.SelectAction(strSQL, ref DetailRec)) return false;
+                bool DataExist = DetailDB.SelectAction(strSQL, ref DetailRec);
 
                 DataGridView dgv = dgvAllDisplay;
 
                 object[] RowData = new object[dgv.Columns.Count];
                 // データセット
-                switch (DetailRec.GroupCount)
+                switch (GroupNo)
                 {
                     // 車両リース代
                     case (int)GroupName_ConstructionBudget.VehicleLeaseFee:
-                        // 行位置取得
                         m_CostsRowCount[(int)CostsRowLine.VehicleLeaseFeeRowLine] = dgv.RowCount;
                         GroupNo = (int)GroupName_ConstructionLedger.VehicleLeaseFee;
+                        DetailRec.FirstString = s_GroupTitle[(int)GroupName_ConstructionLedger.VehicleLeaseFee];
                         break;
                     // 交通費（通行料・電車代）
                     case (int)GroupName_ConstructionBudget.TransportationCosts:
-                        // 行位置取得
                         m_CostsRowCount[(int)CostsRowLine.TransportationCostsRowLine] = dgv.RowCount;
                         GroupNo = (int)GroupName_ConstructionLedger.TransportationCosts;
+                        DetailRec.FirstString = s_GroupTitle[(int)GroupName_ConstructionLedger.TransportationCosts];
                         break;
                     // 駐車場・資材置き場
                     case (int)GroupName_ConstructionBudget.ParkingCosts:
-                        // 行位置取得
                         m_CostsRowCount[(int)CostsRowLine.ParkingCostsRowLine] = dgv.RowCount;
                         GroupNo = (int)GroupName_ConstructionLedger.ParkingCosts;
+                        DetailRec.FirstString = s_GroupTitle[(int)GroupName_ConstructionLedger.ParkingCosts];
                         break;
                     // 宿泊費
                     case (int)GroupName_ConstructionBudget.RoomChargeCosts:
-                        // 行位置取得
                         m_CostsRowCount[(int)CostsRowLine.RoomChargeCostsRowLine] = dgv.RowCount;
                         GroupNo = (int)GroupName_ConstructionLedger.RoomChargeCosts;
+                        DetailRec.FirstString = s_GroupTitle[(int)GroupName_ConstructionLedger.RoomChargeCosts];
                         break;
                     // 処分費等
                     case (int)GroupName_ConstructionBudget.DisposeCosts:
-                        // 行位置取得
                         m_CostsRowCount[(int)CostsRowLine.DisposeCostsRowLine] = dgv.RowCount;
                         GroupNo = (int)GroupName_ConstructionLedger.DisposeCosts;
+                        DetailRec.FirstString = s_GroupTitle[(int)GroupName_ConstructionLedger.DisposeCosts];
                         break;
                     // 指導員費用
                     case (int)GroupName_ConstructionBudget.InstructorCosts:
-                        // 行位置取得
-                        m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = dgv.RowCount;
+                        if (!DataExist) CreateInstructorCosts(ref DetailRec);
+
+                        if (m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] == 0)
+                            m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = dgv.RowCount;
                         GroupNo = (int)GroupName_ConstructionLedger.Instructor;
+                        // 指導員行に名前を入れる
+                        SetFirstStringName(ref DetailRec);
+                        // 一般ユーザーは指導員の給与を見えないようにする
+                        if (!CheckLeaderOrUser()) DetailRec.SecondString = string.Empty;
                         break;
-                    // 給与費用
+                    // 副担当者給与費用
+                    case (int)GroupName_ConstructionBudget.AssistantCosts:
+                        if (!DataExist) CreateAssistantCosts(ref DetailRec);
+
+                        if (m_CostsRowCount[(int)CostsRowLine.AssistantRowLine] == 0)
+                            m_CostsRowCount[(int)CostsRowLine.AssistantRowLine] = dgv.RowCount;
+                        GroupNo = (int)GroupName_ConstructionLedger.Assistant;
+                        // 副担当行に名前を入れる
+                        SetFirstStringName(ref DetailRec);
+                        // 一般ユーザーは副担当者の給与を見えないようにする
+                        if (!CheckLeaderOrUser()) DetailRec.SecondString = string.Empty;
+                        break;
+                    // 担当者給与費用
                     case (int)GroupName_ConstructionBudget.PayrollExpenses:
-                        // 行位置取得
-                        m_CostsRowCount[(int)CostsRowLine.PayrollExpensesRowLine] = dgv.RowCount;
-                        GroupNo = (int)GroupName_ConstructionLedger.PayrollExpenses;
+                        if (!DataExist) CreatePayrollCosts(ref DetailRec);
+
+                        if (m_CostsRowCount[(int)CostsRowLine.PayrollRowLine] == 0)
+                            m_CostsRowCount[(int)CostsRowLine.PayrollRowLine] = dgv.RowCount;
+                        GroupNo = (int)GroupName_ConstructionLedger.Payroll;
+                        // 一般ユーザーは担当者の給与を見えないようにする
+                        if (!CheckLeaderOrUser()) DetailRec.SecondString = string.Empty;
                         break;
                     default:
                         // その他の項目
@@ -1203,19 +1429,20 @@
                         break;
                 }
 
-                RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", BlockNo, DataNo);
-                RowData[(int)DispGridColumn.FixFlg] = "*";
-                RowData[(int)DispGridColumn.GroupCount] = GroupNo;
-                RowData[(int)DispGridColumn.ItemName] = DetailRec.FirstString;
-                RowData[(int)DispGridColumn.TextName] = DetailRec.SecondString;
+                RowData[(int)GridColumn.No] = string.Format("{0}-{1}", BlockNo, DataNo);        // ここでの番号は見えないのでおかしくてもよい
+                RowData[(int)GridColumn.FixFlg] = "*";
+                RowData[(int)GridColumn.GroupCount] = GroupNo;
+                RowData[(int)GridColumn.ItemName] = DetailRec.FirstString;
+                RowData[(int)GridColumn.TextName] = DetailRec.SecondString;
 
-                RowData[(int)DispGridColumn.SubContractorType] = DetailRec.CompanyType;
-                RowData[(int)DispGridColumn.SubContractorCode] = DetailRec.CompanyCode;
-                RowData[(int)DispGridColumn.SubContractorName] = DetailRec.CompanyName;
-                RowData[(int)DispGridColumn.EstimatePrice] = DetailRec.EstimatePrice.ToString("#,0");
-                RowData[(int)DispGridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
-                RowData[(int)DispGridColumn.Percent] = DetailRec.AmountConfigRate.ToString("0.00");
-                RowData[(int)DispGridColumn.IndependentFlg] = "1";
+                RowData[(int)GridColumn.CompanyType] = DetailRec.CompanyType;
+                RowData[(int)GridColumn.CompanyCode] = DetailRec.CompanyCode;
+                RowData[(int)GridColumn.CompanyName] = DetailRec.CompanyName;
+                RowData[(int)GridColumn.EstimatePrice] = DetailRec.EstimatePrice.ToString("#,0");
+                RowData[(int)GridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
+                RowData[(int)GridColumn.Percent] = DetailRec.AmountConfigRate.ToString("0.00");
+                RowData[(int)GridColumn.IndependentFlg] = "1";
+                RowData[(int)GridColumn.FluctuationFlg] = "0";
 
                 // 合計欄位置取得
                 int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
@@ -1227,23 +1454,10 @@
                 // 行セット
                 CreateDataRow(RowData);
 
-                // 一般ユーザーの指導員は担当者の給与を見えないようにする
-                if (DetailRec.GroupCount == (int)GroupName_ConstructionBudget.PayrollExpenses)
-                {
-                    if (!CheckUserAndLeader())
-                    {
-                        int rowcnt = dgv.RowCount - 1;
-                        dgv.Rows[rowcnt].Cells[(int)DispGridColumn.TextName].Value = string.Empty;
-
-                    }
-                }
-
-                return true;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
             }
             finally
             {
@@ -1257,35 +1471,209 @@
         /// 工事予算書より人件費ブロックを取り込む
         /// </summary>
         /// <returns></returns>
-        private bool DispDataFromConstructionBudget4()
+        private void DispDataFromConstructionBudget4()
         {
-            IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
             try
             {
                 int GroupNo = (int)GroupName_ConstructionLedger.TransportationCosts + 1;
                 int icnt = 1;
                 // グループ名表示
-                CreateTitileRow(GroupNo, s_PersonnelExpensesGroup);
+                CreateTitleRow(GroupNo, s_PersonnelExpensesGroup);
 
                 // 指導員給与
                 GetDispDataFromConstructionBudget(GroupNo, (int)GroupName_ConstructionBudget.InstructorCosts, icnt++);
-                // 給与経費
+                // 副担当者給与
+                GetDispDataFromConstructionBudget(GroupNo, (int)GroupName_ConstructionBudget.AssistantCosts, icnt++);
+                // 担当者給与経費
                 GetDispDataFromConstructionBudget(GroupNo, (int)GroupName_ConstructionBudget.PayrollExpenses, icnt++);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
 
-                return true;
+        #region 給与経費行作成・再計算
+        /// <summary>
+        /// 給与経費行作成・再計算
+        /// </summary>
+        /// <returns></returns>
+        private void CreatePayrollCosts(ref ConstructionBudgetDetail DetailRec)
+        {
+            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
+            try
+            {
+                // 16期以降は給与を表示する
+                if (m_ConstructionBaseInfo.ConstructionPeriod < 16) return;
+
+                DataGridView dgv = dgvAllDisplay;
+                // 工期取得
+                double BetweenTimes = 0;
+                // 給与単価
+                int monthSalary = 0;
+                // 実行金額
+                double costValue = 0;
+                // 文字列
+                string Content = string.Empty;
+
+                // 工事担当者コードの設定           
+                int CodeType = (int)CommonDefine.SearchLogDataType.Person;
+                int PersonCode = m_ConstructionBaseInfo.ConstructionPersonCode;
+
+                if (PersonCode != 0)
+                {
+                    // 担当者マスタを読む
+                    string strSQL = PersonDB.CreatePrimarykeyString(PersonCode);
+                    PersonInChargeMaster personRec = new PersonInChargeMaster();
+                    PersonDB.SelectAction(strSQL, ref personRec);
+
+                    // 残業係数を掛けて月額給与を求める
+                    monthSalary = CommonMotions.cnvRound(personRec.MonthlySalary * (double)CommonDefine.s_SalaryExpenses);
+
+                    // ----- 全日振分
+                    // 工期取得
+                    BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
+                    // 実行金額計算
+                    costValue = (int)(personRec.MonthlySalary * BetweenTimes);
+                    Content = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, ((int)personRec.MonthlySalary).ToString("#,0"));
+                }
+
+                // データセット
+                DetailRec.CompanyType = CodeType;
+                DetailRec.CompanyCode = PersonCode;
+                DetailRec.ExecutionAmount = costValue;
+                DetailRec.FirstString = s_GroupTitle[(int)GroupName_ConstructionLedger.Payroll];
+                DetailRec.SecondString = Content;
+
+                // 工事種別が工事台帳作成対象の場合は給与をセットしない（新規時しかここを通らない）
+                if (!CommonMotions.CheckCreateLedgerData(m_ConstructionBaseInfo.ConstructionStatusFlg,
+                                                        m_ConstructionBaseInfo.ConstructionType))
+                {
+                    DetailRec.ExecutionAmount = 0;
+                    DetailRec.SecondString = string.Empty;
+                }
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
             }
             finally
             {
-                DetailDB.close(); DetailDB = null;
+                PersonDB.close(); PersonDB = null;
             }
         }
         #endregion
 
+        #region 副担当給与行作成
+        /// <summary>
+        /// 副担当給与表示
+        /// </summary>
+        /// <returns></returns>
+        private void CreateAssistantCosts(ref ConstructionBudgetDetail DetailRec)
+        {
+            try
+            {
+                // 工期取得
+                double BetweenTimes = 0;
+                // 実行金額
+                double costValue = 0;
+                // 文字列
+                string Content = string.Empty;
+
+                // 指導員コードの設定           
+                int CodeType = (int)CommonDefine.SearchLogDataType.Person;
+                int PersonCode = m_ConstructionBaseInfo.ConstrSubPersonCode;
+
+                if (PersonCode != 0)
+                {
+                    // 工期取得
+                    BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
+                    costValue = (int)(CommonDefine.AssistantMonthryCost * BetweenTimes);
+                    Content = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, CommonDefine.AssistantMonthryCost.ToString("#,0"));
+                }
+                // データセット
+                DetailRec.CompanyType = CodeType;
+                DetailRec.CompanyCode = PersonCode;
+                DetailRec.ExecutionAmount = costValue;
+                DetailRec.FirstString = s_GroupTitle[(int)GroupName_ConstructionLedger.Assistant];
+                DetailRec.SecondString = Content;
+
+                // 工事種別が工事台帳作成対象の場合は給与をセットしない（新規時しかここを通らない）
+                if (!CommonMotions.CheckCreateLedgerData(m_ConstructionBaseInfo.ConstructionStatusFlg, 
+                                                        m_ConstructionBaseInfo.ConstructionType))
+                {
+                    DetailRec.ExecutionAmount = 0;
+                    DetailRec.SecondString = string.Empty;
+                }
+                else
+                {
+                    // 名前を入れる
+                    SetFirstStringName(ref DetailRec);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 指導員給与行作成
+        /// <summary>
+        /// 指導員給与表示
+        /// </summary>
+        /// <returns></returns>
+        private void CreateInstructorCosts(ref ConstructionBudgetDetail DetailRec)
+        {
+            try
+            {
+                DataGridView dgv = dgvAllDisplay;
+                // 工期取得
+                double BetweenTimes = 0;
+                // 実行金額
+                double costValue = 0;
+                // 文字列
+                string Content = string.Empty;
+
+                // 指導員コードの設定           
+                int CodeType = (int)CommonDefine.SearchLogDataType.Person;
+                int PersonCode = m_ConstructionBaseInfo.ConstructionInstructor;
+                if (PersonCode != 0)
+                {
+                    // 工期取得
+                    BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);
+                    costValue = (int)(CommonDefine.InstructorMonthryCost * BetweenTimes);
+                    Content = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, CommonDefine.InstructorMonthryCost.ToString("#,0"));
+                }
+
+                // データセット
+                DetailRec.CompanyType = CodeType;
+                DetailRec.CompanyCode = PersonCode;
+                DetailRec.ExecutionAmount = costValue;
+                DetailRec.FirstString = s_GroupTitle[(int)GroupName_ConstructionLedger.Instructor];
+                DetailRec.SecondString = Content;
+
+                // 工事種別が工事台帳作成対象の場合は給与をセットしない（新規時しかここを通らない）
+                if (!CommonMotions.CheckCreateLedgerData(m_ConstructionBaseInfo.ConstructionStatusFlg, 
+                                                        m_ConstructionBaseInfo.ConstructionType))
+                {
+                    DetailRec.ExecutionAmount = 0;
+                    DetailRec.SecondString = string.Empty;
+                }
+                else
+                {
+                    // 名前を入れる
+                    SetFirstStringName(ref DetailRec);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region 明細合計を集計
         /// <summary>
         /// 明細合計を集計する
@@ -1311,21 +1699,21 @@
                 if (BreakLine == 0) BreakLine = dgv.Rows.Count;
 
                 // 月毎クリア
-                for (int i = 0; i < MTotal.Length; i++) MTotal[i] = 0;
+                Array.Clear(MTotal, 0, MTotal.Length);
                 foreach (DataGridViewRow wrkRow in dgv.Rows)
                 {
                     // 純利益の前までで処理終了
                     if (wrkRow.Index >= BreakLine) break;
 
-                    EstimateValue += CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.EstimatePrice].Value);           // 積算時見積金額
-                    ExecValue += CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.ExecPrice].Value);                   // 実行金額
-                    PercentValue += CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn.Percent].Value);               // 構成比率
-                    TotalValue += CommonMotions.cnvInt(wrkRow.Cells[TotalPoint].Value);                                     // 合計金額
-                    ResultValue += CommonMotions.cnvInt(wrkRow.Cells[ResultPoint].Value);                                   // 実績金額
+                    EstimateValue += CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.EstimatePrice].Value);           // 積算時見積金額
+                    ExecValue += CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.ExecPrice].Value);                   // 実行金額
+                    PercentValue += CommonMotions.cnvDouble(wrkRow.Cells[(int)GridColumn.Percent].Value);               // 構成比率
+                    TotalValue += CommonMotions.cnvInt(wrkRow.Cells[TotalPoint].Value);                                 // 合計金額
+                    ResultValue += CommonMotions.cnvInt(wrkRow.Cells[ResultPoint].Value);                               // 実績金額
 
                     // 月毎加算
                     int arrayCnt = 0;
-                    for (int i = (int)DispGridColumn.payment; i < dgv.ColumnCount; i++, arrayCnt++)
+                    for (int i = (int)GridColumn.payment; i < dgv.ColumnCount; i++, arrayCnt++)
                     {
                         MTotal[arrayCnt] += CommonMotions.cnvInt(wrkRow.Cells[i].Value);
                     }
@@ -1350,7 +1738,7 @@
                 DataGridView dgv = dgvAllDisplay;
 
                 // 受注金額取得
-                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", "").Replace("-", ""));
+                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
 
                 int EstimateValue = 0;
                 int ExecValue = 0;
@@ -1357,7 +1745,7 @@
                 double PercentValue = 0;
                 int TotalValue = 0;
                 int ResultValue = 0;
-                int Colcnt = dgv.ColumnCount - (int)DispGridColumn.payment;
+                int Colcnt = dgv.ColumnCount - (int)GridColumn.payment;
                 int[] MTotal = new int[Colcnt];
 
                 // 合計値取得
@@ -1373,9 +1761,9 @@
                 if (LineCnt == 0) return;
 
                 // データセット
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.EstimatePrice].Value = EstimatePrice.ToString("#,0");
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.ExecPrice].Value = ExecPrice.ToString("#,0");
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent((double)ExecPrice).ToString("0.00");
+                dgv.Rows[LineCnt].Cells[(int)GridColumn.EstimatePrice].Value = EstimatePrice.ToString("#,0");
+                dgv.Rows[LineCnt].Cells[(int)GridColumn.ExecPrice].Value = ExecPrice.ToString("#,0");
+                dgv.Rows[LineCnt].Cells[(int)GridColumn.Percent].Value = CalculattionPercent((double)ExecPrice).ToString("0.00");
             }
             catch (Exception ex)
             {
@@ -1396,7 +1784,7 @@
                 DataGridView dgv = dgvAllDisplay;
 
                 // 受注金額取得
-                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text.Replace("\\", "").Replace("-", ""));
+                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
 
                 int EstimatePriceValue = 0;
                 int ExecPriceValue = 0;
@@ -1403,7 +1791,7 @@
                 double PercentValue = 0;
                 int TotalValue = 0;
                 int ResultPriceValue = 0;
-                int Colcnt = dgv.ColumnCount - (int)DispGridColumn.payment;
+                int Colcnt = dgv.ColumnCount - (int)GridColumn.payment;
                 int[] MTotal = new int[Colcnt];
 
                 // 合計値取得
@@ -1414,12 +1802,12 @@
 
                 object[] RowData = new object[dgv.Columns.Count];
                 // データセット
-                RowData[(int)DispGridColumn.FixFlg] = "*";
-                RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionLedger.NetIncome;
-                RowData[(int)DispGridColumn.ItemName] = s_GroupTitile[(int)GroupName_ConstructionLedger.NetIncome];
-                RowData[(int)DispGridColumn.EstimatePrice] = EstimateValue.ToString("#,0");
-                RowData[(int)DispGridColumn.ExecPrice] = ExecValue.ToString("#,0");
-                RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecValue).ToString("0.00");
+                RowData[(int)GridColumn.FixFlg] = "*";
+                RowData[(int)GridColumn.GroupCount] = (int)GroupName_ConstructionLedger.NetIncome;
+                RowData[(int)GridColumn.ItemName] = s_GroupTitle[(int)GroupName_ConstructionLedger.NetIncome];
+                RowData[(int)GridColumn.EstimatePrice] = EstimateValue.ToString("#,0");
+                RowData[(int)GridColumn.ExecPrice] = ExecValue.ToString("#,0");
+                RowData[(int)GridColumn.Percent] = CalculattionPercent((double)ExecValue).ToString("0.00");
 
                 // 行セット
                 CreateDataRow(RowData);
@@ -1453,7 +1841,7 @@
                 // 補正欄取得
                 int BurdenPoint = dgv.ColumnCount + (int)ColPayTotal.PaymentBurdens;
                 int Burden = CommonMotions.cnvInt(dgv.Rows[TotalLine].Cells[BurdenPoint].Value);
-                
+
                 // 予算超過額セット
                 int Budget = (Overpayment + Burden);
                 m_DspLabelCtrl[(int)DspLblCtrlName.BudgetOverrun].Text = Budget.ToString("#,0");
@@ -1474,69 +1862,12 @@
         }
         #endregion
 
-        #region 合計金額計算
-        /// <summary>
-        /// 合計金額計算
-        /// </summary>
-        private void CalculateAllTotal()
-        {
-            try
-            {
-                DataGridView dgv = dgvAllDisplay;
-
-                int EstimateValue = 0;
-                int ExecValue = 0;
-                double PercentValue = 0;
-                int TotalValue = 0;
-                int ResultValue = 0;
-                int Colcnt = dgv.ColumnCount - (int)DispGridColumn.payment;
-                int[] MTotal = new int[Colcnt];
-
-                // 合計値取得
-                GetDetailTotal(ref EstimateValue, ref ExecValue, ref PercentValue, ref TotalValue, ref ResultValue, ref MTotal);
-
-                // 純利益取得
-                int NetIncomeLine = m_CostsRowCount[(int)CostsRowLine.NetIncomeRowLine];
-                EstimateValue += CommonMotions.cnvInt(dgv.Rows[NetIncomeLine].Cells[(int)DispGridColumn.EstimatePrice].Value);
-                ExecValue += CommonMotions.cnvInt(dgv.Rows[NetIncomeLine].Cells[(int)DispGridColumn.ExecPrice].Value);
-
-                // データセット
-                int LineCnt = m_CostsRowCount[(int)CostsRowLine.AllTotalRowLine];
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.EstimatePrice].Value = EstimateValue.ToString("#,0");
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.ExecPrice].Value = ExecValue.ToString("#,0");
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.Percent].Value = CalculattionPercent((double)ExecValue).ToString("0.00");
-
-                // 月毎合計
-                int arrayCnt = 0;
-                for (int i = (int)DispGridColumn.payment; i < dgv.ColumnCount; i++, arrayCnt++)
-                {
-                    dgv.Rows[LineCnt].Cells[i].Value = MTotal[arrayCnt].ToString("#,0");
-                }
-
-                // 合計欄位置取得
-                int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
-                dgv.Rows[LineCnt].Cells[TotalPoint].Value = TotalValue.ToString("#,0");
-                // 実績欄位置取得
-                int ResultPoint = dgv.ColumnCount + (int)ColPayTotal.Results;
-                dgv.Rows[LineCnt].Cells[ResultPoint].Value = ResultValue.ToString("#,0");
-
-                // 予算超過金額セット
-                SetBudgetOverrun();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
         #region 合計金額作成
         /// <summary>
         /// 合計金額作成
         /// </summary>
-        private void CreateAllTotal()
+        private void CreateAllTotal(bool bCreateRow)
         {
-
             try
             {
                 DataGridView dgv = dgvAllDisplay;
@@ -1546,7 +1877,7 @@
                 double PercentValue = 0;
                 int TotalValue = 0;
                 int ResultPriceValue = 0;
-                int Colcnt = dgv.ColumnCount - (int)DispGridColumn.payment;
+                int Colcnt = dgv.ColumnCount - (int)GridColumn.payment;
                 int[] MTotal = new int[Colcnt];
 
                 // 合計値取得
@@ -1554,62 +1885,86 @@
 
                 // 純利益取得
                 int NetIncomeLine = m_CostsRowCount[(int)CostsRowLine.NetIncomeRowLine];
-                EstimatePriceValue += CommonMotions.cnvInt(dgv.Rows[NetIncomeLine].Cells[(int)DispGridColumn.EstimatePrice].Value);
-                ExecPriceValue += CommonMotions.cnvInt(dgv.Rows[NetIncomeLine].Cells[(int)DispGridColumn.ExecPrice].Value);
+                EstimatePriceValue += CommonMotions.cnvInt(dgv.Rows[NetIncomeLine].Cells[(int)GridColumn.EstimatePrice].Value);
+                ExecPriceValue += CommonMotions.cnvInt(dgv.Rows[NetIncomeLine].Cells[(int)GridColumn.ExecPrice].Value);
 
-                // 空白行
-                AddEmptyRow();
+                if (bCreateRow)
+                {
+                    // 空白行
+                    AddEmptyRow();
 
-                object[] RowData = new object[dgv.Columns.Count];
-                // データセット
-                RowData[(int)DispGridColumn.FixFlg] = "*";
-                RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionLedger.AllTotal;
-                RowData[(int)DispGridColumn.ItemName] = s_GroupTitile[(int)GroupName_ConstructionLedger.AllTotal];
-                RowData[(int)DispGridColumn.EstimatePrice] = EstimatePriceValue.ToString("#,0");
-                RowData[(int)DispGridColumn.ExecPrice] = ExecPriceValue.ToString("#,0");
-                RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecPriceValue).ToString("0.00");
+                    object[] RowData = new object[dgv.Columns.Count];
+                    // データセット
+                    RowData[(int)GridColumn.FixFlg] = "*";
+                    RowData[(int)GridColumn.GroupCount] = (int)GroupName_ConstructionLedger.AllTotal;
+                    RowData[(int)GridColumn.ItemName] = s_GroupTitle[(int)GroupName_ConstructionLedger.AllTotal];
+                    RowData[(int)GridColumn.EstimatePrice] = EstimatePriceValue.ToString("#,0");
+                    RowData[(int)GridColumn.ExecPrice] = ExecPriceValue.ToString("#,0");
+                    RowData[(int)GridColumn.Percent] = CalculattionPercent((double)ExecPriceValue).ToString("0.00");
 
-                // 月毎合計
-                int arrayCnt = 0;
-                for (int i = (int)DispGridColumn.payment; i < dgv.ColumnCount; i++, arrayCnt++)
-                {
-                    RowData[i] = MTotal[arrayCnt].ToString("#,0");
-                }
+                    // 月毎合計
+                    int arrayCnt = 0;
+                    for (int i = (int)GridColumn.payment; i < dgv.ColumnCount; i++, arrayCnt++)
+                    {
+                        RowData[i] = MTotal[arrayCnt].ToString("#,0");
+                    }
 
-                // 合計欄位置取得
-                int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
-                RowData[TotalPoint] = TotalValue.ToString("#,0");
+                    // 合計欄位置取得
+                    int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
+                    RowData[TotalPoint] = TotalValue.ToString("#,0");
 
-                // 実績欄位置取得
-                int ResultPoint = dgv.ColumnCount + (int)ColPayTotal.Results;
-                RowData[ResultPoint] = ResultPriceValue.ToString("#,0");
+                    // 実績欄位置取得
+                    int ResultPoint = dgv.ColumnCount + (int)ColPayTotal.Results;
+                    RowData[ResultPoint] = ResultPriceValue.ToString("#,0");
 
-                // 行セット
-                CreateDataRow(RowData);
+                    // 行セット
+                    CreateDataRow(RowData);
 
-                // 行位置取得
-                int LineCnt = dgv.RowCount - 1;
-                m_CostsRowCount[(int)CostsRowLine.AllTotalRowLine] = LineCnt;
+                    // 行位置取得
+                    int LineCnt = dgv.RowCount - 1;
+                    m_CostsRowCount[(int)CostsRowLine.AllTotalRowLine] = LineCnt;
 
-                // 合計行は書込み不可
-                dgv.Rows[LineCnt].ReadOnly = true;
+                    // 合計行は書込み不可
+                    dgv.Rows[LineCnt].ReadOnly = true;
 
-                // 総合計フラグON
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.TotalFlg].Value = 2;
+                    // 総合計フラグON
+                    dgv.Rows[LineCnt].Cells[(int)GridColumn.TotalFlg].Value = 2;
 
-                // 工事価格計は行を大きくする
-                dgv.Rows[LineCnt].Height = dgv.RowTemplate.Height * 2;
-                float FontSize = dgv.DefaultCellStyle.Font.Size;
-                Font DrowFont = new Font(dgv.DefaultCellStyle.Font.FontFamily, FontSize * 2);
-                dgv.Rows[LineCnt].Cells[(int)DispGridColumn.No].Style.Font = DrowFont;
+                    // 工事価格計は行を大きくする
+                    dgv.Rows[LineCnt].Height = dgv.RowTemplate.Height * 2;
+                    float FontSize = dgv.DefaultCellStyle.Font.Size;
+                    Font DrowFont = new Font(dgv.DefaultCellStyle.Font.FontFamily, FontSize * 2);
+                    dgv.Rows[LineCnt].Cells[(int)GridColumn.No].Style.Font = DrowFont;
 
-                // 行の色を変える
-                for (int i = 0; i < dgv.Columns.Count; i++)
+                    // 行の色を変える
+                    for (int i = 0; i < dgv.Columns.Count; i++)
+                    {
+                        dgv.Rows[LineCnt].Cells[i].Style.ForeColor = Color.White;
+                        dgv.Rows[LineCnt].Cells[i].Style.BackColor = Color.Black;
+                    }
+                }
+                else
                 {
-                    dgv.Rows[LineCnt].Cells[i].Style.ForeColor = Color.White;
-                    dgv.Rows[LineCnt].Cells[i].Style.BackColor = Color.Black;
+                    // データセット
+                    int LineCnt = m_CostsRowCount[(int)CostsRowLine.AllTotalRowLine];
+                    dgv.Rows[LineCnt].Cells[(int)GridColumn.EstimatePrice].Value = EstimatePriceValue.ToString("#,0");
+                    dgv.Rows[LineCnt].Cells[(int)GridColumn.ExecPrice].Value = ExecPriceValue.ToString("#,0");
+                    dgv.Rows[LineCnt].Cells[(int)GridColumn.Percent].Value = CalculattionPercent((double)ExecPriceValue).ToString("0.00");
+
+                    // 月毎合計
+                    int arrayCnt = 0;
+                    for (int i = (int)GridColumn.payment; i < dgv.ColumnCount; i++, arrayCnt++)
+                    {
+                        dgv.Rows[LineCnt].Cells[i].Value = MTotal[arrayCnt].ToString("#,0");
+                    }
+
+                    // 合計欄位置取得
+                    int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
+                    dgv.Rows[LineCnt].Cells[TotalPoint].Value = TotalValue.ToString("#,0");
+                    // 実績欄位置取得
+                    int ResultPoint = dgv.ColumnCount + (int)ColPayTotal.Results;
+                    dgv.Rows[LineCnt].Cells[ResultPoint].Value = ResultPriceValue.ToString("#,0");
                 }
-
                 // 予算超過金額セット
                 SetBudgetOverrun();
             }
@@ -1667,9 +2022,9 @@
 
                 object[] RowData = new object[dgv.Columns.Count];
                 // データセット
-                RowData[(int)DispGridColumn.FixFlg] = "*";
-                RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionLedger.CurrentProfit;
-                RowData[(int)DispGridColumn.ItemName] = s_GroupTitile[(int)GroupName_ConstructionLedger.CurrentProfit];
+                RowData[(int)GridColumn.FixFlg] = "*";
+                RowData[(int)GridColumn.GroupCount] = (int)GroupName_ConstructionLedger.CurrentProfit;
+                RowData[(int)GridColumn.ItemName] = s_GroupTitle[(int)GroupName_ConstructionLedger.CurrentProfit];
 
                 // 合計欄位置取得
                 int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
@@ -1728,7 +2083,7 @@
 
                 // 月毎合計
                 int Total = 0;
-                for (int i = (int)DispGridColumn.payment; i < (dgv.ColumnCount + (int)ColPayTotal.Totals); i++)
+                for (int i = (int)GridColumn.payment; i < (dgv.ColumnCount + (int)ColPayTotal.Totals); i++)
                 {
                     Total += CommonMotions.cnvInt(dgv.Rows[BillingAmountRow].Cells[i].Value);
                 }
@@ -1746,7 +2101,7 @@
         /// <summary>
         /// 請求金額作成
         /// </summary>
-        private void CreateBillingAmount(ConstructionLedgerDetail SaveBillingData)
+        private void CreateBillingAmount()
         {
             IOConstructionLedgerExcute ExcuteDB = new IOConstructionLedgerExcute();
             try
@@ -1758,10 +2113,11 @@
 
                 object[] RowData = new object[dgv.Columns.Count];
                 // データセット
-                RowData[(int)DispGridColumn.FixFlg] = "*";
-                RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionLedger.BillingAmount;
-                RowData[(int)DispGridColumn.ItemName] = s_GroupTitile[(int)GroupName_ConstructionLedger.BillingAmount];
-                RowData[(int)DispGridColumn.IndependentFlg] = "1";
+                RowData[(int)GridColumn.FixFlg] = "*";
+                RowData[(int)GridColumn.GroupCount] = (int)GroupName_ConstructionLedger.BillingAmount;
+                RowData[(int)GridColumn.ItemName] = s_GroupTitle[(int)GroupName_ConstructionLedger.BillingAmount];
+                RowData[(int)GridColumn.IndependentFlg] = "1";
+                RowData[(int)GridColumn.FluctuationFlg] = "0";
 
                 string strSQL = ExcuteDB.CreatePrimarykeyString(m_ConstructionCode,
                                                                 (int)GroupName_ConstructionLedger.BillingAmount);
@@ -1789,7 +2145,7 @@
                 // 行位置取得
                 int LineCnt = dgv.RowCount - 1;
                 m_CostsRowCount[(int)CostsRowLine.BillingAmountRowLine] = LineCnt;
-                
+
                 // 行色変更
                 DefaultRowChangeColor(LineCnt);
             }
@@ -1826,6 +2182,127 @@
         }
         #endregion
 
+        #region 表示大タイトルをセットする
+        /// <summary>
+        /// 表示大タイトルをセットする
+        /// </summary>
+        /// <param name="DetailRec"></param>
+        /// <param name="GroupNo"></param>
+        /// <param name="Block"></param>
+        /// <param name="icnt"></param>
+        private void SetFirstTitle(int GroupNo, ref int Block, ref int icnt)
+        {
+            try
+            {
+                switch (GroupNo)
+                {
+                    case (int)GroupName_ConstructionLedger.Expenses:
+                        // 経費
+                        Block = (int)GroupName_ConstructionLedger.Expenses;
+                        CreateTitleRow(GroupNo, s_GroupTitle[GroupNo]);     // タイトル表示
+                        icnt = 1;
+                        break;
+                    case (int)GroupName_ConstructionLedger.ConstructionCosts:
+                        // 施工費
+                        AddEmptyRow();                                      // 空白行
+                        Block = (int)GroupName_ConstructionLedger.ConstructionCosts;
+                        CreateTitleRow(GroupNo, s_GroupTitle[GroupNo]);     // タイトル表示
+                        icnt = 1;
+                        break;
+                    case (int)GroupName_ConstructionLedger.TransportationCosts:
+                        // 交通費（通行料・電車代）
+                        AddEmptyRow();                                      // 空白行
+                        string Titlestring = s_GroupTitle[(int)GroupName_ConstructionLedger.PurchaseCosts] + "　　等";
+                        Block = (int)GroupName_ConstructionLedger.TransportationCosts;
+                        CreateTitleRow(GroupNo, Titlestring);             // タイトル表示
+                        icnt = 1;
+                        break;
+                    case (int)GroupName_ConstructionLedger.Instructor:
+                        // 指導員給料行
+                        AddEmptyRow();                                      // 空白行
+                        Block = (int)GroupName_ConstructionLedger.TransportationCosts + 1;
+                        CreateTitleRow(Block, s_PersonnelExpensesGroup);     // タイトル表示
+                        icnt = 1;
+                        break;
+                    case (int)GroupName_ConstructionLedger.PurchaseCosts:           // 購入品
+                    case (int)GroupName_ConstructionLedger.VehicleLeaseFee:         // 車両リース代
+                    case (int)GroupName_ConstructionLedger.ParkingCosts:            // 駐車場・資材置き場
+                    case (int)GroupName_ConstructionLedger.RoomChargeCosts:         // 宿泊費
+                    case (int)GroupName_ConstructionLedger.DisposeCosts:            // 処分費等
+                    case (int)GroupName_ConstructionLedger.Payroll:                 // 給料行
+                    case (int)GroupName_ConstructionLedger.Assistant:               // 副担当者
+                        break;
+                    default:
+                        Block = 0;
+                        break;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 表示番号編集
+        /// <summary>
+        /// 表示番号編集
+        /// </summary>
+        /// <param name="DetailRec"></param>
+        /// <param name="GroupNo"></param>
+        /// <param name="Block"></param>
+        /// <param name="icnt"></param>
+        /// <param name="RowData"></param>
+        /// <param name="strParentNo"></param>
+        /// <param name="childNo"></param>
+        private void SetDisplayNo(ConstructionLedgerDetail DetailRec, int GroupNo,
+                                    ref int Block, ref int icnt, ref object[] RowData, ref string strParentNo, ref int childNo)
+        {
+            try
+            {
+                switch (GroupNo)
+                {
+                    case (int)GroupName_ConstructionLedger.ConstructionCosts:       // 施工費
+                        // 独立項目の場合
+                        if (DetailRec.IndependentFlg == 1)
+                        {
+                            string DspNumber = string.Format("{0}-{1}", DetailRec.GroupCount, icnt++);
+                            RowData[(int)GridColumn.No] = DspNumber;
+                            strParentNo = DspNumber;
+                            childNo = 1;
+                        }
+                        else
+                        {
+                            RowData[(int)GridColumn.No] = string.Format("{0}-{1}", strParentNo, ++childNo);
+                            // 独立データフラグ
+                            RowData[(int)GridColumn.IndependentFlg] = "";
+                            // 従属データフラグ
+                            RowData[(int)GridColumn.ChildFlg] = 1;
+                        }
+                        break;
+                    case (int)GroupName_ConstructionLedger.Expenses:                // 経費
+                    case (int)GroupName_ConstructionLedger.TransportationCosts:     // 交通費（通行料・電車代）
+                    case (int)GroupName_ConstructionLedger.PurchaseCosts:           // 購入品
+                    case (int)GroupName_ConstructionLedger.VehicleLeaseFee:         // 車両リース代
+                    case (int)GroupName_ConstructionLedger.ParkingCosts:            // 駐車場・資材置き場
+                    case (int)GroupName_ConstructionLedger.RoomChargeCosts:         // 宿泊費
+                    case (int)GroupName_ConstructionLedger.DisposeCosts:            // 処分費等
+                    case (int)GroupName_ConstructionLedger.Instructor:              // 指導員給料行
+                    case (int)GroupName_ConstructionLedger.Payroll:                 // 給料行
+                    case (int)GroupName_ConstructionLedger.Assistant:               // 副担当者
+                        RowData[(int)GridColumn.No] = string.Format("{0}-{1}", Block, icnt++);
+                        break;
+                    default:
+                        break;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region 工事詳細台帳データ読込
         /// <summary>
         /// 工事詳細台帳データ読込
@@ -1849,121 +2326,61 @@
                 if (!DetailDB.SelectAction(strSQL, ref DetailList)) return false;
                 if (DetailList.Count == 0) return false;
 
+                // グリッド行削除
+                dgvAllDisplay.Rows.Clear();
+
                 DataGridView dgv = dgvAllDisplay;
                 int GridColMax = dgv.ColumnCount;
-                int GroupNo = (int)GroupName_ConstructionLedger.Expenses;
+                int GroupNo = 0;
                 int icnt = 1;
                 string strParentNo = string.Empty;
                 int childNo = 0;
-                int Block = (int)GroupName_ConstructionLedger.Expenses;
+                int Block = 0;
                 ConstructionLedgerDetail SaveBillingData = new ConstructionLedgerDetail();
-                // グループ名表示(経費)
-                CreateTitileRow(GroupNo, s_GroupTitile[GroupNo]);
                 foreach (ConstructionLedgerDetail DetailRec in DetailList)
                 {
                     // グループ番号が違えばタイトル行表示
                     if (GroupNo != DetailRec.GroupCount)
                     {
-                        GroupNo = DetailRec.GroupCount;
-                        switch (GroupNo)
+                        // データに施工費が無い場合があるのでその時はタイトルだけ作る
+                        if (GroupNo == (int)GroupName_ConstructionLedger.Expenses
+                            && DetailRec.GroupCount != (int)GroupName_ConstructionLedger.ConstructionCosts)
                         {
-                            case (int)GroupName_ConstructionLedger.ConstructionCosts:
-                                // 施工費
-                                AddEmptyRow();                                      // 空白行
-                                Block = (int)GroupName_ConstructionLedger.ConstructionCosts;
-                                CreateTitileRow(GroupNo, s_GroupTitile[GroupNo]);     // タイトル表示
-                                icnt = 1;
-                                break;
-                            case (int)GroupName_ConstructionLedger.TransportationCosts:
-                                // 交通費（通行料・電車代）
-                                AddEmptyRow();                                      // 空白行
-                                string Titilestring = s_GroupTitile[(int)GroupName_ConstructionLedger.PurchaseCosts] + "　　等";
-                                Block = (int)GroupName_ConstructionLedger.TransportationCosts;
-                                CreateTitileRow(GroupNo, Titilestring);             // タイトル表示
-                                icnt = 1;
-                                break;
-                            case (int)GroupName_ConstructionLedger.Instructor:
-                                // 指導員給料行
-                                AddEmptyRow();                                      // 空白行
-                                Block = (int)GroupName_ConstructionLedger.TransportationCosts + 1;
-                                CreateTitileRow(Block, s_PersonnelExpensesGroup);     // タイトル表示
-                                icnt = 1;
-                                break;
-                            case (int)GroupName_ConstructionLedger.PurchaseCosts:           // 購入品
-                            case (int)GroupName_ConstructionLedger.VehicleLeaseFee:         // 車両リース代
-                            case (int)GroupName_ConstructionLedger.ParkingCosts:            // 駐車場・資材置き場
-                            case (int)GroupName_ConstructionLedger.RoomChargeCosts:         // 宿泊費
-                            case (int)GroupName_ConstructionLedger.DisposeCosts:            // 処分費等
-                            case (int)GroupName_ConstructionLedger.PayrollExpenses:         // 給料行
-                                break;
-                            default:
-                                Block = 0;
-                                break;
+                            // タイトル作成
+                            SetFirstTitle((int)GroupName_ConstructionLedger.ConstructionCosts, ref Block, ref icnt);
+                            // 行設定
+                            SetGroupDataProperty((int)GroupName_ConstructionLedger.ConstructionCosts);
                         }
+                        // 普通にタイトルを表示する
+                        SetFirstTitle(DetailRec.GroupCount, ref Block, ref icnt);
+                        GroupNo = DetailRec.GroupCount;
                     }
 
+                    // ----- 行データセット
                     object[] RowData = new object[GridColMax];
-                    // 固定フラグは工事予算書より読み込んだものにセットする
-                    if (DetailRec.FixDataFlg == 1)
-                        RowData[(int)DispGridColumn.FixFlg] = "*";
 
+                    // 固定フラグをセットする
+                    if (DetailRec.FixDataFlg == 1) RowData[(int)GridColumn.FixFlg] = "*";
+
                     // 独立データフラグ
-                    RowData[(int)DispGridColumn.IndependentFlg] = 1;
+                    RowData[(int)GridColumn.IndependentFlg] = 1;
 
                     // 経費・施工費・購入品は番号を振る
-                    switch (GroupNo)
-                    {
-                        case (int)GroupName_ConstructionLedger.ConstructionCosts:       // 施工費
-                            // 独立項目の場合
-                            if (DetailRec.IndependentFlg == 1)
-                            {
-                                string DspNumber = string.Format("{0}-{1}", DetailRec.GroupCount, icnt++);
-                                RowData[(int)DispGridColumn.No] = DspNumber;
-                                strParentNo = DspNumber;
-                                childNo = 1;
-                            }
-                            else
-                            {
-                                RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", strParentNo, ++childNo);
-                                // 独立データフラグ
-                                RowData[(int)DispGridColumn.IndependentFlg] = "";
-                                // 従属データフラグ
-                                RowData[(int)DispGridColumn.ChildFlg] = 1;
-                            }
-                            break;
-                        case (int)GroupName_ConstructionLedger.Expenses:                // 経費
-                        case (int)GroupName_ConstructionLedger.TransportationCosts:     // 交通費（通行料・電車代）
-                        case (int)GroupName_ConstructionLedger.PurchaseCosts:           // 購入品
-                        case (int)GroupName_ConstructionLedger.VehicleLeaseFee:         // 車両リース代
-                        case (int)GroupName_ConstructionLedger.ParkingCosts:            // 駐車場・資材置き場
-                        case (int)GroupName_ConstructionLedger.RoomChargeCosts:         // 宿泊費
-                        case (int)GroupName_ConstructionLedger.DisposeCosts:            // 処分費等
-                        case (int)GroupName_ConstructionLedger.Instructor:              // 指導員給料行
-                        case (int)GroupName_ConstructionLedger.PayrollExpenses:         // 給料行
-                            RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", Block, icnt++);
-                            break;
-                        default:
-                            break;
-                    }
-                    RowData[(int)DispGridColumn.GroupCount] = DetailRec.GroupCount;
-                    RowData[(int)DispGridColumn.ItemName] = DetailRec.FirstString;
-                    // 給与の内容は見えない人がいる
-                    if (DetailRec.GroupCount == (int)GroupName_ConstructionLedger.PayrollExpenses)
-                    {
-                        if (!CheckUserAndLeader()) DetailRec.SecondString = string.Empty;
-                    }
-                    RowData[(int)DispGridColumn.TextName] = DetailRec.SecondString;
-                    RowData[(int)DispGridColumn.SubContractorType] = DetailRec.CompanyType;
-                    RowData[(int)DispGridColumn.SubContractorCode] = DetailRec.CompanyCode;
-                    RowData[(int)DispGridColumn.SubContractorName] = DetailRec.CompanyName;
-                    // 施工費は予算金額がある
-                    if (DetailRec.GroupCount == (int)GroupName_ConstructionLedger.ConstructionCosts)
-                        RowData[(int)DispGridColumn.EstimatePrice] = DetailRec.EstimatePrice.ToString("#,0");
+                    SetDisplayNo(DetailRec, GroupNo, ref Block, ref icnt, ref RowData, ref strParentNo, ref childNo);
 
-                    RowData[(int)DispGridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
-                    RowData[(int)DispGridColumn.Percent] = DetailRec.AmountConfigRate.ToString("0.00");
+                    RowData[(int)GridColumn.GroupCount] = DetailRec.GroupCount;
+                    RowData[(int)GridColumn.ItemName] = DetailRec.FirstString;
+                    RowData[(int)GridColumn.TextName] = DetailRec.SecondString;
+                    RowData[(int)GridColumn.CompanyType] = DetailRec.CompanyType;
+                    RowData[(int)GridColumn.CompanyCode] = DetailRec.CompanyCode;
+                    RowData[(int)GridColumn.CompanyName] = DetailRec.CompanyName;
+                    RowData[(int)GridColumn.EstimatePrice] = DetailRec.EstimatePrice.ToString("#,#");
 
-                    // 支払いデータをセットする
+                    RowData[(int)GridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
+                    RowData[(int)GridColumn.Percent] = DetailRec.AmountConfigRate.ToString("0.00");
+                    RowData[(int)GridColumn.FluctuationFlg] = DetailRec.FluctuationFlg;
+
+                    // ----- 支払いデータをセットする
                     double TotalValue = 0;
                     strSQL = ExcuteDB.CreatePrimarykeyString(m_ConstructionCode, DetailRec.GroupCount, DetailRec.LineCount);
                     strSQL += " ORDER BY ColumnCount";
@@ -1971,28 +2388,105 @@
                     ExcuteDB.SelectAction(strSQL, ref ExcuteList);
                     foreach (ConstructionLedgerExcute ExcuteRec in ExcuteList)
                     {
-                        RowData[ExcuteRec.ColumnCount] = ExcuteRec.PaymentAmount.ToString("#,0");
-                        TotalValue += ExcuteRec.PaymentAmount;
+
+                        //RowData[ExcuteRec.ColumnCount] = ExcuteRec.PaymentAmount.ToString("#,0");
+                        //TotalValue += ExcuteRec.PaymentAmount;
+                        //グリッドの対象列を取得する（データのカラム数から年月に変更する）
+                        string CurMounth = string.Format("{0}年{1}月", ExcuteRec.TargetMonth.Year, ExcuteRec.TargetMonth.Month);
+                        for (int ix = (int)GridColumn.payment; ix < dgv.ColumnCount; ix++)
+                        {
+                            // グリッドの対象列を探す
+                            if (CurMounth.Equals(dgv.Columns[ix].HeaderText))
+                            {
+                                // あればセットする
+                                RowData[ix] = ExcuteRec.PaymentAmount.ToString("#,0");
+                                TotalValue += ExcuteRec.PaymentAmount;
+                                break;
+                            }
+                        }
                     }
 
                     // 合計金額表示
                     RowData[GridColMax + (int)ColPayTotal.Totals] = TotalValue.ToString("#,0");
 
-                    // 実績金額表示
-                    int ExecValue = (int)(DetailRec.ExecutionAmount - TotalValue);
+                    // 支払可能額表示
+                    int ExecValue = 0;
+                    if (GroupNo != (int)GroupName_ConstructionLedger.Expenses)
+                    {   // 経費以外の時のみ支払可能額を計算する
+                        ExecValue = (int)(DetailRec.ExecutionAmount - TotalValue);
+                    }
                     RowData[GridColMax + (int)ColPayTotal.Results] = ExecValue.ToString("#,0");
 
                     // 支払補填額
                     RowData[GridColMax + (int)ColPayTotal.PaymentBurdens] = DetailRec.PaymentBurden.ToString("#,0");
 
-                    // 請求金額データはデータを作成しない
-                    if (DetailRec.GroupCount != (int)GroupName_ConstructionLedger.BillingAmount)
+                    // ----- 行作成
+                    switch (DetailRec.GroupCount)
                     {
-                        // データ行作成
-                        CreateDataRow(RowData);
+                        case (int)GroupName_ConstructionLedger.BillingAmount:
+                            // 14:請求金額データ
+                            // データを作成しない
+                            break;
+                        case (int)GroupName_ConstructionLedger.Expenses:
+                            // 1:経費
+                            // 工事詳細台帳明細データにパーセントより金額を設定する
+                            if (LedgerRec.IntegrationFlg == 1)
+                            {
+                                CalculateExpenss(DetailRec);
+                                RowData[(int)GridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
+                            }
+
+                            // データ行作成
+                            CreateDataRow(RowData);
+
+                            // 支払月の先頭に金額をセットする
+                            if (LedgerRec.IntegrationFlg == 1) SetExcuteValue(DetailRec);
+
+                            break;
+                        case (int)GroupName_ConstructionLedger.Payroll:
+                            // 11:担当者給与
+                            // 一般ユーザーは担当者給与を見えないようにする
+                            if (CheckLeaderOrUser()) {
+                                if (DetailRec.SecondString.Length == 0) RowData[(int)GridColumn.TextName] = MakePersonSalaryString();
+                            }
+                            else {
+                                RowData[(int)GridColumn.TextName] = string.Empty;
+                            }
+                            // データ行作成
+                            CreateDataRow(RowData);
+                            break;
+                        case (int)GroupName_ConstructionLedger.Assistant:
+                            // 10:副担当給与
+                            // 一般ユーザーは副担当者給与を見えないようにする
+                            if (CheckLeaderOrUser()) {
+                                if (DetailRec.SecondString.Length == 0) RowData[(int)GridColumn.TextName] = MakeAssistantSalaryString();
+                            }
+                            else {
+                                RowData[(int)GridColumn.TextName] = string.Empty;
+                            }
+                            // データ行作成
+                            CreateDataRow(RowData);
+                            break;
+                        case (int)GroupName_ConstructionLedger.Instructor:
+                            // 9:指導員給与
+                            // 一般ユーザーは指導員給与を見えないようにする
+                            if (CheckLeaderOrUser()) {
+                                if (DetailRec.SecondString.Length == 0) RowData[(int)GridColumn.TextName] = MakeInstructorSalaryString();
+                            }
+                            else {
+                                RowData[(int)GridColumn.TextName] = string.Empty;
+                            }
+                            // データ行作成
+                            CreateDataRow(RowData);
+                            break;
+                        default:
+                            // データ行作成
+                            CreateDataRow(RowData);
+                            break;
                     }
 
-                    for (int i = (int)DispGridColumn.ItemName; i <= (int)DispGridColumn.SubContractorName; i++)
+                    // ----- 列のロック
+                    for (int i = (int)GridColumn.ItemName; i <= (int)GridColumn.CompanyName; i++)
                     {
                         dgv.Rows[dgv.RowCount - 1].Cells[i].ReadOnly = true;
                     }
@@ -2002,7 +2496,7 @@
                             // 施工費・購入品の固定項目以外の行は名称等を編集出来る
                             if (DetailRec.FixDataFlg != 1)
                             {
-                                for (int i = (int)DispGridColumn.ItemName; i <= (int)DispGridColumn.SubContractorName; i++)
+                                for (int i = (int)GridColumn.ItemName; i <= (int)GridColumn.CompanyName; i++)
                                 {
                                     dgv.Rows[dgv.RowCount - 1].Cells[i].ReadOnly = false;
                                 }
@@ -2010,9 +2504,9 @@
                             break;
 
                         case (int)GroupName_ConstructionLedger.Instructor:              // 指導員
-                        case (int)GroupName_ConstructionLedger.PayrollExpenses:         // 給与
+                        case (int)GroupName_ConstructionLedger.Assistant:               // 副担当
+                        case (int)GroupName_ConstructionLedger.Payroll:                 // 給与
                         case (int)GroupName_ConstructionLedger.NetIncome:               // 純利益
-                            // 
                             // 16期より前は指導員金額・担当者給与・純利益を表示しない
                             if (m_ConstructionBaseInfo.ConstructionPeriod < 16) dgv.Rows[dgv.RowCount - 1].Visible = false;
                             break;
@@ -2025,6 +2519,13 @@
 
                     // グループごとの処理
                     SetGroupDataProperty(DetailRec, ref SaveBillingData);
+
+                    // 増減データは色を付ける
+                    if (DetailRec.FluctuationFlg != 0)
+                    {
+                        DataGridViewRow ColorRow = dgv.Rows[dgv.RowCount - 1];
+                        ColorRow.Cells[(int)GridColumn.No].Style.BackColor = Color.Red;
+                    }
                 }
 
                 // 空白行
@@ -2034,10 +2535,10 @@
                 CreateNetIncome();
 
                 // 合計金額
-                CreateAllTotal();
+                CreateAllTotal(true);
 
                 // 請求金額作成
-                CreateBillingAmount(SaveBillingData);
+                CreateBillingAmount();
 
                 // 現在利益作成
                 CreateCurrentProfit();
@@ -2068,6 +2569,91 @@
         }
         #endregion
 
+        #region 工事詳細台帳明細データにパーセントより金額を設定する
+        /// <summary>
+        /// 工事詳細台帳明細データにパーセントより金額を設定する
+        /// </summary>
+        /// <param name="DetailRec"></param>
+        private void CalculateExpenss(ConstructionLedgerDetail DetailRec)
+        {
+            try
+            {
+                // 割合がセットされていなければ処理しない
+                if (DetailRec.AmountConfigRate == 0) return;
+
+                // 受注金額取得
+                double dBase = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
+
+                DetailRec.ExecutionAmount = dBase * (DetailRec.AmountConfigRate / 100.0);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 支払月の先頭に金額をセットする
+        /// <summary>
+        /// 支払月の先頭に金額をセットする
+        /// </summary>
+        /// <param name="DetailRec"></param>
+        private void SetExcuteValue(ConstructionLedgerDetail DetailRec)
+        {
+            try
+            {
+                DataGridView dgv = dgvAllDisplay;
+                DataGridViewRow CurRow = dgv.Rows[dgv.RowCount - 1];
+
+                // 支払い金額
+                int ExcePoint = (int)GridColumn.payment;
+                CurRow.Cells[ExcePoint].Value = DetailRec.ExecutionAmount.ToString("#,0");
+
+                // 合計欄位置取得
+                int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
+                CurRow.Cells[TotalPoint].Value = DetailRec.ExecutionAmount.ToString("#,0");
+                // 実績欄位置取得
+                int ResultPoint = dgv.ColumnCount + (int)ColPayTotal.Results;
+                CurRow.Cells[ResultPoint].Value = DetailRec.ExecutionAmount.ToString("#,0");
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region グループごとの処理を行う(グループごとの特殊処理)
+        /// <summary>
+        /// グループごとの処理を行う
+        /// （グループごとの特殊処理、施工費しか使用しないが将来性を見越して作成）
+        /// </summary>
+        /// <param name="DetailRec"></param>
+        /// <param name="SaveBillingData"></param>
+        private void SetGroupDataProperty(int GroupCount)
+        {
+            try
+            {
+                DataGridView dgv = dgvAllDisplay;
+                // グループごとの処理
+                switch (GroupCount)
+                {
+                    // 施工費
+                    case (int)GroupName_ConstructionLedger.ConstructionCosts:
+                        // 行位置取得
+                        if (m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine] == 0)
+                            m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine] = dgv.RowCount - 1;
+                        break;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region グループごとの処理を行う
         /// <summary>
         /// グループごとの処理を行う
@@ -2135,12 +2721,18 @@
                         if (m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] == 0)
                             m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = dgv.RowCount - 1;
                         break;
-                    // 給料
-                    case (int)GroupName_ConstructionLedger.PayrollExpenses:
+                    // 副担当者給料
+                    case (int)GroupName_ConstructionLedger.Assistant:
                         // 行位置取得
-                        if (m_CostsRowCount[(int)CostsRowLine.PayrollExpensesRowLine] == 0)
-                            m_CostsRowCount[(int)CostsRowLine.PayrollExpensesRowLine] = dgv.RowCount - 1;
+                        if (m_CostsRowCount[(int)CostsRowLine.AssistantRowLine] == 0)
+                            m_CostsRowCount[(int)CostsRowLine.AssistantRowLine] = dgv.RowCount - 1;
                         break;
+                    // 担当者給料
+                    case (int)GroupName_ConstructionLedger.Payroll:
+                        // 行位置取得
+                        if (m_CostsRowCount[(int)CostsRowLine.PayrollRowLine] == 0)
+                            m_CostsRowCount[(int)CostsRowLine.PayrollRowLine] = dgv.RowCount - 1;
+                        break;
                     // 純利益
                     case (int)GroupName_ConstructionLedger.NetIncome:
                         // 行位置取得
@@ -2183,20 +2775,21 @@
                 DataGridViewRow CurRow = dgv.CurrentRow;
                 int GroupCount = 0;
 
-                // 空白行は1行前を判定する
-                if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1)
+                // タイトル／空白行は1行前を判定する
+                if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)GridColumn.TitleFlg].Value) == 1 
+                    && CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)GridColumn.BlankFlg].Value) == 1)
                 {
                     // 1行前が施工行か判定する
                     int ProvRowCount = CurRow.Index - 1;
                     if (ProvRowCount < 0) return;
                     DataGridViewRow ProvRow = dgv.Rows[ProvRowCount];
-                    GroupCount = CommonMotions.cnvInt(ProvRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                    GroupCount = CommonMotions.cnvInt(ProvRow.Cells[(int)GridColumn.GroupCount].Value);
                     if (GroupCount != (int)GroupName_ConstructionLedger.ConstructionCosts) return;
                 }
 
                 // 該当行のグループ番号取得
                 if (GroupCount == 0)
-                    GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                    GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value);
 
                 btnLineAdd.Visible = false;
                 btnLineDel.Visible = false;
@@ -2203,20 +2796,37 @@
                 btnDispUp.Visible = false;
                 btnDispDown.Visible = false;
 
-                // 施工費以外は処理しない
-                if (GroupCount != (int)GroupName_ConstructionLedger.ConstructionCosts) return;
+                // 施工費・人件費以外は処理しない
+                switch (GroupCount)
+                {
+                    case (int)GroupName_ConstructionLedger.ConstructionCosts:
+                    case (int)GroupName_ConstructionLedger.Assistant:
+                    case (int)GroupName_ConstructionLedger.Instructor:
+                        break;
+                    default:
+                        return;
+                }
 
                 // 工事詳細台帳で作成された行だけを対象にする
-                string strFix = CommonMotions.cnvString(CurRow.Cells[(int)DispGridColumn.FixFlg].Value);
+                string strFix = CommonMotions.cnvString(CurRow.Cells[(int)GridColumn.FixFlg].Value);
 
+                // 人件費は以下のボタンを表示しない
+                if (GroupCount == (int)GroupName_ConstructionLedger.Assistant || GroupCount == (int)GroupName_ConstructionLedger.Instructor)
+                {
+                    btnLineDel.Visible = true;
+                    return;
+                }
+
                 btnLineAdd.Visible = true;
                 btnDispUp.Visible = true;
                 btnDispDown.Visible = true;
+
                 // 固定行は削除できない
                 if (strFix.Equals("*"))
                     btnLineDel.Visible = false;
                 else
                     btnLineDel.Visible = true;
+
             }
             catch (Exception ex)
             {
@@ -2225,21 +2835,14 @@
         }
         #endregion
 
-        #region 施工費行を追加
+        #region 行を追加する
         /// <summary>
-        /// 施工費行を追加する
+        /// 行を追加する
         /// </summary>
         private void AddLineData()
         {
-            //FrmRowAddChoice frm = new FrmRowAddChoice();
             try
             {
-                // 確認画面表示
-                //frm.ShowDialog();
-                //// キャンセル時処理しない
-                //if (frm.EndButton == DialogResult.Cancel) return;
-                //bool IndependentFlg = frm.IndependentFlg;
-
                 DataGridView dgv = dgvAllDisplay;
                 DataGridViewRow CurRow = dgv.CurrentRow;
 
@@ -2246,7 +2849,7 @@
                 int InsertCnt = 0;
                 // グループカウントを取得する
                 int GroupCount = 0;
-                GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value);
 
                 if (GroupCount == (int)GroupName_ConstructionLedger.ConstructionCosts)
                 {
@@ -2256,7 +2859,7 @@
                 else if (GroupCount == 0)
                 {   // 空白行で施工費のすぐ後は対象とする
                     DataGridViewRow wrkRow = dgv.Rows[dgv.CurrentRow.Index - 1];
-                    GroupCount = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                    GroupCount = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value);
                     if (GroupCount == (int)GroupName_ConstructionLedger.ConstructionCosts)
                     {
                         // 空白行は上に追加
@@ -2276,90 +2879,52 @@
 
                 // 設定データセット
                 DataGridViewRow SetData = dgv.Rows[InsertCnt];
-                SetData.Cells[(int)DispGridColumn.GroupCount].Value = GroupCount;
-                SetData.Cells[(int)DispGridColumn.EstimatePrice].Value = "";
-                SetData.Cells[(int)DispGridColumn.ExecPrice].Value = "0";
-                SetData.Cells[(int)DispGridColumn.Percent].Value = "0.00";
+                SetData.Cells[(int)GridColumn.GroupCount].Value = GroupCount;
+                SetData.Cells[(int)GridColumn.EstimatePrice].Value = "";
+                SetData.Cells[(int)GridColumn.ExecPrice].Value = "0";
+                SetData.Cells[(int)GridColumn.Percent].Value = "0.00";
                 // フラグセット
-                SetData.Cells[(int)DispGridColumn.TitileFlg].Value = "0";
-                SetData.Cells[(int)DispGridColumn.TotalFlg].Value = "0";
-                SetData.Cells[(int)DispGridColumn.BlankFlg].Value = "0";
+                SetData.Cells[(int)GridColumn.TitleFlg].Value = "0";
+                SetData.Cells[(int)GridColumn.TotalFlg].Value = "0";
+                SetData.Cells[(int)GridColumn.BlankFlg].Value = "0";
 
-                //if (IndependentFlg)
-                //{   // ----- 独立データの場合
-                    SetData.Cells[(int)DispGridColumn.IndependentFlg].Value = "1";
-                //}
-                //else
-                //{   // ----- 従属データの場合
-                //    SetData.Cells[(int)DispGridColumn.ChildFlg].Value = "1";
-                //}
+                SetData.Cells[(int)GridColumn.IndependentFlg].Value = "1";
+                SetData.Cells[(int)GridColumn.FluctuationFlg].Value = "0";
 
                 // フィールドロック制御
-                SetData.Cells[(int)DispGridColumn.ItemName].ReadOnly = false;
-                SetData.Cells[(int)DispGridColumn.TextName].ReadOnly = false;
-                SetData.Cells[(int)DispGridColumn.SubContractorName].ReadOnly = false;
-                SetData.Cells[(int)DispGridColumn.ExecPrice].ReadOnly = false;
+                SetData.Cells[(int)GridColumn.ItemName].ReadOnly = false;
+                SetData.Cells[(int)GridColumn.TextName].ReadOnly = false;
+                SetData.Cells[(int)GridColumn.CompanyName].ReadOnly = false;
+                SetData.Cells[(int)GridColumn.ExecPrice].ReadOnly = false;
 
-                // 従属項目は親の番号を取得する
-                int ParentCnt = 0;
-                //if (IndependentFlg)
-                //{   // ----- 独立データの場合
-                    // 行番号を振りなおす
-                    int StLineCnt = 0;
-                    if (GroupCount == (int)GroupName_ConstructionLedger.ConstructionCosts)
-                        StLineCnt = m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine] + 1;
-                    else if (GroupCount == (int)GroupName_ConstructionLedger.PurchaseCosts)
-                        StLineCnt = m_CostsRowCount[(int)CostsRowLine.PurchaseCostsRowLine] + 1;
+                // 行番号を振りなおす
+                int StLineCnt = 0;
+                //if (GroupCount == (int)GroupName_ConstructionLedger.ConstructionCosts)
+                //{
+                 StLineCnt = m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine];
+                 if (CommonMotions.cnvInt(dgv.Rows[StLineCnt].Cells[(int)GridColumn.TitleFlg].Value) == 1) StLineCnt++;
 
-                    // 採番処理
-                    int iCnt = 1;
-                    string strParentNo = string.Empty;
-                    for (int i = StLineCnt; i < dgv.RowCount; i++)
-                    {
-                        if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)DispGridColumn.BlankFlg].Value) == 1) break;
-                        // 従属項目がある行は子行を採番する
-                        if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)DispGridColumn.IndependentFlg].Value) != 1)
-                        {
-                            // 採番処理
-                            SetDependentItemLineNo(ParentCnt + 1, strParentNo);
-                            continue;
-                        }
-
-                        dgv.Rows[i].Cells[(int)DispGridColumn.No].Value = string.Format("{0}-{1}", GroupCount, iCnt);
-                        strParentNo = CommonMotions.cnvString(dgv.Rows[i].Cells[(int)DispGridColumn.No].Value);
-                        ParentCnt = i;
-                        iCnt++;
-                    }
                 //}
-                //else
-                //{   // ----- 従属データの場合
-                //    for (int i = InsertCnt; i > 0; i--)
-                //    {
-                //        // 独立データのフラグONまで検索
-                //        if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)DispGridColumn.IndependentFlg].Value) == 1)
-                //        {
-                //            ParentCnt = i;
-                //            break;
-                //        }
-                //    }
-                //    // 親の番号取得
-                //    string strNo = CommonMotions.cnvString(dgv.Rows[ParentCnt].Cells[(int)DispGridColumn.No].Value).Trim();
-                //    // 採番処理
-                //    SetDependentItemLineNo(ParentCnt + 1, strNo);
+                //else if (GroupCount == (int)GroupName_ConstructionLedger.PurchaseCosts)
+                //{
+                //    StLineCnt = m_CostsRowCount[(int)CostsRowLine.PurchaseCostsRowLine] + 1;
                 //}
 
-                // 自分より下の集計行を加算する
-                int GroupLineNo = 0;
-                if (GroupCount == (int)GroupName_ConstructionLedger.ConstructionCosts)
-                    GroupLineNo = (int)CostsRowLine.ConstructionCostLine;
-                else if (GroupCount == (int)GroupName_ConstructionLedger.PurchaseCosts)
-                    GroupLineNo = (int)CostsRowLine.PurchaseCostsRowLine;
-                // 行加算処理
-                for (int i = GroupLineNo + 1; i < m_CostsRowCount.Length; i++)
+                // 採番処理
+                int iCnt = 1;
+                string strParentNo = string.Empty;
+                for (int i = StLineCnt; i < dgv.RowCount; i++)
                 {
-                    if (m_CostsRowCount[i] != 0) m_CostsRowCount[i]++;
+                    if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.BlankFlg].Value) == 1) break;
+
+                    dgv.Rows[i].Cells[(int)GridColumn.No].Value = string.Format("{0}-{1}", GroupCount, iCnt);
+                    strParentNo = CommonMotions.cnvString(dgv.Rows[i].Cells[(int)GridColumn.No].Value);
+                    iCnt++;
                 }
 
+                // 行数の再構成を行う
+                SetCostsRowCount();
+
                 // 行選択色を設定
                 SelectRowChangeColor(m_BeforeGridRow);
 
@@ -2370,10 +2935,6 @@
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-            finally
-            {
-                //frm.Dispose(); frm = null;
-            }
         }
         #endregion
 
@@ -2391,9 +2952,9 @@
                 int iCnt = 1;
                 for (int i = startLine; i < dgv.RowCount; i++, iCnt++)
                 {
-                    if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)DispGridColumn.IndependentFlg].Value) == 1) break;
-                    if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)DispGridColumn.BlankFlg].Value) == 1) break;
-                    dgv.Rows[i].Cells[(int)DispGridColumn.No].Value = string.Format("{0}-{1}", strParentNo, iCnt);
+                    if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.IndependentFlg].Value) == 1) break;
+                    if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.BlankFlg].Value) == 1) break;
+                    dgv.Rows[i].Cells[(int)GridColumn.No].Value = string.Format("{0}-{1}", strParentNo, iCnt);
                 }
             }
             catch (System.Exception ex)
@@ -2403,10 +2964,131 @@
         }
         #endregion
 
-        #region 施工費行を削除
+        #region 行数の再構成を行う
         /// <summary>
-        /// 施工費行を削除する
+        /// 行数の再構成を行う
         /// </summary>
+        private void SetCostsRowCount()
+        {
+            try
+            {
+                DataGridView dgv = dgvAllDisplay;
+                Array.Clear(m_CostsRowCount, 0, m_CostsRowCount.Length);
+                int GroupNo = -1;
+                int CompNo = -1;
+                foreach (DataGridViewRow RowLine in dgv.Rows)
+                {
+                    // 明細行以外は処理しない
+                    if (CommonMotions.cnvInt(RowLine.Cells[(int)GridColumn.TitleFlg].Value) == 1) continue;
+                    if (CommonMotions.cnvInt(RowLine.Cells[(int)GridColumn.TotalFlg].Value) == 1) continue;
+                    if (CommonMotions.cnvInt(RowLine.Cells[(int)GridColumn.BlankFlg].Value) == 1) continue;
+
+                    CompNo = CommonMotions.cnvInt(RowLine.Cells[(int)GridColumn.GroupCount].Value);
+                    // グループ番号が0は処理しない
+                    if (CompNo == 0) continue;
+                    // グループ番号が同じ場合も処理しない
+                    if (GroupNo == CompNo) continue;
+
+                    GroupNo = CompNo;
+                    switch (GroupNo)
+                    {
+                        case (int)GroupName_ConstructionLedger.Expenses:
+                            // 1:経費
+                            m_CostsRowCount[(int)CostsRowLine.ExpensesRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.ConstructionCosts:
+                            // 2:施工費
+                            m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.TransportationCosts:
+                            // 3:交通費（通行料・電車代）
+                            m_CostsRowCount[(int)CostsRowLine.TransportationCostsRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.PurchaseCosts:
+                            // 4:購入品
+                            m_CostsRowCount[(int)CostsRowLine.PurchaseCostsRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.VehicleLeaseFee:
+                            // 5:車両リース代
+                            m_CostsRowCount[(int)CostsRowLine.VehicleLeaseFeeRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.ParkingCosts:
+                            // 6:駐車場・資材置き場
+                            m_CostsRowCount[(int)CostsRowLine.ParkingCostsRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.RoomChargeCosts:
+                            // 7:宿泊費
+                            m_CostsRowCount[(int)CostsRowLine.RoomChargeCostsRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.DisposeCosts:
+                            // 8:処分費等
+                            m_CostsRowCount[(int)CostsRowLine.DisposeCostsRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.Instructor:
+                            // 9:指導員給料行
+                            m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.Assistant:
+                            // 10:副担当者給料行
+                            m_CostsRowCount[(int)CostsRowLine.AssistantRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.Payroll:
+                            // 11:担当者給料行
+                            m_CostsRowCount[(int)CostsRowLine.PayrollRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.NetIncome:
+                            // 12:純利益
+                            m_CostsRowCount[(int)CostsRowLine.NetIncomeRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.AllTotal:
+                            // 13:合計金額
+                            m_CostsRowCount[(int)CostsRowLine.AllTotalRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.BillingAmount:
+                            // 14:請求金額
+                            m_CostsRowCount[(int)CostsRowLine.BillingAmountRowLine] = RowLine.Index;
+                            break;
+                        case (int)GroupName_ConstructionLedger.CurrentProfit:
+                            // 15:現在利益金額
+                            m_CostsRowCount[(int)CostsRowLine.CurrentProfitRowLine] = RowLine.Index;
+                            break;
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 行のクリア
+        /// <summary>
+        /// 行のクリア
+        /// </summary>
+        /// <param name="CurRow"></param>
+        private void GridRowClear(DataGridViewRow CurRow)
+        {
+            try
+            {
+                string wrkstring = CommonMotions.cnvString(CurRow.Cells[(int)GridColumn.ItemName].Value);
+
+                CurRow.Cells[(int)GridColumn.ItemName].Value = wrkstring.Substring(0, wrkstring.IndexOf("【"));
+                CurRow.Cells[(int)GridColumn.TextName].Value = "";
+                CurRow.Cells[(int)GridColumn.CompanyCode].Value = "0";
+                CurRow.Cells[(int)GridColumn.ExecPrice].Value = "0";
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 行を削除する
+        /// <summary>
+        /// 行を削除する
+        /// </summary>
         private void DelLineData()
         {
             try
@@ -2416,21 +3098,40 @@
 
                 int RemoveCnt = 0;
                 // グループカウントを取得する
-                int GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                int GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value);
 
-                // 施工費グループの以外は処理しない
-                if (GroupCount != (int)GroupName_ConstructionLedger.ConstructionCosts) return;
-
+                // 固定フラグを取得する
+                int TitleFlg = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TitleFlg].Value);
+                string FixFlg = CommonMotions.cnvString(CurRow.Cells[(int)GridColumn.FixFlg].Value);
+                // 施工費・人件費グループの以外は処理しない
+                switch (GroupCount)
+                {
+                    case (int)GroupName_ConstructionLedger.Assistant:
+                    case (int)GroupName_ConstructionLedger.Instructor:
+                        if (TitleFlg == 1) return;
+                        if (FixFlg.Equals("*"))
+                        {
+                            GridRowClear(CurRow);
+                            // 変更フラグON
+                            m_bChengeAns = true;
+                            return;
+                        }
+                        break;
+                    case (int)GroupName_ConstructionLedger.ConstructionCosts:
+                        break;
+                    default:
+                        return;
+                }
                 // 従属フラグを取得する
-                int ChildFlg = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.ChildFlg].Value);
+                int ChildFlg = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.ChildFlg].Value);
 
                 // 削除行取得
                 RemoveCnt = CurRow.Index;
 
                 // タイトルの場合は削除無
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) RemoveCnt = 0;
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TitleFlg].Value) == 1) RemoveCnt = 0;
                 // 空白行の場合は削除無
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) RemoveCnt = 0;
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.BlankFlg].Value) == 1) RemoveCnt = 0;
 
                 // 選択行が不正ならば処理しない
                 if (RemoveCnt == 0) return;
@@ -2438,7 +3139,7 @@
                 // 行削除
                 dgv.Rows.RemoveAt(RemoveCnt);
 
-                // 施工費グループ行番号を振りなおす
+                // グループ行番号を振りなおす
                 int ParentCnt = 0;
                 if (ChildFlg == 0)
                 {   // ----- 独立データの場合
@@ -2445,9 +3146,20 @@
                     // 行番号を振りなおす
                     int StLineCnt = 0;
                     if (GroupCount == (int)GroupName_ConstructionLedger.ConstructionCosts)
+                    {
                         StLineCnt = m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine] + 1;
-                    else if (GroupCount == (int)GroupName_ConstructionLedger.PurchaseCosts)
-                        StLineCnt = m_CostsRowCount[(int)CostsRowLine.PurchaseCostsRowLine] + 1;
+                    }
+                    else if (GroupCount != (int)GroupName_ConstructionLedger.Assistant && GroupCount != (int)GroupName_ConstructionLedger.Instructor)
+                    {
+                        for (int i = RemoveCnt; i > 0; i--)
+                        {
+                            if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.TitleFlg].Value) != 0)
+                            {
+                                StLineCnt = i;
+                                break;
+                            }
+                        }
+                    }
 
                     // 採番処理
                     int iCnt = 1;
@@ -2454,9 +3166,9 @@
                     string strParentNo = string.Empty;
                     for (int i = StLineCnt; i < dgv.RowCount; i++)
                     {
-                        if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)DispGridColumn.BlankFlg].Value) == 1) break;
+                        if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.BlankFlg].Value) == 1) break;
                         // 従属項目がある行は子行を採番する
-                        if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)DispGridColumn.IndependentFlg].Value) != 1)
+                        if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.IndependentFlg].Value) != 1)
                         {
                             // 採番処理
                             SetDependentItemLineNo(ParentCnt + 1, strParentNo);
@@ -2463,8 +3175,8 @@
                             continue;
                         }
 
-                        dgv.Rows[i].Cells[(int)DispGridColumn.No].Value = string.Format("{0}-{1}", GroupCount, iCnt);
-                        strParentNo = CommonMotions.cnvString(dgv.Rows[i].Cells[(int)DispGridColumn.No].Value);
+                        dgv.Rows[i].Cells[(int)GridColumn.No].Value = string.Format("{0}-{1}", GroupCount, iCnt);
+                        strParentNo = CommonMotions.cnvString(dgv.Rows[i].Cells[(int)GridColumn.No].Value);
                         ParentCnt = i;
                         iCnt++;
                     }
@@ -2474,7 +3186,7 @@
                     for (int i = RemoveCnt; i > 0; i--)
                     {
                         // 独立データのフラグONまで検索
-                        if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)DispGridColumn.IndependentFlg].Value) == 1)
+                        if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.IndependentFlg].Value) == 1)
                         {
                             ParentCnt = i;
                             break;
@@ -2481,23 +3193,13 @@
                         }
                     }
                     // 親の番号取得
-                    string strNo = CommonMotions.cnvString(dgv.Rows[ParentCnt].Cells[(int)DispGridColumn.No].Value).Trim();
+                    string strNo = CommonMotions.cnvString(dgv.Rows[ParentCnt].Cells[(int)GridColumn.No].Value).Trim();
                     // 採番処理
                     SetDependentItemLineNo(ParentCnt + 1, strNo);
                 }
-                // 自分より下の集計行を減算する
-                int GroupLineNo = 0;
-                if (GroupCount == (int)GroupName_ConstructionLedger.ConstructionCosts)
-                    GroupLineNo = (int)CostsRowLine.ConstructionCostLine;
+                // 行情報を更新する
+                SetCostsRowCount();
 
-                for (int i = GroupLineNo + 1; i < m_CostsRowCount.Length; i++)
-                {
-                    if (m_CostsRowCount[i] != 0) m_CostsRowCount[i]--;
-                }
-
-                // 削除行が従属項目だった場合は親の再計算をする
-                //if (ChildFlg != 0) CalculateChildLine(ParentCnt);
-
                 // 行選択色を変更する
                 DefaultALLRowChangeColor();
 
@@ -2506,8 +3208,8 @@
 
                 // カレント行が削除不可の場合はボタンを消す
                 btnLineDel.Visible = false;
-                if (CommonMotions.cnvString(dgv.CurrentRow.Cells[(int)DispGridColumn.FixFlg].Value).Equals("*")) return;    // 固定行は処理しない
-                if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) return;            // 空白行は処理しない
+                if (CommonMotions.cnvString(dgv.CurrentRow.Cells[(int)GridColumn.FixFlg].Value).Equals("*")) return;    // 固定行は処理しない
+                if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)GridColumn.BlankFlg].Value) == 1) return;            // 空白行は処理しない
                 btnLineDel.Visible = true;
             }
             catch (System.Exception ex)
@@ -2530,10 +3232,10 @@
                 DataGridView dgv = dgvAllDisplay;
 
                 // カレントを親行へ変更する
-                dgv.CurrentCell = dgv.Rows[ParentLine].Cells[(int)DispGridColumn.ItemName];
+                dgv.CurrentCell = dgv.Rows[ParentLine].Cells[(int)GridColumn.ItemName];
 
                 object sender = dgvAllDisplay;
-                DataGridViewCellEventArgs e = new DataGridViewCellEventArgs((int)DispGridColumn.ItemName, ParentLine);
+                DataGridViewCellEventArgs e = new DataGridViewCellEventArgs((int)GridColumn.ItemName, ParentLine);
                 dgvAllDisplay_CellValidated(sender, e);
             }
             catch (System.Exception ex)
@@ -2556,13 +3258,13 @@
 
                 int UpCnt = 0;
                 // グループカウントを取得する
-                int GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                int GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value);
 
                 // 施工費・購入品グループの以外は処理しない
                 if (GroupCount != (int)GroupName_ConstructionLedger.ConstructionCosts && GroupCount != (int)GroupName_ConstructionLedger.PurchaseCosts) return;
 
                 // 従属フラグを取得する
-                int ChildFlg = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.ChildFlg].Value);
+                int ChildFlg = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.ChildFlg].Value);
 
                 // 施工費・購入品グループの場合は上に追加
                 UpCnt = CurRow.Index;
@@ -2573,14 +3275,14 @@
                 // 従属項目が対象の場合は1行が上が親項目かどうかを確認してそこより上には上がらない
                 if (ChildFlg != 0)
                 {
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.IndependentFlg].Value) != 0) return;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.IndependentFlg].Value) != 0) return;
                 }
 
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TitleFlg].Value) == 1)
                 {   // タイトルの場合は処理しない
                     UpCnt = 0;
                 }
-                else if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                else if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.TitleFlg].Value) == 1)
                 {   // １行上がタイトルの場合は処理しない
                     UpCnt = 0;
                 }
@@ -2589,7 +3291,7 @@
                 if (UpCnt == 0) return;
 
                 // グリッドアップキー処理
-                DataGridViewAction.GridRowUpAction(dgv, (int)DispGridColumn.FixFlg, (dgv.ColumnCount - 1));
+                DataGridViewAction.GridRowUpAction(dgv, (int)GridColumn.FixFlg, (dgv.ColumnCount - 1));
 
                 // 行選択色を変更する
                 DefaultALLRowChangeColor();
@@ -2615,13 +3317,13 @@
 
                 int DownCnt = 0;
                 // グループカウントを取得する
-                int GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                int GroupCount = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value);
 
                 // 施工費・購入品グループの以外は処理しない
                 if (GroupCount != (int)GroupName_ConstructionLedger.ConstructionCosts && GroupCount != (int)GroupName_ConstructionLedger.PurchaseCosts) return;
 
                 // 従属フラグを取得する
-                int ChildFlg = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.ChildFlg].Value);
+                int ChildFlg = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.ChildFlg].Value);
 
                 // 施工費・購入品グループの場合は上に追加
                 DownCnt = CurRow.Index;
@@ -2631,14 +3333,14 @@
                 // 従属項目が対象の場合は1行が下が独立項目かどうかを確認してそこより下には下がらない
                 if (ChildFlg != 0)
                 {
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.IndependentFlg].Value) != 0) return;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.IndependentFlg].Value) != 0) return;
                 }
-                
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TitleFlg].Value) == 1)
                 {   // タイトルの場合は処理しない
                     DownCnt = 0;
                 }
-                else if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == 0)
+                else if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value) == 0)
                 {   // １行上が空白の場合は処理しない
                     DownCnt = 0;
                 }
@@ -2647,7 +3349,7 @@
                 if (DownCnt == 0) return;
 
                 // グリッドダウンキー処理
-                DataGridViewAction.GridRowDownAction(dgv, (int)DispGridColumn.FixFlg, (dgv.ColumnCount - 1));
+                DataGridViewAction.GridRowDownAction(dgv, (int)GridColumn.FixFlg, (dgv.ColumnCount - 1));
 
                 // 行選択色を変更する
                 DefaultALLRowChangeColor();
@@ -2674,7 +3376,7 @@
             {
                 //データチェック
                 if (!DispFeildCheck()) return false;
-                
+
                 if (Display)
                 {
                     if (MessageBox.Show("工事予算書データを更新します、よろしいですか？", "登録確認"
@@ -2701,7 +3403,7 @@
                     return false;
                 }
 
-                // 詳細台帳明細データ
+                // 詳細台帳実行データ
                 if (!ConstructionLedgerExcuteEntry(ExcuteDB))
                 {
                     LedgerDB.rollback();
@@ -2749,7 +3451,7 @@
                 DataGridView dgv = dgvAllDisplay;
                 for (int i = 0; i < m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine]; i++)
                 {
-                    if (CommonMotions.cnvString(dgv.Rows[i].Cells[(int)DispGridColumn.ItemName].Value).IndexOf(Terget) >= 0)
+                    if (CommonMotions.cnvString(dgv.Rows[i].Cells[(int)GridColumn.ItemName].Value).IndexOf(Terget) >= 0)
                     {
                         LineRet = i;
                         break;
@@ -2781,7 +3483,7 @@
                 int TotalValue = 0;
                 int ResultPriceValue = 0;
 
-                int Colcnt = dgv.ColumnCount - (int)DispGridColumn.payment;
+                int Colcnt = dgv.ColumnCount - (int)GridColumn.payment;
                 int[] MTotal = new int[Colcnt];
                 int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
 
@@ -2808,18 +3510,22 @@
                 // 契約工期完了
                 work.ConstructionEnd = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.CompleteDate].Text);
                 // 税抜受注決定金額
-                string strwork = CommonMotions.cnvString(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text).Replace("-", "");
+                string strwork = m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text;
                 work.OrdersDecisionPrice = CommonMotions.cnvDouble(strwork);
                 // 会社経費合計
                 int Rowcnt = GetExpenss("会社");
-                work.CompanyExpenses = CommonMotions.cnvDouble(dgv.Rows[Rowcnt].Cells[(int)DispGridColumn.ExecPrice].Value);
+                work.CompanyExpenses = CommonMotions.cnvDouble(dgv.Rows[Rowcnt].Cells[(int)GridColumn.ExecPrice].Value);
                 // 部署経費合計
                 Rowcnt = GetExpenss("部署");
-                work.DepartmentExpenses = CommonMotions.cnvDouble(dgv.Rows[Rowcnt].Cells[(int)DispGridColumn.ExecPrice].Value);
+                work.DepartmentExpenses = CommonMotions.cnvDouble(dgv.Rows[Rowcnt].Cells[(int)GridColumn.ExecPrice].Value);
                 // 営業経費合計
                 Rowcnt = GetExpenss("営業");
-                work.SalesExpenses = CommonMotions.cnvDouble(dgv.Rows[Rowcnt].Cells[(int)DispGridColumn.ExecPrice].Value);
+                work.SalesExpenses = CommonMotions.cnvDouble(dgv.Rows[Rowcnt].Cells[(int)GridColumn.ExecPrice].Value);
 
+                // 受注金額積算フラグ
+                if (CommonMotions.CheckCreateLedgerData(m_ConstructionBaseInfo.ConstructionStatusFlg, 
+                                                        m_ConstructionBaseInfo.ConstructionType)) work.IntegrationFlg = 1;
+
                 // 経費を取得する
                 int endRow = m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine];
                 double bworkExpenses = 0;
@@ -2826,25 +3532,51 @@
                 for (int i = 0; i < endRow; i++)
                 {
                     // 集計する
-                    bworkExpenses += CommonMotions.cnvDouble(dgv.Rows[i].Cells[(int)DispGridColumn.ExecPrice].Value);
+                    bworkExpenses += CommonMotions.cnvDouble(dgv.Rows[i].Cells[(int)GridColumn.ExecPrice].Value);
                 }
 
                 // 総支払額（支払額－経費）
                 work.TotalPayment = TotalValue - bworkExpenses;
 
-                // 給与
-                int PayrollExpensesRow = m_CostsRowCount[(int)CostsRowLine.PayrollExpensesRowLine];
-                if (PayrollExpensesRow > 0)
+                // 担当者給与
+                int PayrollRow = m_CostsRowCount[(int)CostsRowLine.PayrollRowLine];
+                if (PayrollRow > 0)
                 {
-                    work.Allowance = CommonMotions.cnvDouble(dgv.Rows[PayrollExpensesRow].Cells[TotalPoint].Value);
+                    int GroupNo = 0;
+                    for (int i = PayrollRow; i < dgv.RowCount; i++)
+                    {
+                        GroupNo = CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.GroupCount].Value);
+                        if (GroupNo != (int)GroupName_ConstructionLedger.Payroll) break;
+                        work.Allowance += CommonMotions.cnvDouble(dgv.Rows[i].Cells[TotalPoint].Value);
+                    }
                 }
 
+                // 副担当者給与
+                int AssistantRow = m_CostsRowCount[(int)CostsRowLine.AssistantRowLine];
+                double bworkAssistant = 0;
+                if (AssistantRow > 0)
+                {
+                    int GroupNo = 0;
+                    for (int i = AssistantRow; i < dgv.RowCount; i++)
+                    {
+                        GroupNo = CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.GroupCount].Value);
+                        if (GroupNo != (int)GroupName_ConstructionLedger.Assistant) break;
+                        bworkAssistant += CommonMotions.cnvDouble(dgv.Rows[i].Cells[TotalPoint].Value);
+                    }
+                }
+
                 // 指導員給与
                 int InstructorRow = m_CostsRowCount[(int)CostsRowLine.InstructorRowLine];
                 double bworkInstructor = 0;
                 if (InstructorRow > 0)
                 {
-                    bworkInstructor = CommonMotions.cnvDouble(dgv.Rows[InstructorRow].Cells[TotalPoint].Value);
+                    int GroupNo = 0;
+                    for (int i = InstructorRow; i < dgv.RowCount; i++)
+                    {
+                        GroupNo = CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.GroupCount].Value);
+                        if (GroupNo != (int)GroupName_ConstructionLedger.Instructor) break;
+                        bworkInstructor += CommonMotions.cnvDouble(dgv.Rows[i].Cells[TotalPoint].Value);
+                    }
                 }
 
                 // 請求金額
@@ -2854,8 +3586,8 @@
                 {
                     BillingValue = CommonMotions.cnvInt(dgv.Rows[BillingLineCnt].Cells[TotalPoint].Value);
                 }
-                // 粗利（請求金額－支払額－（給与＋指導員給与））
-                work.GrossProfit = BillingValue - (TotalValue - (work.Allowance + bworkInstructor));
+                // 粗利（請求金額－支払額－（担当者給与＋副担当者給与＋指導員給与））
+                work.GrossProfit = BillingValue - (TotalValue - (work.Allowance + bworkAssistant + bworkInstructor));
 
                 // 純利益
                 // 合計欄位置取得
@@ -2930,28 +3662,30 @@
 
                 DataGridView dgv = dgvAllDisplay;
                 int PaymentBurdenCol = dgv.ColumnCount + (int)ColPayTotal.PaymentBurdens;
+                int RowLineCnt = 0;
                 foreach (DataGridViewRow wrkRow in dgv.Rows)
                 {
+                    RowLineCnt++;
                     // 純利益は書き込まない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.NetIncome) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.NetIncome) continue;
                     // 合計金額は書き込まない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.AllTotal) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.AllTotal) continue;
                     // 現在利益金額は書き込まない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.CurrentProfit) continue;
-                    
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.CurrentProfit) continue;
+
                     // データ定義
                     ConstructionLedgerDetail work = new ConstructionLedgerDetail();
 
                     // データセット
                     // 明細チェック
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridColumn.TotalFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.TitleFlg].Value) == 1) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridColumn.BlankFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.BlankFlg].Value) == 1) continue;
 
                     // 空白行は処理しない
                     if (BlankLine(wrkRow.Index)) continue;
@@ -2960,41 +3694,58 @@
                     work.ConstructionCode = m_ConstructionCode;
 
                     // グループ番号
-                    work.GroupCount = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value);
-
+                    work.GroupCount = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value);
+                    if (work.GroupCount == 10) Console.WriteLine("");
                     // 行番号
-                    work.LineCount = wrkRow.Index + 1;
+                    work.LineCount = RowLineCnt;
 
                     // 構成キー
-                    work.ComponentCode =CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.ComponentCode].Value);
+                    work.ComponentCode = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.ComponentCode].Value);
                     // 工種キー
-                    work.ItemCode = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.ItemCode].Value);
+                    work.ItemCode = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.ItemCode].Value);
                     // 項目名称
-                    work.FirstString = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn.ItemName].Value);
-                    // 工事内容
-                    if (work.GroupCount == (int)GroupName_ConstructionLedger.PayrollExpenses)
+                    work.FirstString = CommonMotions.cnvString(wrkRow.Cells[(int)GridColumn.ItemName].Value);
+                    // 担当者／副担当者／指導員は表示文字列を作成する
+                    string wrkTextName = CommonMotions.cnvString(wrkRow.Cells[(int)GridColumn.TextName].Value);
+                    switch (work.GroupCount)
                     {
-                        wrkRow.Cells[(int)DispGridColumn.TextName].Value = MakePersonSalaryString();
+                        case (int)GroupName_ConstructionLedger.Payroll:
+                            // 担当者文字列
+                            if (wrkTextName.Length == 0) wrkRow.Cells[(int)GridColumn.TextName].Value = MakePersonSalaryString();
+                            break;
+                        case (int)GroupName_ConstructionLedger.Assistant:
+                            // 副担当者文字列
+                            if (wrkTextName.Length == 0) wrkRow.Cells[(int)GridColumn.TextName].Value = MakeAssistantSalaryString();
+                            break;
+                        case (int)GroupName_ConstructionLedger.Instructor:
+                            // 指導員文字列
+                            if (wrkTextName.Length == 0) wrkRow.Cells[(int)GridColumn.TextName].Value = MakeInstructorSalaryString();
+                            break;
+                        default:
+                            break;
                     }
-                    work.SecondString = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn.TextName].Value);
+                    // 工事内容
+                    work.SecondString = CommonMotions.cnvString(wrkRow.Cells[(int)GridColumn.TextName].Value);
                     // 協力会社データタイプ
-                    work.CompanyType = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.SubContractorType].Value);
+                    work.CompanyType = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.CompanyType].Value);
                     // 協力会社コード
-                    work.CompanyCode = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.SubContractorCode].Value);
+                    work.CompanyCode = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.CompanyCode].Value);
                     // 協力会社名称
-                    work.CompanyName = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn.SubContractorName].Value);
+                    work.CompanyName = CommonMotions.cnvString(wrkRow.Cells[(int)GridColumn.CompanyName].Value);
                     // 積算時見積金額
-                    work.EstimatePrice = CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn.EstimatePrice].Value);
+                    work.EstimatePrice = CommonMotions.cnvDouble(wrkRow.Cells[(int)GridColumn.EstimatePrice].Value);
                     // 実行金額
-                    work.ExecutionAmount = CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn.ExecPrice].Value);
+                    work.ExecutionAmount = CommonMotions.cnvDouble(wrkRow.Cells[(int)GridColumn.ExecPrice].Value);
                     // 金額構成率
-                    work.AmountConfigRate = CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn.Percent].Value);
+                    work.AmountConfigRate = CommonMotions.cnvDouble(wrkRow.Cells[(int)GridColumn.Percent].Value);
                     // 支払補填額
                     work.PaymentBurden = CommonMotions.cnvDouble(wrkRow.Cells[PaymentBurdenCol].Value);
                     // 固定フラグ
-                    if (CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn.FixFlg].Value).Equals("*")) work.FixDataFlg = 1;
+                    if (CommonMotions.cnvString(wrkRow.Cells[(int)GridColumn.FixFlg].Value).Equals("*")) work.FixDataFlg = 1;
                     // 独立データフラグ
-                    work.IndependentFlg = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.IndependentFlg].Value);
+                    work.IndependentFlg = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.IndependentFlg].Value);
+                    // 増減データフラグ
+                    work.FluctuationFlg = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.FluctuationFlg].Value);
 
                     // データ登録
                     if (!DetailDB.InsertAction(work, false))
@@ -3027,34 +3778,36 @@
                 ExcuteDB.DeleteAction(DelSQL, false);
                 DataGridView dgv = dgvAllDisplay;
                 int PayEnd = dgv.ColumnCount + (int)ColPayTotal.Totals;
+                int RowLineCnt = 0;
 
                 foreach (DataGridViewRow wrkRow in dgv.Rows)
                 {
+                    RowLineCnt++;
                     // 純利益は書き込まない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.NetIncome) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.NetIncome) continue;
                     // 合計金額は書き込まない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.AllTotal) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.AllTotal) continue;
                     // 現在利益金額は書き込まない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.CurrentProfit) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.CurrentProfit) continue;
 
                     // データセット
                     // 明細チェック
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridColumn.TotalFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.TitleFlg].Value) == 1) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridColumn.BlankFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.BlankFlg].Value) == 1) continue;
 
                     // 空白行は処理しない
                     if (BlankLine(wrkRow.Index)) continue;
 
-                    for (int i = (int)DispGridColumn.payment; i < PayEnd; i++)
+                    for (int i = (int)GridColumn.payment; i < PayEnd; i++)
                     {
                         // 支払金額が無い場合は処理しない
-                        if (CommonMotions.cnvDouble(wrkRow.Cells[i].Value) < 1) continue;
+                        if (CommonMotions.cnvString(wrkRow.Cells[i].Value).Length == 0) continue;
 
                         // データ定義
                         ConstructionLedgerExcute work = new ConstructionLedgerExcute();
@@ -3063,10 +3816,10 @@
                         work.ConstructionCode = m_ConstructionCode;
 
                         // グループ番号
-                        work.GroupCount = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value);
+                        work.GroupCount = CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value);
 
                         // 行番号
-                        work.LineCount = wrkRow.Index + 1;
+                        work.LineCount = RowLineCnt;
 
                         // 列番号
                         work.ColumnCount = i;
@@ -3114,14 +3867,14 @@
                 foreach (DataGridViewRow wrkRow in dgvAllDisplay.Rows)
                 {
                     // 明細チェック
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridColumn.TotalFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) != 0) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.TitleFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) != 0) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridColumn.BlankFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.BlankFlg].Value) != 0) continue;
 
                     // 空白行は処理しない
                     if (BlankLine(wrkRow.Index)) continue;
@@ -3131,7 +3884,7 @@
                     }
                     DataGridViewTextBoxCell workCell = null;
                     // 項目名称レングスチェック
-                    workCell = (DataGridViewTextBoxCell)wrkRow.Cells[(int)DispGridColumn.ItemName];
+                    workCell = (DataGridViewTextBoxCell)wrkRow.Cells[(int)GridColumn.ItemName];
                     bAns = CommonMotions.chkStringLength(CommonMotions.cnvString(workCell.Value), s_InputStringMax1); // レングスチェック
                     CommonMotions.chgBackColor(workCell, bAns);                                         // 背景色変更
                     if (bAns) DefaultRowChangeColor(workCell.RowIndex);
@@ -3139,7 +3892,7 @@
                     bRet &= bAns;
 
                     // 工事内容レングスチェック
-                    workCell = (DataGridViewTextBoxCell)wrkRow.Cells[(int)DispGridColumn.TextName];
+                    workCell = (DataGridViewTextBoxCell)wrkRow.Cells[(int)GridColumn.TextName];
                     bAns = CommonMotions.chkStringLength(CommonMotions.cnvString(workCell.Value), s_InputStringMax1); // レングスチェック
                     CommonMotions.chgBackColor(workCell, bAns);                                         // 背景色変更
                     if (bAns) DefaultRowChangeColor(workCell.RowIndex);
@@ -3147,7 +3900,7 @@
                     bRet &= bAns;
 
                     // 協力会社名称レングスチェック
-                    workCell = (DataGridViewTextBoxCell)wrkRow.Cells[(int)DispGridColumn.SubContractorName];
+                    workCell = (DataGridViewTextBoxCell)wrkRow.Cells[(int)GridColumn.CompanyName];
                     bAns = CommonMotions.chkStringLength(CommonMotions.cnvString(workCell.Value), s_InputStringMax1); // レングスチェック
                     CommonMotions.chgBackColor(workCell, bAns);                                         // 背景色変更
                     if (bAns) DefaultRowChangeColor(workCell.RowIndex);
@@ -3156,7 +3909,7 @@
 
                     double doubleRet = 0;
                     // 予算金額行・実行金額行毎のチェック
-                    for (int ix = (int)DispGridColumn.EstimatePrice; ix <= (int)DispGridColumn.ExecPrice; ix++)
+                    for (int ix = (int)GridColumn.EstimatePrice; ix <= (int)GridColumn.ExecPrice; ix++)
                     {
                         bAns = true;
                         if (CommonMotions.chkObjectIsNull(wrkRow.Cells[ix].Value)) continue;
@@ -3176,13 +3929,13 @@
                             CommonMotions.chgBackColor(workCell, bAns);
                             ErrorRowl = wrkRow.Index;
                         }
-                        
+
                         bRet &= bAns;
                     }
 
                     // 支払金額のチェック
                     int PayEnd = dgv.ColumnCount + (int)ColPayTotal.Totals;
-                    for (int i = (int)DispGridColumn.payment; i < PayEnd; i++)
+                    for (int i = (int)GridColumn.payment; i < PayEnd; i++)
                     {
                         bAns = true;
                         if (CommonMotions.chkObjectIsNull(wrkRow.Cells[i].Value)) continue;
@@ -3433,8 +4186,8 @@
             DataGridViewRow wrkRow = dgvAllDisplay.Rows[LineCnt];
 
             // 空判定
-            if (CommonMotions.chkCellBlank(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) return true;
-            if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) return true;
+            if (CommonMotions.chkCellBlank(wrkRow.Cells[(int)GridColumn.BlankFlg].Value)) return true;
+            if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.BlankFlg].Value) == 1) return true;
 
             return false;
         }
@@ -3453,14 +4206,14 @@
 
                 frm.ConstructionCode = m_ConstructionCode;
                 frm.StartupSource = (int)ClsExcute.ProcessExecuteNo.ConstructionLedger;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton == System.Windows.Forms.DialogResult.OK)
                 {
                     SubContractorMaster selRec = frm.SelectData;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorType].Value = frm.DataType;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorCode].Value = selRec.CompanyCode;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorName].Value = selRec.CompanyName;
+                    dgv.CurrentRow.Cells[(int)GridColumn.CompanyType].Value = frm.DataType;
+                    dgv.CurrentRow.Cells[(int)GridColumn.CompanyCode].Value = selRec.CompanyCode;
+                    dgv.CurrentRow.Cells[(int)GridColumn.CompanyName].Value = selRec.CompanyName;
                     m_bChengeAns = true;
                 }
             }
@@ -3488,14 +4241,14 @@
                 DataGridView dgv = dgvAllDisplay;
 
                 frm.ConstructionCode = m_ConstructionCode;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton == System.Windows.Forms.DialogResult.OK)
                 {
                     SuppliersMaster selRec = frm.SelectData;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorType].Value = 0;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorCode].Value = selRec.SuppliersCode;
-                    dgv.CurrentRow.Cells[(int)DispGridColumn.SubContractorName].Value = selRec.SuppliersName1 + " " + selRec.SuppliersName2;
+                    dgv.CurrentRow.Cells[(int)GridColumn.CompanyType].Value = (int)CommonDefine.SearchLogDataType.Subconstractor;
+                    dgv.CurrentRow.Cells[(int)GridColumn.CompanyCode].Value = selRec.SuppliersCode;
+                    dgv.CurrentRow.Cells[(int)GridColumn.CompanyName].Value = selRec.SuppliersName1 + " " + selRec.SuppliersName2;
                     m_bChengeAns = true;
                 }
             }
@@ -3520,14 +4273,13 @@
             try
             {
                 dgvAllDisplay.ReadOnly = !bLook;
-                
+
                 // 最後にボタンの処理を行う
                 //btnApprovalList.Visible = bLook;
                 btnDataEntry.Visible = bLook;
-                btnDataDelete.Visible = bLook;
+                //btnDataDelete.Visible = bLook;
                 btnLineAdd.Visible = bLook;
                 btnLineDel.Visible = bLook;
-
             }
             catch (Exception ex)
             {
@@ -3548,7 +4300,7 @@
                 DataGridView dgv = dgvAllDisplay;
                 int ResultCols = dgv.ColumnCount + (int)ColPayTotal.Results;
                 int OverpaymentCols = dgv.ColumnCount + (int)ColPayTotal.Overpayments;
-                
+
                 DataGridViewRow CurRow = dgv.Rows[RowCnt];
 
                 int ResultValue = CommonMotions.cnvInt(CurRow.Cells[ResultCols].Value);
@@ -3620,7 +4372,7 @@
 
                 // データ登録
                 if (!DataEntryProcess(false)) return false;
-                
+
                 return true;
             }
             catch (Exception ex)
@@ -3631,30 +4383,17 @@
         }
         #endregion
 
-        #region 外部からのトリガにより工事詳細台帳を作成する
+        #region 外部からのトリガにより工事詳細台帳を保存する
         /// <summary>
-        /// 工事詳細台帳を再計算する
+        /// 外部からのトリガにより工事詳細台帳を保存する
         /// </summary>
         /// <returns></returns>
-        private bool NonDspLedgerCreate()
+        private bool NonDspLedgerSave()
         {
             try
             {
-                // 表示クリア
-                ClearDisplay();
-
-                if (!GetBaseInfoData()) return false;
-
-                // ヘッダー表示
-                if (!DispHeader()) return false;
-
-                // グリッド行削除
-                dgvAllDisplay.Rows.Clear();
-
-                // 工事予算書より作成する
-                DispDataFromConstructionBudget();
-
-                return true;
+                // 外部からの起動は詳細台帳データを作成する
+                return DataEntryProcess(false);
             }
             catch (Exception ex)
             {
@@ -3669,55 +4408,58 @@
         /// 自分以外の一般ユーザーと所属長をチェックする
         /// </summary>
         /// <returns></returns>
-        private bool CheckUserAndLeader()
+        private bool CheckLeaderOrUser()
         {
-            IOConstructionLedger LedgerDB = new IOConstructionLedger();
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
+                bool bPermit = false;
                 if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement)
                 {
-                    // システム管理者（すべて対象）
-                    return true;
+                    // システム管理者
+                    bPermit = true;
                 }
-                else
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key)
                 {
-                    // 最高機密管理者（すべて対象）・
-                    for (int i = (int)CommonDefine.SysManaDivNo.PresidentAuthority; i <= (int)CommonDefine.SysManaDivNo.SupervisorAuthority; i++)
-                    {
-                        if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[i].Key) return true;
-                    }
+                    // 最高機密管理者
+                    bPermit = true;
                 }
-
-                // 工事詳細台帳データ読込
-                string strSQL = LedgerDB.CreatePrimarykeyString(m_ConstructionCode);
-                ConstructionLedger LedgerRec = new ConstructionLedger();
-                bool bLedger = LedgerDB.SelectAction(strSQL, ref LedgerRec);
-                // 工事詳細台帳データが無い場合は工事情報で確認する
-                if (!bLedger)
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
                 {
-                    // 工事担当者をデータにセットする
-                    LedgerRec.CreatorCode = m_ConstructionBaseInfo.ConstructionPersonCode;
+                    // 統括責任者
+                    bPermit = true;
                 }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
+                {
 
-                int userSecCode = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key;
-                // 一般ユーザーはfalse
-                if (CommonMotions.LoginUserData.SecurityManagement == userSecCode)
-                {
-                    return false;
+                    // 上長は工事が自部署の関連だけ
+                    List<int> PersonList = new List<int>();
+                    PersonList.Add(m_ConstructionBaseInfo.SalesPersonCode);
+                    PersonList.Add(m_ConstructionBaseInfo.ConstructionPersonCode);
+                    if (m_ConstructionBaseInfo.ConstrSubPersonCode != 0) PersonList.Add(m_ConstructionBaseInfo.ConstrSubPersonCode);
+                    if (m_ConstructionBaseInfo.ConstructionInstructor != 0) PersonList.Add(m_ConstructionBaseInfo.ConstructionInstructor);
+
+                    foreach (int Personcode in PersonList)
+                    {
+                        string strSQL = PersonDB.CreatePrimarykeyString(Personcode);
+                        PersonInChargeMaster PersonRec = new PersonInChargeMaster();
+                        if (!PersonDB.SelectAction(strSQL, ref PersonRec)) continue;
+
+                        // 所属上長では無ければfalse
+                        if (PersonRec.DepartmentCode == CommonMotions.LoginUserData.DepartmentCode)
+                        {
+                            bPermit = true;
+                            break;
+                        }
+                    }
+
                 }
-                int LeaderSecCode = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key;
-                if (CommonMotions.LoginUserData.SecurityManagement == LeaderSecCode)
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
                 {
-                    strSQL = PersonDB.CreatePrimarykeyString(LedgerRec.CreatorCode);
-                    PersonInChargeMaster PersonRec = new PersonInChargeMaster();
-                    if (!PersonDB.SelectAction(strSQL, ref PersonRec)) return false;
-
-                    // 所属上長では無ければfalse
-                    if (PersonRec.DepartmentCode != CommonMotions.LoginUserData.DepartmentCode) return false;
+                    // 一般ユーザー
+                    bPermit = false;
                 }
-
-                return true;
+                return bPermit;
             }
             catch (Exception ex)
             {
@@ -3726,7 +4468,6 @@
             }
             finally
             {
-                LedgerDB.close(); LedgerDB = null;
                 PersonDB.close(); PersonDB = null;
             }
         }
@@ -3755,19 +4496,74 @@
                 PersonInChargeMaster personRec = new PersonInChargeMaster();
                 PersonDB.SelectAction(strSQL, ref personRec);
 
+                // 設定無は空白
+                if (BudgetRec.CreatorCode == 0) return sRet;
+
+                // 残業係数を掛けて月額給与を求める
+                int monthSalary = CommonMotions.cnvRound(personRec.MonthlySalary * (double)CommonDefine.s_SalaryExpenses);
+
                 if (BudgetRec.SalaryFlg == (int)CommonDefine.SalaryDevision.All)
                 {   // ----- 全日振分
                     double BetweenTimes = BudgetRec.ConstructionTimes;
-                    // 給与単価
-                    int monthSalary = CommonMotions.cnvRound(personRec.MonthlySalary * (double)CommonDefine.s_SalaryExpenses);
-                    sRet = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes.ToString("0.00"), monthSalary.ToString("#,0"));
+                    sRet = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, monthSalary.ToString("#,0"));
                 }
                 else if (BudgetRec.SalaryFlg == (int)CommonDefine.SalaryDevision.DaysInput)
                 {   // ----- 日数指定
                     // 日数取得
                     int daycount = BudgetRec.SalaryDays;
+                    // 日額給与取得
+                    double daylySalary = monthSalary / CommonDefine.s_WorkingDaysOfMonth;
+                    sRet = string.Format(CommonDefine.s_SalaryCostDaylyFormat, daycount.ToString("0"), daylySalary.ToString("#,0"));
+                }
+
+                return sRet;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return string.Empty;
+            }
+            finally
+            {
+                BudgetDB.close(); BudgetDB = null;
+                PersonDB.close(); PersonDB = null;
+            }
+        }
+        #endregion
+
+        #region 副担当者給与文字列を作成する
+        /// <summary>
+        /// 副担当者給与文字列を作成する
+        /// </summary>
+        /// <returns></returns>
+        private string MakeAssistantSalaryString()
+        {
+            IOConstructionBudget BudgetDB = new IOConstructionBudget();
+            try
+            {
+                string sRet = string.Empty;
+
+                // 工事予算書データを読み込む
+                string strSQL = BudgetDB.CreatePrimarykeyString(m_ConstructionCode);
+                ConstructionBudget BudgetRec = new ConstructionBudget();
+                if (!BudgetDB.SelectAction(strSQL, ref BudgetRec)) return sRet;
+
+                // 設定無は空白
+                if (BudgetRec.AssistantCode == 0) return sRet;
+
+                if (BudgetRec.A_SalaryFlg == (int)CommonDefine.SalaryDevision.All)
+                {   // ----- 全日振分
+                    double BetweenTimes = BudgetRec.ConstructionTimes;
+                    // 給与単価
+                    int monthSalary = CommonDefine.AssistantMonthryCost;
+                    sRet = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, monthSalary.ToString("#,0"));
+                }
+                else if (BudgetRec.A_SalaryFlg == (int)CommonDefine.SalaryDevision.DaysInput)
+                {   // ----- 日数指定
+                    // 日数取得
+                    int daycount = BudgetRec.SalaryDays;
                     // 担当給与
-                    int monthSalary = CommonMotions.cnvRound(personRec.MonthlySalary * (double)CommonDefine.s_SalaryExpenses);
+                    int monthSalary = CommonDefine.AssistantMonthryCost;
                     // 日額給与取得
                     double daylySalary = monthSalary / CommonDefine.s_WorkingDaysOfMonth;
                     sRet = string.Format(CommonDefine.s_SalaryCostDaylyFormat, daycount.ToString("0"), daylySalary.ToString("#,0"));
@@ -3783,9 +4579,1276 @@
             finally
             {
                 BudgetDB.close(); BudgetDB = null;
+            }
+        }
+        #endregion
+
+        #region 指導員給与文字列を作成する
+        /// <summary>
+        /// 指導員給与文字列を作成する
+        /// </summary>
+        /// <returns></returns>
+        private string MakeInstructorSalaryString()
+        {
+            IOConstructionBudget BudgetDB = new IOConstructionBudget();
+            try
+            {
+                string sRet = string.Empty;
+
+                // 工事予算書データを読み込む
+                string strSQL = BudgetDB.CreatePrimarykeyString(m_ConstructionCode);
+                ConstructionBudget BudgetRec = new ConstructionBudget();
+                if (!BudgetDB.SelectAction(strSQL, ref BudgetRec)) return sRet;
+
+                // 設定無は空白
+                if (BudgetRec.InstructorCode == 0) return sRet;
+
+                if (BudgetRec.I_SalaryFlg == (int)CommonDefine.SalaryDevision.All)
+                {   // ----- 全日振分
+                    double BetweenTimes = BudgetRec.ConstructionTimes;
+                    // 給与単価
+                    int monthSalary = CommonDefine.InstructorMonthryCost;
+                    sRet = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, monthSalary.ToString("#,0"));
+                }
+                else if (BudgetRec.I_SalaryFlg == (int)CommonDefine.SalaryDevision.DaysInput)
+                {   // ----- 日数指定
+                    // 日数取得
+                    int daycount = BudgetRec.SalaryDays;
+                    // 担当給与
+                    int monthSalary = CommonDefine.InstructorMonthryCost;
+                    // 日額給与取得
+                    double daylySalary = monthSalary / CommonDefine.s_WorkingDaysOfMonth;
+                    sRet = string.Format(CommonDefine.s_SalaryCostDaylyFormat, daycount.ToString("0"), daylySalary.ToString("#,0"));
+                }
+
+                return sRet;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return string.Empty;
+            }
+            finally
+            {
+                BudgetDB.close(); BudgetDB = null;
+            }
+        }
+        #endregion
+
+        #region 副担当者／指導員に名前をセットする
+        /// <summary>
+        /// 副担当者／指導員に名前をセットする
+        /// </summary>
+        /// <param name="DetailRec"></param>
+        private void SetFirstStringName(ref ConstructionBudgetDetail DetailRec)
+        {
+            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
+            try
+            {
+                // 設定無は処理しない
+                if (DetailRec.CompanyCode == 0) return;
+                // 名前があれば処理しない
+                if (DetailRec.FirstString.IndexOf("【") > -1) return;
+
+                // 担当者マスタ取得
+                string strSQL = PersonDB.CreatePrimarykeyString(DetailRec.CompanyCode);
+                PersonInChargeMaster PersonRec = new PersonInChargeMaster();
+                if (!PersonDB.SelectAction(strSQL, ref PersonRec)) return;
+
+                DetailRec.FirstString = string.Format("{0}【{1}氏】", DetailRec.FirstString, PersonRec.SealPrintName);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
                 PersonDB.close(); PersonDB = null;
             }
         }
         #endregion
+
+        #region 副担当者／指導員変更
+        /// <summary>
+        /// 副担当者/指導員変更
+        /// </summary>
+        private void ChangeAssistantOrInstractor(int SelectFlg)
+        {
+            FrmSelectPerson frm = new FrmSelectPerson();
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            try
+            {
+                // 選択区分セット
+                frm.SelectFlg = SelectFlg;
+                switch (SelectFlg)
+                {
+                    case (int)CommonDefine.PersonSelectFlg.Assistant:
+                        frm.Person = m_ConstructionBaseInfo.ConstrSubPersonCode;
+                        break;
+                    case (int)CommonDefine.PersonSelectFlg.Instructor:
+                        frm.Person = m_ConstructionBaseInfo.ConstructionInstructor;
+                        break;
+                }
+                // 担当者選択画面表示
+                frm.ShowDialog();
+                if (frm.EndButton == DialogResult.Cancel) return;
+                // 設定値取得
+                int DepartmentCode = frm.Departmanet;
+                int PersonCode = frm.Person;
+                int SalaryFlg = frm.SalaryFlg;
+                int SalaryDays = frm.SalaryDays;
+
+                // 行作成
+                CreateAssistantOrInstractor(SelectFlg, PersonCode, SalaryFlg, SalaryDays);
+
+                //int UpdateField = 0;
+                bool updateflg = false;
+                switch (SelectFlg)
+                {
+                    case (int)CommonDefine.PersonSelectFlg.Assistant:
+                        // 副担当者コードが同じ場合は処理しない
+                        if (PersonCode == m_ConstructionBaseInfo.ConstrSubPersonCode) break;
+
+                        updateflg = true;
+                        // 工事情報の副担当者を更新する
+                        //UpdateField = (int)IOConstructionBaseInfo.ConstructionBaseInfoColumn.CONSTRSUBPERSONCODE;
+
+                        // 内部の工事情報を変更する
+                        m_ConstructionBaseInfo.ConstrSubPersonCode = PersonCode;
+                        break;
+                    case (int)CommonDefine.PersonSelectFlg.Instructor:
+                        // 指導員コードが同じ場合は処理しない
+                        if (PersonCode == m_ConstructionBaseInfo.ConstructionInstructor) break;
+
+                        updateflg = true;
+                        // 工事情報の副担当者を更新する
+                        //UpdateField = (int)IOConstructionBaseInfo.ConstructionBaseInfoColumn.CONSTRUCTIONINSTRUCTOR;
+
+                        // 内部の工事情報を変更する
+                        m_ConstructionBaseInfo.ConstructionInstructor = PersonCode;
+                        break;
+                }
+                if (updateflg)
+                {
+                    // 工事基本情報更新
+                    //BaseDB.UpdateFeild(m_ConstructionCode, UpdateField, PersonCode);
+                    // ヘッダー表示
+                    if (!DispHeader()) return;
+                }
+                m_bChengeAns = true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frm.Dispose(); frm = null;
+                BaseDB.close(); BaseDB = null;
+            }
+        }
+        #endregion
+
+        #region 副担当者／指導員の行を作成／更新する
+        /// <summary>
+        /// 副担当者／指導員の行を作成／更新する
+        /// </summary>
+        /// <param name="SelectFlg"></param>
+        /// <param name="PersonCode"></param>
+        /// <param name="SalaryFlg"></param>
+        /// <param name="SalaryDays"></param>
+        private void CreateAssistantOrInstractor(int SelectFlg, int PersonCode, int SalaryFlg, int SalaryDays)
+        {
+            try
+            {
+                // 検索開始位置とグループ番号をセット
+                int LinePoint = 0;
+                int GroupCount = 0;
+                switch (SelectFlg)
+                {
+                    case (int)CommonDefine.PersonSelectFlg.Assistant:
+                        GroupCount = (int)GroupName_ConstructionLedger.Assistant;
+                        break;
+                    case (int)CommonDefine.PersonSelectFlg.Instructor:
+                        GroupCount = (int)GroupName_ConstructionLedger.Instructor;
+                        break;
+                }
+                // グリッドから対象行を探す
+                LinePoint = SearchOrCreateChangeRow(GroupCount, PersonCode);
+
+                // 行データセット
+                SetRowOnChangeData(GroupCount, LinePoint, SalaryFlg, SalaryDays, PersonCode);
+
+                // 行数の再構成を行う
+                SetCostsRowCount();
+
+                // 請求金額計算
+                CalculateBillingAmount();
+
+                // 純利益計算
+                CalculateNetIncome();
+
+                // 合計計算
+                CreateAllTotal(false);
+
+                /// 現在利益計算
+                CalculateCurrentProfit();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region グリッドからグループカウントとコードより対象行を探し、無い場合は行を作る
+        /// <summary>
+        /// グリッドからグループカウントとコードより対象行を探、無い場合は行を作る
+        /// </summary>
+        /// <param name="GroupCount"></param>
+        /// <param name="SaerchCode"></param>
+        /// <param name="LineCount"></param>
+        /// <returns></returns>
+        private int SearchOrCreateChangeRow(int GroupCount, int SaerchCode)
+        {
+            try
+            {
+                // 検索開始位置とグループ番号をセット
+                int StartPoint = 0;
+                int SearchGroup = GroupCount;
+                switch (GroupCount)
+                {
+                    case (int)GroupName_ConstructionLedger.Assistant:
+                        StartPoint = (int)CostsRowLine.AssistantRowLine;
+                        break;
+                    case (int)GroupName_ConstructionLedger.Instructor:
+                        StartPoint = (int)CostsRowLine.InstructorRowLine;
+                        break;
+                }
+                // グリッドから対象行を探す
+                DataGridView dgv = dgvAllDisplay;
+                bool RowExist = false;
+                int LineCount = 0;
+                // 行が無い場合があるので最大2回戻る（すぐ前があればその次にする）
+                for (int ix = StartPoint; ix > (StartPoint - 2); ix--)
+                {
+                    // 検索グループを取得する
+                    SearchGroup = GroupCount - (StartPoint - ix);
+
+                    // カウントより行を取得する
+                    int SearchLine = 0;
+                    SearchLine = m_CostsRowCount[ix];
+                    // 行が無い場合は前に戻る
+                    if (SearchLine == 0) continue;
+                    
+                    for (int i = SearchLine; i < dgv.RowCount; i++)
+                    {
+                        // グループが違えばループを抜ける
+                        int RowGroupNo = CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.GroupCount].Value);
+                        if (RowGroupNo != SearchGroup)
+                        {
+                            LineCount = i;
+                            break;
+                        }
+                        // 担当者コードが0か同じ場合は行が存在する
+                        int RowCompanyCode = CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.CompanyCode].Value);
+                        if ((RowGroupNo == GroupCount) && (RowCompanyCode == 0 || RowCompanyCode == SaerchCode))
+                        {
+                            LineCount = i;
+                            RowExist = true;
+                            break;
+                        }
+                    }
+                    if (LineCount != 0) break;
+                }
+
+                // 行が無い場合は作成する
+                if (!RowExist)
+                {
+                    DataGridViewAction.CreateNewLine(dgv, ref LineCount);
+                    if (m_CostsRowCount[StartPoint] == 0) m_CostsRowCount[StartPoint] = LineCount;
+                }
+                return LineCount;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        #region 変更データのセット
+        /// <summary>
+        /// 変更データのセット
+        /// </summary>
+        /// <param name="GroupCount"></param>
+        /// <param name="InsertCnt"></param>
+        /// <param name="SalaryFlg"></param>
+        /// <param name="SalaryDays"></param>
+        /// <param name="CodeType"></param>
+        /// <param name="PersonCode"></param>
+        private void SetRowOnChangeData(int GroupCount, int InsertCnt, int SalaryFlg, int SalaryDays, int PersonCode)
+        {
+            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
+            try
+            {
+                // 担当者マスタ取得
+                string strSQL = PersonDB.CreatePrimarykeyString(PersonCode);
+                PersonInChargeMaster PersonRec = new PersonInChargeMaster();
+                PersonDB.SelectAction(strSQL, ref PersonRec);
+
+                int CodeType = (int)CommonDefine.SearchLogDataType.Person;
+                double BetweenTimes = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.BetweenTimes].Text);   // 工期取得
+                double CostsValue = 0;
+                string FirstString = string.Empty;
+                string SecondString = string.Empty;
+                // 項目文字列
+                FirstString = s_GroupTitle[GroupCount];
+                
+                // 金額文字列
+                switch (SalaryFlg)
+                {
+                    case (int)CommonDefine.SalaryDevision.All:       // 全日
+                        // 給与計算
+                        CostsValue = CommonDefine.AssistantMonthryCost * BetweenTimes;
+                        SecondString = string.Format(CommonDefine.s_SalaryCostMonthlyFormat, BetweenTimes, CommonDefine.AssistantMonthryCost.ToString("#,0"));
+                        FirstString = string.Format("{0}【{1}氏】", s_GroupTitle[GroupCount], PersonRec.SealPrintName);
+
+                        break;
+                    case (int)CommonDefine.SalaryDevision.Noting:    // 振分無
+                        CodeType = 0;
+                        PersonCode = 0;
+                        SecondString = string.Empty;
+                        break;
+                    case (int)CommonDefine.SalaryDevision.DaysInput: // 日数入力
+                        // 日額給与取得
+                        double daylySalary = CommonDefine.AssistantMonthryCost / CommonDefine.s_WorkingDaysOfMonth;
+                        CostsValue = daylySalary * SalaryDays;
+                        SecondString = string.Format(CommonDefine.s_SalaryCostDaylyFormat, SalaryDays.ToString("0"), daylySalary.ToString("#,0"));
+                        FirstString = string.Format("{0}【{1}氏】", s_GroupTitle[GroupCount], PersonRec.SealPrintName);
+                        break;
+                }
+                DataGridView dgv = dgvAllDisplay;
+                // 設定データセット
+                DataGridViewRow SetData = dgv.Rows[InsertCnt];
+                SetData.Cells[(int)GridColumn.GroupCount].Value = GroupCount;
+
+                SetData.Cells[(int)GridColumn.ItemName].Value = FirstString;
+                SetData.Cells[(int)GridColumn.TextName].Value = SecondString;
+                SetData.Cells[(int)GridColumn.CompanyType].Value = CodeType;
+                SetData.Cells[(int)GridColumn.CompanyCode].Value = PersonCode;
+                SetData.Cells[(int)GridColumn.ExecPrice].Value = CostsValue.ToString("#,0");
+                SetData.Cells[(int)GridColumn.Percent].Value = CalculattionPercent(CostsValue).ToString("0.00");
+
+                SetData.Cells[(int)GridColumn.IndependentFlg].Value = "1";
+                SetData.Cells[(int)GridColumn.FluctuationFlg].Value = "0";
+
+                // フラグセット
+                SetData.Cells[(int)GridColumn.TitleFlg].Value = "0";
+                SetData.Cells[(int)GridColumn.TotalFlg].Value = "0";
+                SetData.Cells[(int)GridColumn.BlankFlg].Value = "0";
+
+                // フィールドロック制御
+                SetData.Cells[(int)GridColumn.ItemName].ReadOnly = false;
+                SetData.Cells[(int)GridColumn.TextName].ReadOnly = false;
+                SetData.Cells[(int)GridColumn.CompanyName].ReadOnly = false;
+                SetData.Cells[(int)GridColumn.ExecPrice].ReadOnly = false;
+
+                // ----- 行番号を振りなおす
+                // タイトル行を探す
+                int TitleRow = -1;
+                for (int i = InsertCnt; i > 0; i--)
+                {
+                    if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.TitleFlg].Value) != 0)
+                    {
+                        TitleRow = i;
+                        break;
+                    }
+                }
+                if (TitleRow < 0) return;
+                int DispNo = CommonMotions.cnvInt(dgv.Rows[TitleRow].Cells[(int)GridColumn.No].Value);
+
+                int no = 1;
+                for (int i = (TitleRow + 1); i < dgv.RowCount; i++)
+                {
+                    if (CommonMotions.cnvInt(dgv.Rows[i].Cells[(int)GridColumn.GroupCount].Value) == 0) break;
+                    dgv.Rows[i].Cells[(int)GridColumn.No].Value = string.Format("{0}-{1}", DispNo, no++);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                PersonDB.close(); PersonDB = null;
+            }
+        }
+        #endregion
+
+        #region 受注金額変更ウィンドウ表示
+        /// <summary>
+        /// 受注金額変更ウィンドウ表示
+        /// </summary>
+        private void OpenOrderPriceChangeWindow()
+        {
+            FrmValueOfOrderDiag frm = new FrmValueOfOrderDiag();
+            try
+            {
+                // パラメタ設定
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.EditFalg = CheckLeaderOrUser();
+                frm.ShowDialog();
+                if (frm.EndButton != DialogResult.OK) return;
+
+                // 受注金額変更
+                int OrderPrice = frm.OrdersDecisionPrice;
+
+                m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text = @"\" + OrderPrice.ToString("#,0");
+
+                // グリッド再計算
+                foreach (DataGridViewRow CurRow in dgvAllDisplay.Rows)
+                {
+                    // 経費は別処理
+                    if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value) == (int)GroupName_ConstructionLedger.Expenses)
+                    {
+                        ReCalculateExpensess(CurRow);
+                        continue;
+                    }
+                    // 行の再計算
+                    RowReCalculate(CurRow, CurRow.Index, (int)GridColumn.ExecPrice);
+                }
+                m_bChengeAns = true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frm.Dispose(); frm = null;
+            }
+        }
+        #endregion
+
+        #region グリッド行の再計算
+        /// <summary>
+        /// グリッド行の再計算
+        /// </summary>
+        /// <param name="CurRow"></param>
+        /// <param name="RowIndex"></param>
+        /// <param name="ColumnIndex"></param>
+        private void RowReCalculate(DataGridViewRow CurRow, int RowIndex, int ColumnIndex)
+        {
+            try
+            {
+                DataGridView dgv = dgvAllDisplay;
+                
+                // 明細以外は処理しない
+                if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)GridColumn.TotalFlg].Value)) return;
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TotalFlg].Value) != 0) return;
+
+                if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)GridColumn.TitleFlg].Value)) return;
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.TitleFlg].Value) != 0) return;
+
+                if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)GridColumn.BlankFlg].Value)) return;
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.BlankFlg].Value) != 0) return;
+
+                // 空白行は処理しない
+                if (BlankLine(RowIndex)) return;
+
+                // グループ番号取得
+                int GroupNo = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.GroupCount].Value);
+
+                // 入力値編集
+                switch (ColumnIndex)
+                {
+                    case (int)GridColumn.EstimatePrice:
+                        // 予定金額
+                        CurRow.Cells[ColumnIndex].Value = CommonMotions.cnvInt(CurRow.Cells[ColumnIndex].Value).ToString("#,#");
+                        break;
+                    case (int)GridColumn.ExecPrice:
+                        // 実行金額
+                        int execprice = CommonMotions.cnvInt(CurRow.Cells[ColumnIndex].Value);
+                        CurRow.Cells[ColumnIndex].Value = execprice.ToString("#,#");
+
+                        if (GroupNo != (int)GroupName_ConstructionLedger.BillingAmount && GroupNo != (int)GroupName_ConstructionLedger.CurrentProfit)
+                        {
+                            // 比率計算
+                            CurRow.Cells[(int)GridColumn.Percent].Value = CalculattionPercent(execprice).ToString("0.00");
+                        }
+                        break;
+                    default:
+                        // その他
+                        if (ColumnIndex >= (int)GridColumn.payment)
+                        {
+                            CurRow.Cells[ColumnIndex].Value = CommonMotions.cnvInt(CurRow.Cells[ColumnIndex].Value).ToString("#,#");
+                        }
+                        break;
+                }
+
+                // 従属項目がある独立項目であれば自行の合計を表示しない
+                bool bDspTotalFlg = true;
+                int nextRowCnt = CurRow.Index + 1;
+                if (nextRowCnt < dgv.RowCount)
+                {
+                    // 自行は独立項目
+                    if (CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.IndependentFlg].Value) == 1)
+                    {
+                        // 次行は従属項目
+                        if (CommonMotions.cnvInt(dgv.Rows[nextRowCnt].Cells[(int)GridColumn.ChildFlg].Value) == 1)
+                            bDspTotalFlg = false;
+                    }
+                }
+
+                // 支払い合計計算
+                int TotalCols = dgv.ColumnCount + (int)ColPayTotal.Totals;
+                int RowTotal = 0;
+                if (bDspTotalFlg)
+                {
+                    // 支払金額の合計
+                    RowTotal = 0;
+                    for (int i = (int)GridColumn.payment; i < TotalCols; i++)
+                    {
+                        RowTotal += CommonMotions.cnvInt(CurRow.Cells[i].Value);
+                    }
+                }
+                else
+                {   // 表示しないときは支払合計を0にする
+                    RowTotal = 0;
+                }
+
+                // グループによって支払計算の表示等を変更する
+                int ResultCols = dgv.ColumnCount + (int)ColPayTotal.Results;
+                switch (GroupNo)
+                {
+                    case (int)GroupName_ConstructionLedger.NetIncome:
+                        // 純利益は支払金額等を計算しない
+                    case (int)GroupName_ConstructionLedger.BillingAmount:
+                        // 請求金額は支払金額等を計算しない
+                        break;
+                    case (int)GroupName_ConstructionLedger.Expenses:
+                        // 経費は支払総額が全て
+                        CurRow.Cells[TotalCols].Value = RowTotal.ToString("#,0");
+                        CurRow.Cells[ResultCols].Value = "0";
+
+                        // 支払可能額・支払超過の編集
+                        SetOverPayment(CurRow.Index);
+                        break;
+                    default:
+
+                        // 実績表示
+                        int ExecPrice = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.ExecPrice].Value);
+                        int ResultValue = (ExecPrice - RowTotal);
+                        CurRow.Cells[TotalCols].Value = RowTotal.ToString("#,0");
+                        CurRow.Cells[ResultCols].Value = ResultValue.ToString("#,0");
+
+                        // 支払可能額・支払超過の編集
+                        SetOverPayment(CurRow.Index);
+                        break;
+                }
+                // 請求金額計算
+                CalculateBillingAmount();
+
+                // 純利益計算
+                CalculateNetIncome();
+
+                // 合計計算
+                CreateAllTotal(false);
+
+                /// 現在利益計算
+                CalculateCurrentProfit();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 経費再計算処理
+        /// <summary>
+        /// 経費再計算処理
+        /// </summary>
+        /// <param name="CurRow"></param>
+        private void ReCalculateExpensess(DataGridViewRow CurRow)
+        {
+            try
+            {
+                // 受注金額取得
+                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
+                // 経費率取得
+                double percent = CommonMotions.cnvDouble(CurRow.Cells[(int)GridColumn.Percent].Value);
+
+                // 経費金額計算
+                CurRow.Cells[(int)GridColumn.ExecPrice].Value = ((int)(OrdersPrice * (percent / 100.0))).ToString("#,#");
+                CurRow.Cells[(int)GridColumn.payment].Value = ((int)(OrdersPrice * (percent / 100.0))).ToString("#,#");
+
+                DataGridView dgv = dgvAllDisplay;
+                // 合計欄位置取得
+                int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
+                CurRow.Cells[TotalPoint].Value = ((int)(OrdersPrice * (percent / 100.0))).ToString("#,#");
+                // 実績欄位置取得
+                int ResultPoint = dgv.ColumnCount + (int)ColPayTotal.Results;
+                CurRow.Cells[ResultPoint].Value = "0";
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 増減工事データの存在確認
+        /// <summary>
+        /// 増減工事データの存在確認
+        /// </summary>
+        /// <returns></returns>
+        private bool ExistFluctuationData()
+        {
+            IOConstructionLink LinkDB = new IOConstructionLink();
+            try
+            {
+                string strSQL = "SELECT COUNT(*) FROM CONSTRUCTIONBASEINFO";
+                strSQL += " WHERE CONSTRUCTIONCODE";
+                strSQL += " IN (SELECT A.FLUCTUATIONCODE";
+                strSQL += " FROM CONSTRUCTIONLINK A, PROCESSAPPROVAL B";
+                strSQL += string.Format(" WHERE A.CONSTRUCTIONCODE = {0}", m_ConstructionCode);
+                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND B.APPROVALCODE = {0})", (int)ClsExcute.ApprovalListNo.ConstructionBudgetApproval);
+                strSQL += string.Format(" AND CONSTRUCTIONSTATUSFLG != {0}", CommonDefine.ProjectsStatus.First(x => x.Value.Equals("非 受 注")).Key);
+
+                ArrayList arList = new ArrayList();
+                if (!LinkDB.ExecuteReader(strSQL, ref arList)) return false;
+
+                object[] wrkobj = (object[])arList[0];
+                // 増減工事データが存在しない場合は無
+                if (CommonMotions.cnvInt(wrkobj[0]) == 0) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                LinkDB.close(); LinkDB = null;
+            }
+        }
+        #endregion
+
+        #region 増減データを台帳データへ追加する
+        /// <summary>
+        /// 増減データを台帳データへ追加する
+        /// </summary>
+        /// <returns></returns>
+        private bool AdditionLedgerData()
+        {
+            try
+            {
+                // 受注金額を変更する
+                if (!SetAddData_OrderPrice()) return false;
+
+                // 経費を再計算
+                if (!SetAddData_Expeness()) return false;
+
+                // 工事予算書より施工費を取り込む
+                if (!SetAddData_Construction()) return false;
+
+                // 工事予算書より購入品ブロックを取り込む
+                if (!SetAddData_OtherExpeness()) return false;
+
+                // 工事予算書より人件費ブロックを取り込む
+                if (!SetAddData_WorkingValue()) return false;
+
+                // 純利益行計算
+                CalculateNetIncome();
+
+                // 合計金額
+                CreateAllTotal(false);
+
+                // 請求金額計算
+                CalculateBillingAmount();
+
+                // 現在利益作成
+                CalculateCurrentProfit();
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region データ追加：受注金額の変更
+        /// <summary>
+        /// データ追加：受注金額の変更
+        /// </summary>
+        private bool SetAddData_OrderPrice()
+        {
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            try
+            {
+                // 受注金額取得
+                int OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
+
+                string strSQL = BaseDB.CreatePrimarykeyString(m_AddingConstrCode);
+                ConstructionBaseInfo BaseRec = new ConstructionBaseInfo();
+                if(!BaseDB.SelectAction(strSQL, ref BaseRec)) return false;
+
+                OrdersPrice += (int)BaseRec.OrdersDecisionPrice;
+
+                // 受注金額
+                m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text = @"\" + OrdersPrice.ToString("#,0");
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                BaseDB.close(); BaseDB = null;
+            }
+        }
+        #endregion
+
+        #region データ追加：経費再計算
+        /// <summary>
+        /// データ追加：経費再計算
+        /// </summary>
+        private bool SetAddData_Expeness()
+        {
+            try
+            {
+                DataGridView dgv = dgvAllDisplay;
+
+                int GroupNo = (int)GroupName_ConstructionLedger.Expenses;
+                // 受注金額取得
+                double OrdersPrice = CommonMotions.cnvInt(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
+
+                // 行位置取得
+                int StartLine = m_CostsRowCount[(int)CostsRowLine.ExpensesRowLine];
+
+                // ----- 経費支払月の計算
+                // 現在年月日取得
+                string NowMonth = string.Format("{0}/{1}/1", DateTime.Now.Year, DateTime.Now.Month);
+                // 工事開始年月取得
+                string StartHeder = CommonMotions.cnvString(dgv.Columns[(int)GridColumn.payment].HeaderCell.Value).Replace("年", "/").Replace("月", "/") + "1";
+
+                // 経過月数計算
+                DateTime StDate = CommonMotions.cnvDate(StartHeder);
+                DateTime EdDate = CommonMotions.cnvDate(NowMonth);
+                int Betwen = (int)GridColumn.payment + MonthDiff(StDate, EdDate);
+
+                for (int i = StartLine; i < dgv.RowCount; i++)
+                {
+                    DataGridViewRow GridRow = dgv.Rows[i];
+
+                    // 経費グループ以外は処理しない
+                    if (CommonMotions.cnvInt(GridRow.Cells[(int)GridColumn.GroupCount].Value) != GroupNo) break;
+
+                    // 経費取得
+                    double dExpenses = CommonMotions.cnvDouble(GridRow.Cells[(int)GridColumn.Percent].Value);
+
+                    // 現在値取得
+                    double NowValue = CommonMotions.cnvInt(GridRow.Cells[(int)GridColumn.ExecPrice].Value);
+                    // 金額計算
+                    double CalcValue = OrdersPrice * (dExpenses / 100.0);
+
+                    // データセット 元の金額は変更しない
+                    //GridRow.Cells[(int)DispGridColumn.ExecPrice].Value = ((int)CalcValue).ToString("#,#");
+
+                    // 支払金額セット
+                    if (Betwen == (int)GridColumn.payment)
+                    {   // 工期が１カ月しかない場合
+                        GridRow.Cells[Betwen].Value = ((int)CalcValue).ToString("#,#");
+                    }
+                    else
+                    {   // 工期が数カ月ある場合
+                        GridRow.Cells[Betwen].Value = ((int)(CalcValue - NowValue)).ToString("#,#");
+                    }
+
+                    // 合計欄位置取得
+                    int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
+                    GridRow.Cells[TotalPoint].Value = ((int)CalcValue).ToString("#,#");
+                }
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 2つの日付の月差を求める
+        /// <summary>
+        /// 2つの日付の月差を求める
+        /// </summary>
+        /// <param name="dTime1"></param>
+        /// <param name="dTime2"></param>
+        /// <returns></returns>
+        private int MonthDiff(DateTime dTime1, DateTime dTime2)
+        {
+            int iRet = 0;
+            DateTime dtFrom = DateTime.MinValue;
+            DateTime dtTo = DateTime.MaxValue;
+
+            if (dTime1 < dTime2)
+            {
+                dtFrom = dTime1;
+                dtTo = dTime2;
+            }
+            else
+            {
+                dtFrom = dTime2;
+                dtTo = dTime1;
+            }
+
+            // 月差計算（年差考慮(差分1年 → 12(ヶ月)加算)）
+            iRet = (dtTo.Month + (dtTo.Year - dtFrom.Year) * 12) - dtFrom.Month;
+
+            return iRet;
+        }
+        #endregion
+
+        #region データ追加：施工費追加
+        /// <summary>
+        /// データ追加：施工費追加
+        /// </summary>
+        /// <returns></returns>
+        private bool SetAddData_Construction()
+        {
+            IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
+            try
+            {
+                // 工事予算書明細データを読み込む
+                string strSQL = DetailDB.CreatePrimarykeyString(m_AddingConstrCode);
+                strSQL += string.Format(" AND (GROUPCOUNT = {0}", (int)GroupName_ConstructionBudget.CommonTempCosts);       // 共通仮設
+                strSQL += string.Format(" OR GROUPCOUNT = {0}", (int)GroupName_ConstructionBudget.OutSourceCosts);          // 外注費
+                strSQL += string.Format(" OR GROUPCOUNT = {0})", (int)GroupName_ConstructionBudget.MyConstruction);         // 自社施工
+                strSQL += " ORDER BY GroupCount ASC, LineCount ASC";
+                List<ConstructionBudgetDetail> DetailList = new List<ConstructionBudgetDetail>();
+                if (!DetailDB.SelectAction(strSQL, ref DetailList)) return false;
+                if (DetailList.Count == 0) return false;
+
+                DataGridView dgv = dgvAllDisplay;
+                int GroupNo = (int)GroupName_ConstructionLedger.ConstructionCosts;
+                int icnt = 0;
+
+                // 行位置取得
+                int StartLine = m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine];
+
+                // データ挿入位置検索
+                int TargetLine = -1;
+                for (int i = StartLine; i < dgv.RowCount; i++)
+                {
+                    DataGridViewRow GridRow = dgv.Rows[i];
+                    if (CommonMotions.cnvInt(GridRow.Cells[(int)GridColumn.GroupCount].Value) != GroupNo) break;
+
+                    // 金額が変わった可能性があるので比率計算
+                    double execprice = CommonMotions.cnvDouble(GridRow.Cells[(int)GridColumn.ExecPrice].Value);
+                    GridRow.Cells[(int)GridColumn.Percent].Value = CalculattionPercent(execprice).ToString("0.00");
+                    
+                    // 同じ場合は行数を退避
+                    TargetLine = i;
+                }
+
+                // データ号現番号取得
+                int FluctuationNo = m_AddingConstrCode % 100;
+                // 次の行から追加
+                TargetLine++;
+                // データ追加
+                foreach (ConstructionBudgetDetail DetailRec in DetailList)
+                {
+                    // 行追加
+                    DataGridViewAction.CreateNewLine(dgv, ref TargetLine);
+
+                    DataGridViewRow GridRow = dgv.Rows[TargetLine];
+
+                    // データセット
+                    GridRow.Cells[(int)GridColumn.No].Value = string.Format("{0}-{1}", GroupNo, ++icnt);
+                    GridRow.Cells[(int)GridColumn.FixFlg].Value = "*";
+                    GridRow.Cells[(int)GridColumn.GroupCount].Value = GroupNo;
+                    GridRow.Cells[(int)GridColumn.ItemName].Value = DetailRec.FirstString;
+                    GridRow.Cells[(int)GridColumn.TextName].Value = DetailRec.SecondString;
+                    GridRow.Cells[(int)GridColumn.CompanyCode].Value = DetailRec.CompanyType;
+                    GridRow.Cells[(int)GridColumn.CompanyCode].Value = DetailRec.CompanyCode;
+                    GridRow.Cells[(int)GridColumn.CompanyName].Value = DetailRec.CompanyName;
+                    GridRow.Cells[(int)GridColumn.EstimatePrice].Value = DetailRec.EstimatePrice.ToString("#,0");
+                    GridRow.Cells[(int)GridColumn.ExecPrice].Value = DetailRec.ExecutionAmount.ToString("#,0");
+                    GridRow.Cells[(int)GridColumn.Percent].Value = CalculattionPercent(DetailRec.ExecutionAmount).ToString("0.00");
+                    GridRow.Cells[(int)GridColumn.IndependentFlg].Value = "1";
+                    GridRow.Cells[(int)GridColumn.FluctuationFlg].Value = FluctuationNo;
+
+                    // 合計欄位置取得
+                    int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
+                    GridRow.Cells[TotalPoint].Value = "0";
+                    // 実績欄位置取得
+                    int ResultPoint = dgv.ColumnCount + (int)ColPayTotal.Results;
+                    GridRow.Cells[ResultPoint].Value = DetailRec.ExecutionAmount.ToString("#,0");
+
+                    GridRow.Cells[(int)GridColumn.TitleFlg].Value = "0";
+                    GridRow.Cells[(int)GridColumn.TotalFlg].Value = "0";
+                    GridRow.Cells[(int)GridColumn.BlankFlg].Value = "0";
+
+                    TargetLine++;
+                }
+
+                // 行のエリアを更新する
+                SetCostsRowCount();
+                
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                DetailDB.close(); DetailDB = null;
+            }
+        }
+        #endregion
+
+        #region データ追加：購入品ブロック追加
+        /// <summary>
+        /// データ追加：購入品ブロック追加
+        /// </summary>
+        /// <returns></returns>
+        private bool SetAddData_OtherExpeness()
+        {
+            try
+            {
+                // 交通費表示
+                if (!SetAddData_ConstructionBudget((int)GroupName_ConstructionBudget.TransportationCosts)) return false;
+                // 購入品
+                if (!SetAddData_PurchaseCosts()) return false;
+                // 車両リース代
+                if (!SetAddData_ConstructionBudget( (int)GroupName_ConstructionBudget.VehicleLeaseFee)) return false;
+                // 駐車場・資材置き場
+                if (!SetAddData_ConstructionBudget((int)GroupName_ConstructionBudget.ParkingCosts)) return false;
+                // 宿泊費
+                if (!SetAddData_ConstructionBudget((int)GroupName_ConstructionBudget.RoomChargeCosts)) return false;
+                // 処分費等
+                if (!SetAddData_ConstructionBudget((int)GroupName_ConstructionBudget.DisposeCosts)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region データ追加：購入品をマージする
+        /// <summary>
+        /// データ追加：購入品をマージする
+        /// </summary>
+        /// <returns></returns>
+        private bool SetAddData_PurchaseCosts()
+        {
+            IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
+            try
+            {
+                // 工事予算書明細データを読み込む
+                string strSQL = "SELECT SUM(ESTIMATEPRICE), SUM(EXECUTIONAMOUNT), SUM(AMOUNTCONFIGRATE) FROM CONSTRUCTIONBUDGETDETAIL";
+                strSQL += DetailDB.CreatePrimarykeyString(AddingConstrCode);
+                strSQL += string.Format(" AND GROUPCOUNT = {0}", (int)GroupName_ConstructionBudget.PurchaseCosts);       // 購入品
+                ArrayList DetailList = new ArrayList();
+                if (!DetailDB.ExecuteReader(strSQL, ref DetailList)) return false;
+                if (DetailList.Count == 0) return true;
+
+                DataGridView dgv = dgvAllDisplay;
+                object[] wrkobj = (object[])DetailList[0];
+
+                // 行位置取得
+                int TargetLine = m_CostsRowCount[(int)CostsRowLine.PurchaseCostsRowLine];
+
+                DataGridViewRow RowData = dgv.Rows[TargetLine];
+
+                int[] NowValue = new int[3];
+                NowValue[0] = CommonMotions.cnvInt(RowData.Cells[(int)GridColumn.EstimatePrice].Value) + CommonMotions.cnvInt(wrkobj[0]);
+                NowValue[1] = CommonMotions.cnvInt(RowData.Cells[(int)GridColumn.ExecPrice].Value) + CommonMotions.cnvInt(wrkobj[1]);
+                NowValue[2] = CommonMotions.cnvInt(RowData.Cells[(int)GridColumn.Percent].Value) + CommonMotions.cnvInt(wrkobj[2]);
+
+                // データセット
+                RowData.Cells[(int)GridColumn.EstimatePrice].Value = NowValue[0].ToString("#,0");
+                RowData.Cells[(int)GridColumn.ExecPrice].Value = NowValue[1].ToString("#,0");
+                RowData.Cells[(int)GridColumn.Percent].Value = CalculattionPercent((double)NowValue[1]).ToString("0.00");
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                DetailDB.close(); DetailDB = null;
+            }
+        }
+        #endregion
+
+        #region データ追加：購入費等追加
+        /// <summary>
+        /// データ追加：購入費等追加
+        /// </summary>
+        /// <returns></returns>
+        private bool SetAddData_ConstructionBudget(int GroupNo)
+        {
+            IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
+            try
+            {
+                // 工事予算書明細データを読み込む
+                string strSQL = DetailDB.CreatePrimarykeyString(AddingConstrCode);
+                strSQL += string.Format(" AND GROUPCOUNT = {0}", GroupNo);
+                strSQL += " ORDER BY LineCount ASC";
+
+                ConstructionBudgetDetail DetailRec = new ConstructionBudgetDetail();
+                if (!DetailDB.SelectAction(strSQL, ref DetailRec)) return false;
+
+                int TargetLine = -1;
+                // データセット
+                switch (GroupNo)
+                {
+                    // 車両リース代
+                    case (int)GroupName_ConstructionBudget.VehicleLeaseFee:
+                        TargetLine = m_CostsRowCount[(int)CostsRowLine.VehicleLeaseFeeRowLine];
+                        break;
+                    // 交通費（通行料・電車代）
+                    case (int)GroupName_ConstructionBudget.TransportationCosts:
+                        TargetLine = m_CostsRowCount[(int)CostsRowLine.TransportationCostsRowLine];
+                        break;
+                    // 駐車場・資材置き場
+                    case (int)GroupName_ConstructionBudget.ParkingCosts:
+                        TargetLine = m_CostsRowCount[(int)CostsRowLine.ParkingCostsRowLine];
+                        break;
+                    // 宿泊費
+                    case (int)GroupName_ConstructionBudget.RoomChargeCosts:
+                        TargetLine = m_CostsRowCount[(int)CostsRowLine.RoomChargeCostsRowLine];
+                        break;
+                    // 処分費等
+                    case (int)GroupName_ConstructionBudget.DisposeCosts:
+                        TargetLine = m_CostsRowCount[(int)CostsRowLine.DisposeCostsRowLine];
+                        break;
+
+                    default:
+                        // その他の項目
+                        break;
+                }
+
+                DataGridView dgv = dgvAllDisplay;
+                DataGridViewRow RowData = dgv.Rows[TargetLine];
+
+                int[] NowValue = new int[3];
+                NowValue[0] = CommonMotions.cnvInt(RowData.Cells[(int)GridColumn.EstimatePrice].Value) + (int)DetailRec.EstimatePrice;
+                NowValue[1] = CommonMotions.cnvInt(RowData.Cells[(int)GridColumn.ExecPrice].Value) + (int)DetailRec.ExecutionAmount;
+
+                RowData.Cells[(int)GridColumn.EstimatePrice].Value = NowValue[0].ToString("#,0");
+                RowData.Cells[(int)GridColumn.ExecPrice].Value = NowValue[1].ToString("#,0");
+                RowData.Cells[(int)GridColumn.Percent].Value = CalculattionPercent((double)NowValue[1]).ToString("0.00");
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                DetailDB.close(); DetailDB = null;
+            }
+        }
+        #endregion
+
+        #region データ追加：人件費ブロック追加
+        /// <summary>
+        /// データ追加：人件費ブロック追加
+        /// </summary>
+        /// <returns></returns>
+        private bool SetAddData_WorkingValue()
+        {
+            IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
+            try
+            {
+                int GroupNo = (int)GroupName_ConstructionLedger.TransportationCosts + 1;
+                int icnt = 1;
+                // グループ名表示
+                CreateTitleRow(GroupNo, s_PersonnelExpensesGroup);
+
+                // 指導員給与
+                if (!SetAddData_AddWorkingRow(GroupNo, (int)GroupName_ConstructionBudget.InstructorCosts, icnt++)) return false;
+                // 副担当者給与
+                if (!SetAddData_AddWorkingRow(GroupNo, (int)GroupName_ConstructionBudget.AssistantCosts, icnt++)) return false;
+                // 担当者給与経費
+                if (!SetAddData_AddWorkingRow(GroupNo, (int)GroupName_ConstructionBudget.PayrollExpenses, icnt++)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                DetailDB.close(); DetailDB = null;
+            }
+        }
+        #endregion
+
+        #region データ追加：人件費を追加
+        /// <summary>
+        /// データ追加：人件費を追加
+        /// </summary>
+        /// <returns></returns>
+        private bool SetAddData_AddWorkingRow(int BlockNo, int GroupNo, int DataNo)
+        {
+            IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
+            try
+            {
+                // 工事予算書明細データを読み込む
+                string strSQL = DetailDB.CreatePrimarykeyString(AddingConstrCode);
+                strSQL += string.Format(" AND GROUPCOUNT = {0}", GroupNo);
+                strSQL += " ORDER BY LineCount ASC";
+
+                List<ConstructionBudgetDetail> DetailList = new List<ConstructionBudgetDetail>();
+                if (!DetailDB.SelectAction(strSQL, ref DetailList)) return false;
+                if (DetailList.Count == 0) return true;
+
+                DataGridView dgv = dgvAllDisplay;
+
+                ConstructionBudgetDetail DetailRec = DetailList[0];
+
+                int TargetLine = -1;
+                // データセット
+                switch (GroupNo)
+                {
+                    // 指導員費用
+                    case (int)GroupName_ConstructionBudget.InstructorCosts:
+
+                        TargetLine = m_CostsRowCount[(int)CostsRowLine.InstructorRowLine];
+                        GroupNo = (int)GroupName_ConstructionLedger.Instructor;
+                        // 指導員行に名前を入れる
+                        SetFirstStringName(ref DetailRec);
+                        // 一般ユーザーは指導員の給与を見えないようにする
+                        if (!CheckLeaderOrUser()) DetailRec.SecondString = string.Empty;
+                        break;
+                    // 副担当者給与費用
+                    case (int)GroupName_ConstructionBudget.AssistantCosts:
+
+                        TargetLine = m_CostsRowCount[(int)CostsRowLine.AssistantRowLine];
+                        GroupNo = (int)GroupName_ConstructionLedger.Assistant;
+                        // 副担当行に名前を入れる
+                        SetFirstStringName(ref DetailRec);
+                        // 一般ユーザーは副担当者の給与を見えないようにする
+                        if (!CheckLeaderOrUser()) DetailRec.SecondString = string.Empty;
+                        break;
+                    // 担当者給与費用
+                    case (int)GroupName_ConstructionBudget.PayrollExpenses:
+
+                        TargetLine = m_CostsRowCount[(int)CostsRowLine.PayrollRowLine];
+                        GroupNo = (int)GroupName_ConstructionLedger.Payroll;
+                        // 一般ユーザーは担当者の給与を見えないようにする
+                        if (!CheckLeaderOrUser()) DetailRec.SecondString = string.Empty;
+                        break;
+                    default:
+                        // その他の項目
+                        GroupNo = 0;
+                        break;
+                }
+
+                // データ行現番号取得
+                int FluctuationNo = m_AddingConstrCode % 100;
+                // 担当者等が同じかをチェックする
+                bool bExist = false;
+                for (int i = TargetLine; i < dgv.RowCount; i++)
+                {
+                    DataGridViewRow wrkRow = dgv.Rows[i];
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.GroupCount].Value) != GroupNo) break;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridColumn.CompanyCode].Value) == DetailRec.CompanyCode)
+                    {
+                        bExist = true;
+                        break;
+                    }
+                    TargetLine++;
+                }
+
+                if (!bExist)
+                {
+                    object[] RowData = new object[dgv.Columns.Count];
+
+                    RowData[(int)GridColumn.No] = string.Format("{0}-{1}", BlockNo, DataNo);        // ここでの番号は見えないのでおかしくてもよい
+                    RowData[(int)GridColumn.FixFlg] = "*";
+                    RowData[(int)GridColumn.GroupCount] = GroupNo;
+                    RowData[(int)GridColumn.ItemName] = DetailRec.FirstString;
+                    RowData[(int)GridColumn.TextName] = DetailRec.SecondString;
+
+                    RowData[(int)GridColumn.CompanyType] = DetailRec.CompanyType;
+                    RowData[(int)GridColumn.CompanyCode] = DetailRec.CompanyCode;
+                    RowData[(int)GridColumn.CompanyName] = DetailRec.CompanyName;
+                    RowData[(int)GridColumn.EstimatePrice] = DetailRec.EstimatePrice.ToString("#,0");
+                    RowData[(int)GridColumn.ExecPrice] = DetailRec.ExecutionAmount.ToString("#,0");
+                    RowData[(int)GridColumn.Percent] = DetailRec.AmountConfigRate.ToString("0.00");
+                    RowData[(int)GridColumn.IndependentFlg] = "1";
+                    RowData[(int)GridColumn.FluctuationFlg] = FluctuationNo;
+
+                    // 合計欄位置取得
+                    int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
+                    RowData[TotalPoint] = "0";
+                    // 実績欄位置取得
+                    int ResultPoint = dgv.ColumnCount + (int)ColPayTotal.Results;
+                    RowData[ResultPoint] = DetailRec.ExecutionAmount.ToString("#,0");
+
+                    RowData[(int)GridColumn.TitleFlg] = "0";
+                    RowData[(int)GridColumn.TotalFlg] = "0";
+                    RowData[(int)GridColumn.BlankFlg] = "0";
+
+                    dgv.Rows.Insert(TargetLine, RowData);
+                }
+                else
+                {
+                    DataGridViewRow RowData = dgv.Rows[TargetLine];
+                    int EstimatePrice = CommonMotions.cnvInt(RowData.Cells[(int)GridColumn.EstimatePrice].Value) + (int)DetailRec.EstimatePrice;
+                    int ExecutionAmount = CommonMotions.cnvInt(RowData.Cells[(int)GridColumn.ExecPrice].Value) + (int)DetailRec.ExecutionAmount;
+
+                    RowData.Cells[(int)GridColumn.EstimatePrice].Value = EstimatePrice.ToString("#,0");
+                    RowData.Cells[(int)GridColumn.ExecPrice].Value = ExecutionAmount.ToString("#,0");
+                }
+
+                // 行数保持のエリアを更新する
+                SetCostsRowCount();
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                DetailDB.close(); DetailDB = null;
+            }
+        }
+        #endregion
+
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmSelectPerson.Designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmSelectPerson.Designer.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmSelectPerson.Designer.cs	(revision 6)
@@ -0,0 +1,247 @@
+﻿namespace ProcessManagement.Forms.DataEntry
+{
+    partial class FrmSelectPerson
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.btnExecute = new System.Windows.Forms.Button();
+            this.btnCancel = new System.Windows.Forms.Button();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label113 = new System.Windows.Forms.Label();
+            this.label76 = new System.Windows.Forms.Label();
+            this.pnlCostParam = new System.Windows.Forms.Panel();
+            this.label22 = new System.Windows.Forms.Label();
+            this.textBox2 = new System.Windows.Forms.TextBox();
+            this.radioButton6 = new System.Windows.Forms.RadioButton();
+            this.radioButton5 = new System.Windows.Forms.RadioButton();
+            this.radioButton4 = new System.Windows.Forms.RadioButton();
+            this.cmbDepartment = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.cmbPerson = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.panel1.SuspendLayout();
+            this.pnlCostParam.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // btnExecute
+            // 
+            this.btnExecute.BackColor = System.Drawing.Color.Green;
+            this.btnExecute.ForeColor = System.Drawing.Color.White;
+            this.btnExecute.Location = new System.Drawing.Point(233, 10);
+            this.btnExecute.Name = "btnExecute";
+            this.btnExecute.Size = new System.Drawing.Size(140, 40);
+            this.btnExecute.TabIndex = 0;
+            this.btnExecute.Text = "実　　行";
+            this.btnExecute.UseVisualStyleBackColor = false;
+            this.btnExecute.Click += new System.EventHandler(this.btnExecute_Click);
+            // 
+            // btnCancel
+            // 
+            this.btnCancel.BackColor = System.Drawing.Color.Red;
+            this.btnCancel.ForeColor = System.Drawing.Color.White;
+            this.btnCancel.Location = new System.Drawing.Point(379, 10);
+            this.btnCancel.Name = "btnCancel";
+            this.btnCancel.Size = new System.Drawing.Size(140, 40);
+            this.btnCancel.TabIndex = 3;
+            this.btnCancel.Text = "キャンセル";
+            this.btnCancel.UseVisualStyleBackColor = false;
+            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.panel1.Controls.Add(this.btnCancel);
+            this.panel1.Controls.Add(this.btnExecute);
+            this.panel1.Location = new System.Drawing.Point(-8, 140);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(540, 60);
+            this.panel1.TabIndex = 3;
+            // 
+            // label113
+            // 
+            this.label113.BackColor = System.Drawing.Color.LightGreen;
+            this.label113.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label113.Location = new System.Drawing.Point(262, 25);
+            this.label113.Name = "label113";
+            this.label113.Size = new System.Drawing.Size(250, 30);
+            this.label113.TabIndex = 67;
+            this.label113.Text = "担　当　者";
+            this.label113.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label76
+            // 
+            this.label76.BackColor = System.Drawing.Color.LightGreen;
+            this.label76.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label76.Location = new System.Drawing.Point(12, 25);
+            this.label76.Name = "label76";
+            this.label76.Size = new System.Drawing.Size(250, 30);
+            this.label76.TabIndex = 68;
+            this.label76.Text = "部　　署";
+            this.label76.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // pnlCostParam
+            // 
+            this.pnlCostParam.BackColor = System.Drawing.Color.Beige;
+            this.pnlCostParam.Controls.Add(this.label22);
+            this.pnlCostParam.Controls.Add(this.textBox2);
+            this.pnlCostParam.Controls.Add(this.radioButton6);
+            this.pnlCostParam.Controls.Add(this.radioButton5);
+            this.pnlCostParam.Controls.Add(this.radioButton4);
+            this.pnlCostParam.Location = new System.Drawing.Point(12, 92);
+            this.pnlCostParam.Name = "pnlCostParam";
+            this.pnlCostParam.Size = new System.Drawing.Size(499, 40);
+            this.pnlCostParam.TabIndex = 71;
+            // 
+            // label22
+            // 
+            this.label22.AutoSize = true;
+            this.label22.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label22.Location = new System.Drawing.Point(437, 12);
+            this.label22.Name = "label22";
+            this.label22.Size = new System.Drawing.Size(33, 21);
+            this.label22.TabIndex = 14;
+            this.label22.Text = "日";
+            // 
+            // textBox2
+            // 
+            this.textBox2.BackColor = System.Drawing.Color.White;
+            this.textBox2.Enabled = false;
+            this.textBox2.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.textBox2.Location = new System.Drawing.Point(381, 8);
+            this.textBox2.MaxLength = 6;
+            this.textBox2.Name = "textBox2";
+            this.textBox2.Size = new System.Drawing.Size(56, 28);
+            this.textBox2.TabIndex = 10;
+            this.textBox2.TabStop = false;
+            this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            // 
+            // radioButton6
+            // 
+            this.radioButton6.AutoSize = true;
+            this.radioButton6.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton6.Location = new System.Drawing.Point(261, 10);
+            this.radioButton6.Name = "radioButton6";
+            this.radioButton6.Size = new System.Drawing.Size(120, 25);
+            this.radioButton6.TabIndex = 13;
+            this.radioButton6.Text = "日数指定";
+            this.radioButton6.UseVisualStyleBackColor = true;
+            this.radioButton6.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
+            // 
+            // radioButton5
+            // 
+            this.radioButton5.AutoSize = true;
+            this.radioButton5.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton5.Location = new System.Drawing.Point(156, 10);
+            this.radioButton5.Name = "radioButton5";
+            this.radioButton5.Size = new System.Drawing.Size(97, 25);
+            this.radioButton5.TabIndex = 12;
+            this.radioButton5.Text = "未振分";
+            this.radioButton5.UseVisualStyleBackColor = true;
+            this.radioButton5.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
+            // 
+            // radioButton4
+            // 
+            this.radioButton4.AutoSize = true;
+            this.radioButton4.Checked = true;
+            this.radioButton4.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton4.Location = new System.Drawing.Point(28, 10);
+            this.radioButton4.Name = "radioButton4";
+            this.radioButton4.Size = new System.Drawing.Size(120, 25);
+            this.radioButton4.TabIndex = 11;
+            this.radioButton4.TabStop = true;
+            this.radioButton4.Text = "全日振分";
+            this.radioButton4.UseVisualStyleBackColor = true;
+            this.radioButton4.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
+            // 
+            // cmbDepartment
+            // 
+            this.cmbDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbDepartment.FormattingEnabled = true;
+            this.cmbDepartment.Location = new System.Drawing.Point(12, 55);
+            this.cmbDepartment.Name = "cmbDepartment";
+            this.cmbDepartment.Size = new System.Drawing.Size(250, 29);
+            this.cmbDepartment.TabIndex = 69;
+            this.cmbDepartment.SelectedIndexChanged += new System.EventHandler(this.cmbDepartment_SelectedIndexChanged);
+            // 
+            // cmbPerson
+            // 
+            this.cmbPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbPerson.FormattingEnabled = true;
+            this.cmbPerson.Location = new System.Drawing.Point(262, 55);
+            this.cmbPerson.Name = "cmbPerson";
+            this.cmbPerson.Size = new System.Drawing.Size(250, 29);
+            this.cmbPerson.TabIndex = 70;
+            this.cmbPerson.SelectedIndexChanged += new System.EventHandler(this.cmbPerson_SelectedIndexChanged);
+            // 
+            // FrmSelectPerson
+            // 
+            this.AcceptButton = this.btnExecute;
+            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.BackColor = System.Drawing.Color.YellowGreen;
+            this.ClientSize = new System.Drawing.Size(524, 195);
+            this.Controls.Add(this.pnlCostParam);
+            this.Controls.Add(this.cmbDepartment);
+            this.Controls.Add(this.cmbPerson);
+            this.Controls.Add(this.label113);
+            this.Controls.Add(this.label76);
+            this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+            this.KeyPreview = true;
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "FrmSelectPerson";
+            this.ShowIcon = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "担当者選択";
+            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmStatusAndDate_FormClosed);
+            this.Load += new System.EventHandler(this.FrmCostStructureDiag_Load);
+            this.panel1.ResumeLayout(false);
+            this.pnlCostParam.ResumeLayout(false);
+            this.pnlCostParam.PerformLayout();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button btnExecute;
+        private System.Windows.Forms.Button btnCancel;
+        private System.Windows.Forms.Panel panel1;
+        private CustomControls.ComboBoxEX cmbDepartment;
+        private CustomControls.ComboBoxEX cmbPerson;
+        private System.Windows.Forms.Label label113;
+        private System.Windows.Forms.Label label76;
+        private System.Windows.Forms.Panel pnlCostParam;
+        private System.Windows.Forms.Label label22;
+        private System.Windows.Forms.TextBox textBox2;
+        private System.Windows.Forms.RadioButton radioButton6;
+        private System.Windows.Forms.RadioButton radioButton5;
+        private System.Windows.Forms.RadioButton radioButton4;
+    }
+}
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmSelectPerson.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmSelectPerson.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmSelectPerson.cs	(revision 6)
@@ -0,0 +1,431 @@
+﻿using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+
+namespace ProcessManagement.Forms.DataEntry
+{
+    public partial class FrmSelectPerson : Form
+    {
+        #region ログ使用定義
+        //log4netログを使用する
+        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 変数
+        /// <summary>
+        /// 初期化フラグ
+        /// </summary>
+        private bool bInitFlg = true;
+
+        /// <summary>
+        /// 部署コード
+        /// </summary>
+        private int m_Departmanet = 0;
+
+        /// <summary>
+        /// 担当者コード
+        /// </summary>
+        private int m_Person = 0;
+
+        /// <summary>
+        /// 選択区分
+        /// </summary>
+        private int m_SalaryFlg = 0;
+        /// <summary>
+        /// 選択日数
+        /// </summary>
+        private int m_SalaryDays = 0;
+        
+        /// <summary>
+        /// 選択担当者区分
+        /// </summary>
+        private int m_SelectFlg = 0;
+
+        /// <summary>
+        /// 終了状態フラグ
+        /// </summary>
+        private DialogResult m_EndButton = DialogResult.None;
+        #endregion
+
+        #region プロパティ
+
+        /// <summary>
+        /// 部署コード
+        /// </summary>
+        public int Departmanet
+        {
+            get { return m_Departmanet; }
+            set { m_Departmanet = value; }
+        }
+
+        /// <summary>
+        /// 担当者コード
+        /// </summary>
+        public int Person
+        {
+            get { return m_Person; }
+            set { m_Person = value; }
+        }
+
+        /// <summary>
+        /// 選択担当者区分
+        /// </summary>
+        public int SelectFlg
+        {
+            get { return m_SelectFlg; }
+            set { m_SelectFlg = value; }
+        }
+
+        /// <summary>
+        /// 選択区分
+        /// </summary>
+        public int SalaryFlg
+        {
+            get { return m_SalaryFlg; }
+            set { m_SalaryFlg = value; }
+        }
+        /// <summary>
+        /// 選択日数
+        /// </summary>
+        public int SalaryDays
+        {
+            get { return m_SalaryDays; }
+            set { m_SalaryDays = value; }
+        }
+
+        /// <summary>
+        /// 終了ボタン状態
+        /// </summary>
+        public DialogResult EndButton
+        {
+            get { return m_EndButton; }
+        }
+        #endregion
+
+        #region コンストラクタ
+        /// <summary>
+        /// フォーム初期化
+        /// </summary>
+        public FrmSelectPerson()
+        {
+            InitializeComponent();
+        }
+        #endregion
+
+        #region フォームロード
+        /// <summary>
+        /// フォームロード
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmCostStructureDiag_Load(object sender, EventArgs e)
+        {
+            // フォームサイズ固定
+            this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height);
+
+            // 部署コンボボックスセット
+            SetInitcmbDepartment();
+            // 担当者コンボボックスセット
+            SetInitcmbPersonInCharge();
+
+            if (m_Person != 0) cmbPerson.SelectedValue = m_Person;
+            // パラメータパネル表示
+            switch (m_SelectFlg)
+            {
+                case (int)CommonDefine.PersonSelectFlg.Assistant:
+                    this.Text = "副担当者選択";
+                    pnlCostParam.BackColor = Color.Beige;
+                    break;
+                case (int)CommonDefine.PersonSelectFlg.Instructor:
+                    this.Text = "指導員選択";
+                    pnlCostParam.BackColor = Color.MistyRose;
+                    break;
+            }
+
+            bInitFlg = false;
+        }
+        #endregion
+
+        #region ×ボタン
+        /// <summary>
+        /// ×ボタン押下処理
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmStatusAndDate_FormClosed(object sender, FormClosedEventArgs e)
+        {
+            if (m_EndButton == DialogResult.None) m_EndButton = DialogResult.Cancel;
+        }
+        #endregion
+
+        #region キャンセルボタン
+        /// <summary>
+        /// キャンセルボタン
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnCancel_Click(object sender, EventArgs e)
+        {
+            m_EndButton = DialogResult.Cancel;
+            this.Close();
+        }
+        #endregion
+
+        #region 実行ボタン
+        /// <summary>
+        /// 実行ボタン
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnExecute_Click(object sender, EventArgs e)
+        {
+            if (cmbPerson.Text.Length == 0) return;
+            
+            if (MessageBox.Show("対象担当者を変更します、よろしいですか？", "入力完了確認"
+                    , MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) return;
+            
+            m_Departmanet = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
+            m_Person = CommonMotions.cnvInt(cmbPerson.SelectedValue);
+            if (radioButton4.Checked) m_SalaryFlg = (int)CommonDefine.SalaryDevision.All;       // 全日
+            if (radioButton5.Checked) m_SalaryFlg = (int)CommonDefine.SalaryDevision.Noting;    // 振分無
+            if (radioButton6.Checked) m_SalaryFlg = (int)CommonDefine.SalaryDevision.DaysInput; // 日数入力
+            m_SalaryDays = CommonMotions.cnvInt(textBox2.Text);
+
+            m_EndButton = DialogResult.OK;
+            this.Close();
+        }
+        #endregion
+
+        #region 部署コンボボックス変更
+        /// <summary>
+        /// 部署コンボボックス変更
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            if (bInitFlg) return;
+            // 担当者コンボボックスへ該当データのみセット
+            SetcmbPersons();
+        }
+        #endregion
+
+        #region 担当者コンボボックス変更
+        /// <summary>
+        /// 担当者コンボボックス変更
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void cmbPerson_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            if (bInitFlg) return;
+            SetPersonToDepartment();
+        }
+        #endregion
+
+        // ------ ローカルメソッド
+        #region 部署コンボボックス初期セット
+        /// <summary>
+        /// 部署コンボボックスへ文字をセットする
+        /// </summary>
+        private bool SetInitcmbDepartment()
+        {
+            IOMDepartment dmDB = new IOMDepartment();
+            try
+            {
+                // 部署マスタを検索する
+                string strSQL = " Where DeleteFlg = 0 ORDER BY DisplayOrder ASC";
+                List<DepartmentMaster> dmList = new List<DepartmentMaster>();
+                // 部署マスタ読込
+                if (!dmDB.SelectAction(strSQL, ref dmList)) return false;
+
+                List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
+                DataList.Add(new KeyValuePair<int, string>(0, ""));
+                // データ表示
+                foreach (DepartmentMaster wrk in dmList)
+                {
+                    KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(wrk.DepartmentCode, wrk.DepartmentString);
+
+                    DataList.Add(keyval);
+                }
+
+                // コンボボックス初期表示
+                ComboBoxAction.InitDataSetCombBox(cmbDepartment, DataList);
+                cmbDepartment.SelectedIndex = -1;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                dmDB.close(); dmDB = null;
+            }
+        }
+        #endregion
+
+        #region 担当者コンボボックス初期セット
+        /// <summary>
+        /// 担当者コンボボックスへ文字をセットする
+        /// </summary>
+        private bool SetInitcmbPersonInCharge()
+        {
+            IOMPersonInCharge picDB = new IOMPersonInCharge();
+            List<PersonInChargeMaster> workList = new List<PersonInChargeMaster>(); ;
+            try
+            {
+                // 担当者マスタを検索する
+                string strSQL = " Where DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC";
+
+                // 担当者マスタ読込
+                if (!picDB.SelectAction(strSQL, ref workList)) return false;
+
+                List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
+                DataList.Add(new KeyValuePair<int, string>(0, ""));
+                // データ表示
+                foreach (PersonInChargeMaster wrk in workList)
+                {
+                    KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(wrk.PersonCode, wrk.PersonName);
+
+                    DataList.Add(keyval);
+                }
+
+                // コンボボックス初期表示
+                ComboBoxAction.InitDataSetCombBox(cmbPerson, DataList);
+
+                cmbPerson.SelectedIndex = -1;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                picDB.close(); picDB = null;
+            }
+        }
+        #endregion
+
+        #region 担当者コンボボックスをセットする
+        /// <summary>
+        /// 担当者コンボボックスへ文字をセットする
+        /// </summary>
+        private bool SetcmbPersons()
+        {
+            IOMPersonInCharge picDB = new IOMPersonInCharge();
+            bool bSave = bInitFlg;
+            bInitFlg = true;
+            try
+            {
+                List<PersonInChargeMaster> workList = new List<PersonInChargeMaster>();
+
+                cmbPerson.DataSource = null;
+                cmbPerson.Items.Clear();
+                cmbPerson.Text = "";
+
+                string strSQL = string.Empty;
+                int DepartmentCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
+                if (DepartmentCode <= 0)
+                    strSQL = " WHERE DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC";
+                else
+                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC", DepartmentCode);
+
+                // 担当者マスタ読込
+                if (!picDB.SelectAction(strSQL, ref workList)) return false;
+
+                List<KeyValuePair<int, string>> ConstructionDataList = new List<KeyValuePair<int, string>>();
+                ConstructionDataList.Add(new KeyValuePair<int, string>(0, ""));
+
+                foreach (PersonInChargeMaster work in workList)
+                {
+                    KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(work.PersonCode, work.PersonName);
+
+                    ConstructionDataList.Add(keyval);
+                }
+
+                // コンボボックス初期表示
+                ComboBoxAction.InitDataSetCombBox(cmbPerson, ConstructionDataList);
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                picDB.close(); picDB = null;
+                bInitFlg = bSave;
+            }
+        }
+        #endregion
+
+        #region 担当者から部署のコードを取り出して部署コンボへセットする
+        /// <summary>
+        /// 担当者から部署のコードを取り出して部署コンボへセットする
+        /// </summary>
+        private void SetPersonToDepartment()
+        {
+            IOMPersonInCharge picDB = new IOMPersonInCharge();
+            try
+            {
+                int PersonCode= CommonMotions.cnvInt(cmbPerson.SelectedValue);
+                string strSQL = picDB.CreatePrimarykeyString(PersonCode);
+                PersonInChargeMaster PersonRec = new PersonInChargeMaster();
+                if (!picDB.SelectAction(strSQL, ref PersonRec)) return;
+
+                bool bSave = bInitFlg;
+                bInitFlg = true;
+                cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+                bInitFlg = bSave;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                picDB.close(); picDB = null;
+            }
+        }
+        #endregion
+
+        #region ラジオボタン変更
+        /// <summary>
+        /// ラジオボタン変更
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void radioButton_CheckedChanged(object sender, EventArgs e)
+        {
+            if (radioButton6.Checked)
+            {
+                textBox2.Enabled = true;
+            }
+            else
+            {
+                textBox2.Text = "";
+                textBox2.Enabled = false;
+            }
+        }
+        #endregion
+    }
+}
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmSelectPerson.resx
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmSelectPerson.resx	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmSelectPerson.resx	(revision 6)
@@ -0,0 +1,120 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/ProcessControl.cs	(revision 6)
@@ -329,32 +329,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -366,32 +373,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -643,7 +657,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
@@ -719,6 +733,7 @@
                 int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
                 FrmConstructionBaseInfo frm = (FrmConstructionBaseInfo)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
                 bool ThisEnd = frm.ParentEnd;
+                bool DataChange = frm.DataChenge;
 
                 // ハンドルクリア
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
@@ -735,6 +750,13 @@
                 else
                 {
                     this.Activate();
+                    // データ変更がある場合は再表示
+                    if (DataChange)
+                    {
+                        GetBaseInfoData();
+                        if (m_ConstructionBaseInfo.ConstructionPeriod >= 16) GetExpensesList();
+                        InitDataLoad();
+                    }
                 }
             }
             catch (Exception ex)
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs	(revision 6)
@@ -39,20 +39,65 @@
         /// </summary>
         private enum DispColumn
         {
+            /// <summary>
+            /// ��
+            /// </summary>
             No = 0,
+            /// <summary>
+            /// �σt���O
+            /// </summary>
             ComplateFlg,
+            /// <summary>
+            /// ����
+            /// </summary>
             Department,
+            /// <summary>
+            /// �S���Җ�
+            /// </summary>
             PersonName,
+            /// <summary>
+            /// �H���R�[�h
+            /// </summary>
             ConstructionCode,
+            /// <summary>
+            /// �H������
+            /// </summary>
             ConstructionName,
+            /// <summary>
+            /// �H���i�����
+            /// </summary>
             ConstructionStatus,
+            /// <summary>
+            /// �󒍋��z
+            /// </summary>
             OrdersDecisionPrice,
+            /// <summary>
+            /// ��Ќo��
+            /// </summary>
             CompanyExpenses,
+            /// <summary>
+            /// �����o��
+            /// </summary>
             DepartmentExpenses,
+            /// <summary>
+            /// �c�ƌo��
+            /// </summary>
             SalesExpenses,
+            /// <summary>
+            /// ���x���z
+            /// </summary>
             TotalPayment,
+            /// <summary>
+            /// �e��
+            /// </summary>
             GrossProfit,
+            /// <summary>
+            /// ���^
+            /// </summary>
             Allowance,
+            /// <summary>
+            /// �����v
+            /// </summary>
             NetProfit,
         }
         #endregion
@@ -75,22 +120,50 @@
 
         #region �s�^�C�g��
         /// <summary>
-        /// ���v�s�^�C�g��
+        /// �s�^�C�g�����я�
         /// </summary>
-        private string s_TotalTitle = "���@���@�@�@�@�@�v�@��";
+        private enum RowTitleNum
+        {
+            /// <summary>
+            /// �{�H�����v�s
+            /// </summary>
+            Execution = 0,
+            /// <summary>
+            /// �����ς�
+            /// </summary>
+            Completed,
+            /// <summary>
+            /// �o��v�s
+            /// </summary>
+            Expenses,
+            /// <summary>
+            /// �⏕�U��
+            /// </summary>
+            Auxiliary,
+            /// <summary>
+            /// �����v�s
+            /// </summary>
+            AllTotal,
+        }
 
         /// <summary>
-        /// �o��v�s�^�C�g��
+        /// ���v�s�^�C�g��
         /// </summary>
-        private string s_ExpensesTotalTitle = "�����@�o�@��@�v�@����";
+        private static string[] s_TotalTitleArray = new string[] {  "���{�@�H�@���@���@�v��",
+                                                                    "�����@���@�ρ@���@�v��",
+                                                                    "���@�o�@�@��@�@�v�@��",
+                                                                    "���U�@���@��@���@�v��",
+                                                                    "�����@���@���@�v�@����",
+                                                                };
+        #endregion
 
+        #region �O���b�h���ڍs�^�C�g��
         /// <summary>
-        /// �����v�s�^�C�g��
+        /// �O���b�h���ڍs�^�C�g��
         /// </summary>
-        private string s_AllTotalTitle = "�������@�����v�@������";
-
+        private static string[] s_GroupTitle = new string[] {"�� �S �� �� �� �^"
+                                                            ,"�w �� �� �� �^"};
         #endregion
-
         #endregion
 
         #region �ϐ�
@@ -275,9 +348,9 @@
             if (dgv.RowCount == 0) return;
             if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionCode].Value)) return;
             if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionName].Value)) return;
-            // ���v�s�͏������Ȃ�
-            if (CurRow.Cells[(int)DispColumn.ConstructionName].Value.Equals(s_AllTotalTitle) ||
-                CurRow.Cells[(int)DispColumn.ConstructionName].Value.Equals(s_TotalTitle)) return;
+            // ���׍s�ȊO�͏������Ȃ�
+            string strCode = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.ConstructionCode].Value);
+            if (CommonMotions.cnvInt(strCode.Replace("-", "")) == 0) return;
 
             // �e�����N��
             SubProcessExecute(CommonMotions.cnvIntFromStringCode(CurRow.Cells[(int)DispColumn.ConstructionCode].Value.ToString(), "-"));
@@ -464,13 +537,22 @@
             if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionCode].Value) &&
                 CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionName].Value))
             {
-
+                return;
             }
             else
             {
                 // ���v�s�͏������Ȃ�
-                if (CurRow.Cells[(int)DispColumn.ConstructionName].Value.Equals(s_AllTotalTitle) ||
-                    CurRow.Cells[(int)DispColumn.ConstructionName].Value.Equals(s_TotalTitle)) return;
+                string strWork = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.ConstructionName].Value);
+                bool bTitle = false;
+                foreach (string strTitle in s_TotalTitleArray)
+                {
+                    if (strWork.Equals(strTitle))
+                    {
+                        bTitle = true;
+                        break;
+                    }
+                }
+                if (bTitle) return;
             }
             // �s�I��F�����ɖ߂�
             if (m_BeforeGridRow >= 0) DefaultRowChangeColor(m_BeforeGridRow);
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.designer.cs	(revision 6)
@@ -76,6 +76,7 @@
             this.label7 = new System.Windows.Forms.Label();
             this.lblCellTotal = new System.Windows.Forms.Label();
             this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.ProgressBar = new System.Windows.Forms.ProgressBar();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -91,7 +92,6 @@
             this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.ProgressBar = new System.Windows.Forms.ProgressBar();
             this.groupBox1.SuspendLayout();
             this.pnlPayroll.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit();
@@ -544,6 +544,15 @@
             this.dgvMaster.Leave += new System.EventHandler(this.dgvMaster_Leave);
             this.dgvMaster.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvMaster_MouseUp);
             // 
+            // ProgressBar
+            // 
+            this.ProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.ProgressBar.Location = new System.Drawing.Point(5, 619);
+            this.ProgressBar.Name = "ProgressBar";
+            this.ProgressBar.Size = new System.Drawing.Size(388, 30);
+            this.ProgressBar.TabIndex = 30;
+            this.ProgressBar.Visible = false;
+            // 
             // Column1
             // 
             dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
@@ -626,6 +635,7 @@
             // Column5
             // 
             dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle10.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.Column5.DefaultCellStyle = dataGridViewCellStyle10;
             this.Column5.Frozen = true;
             this.Column5.HeaderText = "受注金額";
@@ -638,6 +648,7 @@
             // Column6
             // 
             dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle11.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
             this.Column6.DefaultCellStyle = dataGridViewCellStyle11;
             this.Column6.HeaderText = "会社経費";
             this.Column6.Name = "Column6";
@@ -648,6 +659,7 @@
             // Column7
             // 
             dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle12.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
             this.Column7.DefaultCellStyle = dataGridViewCellStyle12;
             this.Column7.HeaderText = "部署経費";
             this.Column7.Name = "Column7";
@@ -658,6 +670,7 @@
             // Column8
             // 
             dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle13.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
             this.Column8.DefaultCellStyle = dataGridViewCellStyle13;
             this.Column8.HeaderText = "営業経費";
             this.Column8.Name = "Column8";
@@ -668,6 +681,7 @@
             // Column9
             // 
             dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle14.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
             this.Column9.DefaultCellStyle = dataGridViewCellStyle14;
             this.Column9.HeaderText = "総支払額";
             this.Column9.Name = "Column9";
@@ -678,6 +692,7 @@
             // Column10
             // 
             dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle15.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
             this.Column10.DefaultCellStyle = dataGridViewCellStyle15;
             this.Column10.HeaderText = "粗　利";
             this.Column10.Name = "Column10";
@@ -688,6 +703,7 @@
             // Column11
             // 
             dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle16.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
             this.Column11.DefaultCellStyle = dataGridViewCellStyle16;
             this.Column11.HeaderText = "給　与";
             this.Column11.Name = "Column11";
@@ -700,6 +716,7 @@
             // Column12
             // 
             dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle17.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
             this.Column12.DefaultCellStyle = dataGridViewCellStyle17;
             this.Column12.HeaderText = "純利益";
             this.Column12.Name = "Column12";
@@ -707,15 +724,6 @@
             this.Column12.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.Column12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             // 
-            // ProgressBar
-            // 
-            this.ProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.ProgressBar.Location = new System.Drawing.Point(5, 619);
-            this.ProgressBar.Name = "ProgressBar";
-            this.ProgressBar.Size = new System.Drawing.Size(388, 30);
-            this.ProgressBar.TabIndex = 30;
-            this.ProgressBar.Visible = false;
-            // 
             // FrmConstructionLedgerList
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -782,6 +790,7 @@
         private System.Windows.Forms.Label label21;
         private System.Windows.Forms.Label label22;
         private System.Windows.Forms.Label label20;
+        private System.Windows.Forms.ProgressBar ProgressBar;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column13;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
@@ -797,6 +806,5 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
-        private System.Windows.Forms.ProgressBar ProgressBar;
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 6)
@@ -79,6 +79,8 @@
                 // ----- ��ʏ��ޔ�
                 // �����N
                 ClsExcute.ProcControlPara[NowPoint].StringSaveParameter.Add(numUDConstPro.Value.ToString());
+                // ��������
+                ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(cmbDepartment.SelectedIndex);
                 // �����S����
                 ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(cmbConstructionPerson.SelectedIndex);
                 // �\�[�g���
@@ -146,8 +148,8 @@
                 {
                     // ��ʎg�p�ҁi���f�[�^�̂݁j
                     //strSQL1 = string.Format(" AND C.PERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
-                    strSQL1 = string.Format(" AND (A.CONSTRUCTIONPERSONCODE = {0} OR A.CONSTRUCTIONINSTRUCTOR = {1})"
-                                                                        , CommonMotions.LoginUserData.PersonCode, CommonMotions.LoginUserData.PersonCode);
+                    strSQL1 = string.Format(" AND (A.CONSTRUCTIONPERSONCODE = {0} OR A.CONSTRUCTIONINSTRUCTOR = {0})"
+                                                                        , CommonMotions.LoginUserData.PersonCode);
                     //strSQL2 = string.Format(" AND (A.CREATORCODE = C.PERSONCODE AND C.DEPARTMENTCODE = {0})", CommonMotions.LoginUserData.DepartmentCode);
                     strSQL2 = " AND A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE";
                     strSQL2 += string.Format(" AND (D.CONSTRUCTIONPERSONCODE = {0} OR D.CONSTRUCTIONINSTRUCTOR = {0} OR D.CONSTRSUBPERSONCODE = {0})"
@@ -251,14 +253,6 @@
                 // �S���҃R���{�{�b�N�X�l�擾
                 int PersonCode = GetConstructionPersonCode();
 
-                //int[] Status = new int[] { CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�� �� ��")).Key
-                //                            , CommonDefine.ProjectsStatus.First(x => x.Value.Equals("��@�@��")).Key
-                //                            , CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�������p")).Key 
-                //                            , CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�{�H����")).Key
-                //                            , CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�{�H�J�n")).Key
-                //                            , CommonDefine.ProjectsStatus.First(x => x.Value.Equals("��������")).Key
-                //                            , CommonDefine.ProjectsStatus.First(x => x.Value.Equals("��������")).Key
-                //};
                 int NotOrder = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�� �� ��")).Key;
                 // ----- �r�p�k�쐬
                 // ���ݏڍב䒠�f�[�^����
@@ -269,6 +263,7 @@
                 strSQL += " FROM CONSTRUCTIONLEDGER A, CONSTRUCTIONBASEINFODETAIL B, PERSONINCHARGEMASTER C, CONSTRUCTIONBASEINFO D,";
                 strSQL += " DEPARTMENTMASTER E, CONSTRUCTIONBASEINFO F";
                 strSQL += " WHERE A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND D.TyingFlg != {0}", (int)CommonDefine.BaseInfoTyingFlg.Tying);
                 strSQL += string.Format(" AND (A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE AND B.DETAILNO = {0})", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
                 strSQL += string.Format(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
                 strSQL += " AND D.CONSTRUCTIONPERSONCODE = C.PERSONCODE";
@@ -362,6 +357,7 @@
         {
             IOConstructionLedger LedgerDB = new IOConstructionLedger();
             DataGridView dgv = dgvMaster;
+            ProgressBar prgber = ProgressBar;
             try
             {
                 dgv.SuspendLayout();
@@ -369,7 +365,7 @@
                 dgv.Rows.Clear();
                 pnlPayroll.Visible = false;
 
-                ProgressBar prgber = ProgressBar;
+                // ���̃Z�b�g
                 prgber.Visible = true;
                 prgber.Minimum = 0;
                 prgber.Maximum = 10;
@@ -395,7 +391,7 @@
                 // ���v�G���A
                 int TotalColCnt = Enum.GetNames(typeof(DispColumn)).Length;
                 int[] TotalArea = new int[TotalColCnt];
-                for (int i = (int)DispColumn.OrdersDecisionPrice; i < TotalColCnt; i++) TotalArea[i] = 0;
+                Array.Clear(TotalArea, 0, TotalArea.Length);
 
                 // �f�[�^�\��
                 int ino = 1;
@@ -422,7 +418,7 @@
 
                     // ���v�s�\��
                     int TotalRow = dgv.Rows.Add(1);
-                    dgv.Rows[TotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitle;
+                    dgv.Rows[TotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Execution];
                     // �s�̐F��ς���
                     SetRowColor(dgv.Rows[TotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
 
@@ -431,7 +427,6 @@
                     {
                         dgv.Rows[TotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
                     }
-
                     dgv.Rows.Add();       // ��s
                 }
 
@@ -441,6 +436,8 @@
 
                 // ----- �σf�[�^�\��
                 bool bRowPrint = false;
+                int[] ComplateTotalArea = new int[TotalColCnt];
+                Array.Clear(ComplateTotalArea, 0, ComplateTotalArea.Length);
                 foreach (object[] objwrk in arData)
                 {
                     // ���͊����ȊO�͕\�����Ȃ�
@@ -447,11 +444,34 @@
                     if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) != 1) continue;
 
                     // �O���b�h�փf�[�^�\��
-                    GridDataSet(objwrk, ref ino, ref TotalArea, ref initFlg, ref StatusFlg);
+                    GridDataSet(objwrk, ref ino, ref ComplateTotalArea, ref initFlg, ref StatusFlg);
                     bRowPrint = true;
                 }
-                if (bRowPrint) dgv.Rows.Add();       // ��s
+                // ���v�𑍍��v�ɑ���
+                for (int i = 0; i < ComplateTotalArea.Length;i++ )
+                {
+                    TotalArea[i] += ComplateTotalArea[i];
+                }
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
 
+                // �σf�[�^������Ε\��
+                if (bRowPrint)
+                {
+                    dgv.Rows.Add();       // ��s
+                    int CompTotalRow = dgv.Rows.Add(1);
+                    dgv.Rows[CompTotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Completed];
+                    // �s�̐F��ς���
+                    SetRowColor(dgv.Rows[CompTotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
+                    // ���l�\��
+                    for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                    {
+                        dgv.Rows[CompTotalRow].Cells[i].Value = ComplateTotalArea[i].ToString("#,0");
+                    }
+                }
+                dgv.Rows.Add();       // ��s
+
                 // ProgressBar�̒l��ύX����
                 prgber.Value++;
                 prgber.Update();
@@ -465,7 +485,16 @@
                 prgber.Value++;
                 prgber.Update();
 
-                // �o����x���z�֑����āA���v������
+                // ------ �⏕�U����\������
+                int Auxiliary = SetAuxiliaryCost();
+
+                dgv.Rows.Add();       // ��s
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
+
+                // �o��^�⏕�U�����x���z�֑����āA���v������
                 TotalArea[(int)DispColumn.TotalPayment] += Expenses;
                 TotalArea[(int)DispColumn.GrossProfit] -= Expenses;
                 TotalArea[(int)DispColumn.NetProfit] -= Expenses;
@@ -472,7 +501,7 @@
                 
                 // ----- �����v�s�\��
                 int AllTotalRow = dgv.Rows.Add(1);
-                dgv.Rows[AllTotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_AllTotalTitle;
+                dgv.Rows[AllTotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.AllTotal];
                 
                 // �s�̐F��ς���
                 SetRowColor(dgv.Rows[AllTotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
@@ -496,10 +525,6 @@
                 prgber.Value++;
                 prgber.Update();
 
-                // ProgressBar�̒l��ύX����
-                prgber.Value = prgber.Maximum;
-                prgber.Update();
-                prgber.Visible = false;
             }
             catch (Exception ex)
             {
@@ -518,9 +543,13 @@
                     dgv.RowCount += (CommonDefine.s_MaxInitLineCount - m_initDataCount);
                 }
 
-                LedgerDB.close();
-                LedgerDB = null;
+                LedgerDB.close(); LedgerDB = null;
                 dgv.ResumeLayout();
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value = prgber.Maximum;
+                prgber.Update();
+                prgber.Visible = false;
             }
         }
         #endregion
@@ -550,10 +579,11 @@
                     // �N�x
                     numUDConstPro.Value = CommonMotions.cnvInt(ClsExcute.ProcControlPara[NowPoint].StringSaveParameter[0]);
                 }
-                // �S����
+                // �����S����
                 if (ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Count > 0)
                 {
-                    cmbConstructionPerson.SelectedIndex = ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[0];
+                    cmbConstructionPerson.SelectedIndex = ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[1];
+                    cmbDepartment.SelectedIndex = ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[0];
                 }
 
                 // ��ʎg�p�҂͋��^�̗��������Ȃ��悤�ɂ���
@@ -629,9 +659,9 @@
             {
                 m_initDataLoad = true;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
 
                 string strSQL = string.Empty;
                 // �V�X�e�������ɂ���ăf�[�^�A�N�Z�X�ɐ���������
@@ -756,9 +786,9 @@
                 string strSQL = string.Empty;
                 int DepartmentCode = GetDepartmentCode();
                 if (DepartmentCode == 0)
-                    strSQL = " WHERE EmployeeClassFlg = 1 AND DeleteFlg = 0 Order By DisplayOrder ASC";
+                    strSQL = " WHERE DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC";
                 else
-                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND EmployeeClassFlg = 1 AND DeleteFlg = 0 Order By DisplayOrder ASC", DepartmentCode);
+                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC", DepartmentCode);
 
                 // �S���҃}�X�^�Ǎ�
                 if (!picDB.SelectAction(strSQL, ref workList)) return false;
@@ -1018,6 +1048,43 @@
         }
         #endregion
 
+        #region �H�������̊�����E�����������߂�
+        /// <summary>
+        /// �H�������̊�����E�����������߂�
+        /// </summary>
+        /// <param name="dtStart"></param>
+        /// <param name="dtEnd"></param>
+        private void CreateConstStartAndEndDate(ref DateTime dtStart, ref DateTime dtEnd, int PersonCode = 0)
+        {
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            try
+            {
+                string strSQL = "SELECT MIN(B.CONSTRUCTIONPERIODSTART) ,MAX(B.CONSTRUCTIONPERIODEND)";
+                strSQL += " FROM CONSTRUCTIONLEDGER A, CONSTRUCTIONBASEINFO B";
+                strSQL += " WHERE A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
+                if (PersonCode != 0) strSQL += string.Format(" AND B.CONSTRSUBPERSONCODE = {0}", PersonCode);
+                strSQL += " AND TO_CHAR(B.CONSTRUCTIONPERIODSTART,'YYYY/MM/DD') != '0001/01/01'";
+                strSQL += " AND TO_CHAR(B.CONSTRUCTIONPERIODEND,'YYYY/MM/DD') != '0001/01/01'";
+                ArrayList arList = new ArrayList();
+                if (!BaseDB.ExecuteReader(strSQL, ref arList)) return;
+
+                object[] objList = (object[])arList[0];
+
+                dtStart = CommonMotions.cnvDate(objList[0]);
+                dtEnd = CommonMotions.cnvDate(objList[2]);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                BaseDB.close(); BaseDB = null;
+            }
+        }
+        #endregion
+
         #region �H���ɑ����Ă��Ȃ��o���\������
         /// <summary>
         /// �H���ɑ����Ă��Ȃ��o���\������
@@ -1039,26 +1106,13 @@
                 int ArrayCount = Common.CommonDefine.CostDataNoString.Length;
                 int[] CostValue = new int[ArrayCount];
                 // �\���G���A�N���A
-                for (int i = 0; i < CostValue.Length; i++)
-                {
-                    CostValue[i] = 0;
-                }
+                Array.Clear(CostValue, 0, CostValue.Length);
 
-                DateTime dtStart = DateTime.MinValue;
-                DateTime dtEnd = DateTime.MinValue;
                 // �S���҂��Z�b�g����Ă���ΒS���ҁA�ȊO�͑ΏۑS�Ă��W�v����
                 if (PersonCode != 0)
                 {
-                    // �J�n���擾
-                    dtStart = GetConstructionDate(PersonCode, true);
-                    // �f�[�^�������ꍇ�͊�������Z�b�g����
-                    if (dtStart == DateTime.MinValue) dtStart = dtDefaultStart;
-                    // �I�����擾
-                    dtEnd = GetConstructionDate(PersonCode, false);
-                    if (dtEnd == DateTime.MinValue) dtEnd = dtDefaultEnd;
-
                     // �S���҂��I������Ă���΂��̌o����擾����
-                    GetPersonCostValue(PersonCode, dtStart, dtEnd, ref CostValue);
+                    GetPersonExpensesCostValue(PersonCode, dtDefaultStart, dtDefaultEnd, ref CostValue);
                 }
                 else
                 {
@@ -1069,20 +1123,10 @@
                     for (int ii = 0; ii < PersonArrsy.Count; ii++)
                     {
                         // �W�v�G���A�N���A
-                        for (int i = 0; i < OneCost.Length; i++)
-                        {
-                            OneCost[i] = 0;
-                        }
+                        Array.Clear(OneCost, 0, OneCost.Length);
 
-                        // �J�n���擾
-                        dtStart = GetConstructionDate(PersonArrsy[ii], true);
-                        // �f�[�^�������ꍇ�͊�������Z�b�g����
-                        if (dtStart == DateTime.MinValue) dtStart = dtDefaultStart;
-                        // �I�����擾
-                        dtEnd = GetConstructionDate(PersonArrsy[ii], false);
-                        if (dtEnd == DateTime.MinValue) dtEnd = dtDefaultEnd;
                         // �o��擾
-                        GetPersonCostValue(PersonArrsy[ii], dtStart, dtEnd, ref OneCost);
+                        GetPersonExpensesCostValue(PersonArrsy[ii], dtDefaultStart, dtDefaultEnd, ref OneCost);
                         // �W�v
                         for (int iii = 0; iii < CostValue.Length; iii++)
                         {
@@ -1091,6 +1135,7 @@
                     }
                 }
 
+                // ----- �o��̏W�v
                 DataGridView dgv = dgvMaster;
                 int SumData = 0;
                 for (int i = 1; i < CommonDefine.CostDataNoString.Length; i++)
@@ -1104,22 +1149,101 @@
                     SumData += CostValue[i];
                 }
 
+                dgv.Rows.Add();       // ��s
                 // ----- �o��̌v��\������
                 // �s�쐬
                 int ExpensesCnt = dgv.Rows.Add(1);
                 // �o���
-                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.ConstructionName].Value = s_ExpensesTotalTitle;
+                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Expenses];
                 // ���z�Z�b�g
                 dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = SumData.ToString("#,0");
+                // �s�̐F��ς���
+                SetRowColor(dgv.Rows[ExpensesCnt], s_RowTotalBackColor, s_RowTotalForeColor);
 
-                // �o����W�v���ĕԂ�
-                int Total = 0;
+                return SumData;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        #region ���S���ҁ^�w�����̋��^���擾����
+        /// <summary>
+        /// ���S���ҁ^�w�����̋��^���擾����
+        /// </summary>
+        private int SetAuxiliaryCost()
+        {
+            try
+            {
+                // �����R�[�h�擾
+                int DepartmentCode = GetDepartmentCode();
+                // �S���҃R�[�h�擾
+                int PersonCode = GetConstructionPersonCode();
+
+                int[] CostValue = new int[2];
+                // �\���G���A�N���A
+                Array.Clear(CostValue, 0, CostValue.Length);
+
+                DateTime dtStart = DateTime.MinValue;
+                DateTime dtEnd = DateTime.MinValue;
+                // �S���҂��Z�b�g����Ă���ΒS���ҁA�ȊO�͑ΏۑS�Ă��W�v����
+                if (PersonCode != 0)
+                {
+                    // �S���҂��I������Ă���΂��̌o����擾����
+                    GetPersonAuxiliaryCostValue(PersonCode, ref CostValue);
+                }
+                else
+                {
+                    // �S�����I������Ă��Ȃ���΍��v���W�v����
+                    List<int> PersonArrsy = new List<int>(); ;
+                    if (GetPersonInDepartment(DepartmentCode, ref PersonArrsy) == 0) return 0;
+                    int[] OneCost = new int[2];
+                    for (int i = 0; i < PersonArrsy.Count; i++)
+                    {
+                        // �W�v�G���A�N���A
+                        Array.Clear(OneCost, 0, OneCost.Length);
+
+                        // �o��擾
+                        GetPersonAuxiliaryCostValue(PersonArrsy[i], ref OneCost);
+                        // �W�v
+                        for (int ix = 0; ix < CostValue.Length; ix++)
+                        {
+                            CostValue[ix] += OneCost[ix];
+                        }
+                    }
+                }
+
+                // ----- �⏕�U���̏W�v
+                DataGridView dgv = dgvMaster;
+
+                int SumData = 0;
                 for (int i = 0; i < CostValue.Length; i++)
                 {
-                    Total += CostValue[i];
+                    // �s�쐬
+                    int RowCnt = dgv.Rows.Add(1);
+                    // �o���
+                    dgv.Rows[RowCnt].Cells[(int)DispColumn.ConstructionName].Value = s_GroupTitle[i];
+                    // ���z�Z�b�g
+                    dgv.Rows[RowCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = CostValue[i].ToString("#,0");
+                    SumData += CostValue[i];
                 }
 
-                return Total;
+
+                dgv.Rows.Add();       // ��s
+                // ----- �⏕�U���̌v��\������
+                // �s�쐬
+                int AuxiliaryCnt = dgv.Rows.Add(1);
+                // �o���
+                dgv.Rows[AuxiliaryCnt].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Auxiliary];
+                // ���z�Z�b�g
+                dgv.Rows[AuxiliaryCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = SumData.ToString("#,0");
+                // �s�̐F��ς���
+                SetRowColor(dgv.Rows[AuxiliaryCnt], s_RowTotalBackColor, s_RowTotalForeColor);
+
+                return (CostValue[0] + CostValue[1]);
             }
             catch (Exception ex)
             {
@@ -1169,7 +1293,7 @@
                 BaseDB.close(); BaseDB = null;
             }
         }
-        #endregion �������̒S���҃R�[�h���ꗗ�ŕԂ�
+        #endregion
 
         #region �������̒S���҃R�[�h���ꗗ�ŕԂ�
         /// <summary>
@@ -1185,6 +1309,7 @@
             {
                 string strSQL = string.Format(" WHERE (PERSONCODE IN (SELECT SALESPERSONCODE FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0})", numUDConstPro.Value);
                 strSQL += string.Format(" OR PERSONCODE IN (SELECT CONSTRUCTIONPERSONCODE FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0})", numUDConstPro.Value);
+                strSQL += string.Format(" OR PERSONCODE IN (SELECT CONSTRSUBPERSONCODE FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0})", numUDConstPro.Value);
                 strSQL += string.Format(" OR PERSONCODE IN (SELECT CONSTRUCTIONINSTRUCTOR FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0}))", numUDConstPro.Value);
                 strSQL += " AND EMPLOYEECLASSFLG = 1";
                 if (DepartmentCode != 0)
@@ -1219,7 +1344,7 @@
         /// <param name="dtStart">�J�n���t</param>
         /// <param name="dtEnd">�I�����t</param>
         /// <param name="CostValue">��ږ��o��</param>
-        private void GetPersonCostValue(int PersonCode, DateTime dtStart, DateTime dtEnd, ref int[] CostValue)
+        private void GetPersonExpensesCostValue(int PersonCode, DateTime dtStart, DateTime dtEnd, ref int[] CostValue)
         {
             IOCostDataOfPerson CostDB = new IOCostDataOfPerson();
             try
@@ -1259,6 +1384,54 @@
         }
         #endregion
 
+        #region �S���Җ��̕⏕�U�����擾����
+        /// <summary>
+        /// �S���Җ��̕⏕�U�����擾����
+        /// </summary>
+        /// <param name="PersonCode"></param>
+        /// <param name="CostValue"></param>
+        private void GetPersonAuxiliaryCostValue(int PersonCode, ref int[] CostValue)
+        {
+            IOConstructionLedgerDetail DetailDB = new IOConstructionLedgerDetail();
+            try
+            {
+                // �H���ڍב䒠�f�[�^���⏕�U�����擾����
+                string strSQL = "SELECT A.COMPANYCODE, A.GROUPCOUNT, SUM(A.EXECUTIONAMOUNT)";
+                strSQL += " FROM CONSTRUCTIONLEDGERDETAIL A, CONSTRUCTIONBASEINFO B";
+                strSQL += string.Format(" WHERE (A.GROUPCOUNT = {0} OR A.GROUPCOUNT = {1})"
+                                        , (int)GroupName_ConstructionLedger.Assistant, (int)GroupName_ConstructionLedger.Instructor);
+                strSQL += string.Format(" AND A.COMPANYCODE = {0}", PersonCode);
+                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND B.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
+                strSQL += " GROUP BY A.COMPANYCODE, A.GROUPCOUNT";
+                strSQL += " ORDER BY A.COMPANYCODE, A.GROUPCOUNT";
+                ArrayList arList = new ArrayList();
+                if (!DetailDB.ExecuteReader(strSQL, ref arList)) return;
+
+                // �擾���ʂ�U�蕪����
+                foreach (object[] wrkobj in arList)
+                {
+                    if (CommonMotions.cnvInt(wrkobj[1]) == (int)GroupName_ConstructionLedger.Assistant)
+                    {
+                        CostValue[0] = CommonMotions.cnvInt(wrkobj[2]);
+                    }
+                    else
+                    {
+                        CostValue[1] = CommonMotions.cnvInt(wrkobj[2]);
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                DetailDB.close(); DetailDB = null;
+            }
+        }
+        #endregion
+
         #region ���^�f�[�^�\������
         /// <summary>
         /// ���^�f�[�^�\������
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.cs	(revision 6)
@@ -0,0 +1,579 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using System.Collections;
+
+using log4net;
+using log4net.Appender;
+using log4net.Repository.Hierarchy;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.DB.Core;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+//*---------------------------- �l�ڍב䒠�ꗗ��� --------------------------*
+//  2016/05/11  Ver1.0.0.0      Create Source           
+//
+//
+//
+//*----------------------------------------------------------------------------*
+namespace ProcessManagement.Forms.DataEntry
+{
+    public partial class FrmConstructionPersonList : Form
+    {
+        #region �g�p��`
+        //log4net���O���g�p����
+        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region �萔
+        #region �\���J����
+        /// <summary>
+        /// �\���J����
+        /// </summary>
+        private enum DispColumn
+        {
+            /// <summary>
+            /// ��
+            /// </summary>
+            No = 0,
+            /// <summary>
+            /// �σt���O
+            /// </summary>
+            ComplateFlg,
+            /// <summary>
+            /// ����
+            /// </summary>
+            Department,
+            /// <summary>
+            /// �S���Җ�
+            /// </summary>
+            PersonName,
+            /// <summary>
+            /// �H���R�[�h
+            /// </summary>
+            ConstructionCode,
+            /// <summary>
+            /// �H������
+            /// </summary>
+            ConstructionName,
+            /// <summary>
+            /// �H���i�����
+            /// </summary>
+            ConstructionStatus,
+            /// <summary>
+            /// �󒍋��z
+            /// </summary>
+            OrdersDecisionPrice,
+            /// <summary>
+            /// ��Ќo��
+            /// </summary>
+            CompanyExpenses,
+            /// <summary>
+            /// �����o��
+            /// </summary>
+            DepartmentExpenses,
+            /// <summary>
+            /// �c�ƌo��
+            /// </summary>
+            SalesExpenses,
+            /// <summary>
+            /// ���x���z
+            /// </summary>
+            TotalPayment,
+            /// <summary>
+            /// �e��
+            /// </summary>
+            GrossProfit,
+            /// <summary>
+            /// ���^
+            /// </summary>
+            Allowance,
+            /// <summary>
+            /// �����v
+            /// </summary>
+            NetProfit,
+        }
+        #endregion
+
+        #region �s�I��F
+        /// <summary>
+        /// �s�I��F
+        /// </summary>
+        private static Color s_RowSelectBackColor = Color.Blue;
+        private static Color s_RowSelectForeColor = Color.White;
+        #endregion
+
+        #region ���v�s�F
+        /// <summary>
+        /// ���v�s�F
+        /// </summary>
+        private static Color s_RowTotalBackColor = Color.Black;
+        private static Color s_RowTotalForeColor = Color.White;
+        #endregion
+
+        #region �s�^�C�g��
+        /// <summary>
+        /// �s�^�C�g�����я�
+        /// </summary>
+        private enum RowTitleNum
+        {
+            /// <summary>
+            /// �{�H�����v�s
+            /// </summary>
+            Execution = 0,
+            /// <summary>
+            /// �����ς�
+            /// </summary>
+            Completed,
+            /// <summary>
+            /// �o��v�s
+            /// </summary>
+            Expenses,
+            /// <summary>
+            /// �⏕�U��
+            /// </summary>
+            Auxiliary,
+            /// <summary>
+            /// �����v�s
+            /// </summary>
+            AllTotal,
+        }
+
+        /// <summary>
+        /// ���v�s�^�C�g��
+        /// </summary>
+        private static string[] s_TotalTitleArray = new string[] {  "���{�@�H�@���@���@�v��",
+                                                                    "�����@���@�ρ@���@�v��",
+                                                                    "���@�o�@�@��@�@�v�@��",
+                                                                    "���U�@���@��@���@�v��",
+                                                                    "�����@���@���@�v�@����",
+                                                                };
+        #endregion
+
+        #region �O���b�h���ڍs�^�C�g��
+        /// <summary>
+        /// �O���b�h���ڍs�^�C�g��
+        /// </summary>
+        private static string[] s_GroupTitle = new string[] {"�� �S �� �� �� �^"
+                                                            ,"�w �� �� �� �^"};
+        #endregion
+        #endregion
+
+        #region �ϐ�
+        /// <summary>
+        /// �t�B�[���h�l�ω��t���O
+        /// </summary>
+        //private bool m_bChengeAns = false;
+
+        /// <summary>
+        /// �������t���O
+        /// </summary>
+        private bool m_initDataLoad = true;
+
+        /// <summary>
+        /// �����Ǎ����f�[�^�J�E���g
+        /// </summary>
+        private int m_initDataCount = 0;
+
+        /// <summary>
+        /// �N���t���O
+        /// </summary>
+        private int m_ExecuteFlg = 0;
+
+        /// <summary>
+        /// �f�[�^�ǉ��{�^���\���t���O
+        /// </summary>
+        private bool m_DataAddtionButton = false;
+        /// <summary>
+        /// �I���{�^�������t���O
+        /// </summary>
+        private bool m_CloseingProcessOff = false;
+
+        #region �O���b�h�J�����T�C�Y
+        /// <summary>
+        /// �O���b�h�J�����T�C�Y
+        /// </summary>
+        int[] m_CellSize = null;
+        #endregion
+
+        #region �t�H�[����
+        /// <summary>
+        /// �t�H�[����
+        /// </summary>
+        private int m_FormWidthSize = 0;
+        #endregion
+
+        #region ���v�O���b�h���T�C�Y
+        /// <summary>
+        /// ���v�O���b�h���T�C�Y
+        /// </summary>
+        private int m_GridWidthSize = 0;
+        #endregion
+        #endregion
+
+        #region �v���p�e�B
+        public int ExecuteFlg
+        {
+            get { return m_ExecuteFlg; }
+            set { m_ExecuteFlg = value; }
+        }
+        /// <summary>
+        /// �f�[�^�ǉ��{�^���\��
+        /// </summary>
+        public bool DataAddtionButton
+        {
+            get { return m_DataAddtionButton; }
+            set { m_DataAddtionButton = value; }
+        }
+        #endregion
+
+        #region �R���X�g���N�^
+        public FrmConstructionPersonList()
+        {
+            InitializeComponent();
+        }
+        #endregion
+        #region �f�X�g���N�^
+        ~FrmConstructionPersonList()
+        {
+            try
+            {
+                GC.Collect();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �~�{�^��
+        /// <summary>
+        /// �~�{�^����������
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmConstructionPersonList_FormClosing(object sender, FormClosingEventArgs e)
+        {
+            if (m_CloseingProcessOff) return;
+
+            // �O�v���Z�X�ɖ߂�
+            ClsExcute.BackProcess();
+        }
+        #endregion
+
+        #region �I���{�^��
+        /// <summary>
+        /// �I���{�^���N���b�N
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnEnd_Click(object sender, EventArgs e)
+        {
+            // �O�v���Z�X�ɖ߂�
+            ClsExcute.BackProcess();
+
+            m_CloseingProcessOff = true;
+            
+            this.Close();
+        }
+        #endregion
+
+        #region �I���{�^��
+        /// <summary>
+        /// �H���I���{�^������
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnDataSelect_Click(object sender, EventArgs e)
+        {
+            // �f�[�^���Ȃ��ꍇ�͔�����
+            if (dgvMaster.RowCount == 0) return;
+            if (CommonMotions.chkCellBlank(dgvMaster.CurrentRow.Cells[(int)DispColumn.ConstructionName].Value)) return;
+
+            // �e�����N��
+            SubProcessExecute(CommonMotions.cnvIntFromStringCode(dgvMaster.CurrentRow.Cells[(int)DispColumn.ConstructionCode].Value.ToString(), "-"));
+        }
+        #endregion
+
+        #region �t�H�[�����[�h
+        /// <summary>
+        /// �����t�H�[�����[�h
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmConstructionBaseInfoList_Load(object sender, EventArgs e)
+        {
+
+            // �R���{�{�b�N�X�����\��
+            InitcmbDepartment();
+            InitcmbPersons();
+            // �R���{�{�b�N�X�Z�b�g
+            m_initDataLoad = true;
+            SetcmbDepartment();
+            m_initDataLoad = true;
+            SetcmbPersons();
+
+            // �O���b�h�����ݒ�
+            SetDisplayObject();
+
+            // �����\��
+            InitDataLoad();
+
+            m_initDataLoad = false;
+        }
+        #endregion
+
+        #region �Z���_�u���N���b�N
+        /// <summary>
+        /// �Z���_�u���N���b�N
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvMaster_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
+        {
+            if (e.RowIndex < 0) return;
+
+            DataGridView dgv = dgvMaster;
+            DataGridViewRow CurRow = dgv.CurrentRow;
+
+            // �f�[�^���Ȃ��ꍇ�͔�����
+            if (dgv.RowCount == 0) return;
+            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionCode].Value)) return;
+            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionName].Value)) return;
+            // ���׍s�ȊO�͏������Ȃ�
+            string strCode = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.ConstructionCode].Value);
+            if (CommonMotions.cnvInt(strCode.Replace("-", "")) == 0) return;
+
+            // �e�����N��
+            SubProcessExecute(CommonMotions.cnvIntFromStringCode(CurRow.Cells[(int)DispColumn.ConstructionCode].Value.ToString(), "-"));
+        }
+        #endregion
+
+        #region Entry�L�[�ł̈ړ�����
+        /// <summary>
+        /// Entry�L�[�ł̈ړ�����
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmConstructionPersonList_KeyDown(object sender, KeyEventArgs e)
+        {
+            //Enter�L�[��������Ă��邩�m�F
+            //Alt��Ctrl�L�[��������Ă��鎞�͖�������
+            if ((e.KeyCode == Keys.Enter) && !e.Alt && !e.Control)
+            {
+                //��������Tab�L�[�������ꂽ���̂悤�ɂ���
+                //Shift��������Ă��鎞�͑O�̃R���g���[���̃t�H�[�J�X���ړ�
+                this.ProcessTabKey(!e.Shift);
+
+                e.Handled = true;
+                //.NET Framework 2.0�ȍ~
+                e.SuppressKeyPress = true;
+            }
+        }
+        #endregion
+
+        #region �f�[�^�R�s�[
+        /// <summary>
+        /// �f�[�^�R�s�[�@�\
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnDataCopy_Click(object sender, EventArgs e)
+        {
+            // ���N���v���Z�X�Z�b�g
+            int NowPoint = ClsExcute.NextProcess((int)ClsExcute.ProcessExecuteNo.ConstructionCopyList);
+            // �����H���ꗗ
+            ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(0);
+
+            // �N���[�Y������OFF�ɂ���B
+            m_CloseingProcessOff = true;
+            // ��ʃN���[�Y
+            this.Close();
+        }
+        #endregion
+
+        #region �c�Ɗ��R���{�{�b�N�X�ύX
+        /// <summary>
+        /// �c�Ɗ��ύX
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void numUDConstPro_ValueChanged(object sender, EventArgs e)
+        {
+            if (m_initDataLoad) return;
+            // �f�[�^�\��
+            DataDisplay();
+        }
+        #endregion
+
+        #region �S���҃R���{�{�b�N�X�ύX
+        /// <summary>
+        /// �S���ҕύX
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void cmbConstructionPerson_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            if (m_initDataLoad) return;
+
+            // �S���ґI���������I����ݒ肷��
+            SetPerosonToDepartment();
+
+            // �f�[�^�\��
+            DataDisplay();
+        }
+        #endregion
+
+        #region �����R���{�{�b�N�X�ύX
+        /// <summary>
+        /// �����R���{�{�b�N�X�ύX
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            if (m_initDataLoad) return;
+            
+            // �S���҃R���{�{�b�N�X�ύX
+            SetcmbPersons();
+
+            // �f�[�^�\��
+            DataDisplay();
+        }
+        #endregion
+
+        #region �t�H�[���T�C�Y�ύX
+        /// <summary>
+        /// �t�H�[���T�C�Y�ύX
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmConstructionPersonList_SizeChanged(object sender, EventArgs e)
+        {
+            if (this.WindowState == FormWindowState.Minimized)
+            {
+                // �ŏ���
+            }
+            else if (this.WindowState == FormWindowState.Maximized)
+            {
+                // �ő剻
+                CellSizeChangesWhenChangingScreenSize(false);
+            }
+            else if (this.WindowState == FormWindowState.Normal)
+            {
+                // �W����
+                CellSizeChangesWhenChangingScreenSize(true);
+            }
+        }
+        #endregion
+
+        #region �O���b�h�}�E�X�A�b�v
+        /// <summary>
+        /// �O���b�h�}�E�X�A�b�v
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvMaster_MouseUp(object sender, MouseEventArgs e)
+        {
+            try
+            {
+                DataGridView dgv = (DataGridView)sender;
+
+                lblCellTotal.Text = string.Empty;
+
+                double dTotal = 0;
+                int DataCnt = 0;
+                int NumericCnt = 0;
+                foreach (DataGridViewCell c in dgv.SelectedCells)
+                {
+                    if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue;
+                    if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue;
+
+                    Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex);
+                    DataCnt++;
+                    dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value);
+                    if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++;
+                }
+                if (DataCnt == 0 || dTotal == 0 || NumericCnt == 0) return;
+                string strTotal = CommonMotions.cnvTruncate(dTotal).ToString("#,#");
+                if (dTotal - System.Math.Floor(dTotal) != 0) strTotal = dTotal.ToString("#,#.00");
+
+                string strwrkData = string.Format(CommonDefine.s_CalculateCellFormat,
+                                                    CommonMotions.cnvTruncate(dTotal / (double)NumericCnt).ToString("#,#"),
+                                                    DataCnt.ToString("#,#"),
+                                                    strTotal);
+                lblCellTotal.Text = strwrkData;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        // �Z���I���s
+        int m_BeforeGridRow = -1;
+        #region �Z���I��ύX
+        /// <summary>
+        /// �Z���ύX���s�̐F��ς���
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvMaster_SelectionChanged(object sender, EventArgs e)
+        {
+            DataGridView dgv = dgvMaster;
+            DataGridViewRow CurRow = dgv.CurrentRow;
+
+            // �f�[�^���Ȃ��ꍇ�͔�����
+            if (dgv.RowCount == 0) return;
+            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionCode].Value) &&
+                CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionName].Value))
+            {
+                return;
+            }
+            else
+            {
+                // ���v�s�͏������Ȃ�
+                string strWork = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.ConstructionName].Value);
+                bool bTitle = false;
+                foreach (string strTitle in s_TotalTitleArray)
+                {
+                    if (strWork.Equals(strTitle))
+                    {
+                        bTitle = true;
+                        break;
+                    }
+                }
+                if (bTitle) return;
+            }
+            // �s�I��F�����ɖ߂�
+            if (m_BeforeGridRow >= 0) DefaultRowChangeColor(m_BeforeGridRow);
+
+            // �I���s����ޔ�
+            m_BeforeGridRow = dgv.CurrentRow.Index;
+            // �s�I��F��ݒ�
+            SelectRowChangeColor(m_BeforeGridRow);
+        }
+        #endregion
+
+        #region �O���b�h����t�H�[�J�X���O�ꂽ�ꍇ
+        /// <summary>
+        /// �O���b�h����t�H�[�J�X���O�ꂽ�ꍇ
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvMaster_Leave(object sender, EventArgs e)
+        {
+            lblCellTotal.Text = string.Empty;
+        }
+        #endregion
+    }
+}
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.designer.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.designer.cs	(revision 6)
@@ -0,0 +1,1226 @@
+﻿namespace ProcessManagement.Forms.DataEntry
+{
+    partial class FrmConstructionPersonList
+    {
+        /// <summary>
+        /// 必要なデザイナ変数です。
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// 使用中のリソースをすべてクリーンアップします。
+        /// </summary>
+        /// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows フォーム デザイナで生成されたコード
+
+        /// <summary>
+        /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
+        /// コード エディタで変更しないでください。
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.btnEnd = new System.Windows.Forms.Button();
+            this.label1 = new System.Windows.Forms.Label();
+            this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.pnlPayroll = new System.Windows.Forms.Panel();
+            this.label54 = new System.Windows.Forms.Label();
+            this.label55 = new System.Windows.Forms.Label();
+            this.label56 = new System.Windows.Forms.Label();
+            this.label53 = new System.Windows.Forms.Label();
+            this.label52 = new System.Windows.Forms.Label();
+            this.label50 = new System.Windows.Forms.Label();
+            this.label51 = new System.Windows.Forms.Label();
+            this.label48 = new System.Windows.Forms.Label();
+            this.label49 = new System.Windows.Forms.Label();
+            this.label46 = new System.Windows.Forms.Label();
+            this.label47 = new System.Windows.Forms.Label();
+            this.label40 = new System.Windows.Forms.Label();
+            this.label41 = new System.Windows.Forms.Label();
+            this.label42 = new System.Windows.Forms.Label();
+            this.label43 = new System.Windows.Forms.Label();
+            this.label44 = new System.Windows.Forms.Label();
+            this.label45 = new System.Windows.Forms.Label();
+            this.label26 = new System.Windows.Forms.Label();
+            this.label30 = new System.Windows.Forms.Label();
+            this.label33 = new System.Windows.Forms.Label();
+            this.label34 = new System.Windows.Forms.Label();
+            this.label38 = new System.Windows.Forms.Label();
+            this.label39 = new System.Windows.Forms.Label();
+            this.label35 = new System.Windows.Forms.Label();
+            this.label36 = new System.Windows.Forms.Label();
+            this.label37 = new System.Windows.Forms.Label();
+            this.label31 = new System.Windows.Forms.Label();
+            this.label32 = new System.Windows.Forms.Label();
+            this.label28 = new System.Windows.Forms.Label();
+            this.label29 = new System.Windows.Forms.Label();
+            this.label27 = new System.Windows.Forms.Label();
+            this.label24 = new System.Windows.Forms.Label();
+            this.label25 = new System.Windows.Forms.Label();
+            this.label8 = new System.Windows.Forms.Label();
+            this.label23 = new System.Windows.Forms.Label();
+            this.label21 = new System.Windows.Forms.Label();
+            this.label22 = new System.Windows.Forms.Label();
+            this.label20 = new System.Windows.Forms.Label();
+            this.label13 = new System.Windows.Forms.Label();
+            this.label10 = new System.Windows.Forms.Label();
+            this.label16 = new System.Windows.Forms.Label();
+            this.label14 = new System.Windows.Forms.Label();
+            this.label17 = new System.Windows.Forms.Label();
+            this.label15 = new System.Windows.Forms.Label();
+            this.label11 = new System.Windows.Forms.Label();
+            this.label9 = new System.Windows.Forms.Label();
+            this.cmbDepartment = new System.Windows.Forms.ComboBox();
+            this.label5 = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
+            this.numUDConstPro = new System.Windows.Forms.NumericUpDown();
+            this.cmbConstructionPerson = new System.Windows.Forms.ComboBox();
+            this.label3 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.label7 = new System.Windows.Forms.Label();
+            this.lblCellTotal = new System.Windows.Forms.Label();
+            this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.ProgressBar = new System.Windows.Forms.ProgressBar();
+            this.groupBox1.SuspendLayout();
+            this.pnlPayroll.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // btnEnd
+            // 
+            this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnEnd.BackColor = System.Drawing.Color.Blue;
+            this.btnEnd.ForeColor = System.Drawing.Color.White;
+            this.btnEnd.Location = new System.Drawing.Point(1210, 619);
+            this.btnEnd.Name = "btnEnd";
+            this.btnEnd.Size = new System.Drawing.Size(120, 30);
+            this.btnEnd.TabIndex = 8;
+            this.btnEnd.Text = "終　了";
+            this.btnEnd.UseVisualStyleBackColor = false;
+            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
+            // 
+            // label1
+            // 
+            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top;
+            this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
+            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label1.ForeColor = System.Drawing.Color.Black;
+            this.label1.Location = new System.Drawing.Point(420, 10);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(500, 20);
+            this.label1.TabIndex = 6;
+            this.label1.Text = "担　当　者　別　台　帳　一　覧";
+            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // groupBox1
+            // 
+            this.groupBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
+            this.groupBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
+            this.groupBox1.Controls.Add(this.pnlPayroll);
+            this.groupBox1.Controls.Add(this.cmbDepartment);
+            this.groupBox1.Controls.Add(this.label5);
+            this.groupBox1.Controls.Add(this.label2);
+            this.groupBox1.Controls.Add(this.numUDConstPro);
+            this.groupBox1.Controls.Add(this.cmbConstructionPerson);
+            this.groupBox1.Controls.Add(this.label3);
+            this.groupBox1.Controls.Add(this.label4);
+            this.groupBox1.Controls.Add(this.label7);
+            this.groupBox1.ForeColor = System.Drawing.Color.White;
+            this.groupBox1.Location = new System.Drawing.Point(5, 40);
+            this.groupBox1.Name = "groupBox1";
+            this.groupBox1.Size = new System.Drawing.Size(1330, 186);
+            this.groupBox1.TabIndex = 0;
+            this.groupBox1.TabStop = false;
+            // 
+            // pnlPayroll
+            // 
+            this.pnlPayroll.BackColor = System.Drawing.Color.Yellow;
+            this.pnlPayroll.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.pnlPayroll.Controls.Add(this.label54);
+            this.pnlPayroll.Controls.Add(this.label55);
+            this.pnlPayroll.Controls.Add(this.label56);
+            this.pnlPayroll.Controls.Add(this.label53);
+            this.pnlPayroll.Controls.Add(this.label52);
+            this.pnlPayroll.Controls.Add(this.label50);
+            this.pnlPayroll.Controls.Add(this.label51);
+            this.pnlPayroll.Controls.Add(this.label48);
+            this.pnlPayroll.Controls.Add(this.label49);
+            this.pnlPayroll.Controls.Add(this.label46);
+            this.pnlPayroll.Controls.Add(this.label47);
+            this.pnlPayroll.Controls.Add(this.label40);
+            this.pnlPayroll.Controls.Add(this.label41);
+            this.pnlPayroll.Controls.Add(this.label42);
+            this.pnlPayroll.Controls.Add(this.label43);
+            this.pnlPayroll.Controls.Add(this.label44);
+            this.pnlPayroll.Controls.Add(this.label45);
+            this.pnlPayroll.Controls.Add(this.label26);
+            this.pnlPayroll.Controls.Add(this.label30);
+            this.pnlPayroll.Controls.Add(this.label33);
+            this.pnlPayroll.Controls.Add(this.label34);
+            this.pnlPayroll.Controls.Add(this.label38);
+            this.pnlPayroll.Controls.Add(this.label39);
+            this.pnlPayroll.Controls.Add(this.label35);
+            this.pnlPayroll.Controls.Add(this.label36);
+            this.pnlPayroll.Controls.Add(this.label37);
+            this.pnlPayroll.Controls.Add(this.label31);
+            this.pnlPayroll.Controls.Add(this.label32);
+            this.pnlPayroll.Controls.Add(this.label28);
+            this.pnlPayroll.Controls.Add(this.label29);
+            this.pnlPayroll.Controls.Add(this.label27);
+            this.pnlPayroll.Controls.Add(this.label24);
+            this.pnlPayroll.Controls.Add(this.label25);
+            this.pnlPayroll.Controls.Add(this.label8);
+            this.pnlPayroll.Controls.Add(this.label23);
+            this.pnlPayroll.Controls.Add(this.label21);
+            this.pnlPayroll.Controls.Add(this.label22);
+            this.pnlPayroll.Controls.Add(this.label20);
+            this.pnlPayroll.Controls.Add(this.label13);
+            this.pnlPayroll.Controls.Add(this.label10);
+            this.pnlPayroll.Controls.Add(this.label16);
+            this.pnlPayroll.Controls.Add(this.label14);
+            this.pnlPayroll.Controls.Add(this.label17);
+            this.pnlPayroll.Controls.Add(this.label15);
+            this.pnlPayroll.Controls.Add(this.label11);
+            this.pnlPayroll.Controls.Add(this.label9);
+            this.pnlPayroll.Location = new System.Drawing.Point(5, 44);
+            this.pnlPayroll.Name = "pnlPayroll";
+            this.pnlPayroll.Size = new System.Drawing.Size(1320, 136);
+            this.pnlPayroll.TabIndex = 45;
+            this.pnlPayroll.Visible = false;
+            // 
+            // label54
+            // 
+            this.label54.BackColor = System.Drawing.Color.White;
+            this.label54.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label54.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label54.ForeColor = System.Drawing.Color.Black;
+            this.label54.Location = new System.Drawing.Point(1160, 81);
+            this.label54.Name = "label54";
+            this.label54.Size = new System.Drawing.Size(140, 25);
+            this.label54.TabIndex = 85;
+            this.label54.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label55
+            // 
+            this.label55.BackColor = System.Drawing.Color.DodgerBlue;
+            this.label55.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label55.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label55.ForeColor = System.Drawing.Color.Black;
+            this.label55.Location = new System.Drawing.Point(1040, 81);
+            this.label55.Name = "label55";
+            this.label55.Size = new System.Drawing.Size(120, 25);
+            this.label55.TabIndex = 84;
+            this.label55.Text = "人件費差額合計";
+            this.label55.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label56
+            // 
+            this.label56.AutoSize = true;
+            this.label56.BackColor = System.Drawing.Color.Yellow;
+            this.label56.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label56.ForeColor = System.Drawing.Color.Black;
+            this.label56.Location = new System.Drawing.Point(998, 84);
+            this.label56.Name = "label56";
+            this.label56.Size = new System.Drawing.Size(30, 19);
+            this.label56.TabIndex = 83;
+            this.label56.Text = "＝";
+            this.label56.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label53
+            // 
+            this.label53.AutoSize = true;
+            this.label53.BackColor = System.Drawing.Color.Yellow;
+            this.label53.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label53.ForeColor = System.Drawing.Color.Black;
+            this.label53.Location = new System.Drawing.Point(684, 84);
+            this.label53.Name = "label53";
+            this.label53.Size = new System.Drawing.Size(30, 19);
+            this.label53.TabIndex = 82;
+            this.label53.Text = "＋";
+            this.label53.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label52
+            // 
+            this.label52.AutoSize = true;
+            this.label52.BackColor = System.Drawing.Color.Yellow;
+            this.label52.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label52.ForeColor = System.Drawing.Color.Black;
+            this.label52.Location = new System.Drawing.Point(370, 84);
+            this.label52.Name = "label52";
+            this.label52.Size = new System.Drawing.Size(30, 19);
+            this.label52.TabIndex = 81;
+            this.label52.Text = "＋";
+            this.label52.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label50
+            // 
+            this.label50.BackColor = System.Drawing.Color.White;
+            this.label50.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label50.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label50.ForeColor = System.Drawing.Color.Black;
+            this.label50.Location = new System.Drawing.Point(846, 81);
+            this.label50.Name = "label50";
+            this.label50.Size = new System.Drawing.Size(140, 25);
+            this.label50.TabIndex = 80;
+            this.label50.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label51
+            // 
+            this.label51.BackColor = System.Drawing.Color.MistyRose;
+            this.label51.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label51.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label51.ForeColor = System.Drawing.Color.Black;
+            this.label51.Location = new System.Drawing.Point(726, 81);
+            this.label51.Name = "label51";
+            this.label51.Size = new System.Drawing.Size(120, 25);
+            this.label51.TabIndex = 79;
+            this.label51.Text = "指導員差額金額";
+            this.label51.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label48
+            // 
+            this.label48.BackColor = System.Drawing.Color.White;
+            this.label48.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label48.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label48.ForeColor = System.Drawing.Color.Black;
+            this.label48.Location = new System.Drawing.Point(532, 81);
+            this.label48.Name = "label48";
+            this.label48.Size = new System.Drawing.Size(140, 25);
+            this.label48.TabIndex = 78;
+            this.label48.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label49
+            // 
+            this.label49.BackColor = System.Drawing.Color.Beige;
+            this.label49.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label49.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label49.ForeColor = System.Drawing.Color.Black;
+            this.label49.Location = new System.Drawing.Point(412, 81);
+            this.label49.Name = "label49";
+            this.label49.Size = new System.Drawing.Size(120, 25);
+            this.label49.TabIndex = 77;
+            this.label49.Text = "副担当者差額金額";
+            this.label49.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label46
+            // 
+            this.label46.BackColor = System.Drawing.Color.White;
+            this.label46.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label46.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label46.ForeColor = System.Drawing.Color.Black;
+            this.label46.Location = new System.Drawing.Point(218, 81);
+            this.label46.Name = "label46";
+            this.label46.Size = new System.Drawing.Size(140, 25);
+            this.label46.TabIndex = 76;
+            this.label46.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label47
+            // 
+            this.label47.BackColor = System.Drawing.Color.MediumAquamarine;
+            this.label47.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label47.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label47.ForeColor = System.Drawing.Color.Black;
+            this.label47.Location = new System.Drawing.Point(98, 81);
+            this.label47.Name = "label47";
+            this.label47.Size = new System.Drawing.Size(120, 25);
+            this.label47.TabIndex = 75;
+            this.label47.Text = "担当者差額金額";
+            this.label47.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label40
+            // 
+            this.label40.AutoSize = true;
+            this.label40.BackColor = System.Drawing.Color.Yellow;
+            this.label40.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label40.ForeColor = System.Drawing.Color.Black;
+            this.label40.Location = new System.Drawing.Point(370, 59);
+            this.label40.Name = "label40";
+            this.label40.Size = new System.Drawing.Size(30, 19);
+            this.label40.TabIndex = 74;
+            this.label40.Text = "－";
+            this.label40.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label41
+            // 
+            this.label41.BackColor = System.Drawing.Color.MistyRose;
+            this.label41.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label41.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label41.ForeColor = System.Drawing.Color.Black;
+            this.label41.Location = new System.Drawing.Point(412, 56);
+            this.label41.Name = "label41";
+            this.label41.Size = new System.Drawing.Size(120, 25);
+            this.label41.TabIndex = 72;
+            this.label41.Text = "指導員経過給与";
+            this.label41.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label42
+            // 
+            this.label42.BackColor = System.Drawing.Color.White;
+            this.label42.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label42.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label42.ForeColor = System.Drawing.Color.Black;
+            this.label42.Location = new System.Drawing.Point(532, 56);
+            this.label42.Name = "label42";
+            this.label42.Size = new System.Drawing.Size(140, 25);
+            this.label42.TabIndex = 73;
+            this.label42.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label43
+            // 
+            this.label43.BackColor = System.Drawing.Color.White;
+            this.label43.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label43.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label43.ForeColor = System.Drawing.Color.Black;
+            this.label43.Location = new System.Drawing.Point(846, 56);
+            this.label43.Name = "label43";
+            this.label43.Size = new System.Drawing.Size(140, 25);
+            this.label43.TabIndex = 71;
+            this.label43.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label44
+            // 
+            this.label44.BackColor = System.Drawing.Color.MistyRose;
+            this.label44.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label44.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label44.ForeColor = System.Drawing.Color.Black;
+            this.label44.Location = new System.Drawing.Point(726, 56);
+            this.label44.Name = "label44";
+            this.label44.Size = new System.Drawing.Size(120, 25);
+            this.label44.TabIndex = 70;
+            this.label44.Text = "指導員差額金額";
+            this.label44.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label45
+            // 
+            this.label45.AutoSize = true;
+            this.label45.BackColor = System.Drawing.Color.Yellow;
+            this.label45.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label45.ForeColor = System.Drawing.Color.Black;
+            this.label45.Location = new System.Drawing.Point(684, 59);
+            this.label45.Name = "label45";
+            this.label45.Size = new System.Drawing.Size(30, 19);
+            this.label45.TabIndex = 69;
+            this.label45.Text = "＝";
+            this.label45.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label26
+            // 
+            this.label26.AutoSize = true;
+            this.label26.BackColor = System.Drawing.Color.Yellow;
+            this.label26.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label26.ForeColor = System.Drawing.Color.Black;
+            this.label26.Location = new System.Drawing.Point(370, 34);
+            this.label26.Name = "label26";
+            this.label26.Size = new System.Drawing.Size(30, 19);
+            this.label26.TabIndex = 68;
+            this.label26.Text = "－";
+            this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label30
+            // 
+            this.label30.BackColor = System.Drawing.Color.Beige;
+            this.label30.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label30.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label30.ForeColor = System.Drawing.Color.Black;
+            this.label30.Location = new System.Drawing.Point(412, 31);
+            this.label30.Name = "label30";
+            this.label30.Size = new System.Drawing.Size(120, 25);
+            this.label30.TabIndex = 66;
+            this.label30.Text = "副担当者経過給与";
+            this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label33
+            // 
+            this.label33.BackColor = System.Drawing.Color.White;
+            this.label33.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label33.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label33.ForeColor = System.Drawing.Color.Black;
+            this.label33.Location = new System.Drawing.Point(532, 31);
+            this.label33.Name = "label33";
+            this.label33.Size = new System.Drawing.Size(140, 25);
+            this.label33.TabIndex = 67;
+            this.label33.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label34
+            // 
+            this.label34.BackColor = System.Drawing.Color.White;
+            this.label34.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label34.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label34.ForeColor = System.Drawing.Color.Black;
+            this.label34.Location = new System.Drawing.Point(846, 31);
+            this.label34.Name = "label34";
+            this.label34.Size = new System.Drawing.Size(140, 25);
+            this.label34.TabIndex = 65;
+            this.label34.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label38
+            // 
+            this.label38.BackColor = System.Drawing.Color.Beige;
+            this.label38.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label38.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label38.ForeColor = System.Drawing.Color.Black;
+            this.label38.Location = new System.Drawing.Point(726, 31);
+            this.label38.Name = "label38";
+            this.label38.Size = new System.Drawing.Size(120, 25);
+            this.label38.TabIndex = 64;
+            this.label38.Text = "副担当者差額金額";
+            this.label38.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label39
+            // 
+            this.label39.AutoSize = true;
+            this.label39.BackColor = System.Drawing.Color.Yellow;
+            this.label39.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label39.ForeColor = System.Drawing.Color.Black;
+            this.label39.Location = new System.Drawing.Point(684, 34);
+            this.label39.Name = "label39";
+            this.label39.Size = new System.Drawing.Size(30, 19);
+            this.label39.TabIndex = 63;
+            this.label39.Text = "＝";
+            this.label39.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label35
+            // 
+            this.label35.AutoSize = true;
+            this.label35.BackColor = System.Drawing.Color.Yellow;
+            this.label35.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label35.ForeColor = System.Drawing.Color.Black;
+            this.label35.Location = new System.Drawing.Point(370, 9);
+            this.label35.Name = "label35";
+            this.label35.Size = new System.Drawing.Size(30, 19);
+            this.label35.TabIndex = 62;
+            this.label35.Text = "－";
+            this.label35.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label36
+            // 
+            this.label36.BackColor = System.Drawing.Color.MediumAquamarine;
+            this.label36.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label36.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label36.ForeColor = System.Drawing.Color.Black;
+            this.label36.Location = new System.Drawing.Point(412, 6);
+            this.label36.Name = "label36";
+            this.label36.Size = new System.Drawing.Size(120, 25);
+            this.label36.TabIndex = 60;
+            this.label36.Text = "担当者経過給与";
+            this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label37
+            // 
+            this.label37.BackColor = System.Drawing.Color.White;
+            this.label37.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label37.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label37.ForeColor = System.Drawing.Color.Black;
+            this.label37.Location = new System.Drawing.Point(532, 6);
+            this.label37.Name = "label37";
+            this.label37.Size = new System.Drawing.Size(140, 25);
+            this.label37.TabIndex = 61;
+            this.label37.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label31
+            // 
+            this.label31.BackColor = System.Drawing.Color.MistyRose;
+            this.label31.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label31.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label31.ForeColor = System.Drawing.Color.Black;
+            this.label31.Location = new System.Drawing.Point(98, 56);
+            this.label31.Name = "label31";
+            this.label31.Size = new System.Drawing.Size(120, 25);
+            this.label31.TabIndex = 55;
+            this.label31.Text = "指導員振分給与";
+            this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label32
+            // 
+            this.label32.BackColor = System.Drawing.Color.White;
+            this.label32.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label32.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label32.ForeColor = System.Drawing.Color.Black;
+            this.label32.Location = new System.Drawing.Point(218, 56);
+            this.label32.Name = "label32";
+            this.label32.Size = new System.Drawing.Size(140, 25);
+            this.label32.TabIndex = 56;
+            this.label32.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label28
+            // 
+            this.label28.BackColor = System.Drawing.Color.White;
+            this.label28.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label28.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label28.ForeColor = System.Drawing.Color.Black;
+            this.label28.Location = new System.Drawing.Point(846, 6);
+            this.label28.Name = "label28";
+            this.label28.Size = new System.Drawing.Size(140, 25);
+            this.label28.TabIndex = 54;
+            this.label28.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label29
+            // 
+            this.label29.BackColor = System.Drawing.Color.MediumAquamarine;
+            this.label29.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label29.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label29.ForeColor = System.Drawing.Color.Black;
+            this.label29.Location = new System.Drawing.Point(726, 6);
+            this.label29.Name = "label29";
+            this.label29.Size = new System.Drawing.Size(120, 25);
+            this.label29.TabIndex = 53;
+            this.label29.Text = "担当者差額金額";
+            this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label27
+            // 
+            this.label27.AutoSize = true;
+            this.label27.BackColor = System.Drawing.Color.Yellow;
+            this.label27.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label27.ForeColor = System.Drawing.Color.Black;
+            this.label27.Location = new System.Drawing.Point(684, 9);
+            this.label27.Name = "label27";
+            this.label27.Size = new System.Drawing.Size(30, 19);
+            this.label27.TabIndex = 52;
+            this.label27.Text = "＝";
+            this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label24
+            // 
+            this.label24.BackColor = System.Drawing.Color.Beige;
+            this.label24.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label24.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label24.ForeColor = System.Drawing.Color.Black;
+            this.label24.Location = new System.Drawing.Point(98, 31);
+            this.label24.Name = "label24";
+            this.label24.Size = new System.Drawing.Size(120, 25);
+            this.label24.TabIndex = 49;
+            this.label24.Text = "副担当者振分給与";
+            this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label25
+            // 
+            this.label25.BackColor = System.Drawing.Color.White;
+            this.label25.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label25.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label25.ForeColor = System.Drawing.Color.Black;
+            this.label25.Location = new System.Drawing.Point(218, 31);
+            this.label25.Name = "label25";
+            this.label25.Size = new System.Drawing.Size(140, 25);
+            this.label25.TabIndex = 50;
+            this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label8
+            // 
+            this.label8.BackColor = System.Drawing.Color.White;
+            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label8.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label8.ForeColor = System.Drawing.Color.Black;
+            this.label8.Location = new System.Drawing.Point(218, 6);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(140, 25);
+            this.label8.TabIndex = 48;
+            this.label8.Text = "-999,999,999";
+            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label23
+            // 
+            this.label23.BackColor = System.Drawing.Color.MediumAquamarine;
+            this.label23.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label23.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label23.ForeColor = System.Drawing.Color.Black;
+            this.label23.Location = new System.Drawing.Point(98, 6);
+            this.label23.Name = "label23";
+            this.label23.Size = new System.Drawing.Size(120, 25);
+            this.label23.TabIndex = 47;
+            this.label23.Text = "担当者振分給与";
+            this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label21
+            // 
+            this.label21.BackColor = System.Drawing.Color.White;
+            this.label21.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label21.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label21.ForeColor = System.Drawing.Color.Black;
+            this.label21.Location = new System.Drawing.Point(218, 106);
+            this.label21.Name = "label21";
+            this.label21.Size = new System.Drawing.Size(140, 25);
+            this.label21.TabIndex = 46;
+            this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label22
+            // 
+            this.label22.AutoSize = true;
+            this.label22.BackColor = System.Drawing.Color.Yellow;
+            this.label22.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label22.ForeColor = System.Drawing.Color.Black;
+            this.label22.Location = new System.Drawing.Point(370, 109);
+            this.label22.Name = "label22";
+            this.label22.Size = new System.Drawing.Size(30, 19);
+            this.label22.TabIndex = 11;
+            this.label22.Text = "＋";
+            this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label20
+            // 
+            this.label20.BackColor = System.Drawing.Color.DarkOrange;
+            this.label20.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label20.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label20.ForeColor = System.Drawing.Color.Black;
+            this.label20.Location = new System.Drawing.Point(98, 106);
+            this.label20.Name = "label20";
+            this.label20.Size = new System.Drawing.Size(120, 25);
+            this.label20.TabIndex = 11;
+            this.label20.Text = "振分済分純利益";
+            this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label13
+            // 
+            this.label13.AutoSize = true;
+            this.label13.BackColor = System.Drawing.Color.Yellow;
+            this.label13.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label13.ForeColor = System.Drawing.Color.Black;
+            this.label13.Location = new System.Drawing.Point(998, 109);
+            this.label13.Name = "label13";
+            this.label13.Size = new System.Drawing.Size(30, 19);
+            this.label13.TabIndex = 3;
+            this.label13.Text = "＝";
+            this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label10
+            // 
+            this.label10.AutoSize = true;
+            this.label10.BackColor = System.Drawing.Color.Yellow;
+            this.label10.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label10.ForeColor = System.Drawing.Color.Black;
+            this.label10.Location = new System.Drawing.Point(684, 109);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(30, 19);
+            this.label10.TabIndex = 8;
+            this.label10.Text = "＋";
+            this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label16
+            // 
+            this.label16.BackColor = System.Drawing.Color.White;
+            this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label16.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label16.ForeColor = System.Drawing.Color.Black;
+            this.label16.Location = new System.Drawing.Point(532, 106);
+            this.label16.Name = "label16";
+            this.label16.Size = new System.Drawing.Size(140, 25);
+            this.label16.TabIndex = 7;
+            this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label14
+            // 
+            this.label14.BackColor = System.Drawing.Color.White;
+            this.label14.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label14.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label14.ForeColor = System.Drawing.Color.Black;
+            this.label14.Location = new System.Drawing.Point(1160, 106);
+            this.label14.Name = "label14";
+            this.label14.Size = new System.Drawing.Size(140, 25);
+            this.label14.TabIndex = 5;
+            this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label17
+            // 
+            this.label17.BackColor = System.Drawing.Color.DarkOrange;
+            this.label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label17.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label17.ForeColor = System.Drawing.Color.Black;
+            this.label17.Location = new System.Drawing.Point(412, 106);
+            this.label17.Name = "label17";
+            this.label17.Size = new System.Drawing.Size(120, 25);
+            this.label17.TabIndex = 6;
+            this.label17.Text = "未振分粗利益";
+            this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label15
+            // 
+            this.label15.BackColor = System.Drawing.Color.DarkOrange;
+            this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label15.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label15.ForeColor = System.Drawing.Color.Black;
+            this.label15.Location = new System.Drawing.Point(1040, 106);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(120, 25);
+            this.label15.TabIndex = 4;
+            this.label15.Text = "利益金額";
+            this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label11
+            // 
+            this.label11.BackColor = System.Drawing.Color.White;
+            this.label11.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label11.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label11.ForeColor = System.Drawing.Color.Black;
+            this.label11.Location = new System.Drawing.Point(846, 106);
+            this.label11.Name = "label11";
+            this.label11.Size = new System.Drawing.Size(140, 25);
+            this.label11.TabIndex = 1;
+            this.label11.Text = "-999,999,999";
+            this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label9
+            // 
+            this.label9.BackColor = System.Drawing.Color.DodgerBlue;
+            this.label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label9.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label9.ForeColor = System.Drawing.Color.Black;
+            this.label9.Location = new System.Drawing.Point(726, 106);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(120, 25);
+            this.label9.TabIndex = 0;
+            this.label9.Text = "人件費差額合計";
+            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // cmbDepartment
+            // 
+            this.cmbDepartment.BackColor = System.Drawing.Color.White;
+            this.cmbDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbDepartment.FormattingEnabled = true;
+            this.cmbDepartment.Location = new System.Drawing.Point(408, 15);
+            this.cmbDepartment.Name = "cmbDepartment";
+            this.cmbDepartment.Size = new System.Drawing.Size(200, 23);
+            this.cmbDepartment.TabIndex = 1;
+            this.cmbDepartment.SelectedIndexChanged += new System.EventHandler(this.cmbDepartment_SelectedIndexChanged);
+            // 
+            // label5
+            // 
+            this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label5.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label5.ForeColor = System.Drawing.Color.Black;
+            this.label5.Location = new System.Drawing.Point(280, 14);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(120, 25);
+            this.label5.TabIndex = 40;
+            this.label5.Text = "担当部署";
+            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label2
+            // 
+            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label2.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label2.ForeColor = System.Drawing.Color.Black;
+            this.label2.Location = new System.Drawing.Point(6, 14);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(120, 25);
+            this.label2.TabIndex = 38;
+            this.label2.Text = "営業期";
+            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // numUDConstPro
+            // 
+            this.numUDConstPro.BackColor = System.Drawing.Color.White;
+            this.numUDConstPro.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.numUDConstPro.ForeColor = System.Drawing.Color.Black;
+            this.numUDConstPro.Location = new System.Drawing.Point(159, 15);
+            this.numUDConstPro.Name = "numUDConstPro";
+            this.numUDConstPro.ReadOnly = true;
+            this.numUDConstPro.Size = new System.Drawing.Size(80, 23);
+            this.numUDConstPro.TabIndex = 0;
+            this.numUDConstPro.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
+            // 
+            // cmbConstructionPerson
+            // 
+            this.cmbConstructionPerson.BackColor = System.Drawing.Color.White;
+            this.cmbConstructionPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbConstructionPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbConstructionPerson.FormattingEnabled = true;
+            this.cmbConstructionPerson.Location = new System.Drawing.Point(752, 15);
+            this.cmbConstructionPerson.Name = "cmbConstructionPerson";
+            this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 23);
+            this.cmbConstructionPerson.TabIndex = 2;
+            this.cmbConstructionPerson.SelectedIndexChanged += new System.EventHandler(this.cmbConstructionPerson_SelectedIndexChanged);
+            // 
+            // label3
+            // 
+            this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label3.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label3.ForeColor = System.Drawing.Color.Black;
+            this.label3.Location = new System.Drawing.Point(624, 14);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(120, 25);
+            this.label3.TabIndex = 4;
+            this.label3.Text = "工事担当者";
+            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label4
+            // 
+            this.label4.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label4.ForeColor = System.Drawing.Color.Black;
+            this.label4.Location = new System.Drawing.Point(239, 18);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(25, 16);
+            this.label4.TabIndex = 0;
+            this.label4.Text = "期";
+            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label7
+            // 
+            this.label7.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label7.ForeColor = System.Drawing.Color.Black;
+            this.label7.Location = new System.Drawing.Point(134, 18);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(25, 16);
+            this.label7.TabIndex = 0;
+            this.label7.Text = "第";
+            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // lblCellTotal
+            // 
+            this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.lblCellTotal.AutoSize = true;
+            this.lblCellTotal.BackColor = System.Drawing.Color.Black;
+            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lblCellTotal.ForeColor = System.Drawing.Color.White;
+            this.lblCellTotal.Location = new System.Drawing.Point(200, 628);
+            this.lblCellTotal.Name = "lblCellTotal";
+            this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
+            this.lblCellTotal.TabIndex = 29;
+            // 
+            // dgvMaster
+            // 
+            this.dgvMaster.AllowUserToAddRows = false;
+            this.dgvMaster.AllowUserToDeleteRows = false;
+            this.dgvMaster.AllowUserToResizeColumns = false;
+            this.dgvMaster.AllowUserToResizeRows = false;
+            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.dgvMaster.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgvMaster.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.dgvMaster.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+            this.dgvMaster.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+            this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1,
+            this.Column14,
+            this.Column2,
+            this.Column3,
+            this.Column5,
+            this.Column6,
+            this.Column7,
+            this.Column8,
+            this.Column9,
+            this.Column10,
+            this.Column12});
+            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle14.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle14.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
+            dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvMaster.DefaultCellStyle = dataGridViewCellStyle14;
+            this.dgvMaster.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
+            this.dgvMaster.Location = new System.Drawing.Point(5, 232);
+            this.dgvMaster.Name = "dgvMaster";
+            this.dgvMaster.RowHeadersVisible = false;
+            this.dgvMaster.RowHeadersWidth = 20;
+            this.dgvMaster.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dgvMaster.RowTemplate.Height = 21;
+            this.dgvMaster.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dgvMaster.Size = new System.Drawing.Size(1330, 380);
+            this.dgvMaster.TabIndex = 5;
+            this.dgvMaster.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvMaster_CellDoubleClick);
+            this.dgvMaster.SelectionChanged += new System.EventHandler(this.dgvMaster_SelectionChanged);
+            this.dgvMaster.Leave += new System.EventHandler(this.dgvMaster_Leave);
+            this.dgvMaster.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvMaster_MouseUp);
+            // 
+            // Column1
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle3;
+            this.Column1.Frozen = true;
+            this.Column1.HeaderText = "№";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column1.Width = 50;
+            // 
+            // Column14
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column14.DefaultCellStyle = dataGridViewCellStyle4;
+            this.Column14.Frozen = true;
+            this.Column14.HeaderText = "部署";
+            this.Column14.Name = "Column14";
+            this.Column14.ReadOnly = true;
+            this.Column14.Width = 200;
+            // 
+            // Column2
+            // 
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle5;
+            this.Column2.Frozen = true;
+            this.Column2.HeaderText = "担当者名";
+            this.Column2.Name = "Column2";
+            this.Column2.ReadOnly = true;
+            this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column2.Width = 200;
+            // 
+            // Column3
+            // 
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle6;
+            this.Column3.Frozen = true;
+            this.Column3.HeaderText = "工事コード";
+            this.Column3.Name = "Column3";
+            this.Column3.ReadOnly = true;
+            this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column3.Visible = false;
+            this.Column3.Width = 5;
+            // 
+            // Column5
+            // 
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle7.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle7;
+            this.Column5.Frozen = true;
+            this.Column5.HeaderText = "受注金額";
+            this.Column5.Name = "Column5";
+            this.Column5.ReadOnly = true;
+            this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column5.Width = 140;
+            // 
+            // Column6
+            // 
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle8.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column6.DefaultCellStyle = dataGridViewCellStyle8;
+            this.Column6.HeaderText = "会社経費";
+            this.Column6.Name = "Column6";
+            this.Column6.ReadOnly = true;
+            this.Column6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column6.Width = 120;
+            // 
+            // Column7
+            // 
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle9.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column7.DefaultCellStyle = dataGridViewCellStyle9;
+            this.Column7.HeaderText = "部署経費";
+            this.Column7.Name = "Column7";
+            this.Column7.ReadOnly = true;
+            this.Column7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column7.Width = 120;
+            // 
+            // Column8
+            // 
+            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle10.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column8.DefaultCellStyle = dataGridViewCellStyle10;
+            this.Column8.HeaderText = "営業経費";
+            this.Column8.Name = "Column8";
+            this.Column8.ReadOnly = true;
+            this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column8.Width = 120;
+            // 
+            // Column9
+            // 
+            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle11.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column9.DefaultCellStyle = dataGridViewCellStyle11;
+            this.Column9.HeaderText = "総支払額";
+            this.Column9.Name = "Column9";
+            this.Column9.ReadOnly = true;
+            this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column9.Width = 120;
+            // 
+            // Column10
+            // 
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle12.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column10.DefaultCellStyle = dataGridViewCellStyle12;
+            this.Column10.HeaderText = "粗　利";
+            this.Column10.Name = "Column10";
+            this.Column10.ReadOnly = true;
+            this.Column10.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column10.Width = 120;
+            // 
+            // Column12
+            // 
+            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle13.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column12.DefaultCellStyle = dataGridViewCellStyle13;
+            this.Column12.HeaderText = "純利益";
+            this.Column12.Name = "Column12";
+            this.Column12.ReadOnly = true;
+            this.Column12.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column12.Width = 120;
+            // 
+            // ProgressBar
+            // 
+            this.ProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.ProgressBar.Location = new System.Drawing.Point(5, 619);
+            this.ProgressBar.Name = "ProgressBar";
+            this.ProgressBar.Size = new System.Drawing.Size(388, 30);
+            this.ProgressBar.TabIndex = 30;
+            this.ProgressBar.Visible = false;
+            // 
+            // FrmConstructionPersonList
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
+            this.BackColor = System.Drawing.Color.Black;
+            this.ClientSize = new System.Drawing.Size(1340, 657);
+            this.Controls.Add(this.ProgressBar);
+            this.Controls.Add(this.lblCellTotal);
+            this.Controls.Add(this.dgvMaster);
+            this.Controls.Add(this.groupBox1);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.btnEnd);
+            this.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
+            this.KeyPreview = true;
+            this.MinimizeBox = false;
+            this.Name = "FrmConstructionPersonList";
+            this.ShowIcon = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmConstructionPersonList_FormClosing);
+            this.Load += new System.EventHandler(this.FrmConstructionBaseInfoList_Load);
+            this.SizeChanged += new System.EventHandler(this.FrmConstructionPersonList_SizeChanged);
+            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmConstructionPersonList_KeyDown);
+            this.groupBox1.ResumeLayout(false);
+            this.pnlPayroll.ResumeLayout(false);
+            this.pnlPayroll.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button btnEnd;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.GroupBox groupBox1;
+        private System.Windows.Forms.Label label7;
+        private CustomControls.DataGridViewEX dgvMaster;
+        private System.Windows.Forms.ComboBox cmbConstructionPerson;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.NumericUpDown numUDConstPro;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.ComboBox cmbDepartment;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Panel pnlPayroll;
+        private System.Windows.Forms.Label label9;
+        private System.Windows.Forms.Label label16;
+        private System.Windows.Forms.Label label17;
+        private System.Windows.Forms.Label label14;
+        private System.Windows.Forms.Label label15;
+        private System.Windows.Forms.Label label13;
+        private System.Windows.Forms.Label label11;
+        private System.Windows.Forms.Label lblCellTotal;
+        private System.Windows.Forms.Label label10;
+        private System.Windows.Forms.Label label21;
+        private System.Windows.Forms.Label label22;
+        private System.Windows.Forms.Label label20;
+        private System.Windows.Forms.ProgressBar ProgressBar;
+        private System.Windows.Forms.Label label35;
+        private System.Windows.Forms.Label label36;
+        private System.Windows.Forms.Label label37;
+        private System.Windows.Forms.Label label31;
+        private System.Windows.Forms.Label label32;
+        private System.Windows.Forms.Label label28;
+        private System.Windows.Forms.Label label29;
+        private System.Windows.Forms.Label label27;
+        private System.Windows.Forms.Label label24;
+        private System.Windows.Forms.Label label25;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.Label label23;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
+        private System.Windows.Forms.Label label54;
+        private System.Windows.Forms.Label label55;
+        private System.Windows.Forms.Label label56;
+        private System.Windows.Forms.Label label53;
+        private System.Windows.Forms.Label label52;
+        private System.Windows.Forms.Label label50;
+        private System.Windows.Forms.Label label51;
+        private System.Windows.Forms.Label label48;
+        private System.Windows.Forms.Label label49;
+        private System.Windows.Forms.Label label46;
+        private System.Windows.Forms.Label label47;
+        private System.Windows.Forms.Label label40;
+        private System.Windows.Forms.Label label41;
+        private System.Windows.Forms.Label label42;
+        private System.Windows.Forms.Label label43;
+        private System.Windows.Forms.Label label44;
+        private System.Windows.Forms.Label label45;
+        private System.Windows.Forms.Label label26;
+        private System.Windows.Forms.Label label30;
+        private System.Windows.Forms.Label label33;
+        private System.Windows.Forms.Label label34;
+        private System.Windows.Forms.Label label38;
+        private System.Windows.Forms.Label label39;
+    }
+}
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.resx
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.resx	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.resx	(revision 6)
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column14.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column12.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonListAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonListAuxiliary.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonListAuxiliary.cs	(revision 6)
@@ -0,0 +1,1719 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using System.Collections;
+using System.Diagnostics;
+using System.Threading;
+
+using log4net;
+using log4net.Appender;
+using log4net.Repository.Hierarchy;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.DB.Core;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+//*---------------------------- �H���ڍב䒠�ꗗ��� --------------------------*
+//  2016/05/11  Ver1.0.0.0      Create Source           
+//
+//
+//
+//*----------------------------------------------------------------------------*
+namespace ProcessManagement.Forms.DataEntry
+{
+    partial class FrmConstructionPersonList
+    {
+        #region �萔
+        private const string StaticSQL1 = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DetailString, A.SalesPersonCode, A.ConstructionPersonCode, A.ConstructionStatusFlg ";
+        private const string StaticSQL2 = "From ConstructionBaseInfo A, ConstructionBaseInfoDetail B";
+        #endregion
+
+        #region �ϐ�
+        #endregion
+
+        #region �v���p�e�B
+        #endregion
+
+        #region �\���I�u�W�F�N�g�̎擾
+        /// <summary>
+        /// �\���I�u�W�F�N�g�̎擾
+        /// </summary>
+        private void SetDisplayObject()
+        {
+            // �t�H�[���T�C�Y�擾
+            m_FormWidthSize = this.Width;
+
+            DataGridView dgv = dgvMaster;
+            // �O���b�h�̏����擾����
+            m_GridWidthSize = dgv.Width;
+
+            // �O���b�h�J�������擾
+            int ColCount = Enum.GetNames(typeof(DispColumn)).Length;
+            m_CellSize = new int[ColCount];
+            foreach (DataGridViewColumn wrkCell in dgvMaster.Columns)
+            {
+                m_CellSize[wrkCell.Index] = wrkCell.Width;
+            }
+        }
+        #endregion
+
+        #region ���v���Z�X�N��
+        /// <summary>
+        /// �H���ꗗ���N������v���Z�X�I������
+        /// </summary>
+        /// <param name="para_ConstructionCode"></param>
+        private void SubProcessExecute(int para_ConstructionCode = 0)
+        {
+            try
+            {
+                int NowPoint = ClsExcute.GetNowProcessPoint();
+                // ���ݐݒ�l�N���A
+                ClsExcute.ClearSaveParameter(NowPoint);
+                // ----- ��ʏ��ޔ�
+                // �����N
+                ClsExcute.ProcControlPara[NowPoint].StringSaveParameter.Add(numUDConstPro.Value.ToString());
+                // ��������
+                ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(cmbDepartment.SelectedIndex);
+                // �����S����
+                ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(cmbConstructionPerson.SelectedIndex);
+                // �\�[�g���
+                if (dgvMaster.SortedColumn != null)
+                {
+                    ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add((int)dgvMaster.SortedColumn.Index);
+                    ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add((int)dgvMaster.SortOrder);
+                }
+
+                // ���N���v���Z�X�Z�b�g
+                NowPoint = ClsExcute.NextProcess((int)(int)ClsExcute.ProcessExecuteNo.ConstructionLedger);
+                // �I���H���ԍ��Z�b�g
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(para_ConstructionCode);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                // �N���[�Y������OFF�ɂ���B
+                m_CloseingProcessOff = true;
+                // ��ʃN���[�Y
+                this.Close();
+            }
+        }
+        #endregion
+
+        #region ����SQL�̃Z�L�����e�B���蕔�����쐬����
+        /// <summary>
+        /// ����SQL�̃Z�L�����e�B���蕔�����쐬����
+        /// </summary>
+        /// <param name="strSQL"></param>
+        private void CreateSecuritySQL(ref List<string> strSecurity)
+        {
+            string strSQL1 = string.Empty;
+            string strSQL2 = string.Empty;
+            try
+            {
+                // �����������҂̓f�[�^�Q�Əo���鏈��������
+                if (ClsSecurityPermission.PermitGeneralAffairsDevision(m_ExecuteFlg)) return;
+
+                // �V�X�e�������ɂ���ăf�[�^�A�N�Z�X�ɐ���������
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement)
+                {
+                    // �V�X�e���Ǘ��ҁi���ׂđΏہj
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key)
+                {
+                    // �ō��@���Ǘ��ҁi���ׂđΏہj
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
+                {
+                    // �����@���Ǘ��ҁi�@�\�����j
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
+                {
+                    // �@���Ǘ��ҁi�������̂݁j
+                    strSQL1 = string.Format(" AND C.DepartmentCode = {0}", CommonMotions.LoginUserData.DepartmentCode);
+                    strSQL2 = string.Format(" AND (A.CREATORCODE = C.PERSONCODE AND C.DEPARTMENTCODE = {0})", CommonMotions.LoginUserData.DepartmentCode);
+                    strSecurity.Add(strSQL1);
+                    strSecurity.Add(strSQL2);
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
+                {
+                    // ��ʎg�p�ҁi���f�[�^�̂݁j
+                    //strSQL1 = string.Format(" AND C.PERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL1 = string.Format(" AND (A.CONSTRUCTIONPERSONCODE = {0} OR A.CONSTRUCTIONINSTRUCTOR = {0})"
+                                                                        , CommonMotions.LoginUserData.PersonCode);
+                    //strSQL2 = string.Format(" AND (A.CREATORCODE = C.PERSONCODE AND C.DEPARTMENTCODE = {0})", CommonMotions.LoginUserData.DepartmentCode);
+                    strSQL2 = " AND A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE";
+                    strSQL2 += string.Format(" AND (D.CONSTRUCTIONPERSONCODE = {0} OR D.CONSTRUCTIONINSTRUCTOR = {0} OR D.CONSTRSUBPERSONCODE = {0})"
+                                                                        , CommonMotions.LoginUserData.PersonCode);
+                    strSecurity.Add(strSQL1);
+                    strSecurity.Add(strSQL2);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}�F{2}", ex.Message, strSQL1, strSQL2);
+            }
+        }
+        #endregion
+
+        #region �����R���{���S���҃R�[�h���擾����
+        /// <summary>
+        /// �����R���{���S���҃R�[�h���擾����
+        /// </summary>
+        /// <returns></returns>
+        private int GetDepartmentCode()
+        {
+            try
+            {
+                // �\������Ă��Ȃ��ꍇ�͑I��
+                //if (!cmbDepartment.Visible) return 0;
+
+                return CommonMotions.cnvInt(cmbDepartment.SelectedValue);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}", ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        #region �S���҃R���{���S���҃R�[�h���擾����
+        /// <summary>
+        /// �S���҃R���{���S���҃R�[�h���擾����
+        /// </summary>
+        /// <returns></returns>
+        private int GetConstructionPersonCode()
+        {
+            try
+            {
+                // �\������Ă��Ȃ��ꍇ�͑I��
+                //if (!cmbConstructionPerson.Visible) return 0;
+
+                return CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}", ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        #region �c�a�擾����
+        /// <summary>
+        /// �c�a�擾����
+        /// </summary>
+        private enum DBGetData
+        {
+            ConstructionCode,
+            CreatorCode,
+            CreatorName,
+            DetailString,
+            OrdersDecisionPrice,
+            CompanyExpenses,
+            DepartmentExpenses,
+            SalesExpenses,
+            TotalPayment,
+            GrossProfit,
+            Allowance,
+            NetProfit,
+            ComplateFlg,
+            DepartmentDisplayOrder,
+            PoersonDisplayOrder,
+            DepartmentCode,
+            DepartmentString,
+            ConstructionStatusflg
+        }
+        #endregion
+
+        #region �f�[�^�擾SQL�쐬
+        /// <summary>
+        /// �\���p�f�[�^�擾SQL�쐬
+        /// </summary>
+        private void CreateInitSQL(ref string strSQL)
+        {
+            try
+            {
+                // SQL�ɃA�N�Z�X������������
+                List<string> strSecurity = new List<string>();
+                CreateSecuritySQL(ref strSecurity);
+
+                // �����R���{�{�b�N�X�l�擾
+                int DepartmentCode = GetDepartmentCode();
+                // �S���҃R���{�{�b�N�X�l�擾
+                int PersonCode = GetConstructionPersonCode();
+
+                int NotOrder = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�� �� ��")).Key;
+                // ----- �r�p�k�쐬
+                // ���ݏڍב䒠�f�[�^����
+                //strSQL += " UNION";
+                strSQL = " SELECT A.CONSTRUCTIONCODE, A.CREATORCODE, A.CREATORNAME, B.DETAILSTRING, A.ORDERSDECISIONPRICE, A.COMPANYEXPENSES,";
+                strSQL += " A.DEPARTMENTEXPENSES, A.SALESEXPENSES, A.TOTALPAYMENT, A.GROSSPROFIT, A.ALLOWANCE, A.NETPROFIT, A.COMPLATEFLG,";
+                strSQL += " E.DISPLAYORDER, C.DISPLAYORDER, C.DEPARTMENTCODE, E.DepartmentString, F.CONSTRUCTIONSTATUSFLG";
+                strSQL += " FROM CONSTRUCTIONLEDGER A, CONSTRUCTIONBASEINFODETAIL B, PERSONINCHARGEMASTER C, CONSTRUCTIONBASEINFO D,";
+                strSQL += " DEPARTMENTMASTER E, CONSTRUCTIONBASEINFO F";
+                strSQL += " WHERE A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND (A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE AND B.DETAILNO = {0})", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
+                strSQL += string.Format(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
+                strSQL += " AND D.CONSTRUCTIONPERSONCODE = C.PERSONCODE";
+                strSQL += " AND C.DEPARTMENTCODE = E.DEPARTMENTCODE";
+                strSQL += " AND A.CONSTRUCTIONCODE = F.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND D.CONSTRUCTIONSTATUSFLG != {0}", NotOrder);
+                strSQL += " AND A.CREATORCODE = C.PERSONCODE";
+                if (strSecurity.Count > 0) strSQL += strSecurity[1];
+                if (DepartmentCode != 0) strSQL += string.Format(" AND C.DEPARTMENTCODE = {0}", DepartmentCode);
+                if (PersonCode != 0)
+                {
+                    strSQL += string.Format(" AND (D.CONSTRUCTIONPERSONCODE = {0} OR D.CONSTRUCTIONINSTRUCTOR = {0} OR D.CONSTRSUBPERSONCODE = {0})", PersonCode);
+                }
+
+                strSQL += string.Format(" ORDER BY {0} ASC, {1} ASC, {2} ASC, {3} ASC, {4} ASC",
+                                                    ((int)DBGetData.ComplateFlg + 1),
+                                                    ((int)DBGetData.DepartmentDisplayOrder + 1),
+                                                    ((int)DBGetData.ConstructionStatusflg + 1),
+                                                    ((int)DBGetData.PoersonDisplayOrder + 1),
+                                                    ((int)DBGetData.ConstructionCode + 1));
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", ex.Message, strSQL);
+            }
+        }
+        #endregion
+
+        #region �O���b�h�s�f�[�^�Z�b�g
+        /// <summary>
+        /// �O���b�h�s�f�[�^�Z�b�g
+        /// </summary>
+        /// <param name="objwrk"></param>
+        /// <param name="ino"></param>
+        /// <param name="TotalArea"></param>
+        /// <param name="initFlg"></param>
+        /// <param name="StatusFlg"></param>
+        private void GridDataSet(object[] objwrk, ref int ino, ref int[] TotalArea, ref bool initFlg, ref int StatusFlg)
+        {
+            try
+            {
+                int diffCount = (int)DispColumn.OrdersDecisionPrice - (int)DBGetData.OrdersDecisionPrice;
+
+                // ���͊����̓t���O���g��
+                string FlgString = string.Empty;
+                if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) == 1) FlgString = "��";
+
+                // �X�e�[�^�X�t���O���Ⴆ��1�s�J����
+                if (StatusFlg != CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionStatusflg]))
+                {
+                    StatusFlg = CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionStatusflg]);
+                    if (!initFlg) dgvMaster.Rows.Add(1);
+                    initFlg = false;
+                }
+                string strStatus = CommonDefine.ProjectsStatus[CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionStatusflg])];
+                dgvMaster.Rows.Add((ino++)
+                                    , FlgString
+                                    , CommonMotions.cnvString(objwrk[(int)DBGetData.DepartmentString])
+                                    , objwrk[(int)DBGetData.CreatorName].ToString()
+                                    , CommonMotions.cnvStringCodeFromInt(CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionCode]), "-", 8)
+                                    , objwrk[(int)DBGetData.DetailString].ToString()
+                                    , strStatus
+                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.OrdersDecisionPrice]).ToString("#,0")
+                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.CompanyExpenses]).ToString("#,0")
+                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.DepartmentExpenses]).ToString("#,0")
+                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.SalesExpenses]).ToString("#,0")
+                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.TotalPayment]).ToString("#,0")
+                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.GrossProfit]).ToString("#,0")
+                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.Allowance]).ToString("#,0")
+                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.NetProfit]).ToString("#,0")
+                                    );
+                // ���v���Z
+                for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                {
+                    TotalArea[i] += CommonMotions.cnvInt(objwrk[i - diffCount]);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}", ex.Message);
+            }
+        }
+        #endregion
+
+        #region �f�[�^�\������
+        /// <summary>
+        /// �ꗗ�f�[�^�\������
+        /// </summary>
+        private void DataDisplay()
+        {
+            IOConstructionLedger LedgerDB = new IOConstructionLedger();
+            DataGridView dgv = dgvMaster;
+            ProgressBar prgber = ProgressBar;
+            try
+            {
+                dgv.SuspendLayout();
+
+                dgv.Rows.Clear();
+                pnlPayroll.Visible = false;
+
+                // ���̃Z�b�g
+                prgber.Visible = true;
+                prgber.Minimum = 0;
+                prgber.Maximum = 10;
+                prgber.Value = 0;
+
+                string strSQL = "";
+                // SQL�쐬
+                CreateInitSQL(ref strSQL);
+
+                ArrayList arData = new ArrayList();
+                string FlgString = string.Empty;
+                // �H���ڍב䒠�擾
+                if (!LedgerDB.ExecuteReader(strSQL, ref arData)) return;
+
+                // �Ǎ����f�[�^�J�E���g�擾
+                m_initDataCount = arData.Count;
+                if (arData.Count == 0) return;
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value ++;
+                prgber.Update();
+
+                // ���v�G���A
+                int TotalColCnt = Enum.GetNames(typeof(DispColumn)).Length;
+                int[] TotalArea = new int[TotalColCnt];
+                Array.Clear(TotalArea, 0, TotalArea.Length);
+
+                // �f�[�^�\��
+                int ino = 1;
+                int StatusFlg = -1;
+                bool initFlg = true;
+                string strStatus = string.Empty;
+                // ----- �{�H���f�[�^�\��
+                foreach (object[] objwrk in arData)
+                {
+                    // ���͊����͕\�����Ȃ�
+                    if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) == 1) break;
+
+                    // �O���b�h�փf�[�^�\��
+                    GridDataSet(objwrk, ref ino, ref TotalArea, ref initFlg, ref StatusFlg);
+                }
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
+
+                // ----- ���v�\��
+                if (arData.Count != 0)
+                {
+                    dgv.Rows.Add();       // ��s
+
+                    // ���v�s�\��
+                    int TotalRow = dgv.Rows.Add(1);
+                    dgv.Rows[TotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Execution];
+                    // �s�̐F��ς���
+                    SetRowColor(dgv.Rows[TotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
+
+                    // ���l�\��
+                    for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                    {
+                        dgv.Rows[TotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
+                    }
+                    dgv.Rows.Add();       // ��s
+                }
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
+
+                // ----- �σf�[�^�\��
+                bool bRowPrint = false;
+                int[] ComplateTotalArea = new int[TotalColCnt];
+                Array.Clear(ComplateTotalArea, 0, ComplateTotalArea.Length);
+                foreach (object[] objwrk in arData)
+                {
+                    // ���͊����ȊO�͕\�����Ȃ�
+                    if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) != 1) continue;
+
+                    // �O���b�h�փf�[�^�\��
+                    GridDataSet(objwrk, ref ino, ref ComplateTotalArea, ref initFlg, ref StatusFlg);
+                    bRowPrint = true;
+                }
+                // ���v�𑍍��v�ɑ���
+                for (int i = 0; i < ComplateTotalArea.Length;i++ )
+                {
+                    TotalArea[i] += ComplateTotalArea[i];
+                }
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
+
+                // �σf�[�^������Ε\��
+                if (bRowPrint)
+                {
+                    dgv.Rows.Add();       // ��s
+                    int CompTotalRow = dgv.Rows.Add(1);
+                    dgv.Rows[CompTotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Completed];
+                    // �s�̐F��ς���
+                    SetRowColor(dgv.Rows[CompTotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
+                    // ���l�\��
+                    for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                    {
+                        dgv.Rows[CompTotalRow].Cells[i].Value = ComplateTotalArea[i].ToString("#,0");
+                    }
+                }
+                dgv.Rows.Add();       // ��s
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
+
+                // ----- �o���\������
+                int Expenses = SetOtherCost();
+
+                dgv.Rows.Add();       // ��s
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
+
+                // ------ �⏕�U����\������
+                int Auxiliary = SetAuxiliaryCost();
+
+                dgv.Rows.Add();       // ��s
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
+
+                // �o��^�⏕�U�����x���z�֑����āA���v������
+                TotalArea[(int)DispColumn.TotalPayment] += Expenses;
+                TotalArea[(int)DispColumn.GrossProfit] -= Expenses;
+                TotalArea[(int)DispColumn.NetProfit] -= Expenses;
+                
+                // ----- �����v�s�\��
+                int AllTotalRow = dgv.Rows.Add(1);
+                dgv.Rows[AllTotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.AllTotal];
+                
+                // �s�̐F��ς���
+                SetRowColor(dgv.Rows[AllTotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
+
+                // ���l�\��
+                for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                {
+                    dgv.Rows[AllTotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
+                }
+
+                dgv.Rows.Add();       // ��s
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
+
+                // �S���҂��i�荞�񂾎��ɖ{�l���㒷�͌o�ߋ��^��������i�w�b�_�[�ɕ\���j
+                SetPayrollData();
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value++;
+                prgber.Update();
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                // �f�[�^�������Ȃ�΃\�[�g�ł���
+                if (CommonDefine.s_MaxInitLineCount < dgv.RowCount)
+                {
+                    foreach (DataGridViewColumn wrkCol in dgv.Columns)
+                        wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
+                }
+                else
+                {
+                    dgv.RowCount += (CommonDefine.s_MaxInitLineCount - m_initDataCount);
+                }
+
+                LedgerDB.close(); LedgerDB = null;
+                dgv.ResumeLayout();
+
+                // ProgressBar�̒l��ύX����
+                prgber.Value = prgber.Maximum;
+                prgber.Update();
+                prgber.Visible = false;
+            }
+        }
+        #endregion
+
+        #region �������f�[�^�擾
+        /// <summary>
+        /// �������f�[�^�擾
+        /// </summary>
+        private void InitDataLoad()
+        {
+            try
+            {
+                m_initDataLoad = true;
+                // �f�[�^�ɂ��鎖�Ɗ��ƌ��݂̎��ƃZ�b�g
+                int minval = 0;
+                int maxval = 0;
+                CommonMotions.GetPeriodYear(ref minval, ref maxval);
+                numUDConstPro.Minimum = minval;
+                numUDConstPro.Maximum = maxval;
+                numUDConstPro.Value = CommonMotions.SystemMasterData.BusinessPeriod;
+                m_initDataLoad = false;
+
+                // ----- �ޔ������f�[�^���������ꍇ�̓Z�b�g����
+                int NowPoint = ClsExcute.GetNowProcessPoint();
+                if (ClsExcute.ProcControlPara[NowPoint].StringSaveParameter.Count > 0)
+                {
+                    // �N�x
+                    numUDConstPro.Value = CommonMotions.cnvInt(ClsExcute.ProcControlPara[NowPoint].StringSaveParameter[0]);
+                }
+                // �����S����
+                if (ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Count > 0)
+                {
+                    cmbDepartment.SelectedIndex = ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[0];
+                    cmbConstructionPerson.SelectedIndex = ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[1];
+                }
+
+                // ��ʎg�p�҂͋��^�̗��������Ȃ��悤�ɂ���
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
+                {
+                    dgvMaster.Columns[(int)DispColumn.Allowance].Visible = false;
+                    m_CellSize[(int)DispColumn.Allowance] = 0;
+                }
+
+                // �f�[�^�\��
+                DataDisplay();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �����R���{�{�b�N�X�����\��
+        /// <summary>
+        /// �����R���{�{�b�N�X�����\��
+        /// </summary>
+        private void InitcmbDepartment()
+        {
+            try
+            {
+                // �V�X�e�������ɂ���ăf�[�^�A�N�Z�X�ɐ���������
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement
+                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key
+                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
+                {
+                    // �V�X�e���Ǘ���
+                    // �ō��@���Ǘ���
+                    // �����@���Ǘ���
+                    // �����}�X�^����������
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
+                {
+                    // ������
+                    // �����R���{��\��
+                    label5.Visible = false;
+                    cmbDepartment.Visible = false;
+                    label3.Location = label5.Location;
+                    cmbConstructionPerson.Location = cmbDepartment.Location;
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
+                {
+                    // ��ʎg�p�ҁi�����̂݃A�N�Z�X�\�j
+                    // �����E�S���҃R���{��\��
+                    label5.Visible = false;
+                    cmbDepartment.Visible = false;
+                    label3.Visible = false;
+                    cmbConstructionPerson.Visible = false;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �����R���{�{�b�N�X���Z�b�g����
+        /// <summary>
+        /// �����R���{�{�b�N�X�֕������Z�b�g����
+        /// </summary>
+        private bool SetcmbDepartment()
+        {
+            IOMDepartment depDB = new IOMDepartment();
+            List<DepartmentMaster> workList = new List<DepartmentMaster>();
+            try
+            {
+                m_initDataLoad = true;
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
+                string strSQL = string.Empty;
+                // �V�X�e�������ɂ���ăf�[�^�A�N�Z�X�ɐ���������
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement
+                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key
+                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
+                {
+                    // �V�X�e���Ǘ���
+                    // �ō��@���Ǘ���
+                    // �����@���Ǘ���
+                    // �����}�X�^����������
+                    strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
+                {
+                    // ������
+                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By DisplayOrder ASC", CommonMotions.LoginUserData.DepartmentCode);
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
+                {
+                    // ��ʎg�p�ҁi�����̂݃A�N�Z�X�\�j
+                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By DisplayOrder ASC", CommonMotions.LoginUserData.DepartmentCode);
+                }
+
+                // �����}�X�^�Ǎ�
+                if (!depDB.SelectAction(strSQL, ref workList)) return false;
+
+                List<KeyValuePair<int, string>> ConstructionDataList = new List<KeyValuePair<int, string>>();
+                ConstructionDataList.Add(new KeyValuePair<int, string>(0, ""));
+
+                foreach (DepartmentMaster work in workList)
+                {
+                    KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(work.DepartmentCode, work.DepartmentString);
+
+                    ConstructionDataList.Add(keyval);
+                }
+
+                // �R���{�{�b�N�X�����\��
+                ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
+
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key ||
+                    CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
+                {
+                    // ������
+                    // ��ʎg�p�ҁi�����̂݃A�N�Z�X�\�j
+                    cmbDepartment.SelectedValue = CommonMotions.LoginUserData.DepartmentCode;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                depDB.close(); depDB = null;
+                m_initDataLoad = false;
+            }
+        }
+        #endregion
+
+        #region �S���҃R���{�{�b�N�X�����\��
+        /// <summary>
+        /// �S���҃R���{�{�b�N�X�����\��
+        /// </summary>
+        private void InitcmbPersons()
+        {
+            try
+            {
+                // �V�X�e�������ɂ���ăf�[�^�A�N�Z�X�ɐ���������
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement
+                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key
+                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
+                {
+                    // �V�X�e���Ǘ���
+                    // �ō��@���Ǘ���
+                    // �����@���Ǘ���
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
+                {
+                    // ������
+                    // �����R���{��\��
+                    label5.Visible = false;
+                    cmbDepartment.Visible = false;
+                    label3.Location = label5.Location;
+                    cmbConstructionPerson.Location = cmbDepartment.Location;
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
+                {
+                    // ��ʎg�p�ҁi�����̂݃A�N�Z�X�\�j
+                    // �����E�S���҃R���{��\��
+                    label5.Visible = false;
+                    cmbDepartment.Visible = false;
+                    label3.Visible = false;
+                    cmbConstructionPerson.Visible = false;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �S���҃R���{�{�b�N�X���Z�b�g����
+        /// <summary>
+        /// �S���҃R���{�{�b�N�X�֕������Z�b�g����
+        /// </summary>
+        private bool SetcmbPersons()
+        {
+            IOMPersonInCharge picDB = new IOMPersonInCharge();
+            List<PersonInChargeMaster> workList = new List<PersonInChargeMaster>();
+            try
+            {
+                m_initDataLoad = true;
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
+                string strSQL = string.Empty;
+                int DepartmentCode = GetDepartmentCode();
+                if (DepartmentCode == 0)
+                    strSQL = " WHERE DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC";
+                else
+                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC", DepartmentCode);
+
+                // �S���҃}�X�^�Ǎ�
+                if (!picDB.SelectAction(strSQL, ref workList)) return false;
+
+                List<KeyValuePair<int, string>> ConstructionDataList = new List<KeyValuePair<int, string>>();
+                ConstructionDataList.Add(new KeyValuePair<int, string>(0, ""));
+
+                foreach (PersonInChargeMaster work in workList)
+                {
+                    KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(work.PersonCode, work.PersonName);
+
+                    ConstructionDataList.Add(keyval);
+                }
+
+                // �R���{�{�b�N�X�����\��
+                ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
+
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
+                {
+                    cmbConstructionPerson.SelectedValue = CommonMotions.LoginUserData.PersonCode;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                picDB.close(); picDB = null;
+                m_initDataLoad = false;
+            }
+        }
+        #endregion
+
+        #region ��ʃT�C�Y�ύX���̃Z���T�C�Y�ύX
+        /// <summary>
+        /// ��ʃT�C�Y�ύX���̃Z���T�C�Y�ύX
+        /// </summary>
+        private void CellSizeChangesWhenChangingScreenSize(bool bNormal)
+        {
+            try
+            {
+                DataGridView dgv = dgvMaster;
+                int idifference = 0;
+                // �ő剻�̏ꍇ
+                if (!bNormal)
+                {
+                    // �J�����̃T�C�Y�����߂�
+                    int ColumnCount = 0;
+                    int TotalWidth = 0;
+                    int NotVisibleSize = 0;
+                    for (int i = 0; i < m_CellSize.Length; i++)
+                    {
+                        TotalWidth += m_CellSize[i];
+                        if (dgv.Columns[i].Visible)
+                        {
+                            ColumnCount++;
+                        }
+                        else
+                        {
+                            NotVisibleSize += m_CellSize[i];
+                        }
+                    }
+
+                    // �傫���Ȃ����T�C�Y
+                    //int formdiff = (dgv.Width - (m_GridWidthSize - NotVisibleSize));
+                    int formdiff = (dgv.Width - m_GridWidthSize);
+
+                    idifference = formdiff / ColumnCount;
+                }
+
+                for (int i = 0; i < dgv.ColumnCount; i++)
+                {
+                    DataGridViewColumn wrkCol = dgv.Columns[i];
+                    wrkCol.Width = m_CellSize[i] + idifference;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �S���҃R���{�{�b�N�X�Z�b�g���������Z�b�g����
+        /// <summary>
+        /// �S���҃R���{�{�b�N�X�Z�b�g���������Z�b�g����
+        /// </summary>
+        /// <returns></returns>
+        private bool SetPerosonToDepartment()
+        {
+            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
+            try
+            {
+                // �R���{�{�b�N�X���I��S���҂��擾����
+                int PersonCode = GetConstructionPersonCode();
+                if (PersonCode < 1) return false;
+
+                int DepartmentCode = GetDepartmentCode();
+
+                string strSQL = PersonDB.CreatePrimarykeyString(PersonCode);
+                PersonInChargeMaster PersonRec = new PersonInChargeMaster();
+                PersonDB.SelectAction(strSQL, ref PersonRec);
+
+                // �����R���{�{�b�N�X�֕����R�[�h�Z�b�g
+                if (PersonRec.DepartmentCode > 0 && DepartmentCode != PersonRec.DepartmentCode)
+                {
+                    m_initDataLoad = true;
+                    cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+                    m_initDataLoad = false;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                PersonDB.close(); PersonDB = null;
+            }
+        }
+        #endregion
+
+        #region ���^�G���A�N���A
+        /// <summary>
+        /// ���^�G���A�N���A
+        /// </summary>
+        private void ClearSalary()
+        {
+            //lblPayroll.Text = "";
+            label11.Text = "";
+            label14.Text = "";
+            label16.Text = "";
+            label21.Text = "";
+        }
+        #endregion
+
+        #region �s�F�ݒ�
+        /// <summary>
+        /// �s��I��F�ɂ���
+        /// </summary>
+        /// <param name="CurrentRow"></param>
+        private void SetRowColor(DataGridViewRow CurRow, Color BackColor, Color ForeColor)
+        {
+            try
+            {
+                DataGridView dgv = dgvMaster;
+
+                // �s�̐F��ς���
+                for (int i = 0; i < dgv.ColumnCount; i++)
+                {
+                    CurRow.Cells[i].Style.BackColor = BackColor;
+                    CurRow.Cells[i].Style.ForeColor = ForeColor;
+                }
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region �s�I��F
+        /// <summary>
+        /// �s��I��F�ɂ���
+        /// </summary>
+        /// <param name="CurrentRow"></param>
+        private void SelectRowChangeColor(int CurrentRow)
+        {
+            try
+            {
+                DataGridView dgv = dgvMaster;
+                DataGridViewRow CurRow = dgv.Rows[CurrentRow];
+
+                // �s�̐F��ς���
+                SetRowColor(CurRow, s_RowSelectBackColor, s_RowSelectForeColor);
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region �s�f�t�H���g�F
+        /// <summary>
+        /// �s���f�t�H���g�F�ɂ���
+        /// </summary>
+        /// <param name="BeforeGridRow"></param>
+        private void DefaultRowChangeColor(int CurrentRow)
+        {
+            try
+            {
+                DataGridView dgv = dgvMaster;
+                DataGridViewRow CurRow = dgv.Rows[CurrentRow];
+
+                Color SetBackColor = Color.White;
+                Color SetForeColor = Color.Black;
+
+                if ((CurrentRow % 2) != 0)
+                {
+                    SetBackColor = dgv.AlternatingRowsDefaultCellStyle.BackColor;
+                    SetForeColor = dgv.AlternatingRowsDefaultCellStyle.ForeColor;
+                }
+                else
+                {
+                    SetBackColor = dgv.RowsDefaultCellStyle.BackColor;
+                    SetForeColor = dgv.RowsDefaultCellStyle.ForeColor;
+                }
+                // �s�̐F��ς���
+                // �s�̐F��ς���
+                SetRowColor(CurRow, SetBackColor, SetForeColor);
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �f�t�H���g�̊�����E�����������߂�
+        /// <summary>
+        /// �f�t�H���g�̊�����E�����������߂�
+        /// </summary>
+        /// <param name="dtStart"></param>
+        /// <param name="dtEnd"></param>
+        private void CreateDefaultStartAndEndDate(ref DateTime dtStart,ref DateTime dtEnd)
+        {
+            try
+            {
+                // ��������N�������擾
+                int iYear = 0;
+                int month = 0;
+                int day = 0;
+                bool bPeriod = true;
+                if (CommonMotions.SystemMasterData.ConstructionNoBase == (int)CommonDefine.SystemConstructionNoBase.BusinessPeriod)
+                {   // �c�Ɗ�
+                    iYear = CommonMotions.PeriodCountToYear(CommonMotions.cnvInt(numUDConstPro.Value));
+                    bPeriod = true;
+                }
+                CommonMotions.GetBeginningMonthDay(bPeriod, ref month, ref day);
+                dtStart = new DateTime(iYear, month, day);
+                dtEnd = dtStart.AddYears(1).AddDays(-1);     // �I���́{1�N�|1��
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �H�������̊�����E�����������߂�
+        /// <summary>
+        /// �H�������̊�����E�����������߂�
+        /// </summary>
+        /// <param name="dtStart"></param>
+        /// <param name="dtEnd"></param>
+        private void CreateConstStartAndEndDate(ref DateTime dtStart, ref DateTime dtEnd, int PersonCode = 0)
+        {
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            try
+            {
+                string strSQL = "SELECT MIN(B.CONSTRUCTIONPERIODSTART) ,MAX(B.CONSTRUCTIONPERIODEND)";
+                strSQL += " FROM CONSTRUCTIONLEDGER A, CONSTRUCTIONBASEINFO B";
+                strSQL += " WHERE A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
+                if (PersonCode != 0) strSQL += string.Format(" AND B.CONSTRSUBPERSONCODE = {0}", PersonCode);
+                strSQL += " AND TO_CHAR(B.CONSTRUCTIONPERIODSTART,'YYYY/MM/DD') != '0001/01/01'";
+                strSQL += " AND TO_CHAR(B.CONSTRUCTIONPERIODEND,'YYYY/MM/DD') != '0001/01/01'";
+                ArrayList arList = new ArrayList();
+                if (!BaseDB.ExecuteReader(strSQL, ref arList)) return;
+
+                object[] objList = (object[])arList[0];
+
+                dtStart = CommonMotions.cnvDate(objList[0]);
+                dtEnd = CommonMotions.cnvDate(objList[2]);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                BaseDB.close(); BaseDB = null;
+            }
+        }
+        #endregion
+
+        #region �H���ɑ����Ă��Ȃ��o���\������
+        /// <summary>
+        /// �H���ɑ����Ă��Ȃ��o���\������
+        /// </summary>
+        private int SetOtherCost()
+        {
+            try
+            {
+                // �����R�[�h�擾
+                int DepartmentCode = GetDepartmentCode();
+                // �S���҃R�[�h�擾
+                int PersonCode = GetConstructionPersonCode();
+
+                // ����������E���������擾
+                DateTime dtDefaultStart = DateTime.MinValue;
+                DateTime dtDefaultEnd = DateTime.MinValue;
+                CreateDefaultStartAndEndDate(ref dtDefaultStart, ref dtDefaultEnd);
+
+                int ArrayCount = Common.CommonDefine.CostDataNoString.Length;
+                int[] CostValue = new int[ArrayCount];
+                // �\���G���A�N���A
+                Array.Clear(CostValue, 0, CostValue.Length);
+
+                // �S���҂��Z�b�g����Ă���ΒS���ҁA�ȊO�͑ΏۑS�Ă��W�v����
+                if (PersonCode != 0)
+                {
+                    // �S���҂��I������Ă���΂��̌o����擾����
+                    GetPersonExpensesCostValue(PersonCode, dtDefaultStart, dtDefaultEnd, ref CostValue);
+                }
+                else
+                {
+                    // �S�����I������Ă��Ȃ���΍��v���W�v����
+                    List<int> PersonArrsy = new List<int>(); ;
+                    if (GetPersonInDepartment(DepartmentCode, ref PersonArrsy) == 0) return 0;
+                    int[] OneCost = new int[ArrayCount];
+                    for (int ii = 0; ii < PersonArrsy.Count; ii++)
+                    {
+                        // �W�v�G���A�N���A
+                        Array.Clear(OneCost, 0, OneCost.Length);
+
+                        // �o��擾
+                        GetPersonExpensesCostValue(PersonArrsy[ii], dtDefaultStart, dtDefaultEnd, ref OneCost);
+                        // �W�v
+                        for (int iii = 0; iii < CostValue.Length; iii++)
+                        {
+                            CostValue[iii] += OneCost[iii];
+                        }
+                    }
+                }
+
+                // ----- �o��̏W�v
+                DataGridView dgv = dgvMaster;
+                int SumData = 0;
+                for (int i = 1; i < CommonDefine.CostDataNoString.Length; i++)
+                {
+                    // �s�쐬
+                    int RowCnt = dgv.Rows.Add(1);
+                    // �o���
+                    dgv.Rows[RowCnt].Cells[(int)DispColumn.ConstructionName].Value = CommonDefine.CostDataNoString[i];
+                    // ���z�Z�b�g
+                    dgv.Rows[RowCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = CostValue[i].ToString("#,0");
+                    SumData += CostValue[i];
+                }
+
+                dgv.Rows.Add();       // ��s
+                // ----- �o��̌v��\������
+                // �s�쐬
+                int ExpensesCnt = dgv.Rows.Add(1);
+                // �o���
+                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Expenses];
+                // ���z�Z�b�g
+                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = SumData.ToString("#,0");
+                // �s�̐F��ς���
+                SetRowColor(dgv.Rows[ExpensesCnt], s_RowTotalBackColor, s_RowTotalForeColor);
+
+                return SumData;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        #region ���S���ҁ^�w�����̋��^���擾����
+        /// <summary>
+        /// ���S���ҁ^�w�����̋��^���擾����
+        /// </summary>
+        private int SetAuxiliaryCost()
+        {
+            try
+            {
+                // �����R�[�h�擾
+                int DepartmentCode = GetDepartmentCode();
+                // �S���҃R�[�h�擾
+                int PersonCode = GetConstructionPersonCode();
+
+                int[] CostValue = new int[2];
+                // �\���G���A�N���A
+                Array.Clear(CostValue, 0, CostValue.Length);
+
+                DateTime dtStart = DateTime.MinValue;
+                DateTime dtEnd = DateTime.MinValue;
+                // �S���҂��Z�b�g����Ă���ΒS���ҁA�ȊO�͑ΏۑS�Ă��W�v����
+                if (PersonCode != 0)
+                {
+                    // �S���҂��I������Ă���΂��̌o����擾����
+                    GetPersonAuxiliaryCostValue(PersonCode, ref CostValue);
+                }
+                else
+                {
+                    // �S�����I������Ă��Ȃ���΍��v���W�v����
+                    List<int> PersonArrsy = new List<int>(); ;
+                    if (GetPersonInDepartment(DepartmentCode, ref PersonArrsy) == 0) return 0;
+                    int[] OneCost = new int[2];
+                    for (int i = 0; i < PersonArrsy.Count; i++)
+                    {
+                        // �W�v�G���A�N���A
+                        Array.Clear(OneCost, 0, OneCost.Length);
+
+                        // �o��擾
+                        GetPersonAuxiliaryCostValue(PersonArrsy[i], ref OneCost);
+                        // �W�v
+                        for (int ix = 0; ix < CostValue.Length; ix++)
+                        {
+                            CostValue[ix] += OneCost[ix];
+                        }
+                    }
+                }
+
+                // ----- �⏕�U���̏W�v
+                DataGridView dgv = dgvMaster;
+
+                int SumData = 0;
+                for (int i = 0; i < CostValue.Length; i++)
+                {
+                    // �s�쐬
+                    int RowCnt = dgv.Rows.Add(1);
+                    // �o���
+                    dgv.Rows[RowCnt].Cells[(int)DispColumn.ConstructionName].Value = s_GroupTitle[i];
+                    // ���z�Z�b�g
+                    dgv.Rows[RowCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = CostValue[i].ToString("#,0");
+                    SumData += CostValue[i];
+                }
+
+
+                dgv.Rows.Add();       // ��s
+                // ----- �⏕�U���̌v��\������
+                // �s�쐬
+                int AuxiliaryCnt = dgv.Rows.Add(1);
+                // �o���
+                dgv.Rows[AuxiliaryCnt].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Auxiliary];
+                // ���z�Z�b�g
+                dgv.Rows[AuxiliaryCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = SumData.ToString("#,0");
+                // �s�̐F��ς���
+                SetRowColor(dgv.Rows[AuxiliaryCnt], s_RowTotalBackColor, s_RowTotalForeColor);
+
+                return (CostValue[0] + CostValue[1]);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        #region �S���Җ��̎w����̍H���J�n�����擾����
+        /// <summary>
+        /// �S���Җ��̎w����̍H���J�n�����擾����
+        /// </summary>
+        /// <returns></returns>
+        private DateTime GetConstructionDate(int PersonCode, bool bStart = true)
+        {
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            try
+            {
+                // ��̏ꍇ�̓��O�C�����[�U�[
+                if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
+
+                // �J�n���擾
+                string strSQL = string.Empty;
+                strSQL = "SELECT A.CONSTRUCTIONPERSONCODE, MIN(B.CONSTRUCTIONSTART) FROM CONSTRUCTIONBASEINFO A, CONSTRUCTIONBUDGET B";
+                // �I���w��͏I����MAX�ɕύX
+                if (!bStart) strSQL = strSQL.Replace("MIN(B.CONSTRUCTIONSTART)", "MAX(B.CONSTRUCTIONEND)");
+
+                strSQL += string.Format(" WHERE A.CONSTRUCTIONPERSONCODE = {0}", PersonCode);
+                strSQL += string.Format("  AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
+                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE GROUP BY A.CONSTRUCTIONPERSONCODE";
+                ArrayList ArrayList = new ArrayList();
+                if (!BaseDB.ExecuteReader(strSQL, ref ArrayList)) return DateTime.MinValue;
+                if (ArrayList.Count == 0) return DateTime.MinValue;
+
+                object[] objRec = (object[])ArrayList[0];
+
+                return CommonMotions.cnvDate(objRec[1]);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return DateTime.MinValue;
+            }
+            finally
+            {
+                BaseDB.close(); BaseDB = null;
+            }
+        }
+        #endregion
+
+        #region �������̒S���҃R�[�h���ꗗ�ŕԂ�
+        /// <summary>
+        /// �������̒S���҃R�[�h���ꗗ�ŕԂ�
+        /// </summary>
+        /// <param name="DepartmentCode">�����R�[�h</param>
+        /// <param name="PersonCode">�S���҃R�[�h�ꗗ</param>
+        /// <returns>�f�[�^����</returns>
+        private int GetPersonInDepartment(int DepartmentCode,ref List<int> PersonCode)
+        {
+            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
+            try
+            {
+                string strSQL = string.Format(" WHERE (PERSONCODE IN (SELECT SALESPERSONCODE FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0})", numUDConstPro.Value);
+                strSQL += string.Format(" OR PERSONCODE IN (SELECT CONSTRUCTIONPERSONCODE FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0})", numUDConstPro.Value);
+                strSQL += string.Format(" OR PERSONCODE IN (SELECT CONSTRSUBPERSONCODE FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0})", numUDConstPro.Value);
+                strSQL += string.Format(" OR PERSONCODE IN (SELECT CONSTRUCTIONINSTRUCTOR FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0}))", numUDConstPro.Value);
+                strSQL += " AND EMPLOYEECLASSFLG = 1";
+                if (DepartmentCode != 0)
+                    strSQL += string.Format(" AND DEPARTMENTCODE = {0}", DepartmentCode);
+                strSQL += " ORDER BY DISPLAYORDER ";
+                List<PersonInChargeMaster> PersonList = new List<PersonInChargeMaster>();
+                if (!PersonDB.SelectAction(strSQL, ref PersonList)) return 0;
+
+                foreach (PersonInChargeMaster wrkRec in PersonList)
+                {
+                    PersonCode.Add(wrkRec.PersonCode);
+                }
+                return PersonCode.Count;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+            finally
+            {
+                PersonDB.close(); PersonDB = null;
+            }
+        }
+        #endregion
+
+        #region �S���Җ���ږ��̌o����擾����
+        /// <summary>
+        /// �S���Җ���ږ��̌o����擾����
+        /// </summary>
+        /// <param name="PersonCode">�S���҃R�[�h</param>
+        /// <param name="dtStart">�J�n���t</param>
+        /// <param name="dtEnd">�I�����t</param>
+        /// <param name="CostValue">��ږ��o��</param>
+        private void GetPersonExpensesCostValue(int PersonCode, DateTime dtStart, DateTime dtEnd, ref int[] CostValue)
+        {
+            IOCostDataOfPerson CostDB = new IOCostDataOfPerson();
+            try
+            {
+                // �S���Җ��o��f�[�^���ǂ��̍H���ɂ��������Ă��Ȃ��o����擾����
+                string strSQL = "SELECT PERSONCODE, DATATYPE, SUM(ENTRYPRICE) FROM COSTDATAOFPERSON";
+                strSQL += string.Format(" WHERE PERSONCODE = {0}", PersonCode);
+                strSQL += string.Format(" AND ('{0}' <= TO_CHAR(ACTIONDATE,'YYYY/MM/DD')", dtStart.ToShortDateString());
+                strSQL += string.Format(" AND TO_CHAR(ACTIONDATE,'YYYY/MM/DD') <= '{0}')", dtEnd.ToShortDateString());
+                strSQL += " AND CONSTRUCTIONCODE = 0";
+                strSQL += " GROUP BY PERSONCODE, DATATYPE";
+                strSQL += " ORDER BY PERSONCODE, DATATYPE";
+                ArrayList arList = new ArrayList();
+                if (!CostDB.ExecuteReader(strSQL, ref arList)) return;
+
+                // �擾���ʂ�U�蕪����
+                foreach (object[] wrkobj in arList)
+                {
+                    for (int i = 1; i < CommonDefine.CostDataNoString.Length; i++)
+                    {
+                        if (CommonMotions.cnvInt(wrkobj[1]) == i)
+                        {
+                            CostValue[i] = CommonMotions.cnvInt(wrkobj[2]);
+                            break;
+                        }
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                CostDB.close(); CostDB = null;
+            }
+        }
+        #endregion
+
+        #region �S���Җ��̕⏕�U�����擾����
+        /// <summary>
+        /// �S���Җ��̕⏕�U�����擾����
+        /// </summary>
+        /// <param name="PersonCode"></param>
+        /// <param name="CostValue"></param>
+        private void GetPersonAuxiliaryCostValue(int PersonCode, ref int[] CostValue)
+        {
+            IOConstructionLedgerDetail DetailDB = new IOConstructionLedgerDetail();
+            try
+            {
+                // �H���ڍב䒠�f�[�^���⏕�U�����擾����
+                string strSQL = "SELECT A.COMPANYCODE, A.GROUPCOUNT, SUM(A.EXECUTIONAMOUNT)";
+                strSQL += " FROM CONSTRUCTIONLEDGERDETAIL A, CONSTRUCTIONBASEINFO B";
+                strSQL += string.Format(" WHERE (A.GROUPCOUNT = {0} OR A.GROUPCOUNT = {1})"
+                                        , (int)GroupName_ConstructionLedger.Assistant, (int)GroupName_ConstructionLedger.Instructor);
+                strSQL += string.Format(" AND A.COMPANYCODE = {0}", PersonCode);
+                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND B.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
+                strSQL += " GROUP BY A.COMPANYCODE, A.GROUPCOUNT";
+                strSQL += " ORDER BY A.COMPANYCODE, A.GROUPCOUNT";
+                ArrayList arList = new ArrayList();
+                if (!DetailDB.ExecuteReader(strSQL, ref arList)) return;
+
+                // �擾���ʂ�U�蕪����
+                foreach (object[] wrkobj in arList)
+                {
+                    if (CommonMotions.cnvInt(wrkobj[1]) == (int)GroupName_ConstructionLedger.Assistant)
+                    {
+                        CostValue[0] = CommonMotions.cnvInt(wrkobj[2]);
+                    }
+                    else
+                    {
+                        CostValue[1] = CommonMotions.cnvInt(wrkobj[2]);
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                DetailDB.close(); DetailDB = null;
+            }
+        }
+        #endregion
+
+        #region ���^�f�[�^�\������
+        /// <summary>
+        /// ���^�f�[�^�\������
+        /// </summary>
+        /// <returns></returns>
+        private bool SalaryDisplay()
+        {
+            IOMPersonInCharge personDB = new IOMPersonInCharge();
+            try
+            {
+                bool bRet = false;
+
+                // �܂��f�[�^��\��
+                pnlPayroll.Visible = false;
+
+                // �R���{�{�b�N�X���I��S���҂��擾����
+                int PersonCode = GetConstructionPersonCode();
+                if (!cmbConstructionPerson.Visible) PersonCode = CommonMotions.LoginUserData.PersonCode;
+
+                // �Z�L�����e�B���x���擾
+                int SecLevel1 = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key;
+                int SecLevel2 = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key;
+                int SecLevel3 = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key;
+                // �V�X�e�������ɂ���ăf�[�^�A�N�Z�X�ɐ���������
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement)
+                {
+                    // �V�X�e���Ǘ��ҁi���ׂđΏہj
+                    bRet = true;
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == SecLevel1)
+                {
+                    // �ō��@���Ǘ��ҁi���ׂđΏہj
+                    bRet = true;
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == SecLevel2)
+                {
+                    // �����@���Ǘ��ҁi�@�\�����j
+                    bRet = true;
+                }
+                else if (CommonMotions.LoginUserData.SecurityManagement == SecLevel3)
+                {
+                    // ������
+                    bRet = true;
+                }
+                else
+                {
+                    // ��ʃ��[�U�[�͎����̋��^��������
+                    if (CommonMotions.LoginUserData.PersonCode == PersonCode)
+                        bRet = true;
+                    else
+                        bRet = false;
+                }
+                // �f�[�^�\��
+                pnlPayroll.Visible = bRet;
+
+                // �̈�N���A
+                ClearSalary();
+
+                return bRet;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                personDB.close(); personDB = null;
+            }
+        }
+        #endregion
+
+        #region �o�ߋ��^���v�Z����
+        /// <summary>
+        /// �o�ߋ��^���v�Z����
+        /// </summary>
+        /// <param name="dtStart"></param>
+        /// <param name="PersonCode"></param>
+        /// <returns></returns>
+        private int CalcElapsedSalary(DateTime dtStart, int PersonCode)
+        {
+            try
+            {
+                // �ғ��������擾����
+                int WorkingDay = ClsCalendar.CalcWorkingDaysCount(dtStart, DateTime.Now);
+
+                // �o�ߌ����擾
+                double dmounth = CommonMotions.DiffMounthTimes(dtStart, DateTime.Now);
+
+                // ���^�ݐώ擾
+                int MonthlyPay = GetPersonMonthlySalary(PersonCode);
+                double DayPay = (double)MonthlyPay / (double)CommonDefine.s_WorkingDaysOfMonth;
+                
+                return CommonMotions.cnvRound(WorkingDay * DayPay);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        #region �����̌o�ߋ��^��\������
+        /// <summary>
+        /// �����̌o�ߋ��^��\������
+        /// </summary>
+        private void SetPayrollData()
+        {
+            try
+            {
+                // ���^�̕\������
+                if (!SalaryDisplay()) return;
+
+                // �����R�[�h�擾
+                int DepartmentCode = GetDepartmentCode();
+                // �S���҃R�[�h�擾
+                int PersonCode = GetConstructionPersonCode();
+
+                // ����������E���������擾
+                DateTime dtDefaultStart = DateTime.MinValue;
+                DateTime dtDefaultEnd = DateTime.MinValue;
+                CreateDefaultStartAndEndDate(ref dtDefaultStart, ref dtDefaultEnd);
+
+                int TotalSalary = 0;        // ���^�ݐώ擾
+                int OnSalary = 0;           // �U�����^���z�擾
+                int NetIncome = 0;          // �����v���z�擾
+                int NonSalary = 0;          // �e���v���z�擾
+
+                DateTime dtStart = DateTime.MinValue;
+                DateTime dtEnd = DateTime.MinValue;
+                // �S���҂��Z�b�g����Ă���ΒS���ҁA�ȊO�͑ΏۑS�Ă��W�v����
+                if (PersonCode != 0)
+                {
+                    // �J�n���擾
+                    dtStart = GetConstructionDate(PersonCode, true);
+                    // �f�[�^�������ꍇ�͊�������Z�b�g����
+                    if (dtStart == DateTime.MinValue) dtStart = dtDefaultStart;
+                    // �I�����擾
+                    dtEnd = GetConstructionDate(PersonCode, false);
+                    if (dtEnd == DateTime.MinValue) dtEnd = dtDefaultEnd;
+
+                    // ���^�ݐώ擾
+                    TotalSalary = CalcElapsedSalary(dtStart, PersonCode);
+                    // �U�����^���z�擾
+                    OnSalary = GetPersonBudgetDetail(PersonCode, (int)GroupName_ConstructionBudget.PayrollExpenses);
+                    // �����v���z�擾
+                    NetIncome = GetPersonBudgetDetail(PersonCode, (int)GroupName_ConstructionBudget.NetIncome);
+                    // �e���v���z�擾
+                    NonSalary = GetPersonBudgetDetail(PersonCode, (int)GroupName_ConstructionBudget.GrossProfit);
+                }
+                else
+                {
+                    // �S�����I������Ă��Ȃ���΍��v���W�v����
+                    List<int> PersonArrsy = new List<int>(); ;
+                    if (GetPersonInDepartment(DepartmentCode, ref PersonArrsy) == 0) return;
+                    for (int ii = 0; ii < PersonArrsy.Count; ii++)
+                    {
+                        // �J�n���擾
+                        dtStart = GetConstructionDate(PersonArrsy[ii], true);
+                        // �f�[�^�������ꍇ�͊�������Z�b�g����
+                        if (dtStart == DateTime.MinValue) dtStart = dtDefaultStart;
+                        // �I�����擾
+                        dtEnd = GetConstructionDate(PersonArrsy[ii], false);
+                        if (dtEnd == DateTime.MinValue) dtEnd = dtDefaultEnd;
+
+                        // ���^�ݐώ擾
+                        int workSalary = CalcElapsedSalary(dtStart, PersonArrsy[ii]);
+                        if (workSalary > 0) TotalSalary += workSalary;
+                        // �U�����^���z�擾
+                        OnSalary += GetPersonBudgetDetail(PersonArrsy[ii], (int)GroupName_ConstructionBudget.PayrollExpenses);
+                        // �����v���z�擾
+                        NetIncome += GetPersonBudgetDetail(PersonArrsy[ii], (int)GroupName_ConstructionBudget.NetIncome);
+                        // �e���v���z�擾
+                        NonSalary += GetPersonBudgetDetail(PersonArrsy[ii], (int)GroupName_ConstructionBudget.GrossProfit);
+                    }
+                }
+
+                // ���^�ݐώ擾
+                //lblPayroll.Text = TotalSalary.ToString("#,0");
+
+                // �U�����^���z�擾
+                label11.Text = OnSalary.ToString("#,0");
+
+                // �����v���z�擾
+                label21.Text = NetIncome.ToString("#,0");
+
+                // �e���v���z�擾
+                label16.Text = NonSalary.ToString("#,0");
+
+                // ���z�v�Z
+                label14.Text = ((OnSalary + NetIncome + NonSalary) - TotalSalary).ToString("#,0");
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �S���҃}�X�^��茎�z���^�擾
+        /// <summary>
+        /// �S���҃}�X�^��茎�z���^�擾
+        /// </summary>
+        /// <param name="PersonCode"></param>
+        /// <returns></returns>
+        private int GetPersonMonthlySalary(int PersonCode)
+        {
+            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
+            try
+            {
+                if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
+                string strSQL = PersonDB.CreatePrimarykeyString(PersonCode);
+                PersonInChargeMaster PersonRec = new PersonInChargeMaster();
+                PersonDB.SelectAction(strSQL, ref PersonRec);
+                
+                return CommonMotions.cnvRound(PersonRec.MonthlySalary);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+            finally
+            {
+                PersonDB.close(); PersonDB = null;
+            }
+        }
+        #endregion
+
+        #region �H���\�Z�����U�����^���z�E�e���v���擾����
+        /// <summary>
+        /// �H���\�Z�����U�����^���z�E�e���v���擾����
+        /// </summary>
+        /// <returns></returns>
+        private int GetPersonBudgetDetail(int PersonCode, int GroupNo)
+        {
+            IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
+            try
+            {
+                if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
+
+                string strSQL = "SELECT A.CONSTRUCTIONPERSONCODE, SUM(C.EXECUTIONAMOUNT)";
+                strSQL += " FROM CONSTRUCTIONBASEINFO A, CONSTRUCTIONBUDGET B, CONSTRUCTIONBUDGETDETAIL C ";
+                strSQL += string.Format(" WHERE A.CONSTRUCTIONPERSONCODE = {0}", PersonCode);
+                strSQL += string.Format(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
+                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
+                
+                switch(GroupNo)
+                {
+                    case (int)GroupName_ConstructionBudget.PayrollExpenses:     // ���^�o��
+                    case (int)GroupName_ConstructionBudget.NetIncome:           // �����v
+                    strSQL += string.Format(" AND B.SALARYFLG != {0}", (int)CommonDefine.SalaryDevision.Noting);
+                        break;
+                    case (int)GroupName_ConstructionBudget.GrossProfit:         // �e���v
+                        strSQL += string.Format(" AND B.SALARYFLG = {0}", (int)CommonDefine.SalaryDevision.Noting);
+                        break;
+                }
+                    
+                strSQL += " AND B.CONSTRUCTIONCODE = C.CONSTRUCTIONCODE";
+
+                strSQL += string.Format(" AND C.GROUPCOUNT = {0}", GroupNo);
+
+                strSQL += " GROUP BY A.CONSTRUCTIONPERSONCODE";
+
+                ArrayList ArrayList = new ArrayList();
+                if (!DetailDB.ExecuteReader(strSQL, ref ArrayList) || ArrayList.Count == 0) return 0;
+                object[] objRec = (object[])ArrayList[0];
+
+                return CommonMotions.cnvInt(objRec[1]);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+            finally
+            {
+                DetailDB.close(); DetailDB = null;
+            }
+        }
+        #endregion
+
+    }
+}
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetList.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetList.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetList.cs	(revision 6)
@@ -54,6 +54,11 @@
         //private bool m_bChengeAns = false;
 
         /// <summary>
+        /// �������t���O
+        /// </summary>
+        private bool m_initDataLoad = true;
+
+        /// <summary>
         /// �����Ǎ����f�[�^�J�E���g
         /// </summary>
         private int m_initDataCount = 0;
@@ -108,7 +113,7 @@
         }
         #endregion
 
-        #region �t�H�[���N���[�Y
+        #region �~�{�^��
         /// <summary>
         /// �~�{�^����������
         /// </summary>
@@ -204,15 +209,17 @@
             }
 
             // �R���{�{�b�N�X�Z�b�g
+            SetcmbDepartment();                         // ����
             SetcmbPersons();                            // �S���ҁi�c�ƁE�H���j
-            SetcmbConstructionPeriod();                 // �c�Ɗ�
             
             // �����\��
             // �O���b�h�̍s��0�ɖ߂�
             dgvMaster.Rows.Clear();
 
-            // �f�[�^�\��
-            DataDisplay();
+            // �����\��
+            InitDataLoad();
+
+            m_initDataLoad = false;
         }
         #endregion
         
@@ -260,5 +267,71 @@
         }
 
         #endregion
+
+        #region �c�Ɗ��R���{�{�b�N�X�ύX
+        /// <summary>
+        /// �c�Ɗ��ύX
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void numUDConstPro_ValueChanged(object sender, EventArgs e)
+        {
+            if (m_initDataLoad) return;
+            
+            // �f�[�^�\��
+            DataDisplay();
+        }
+        #endregion
+
+        #region �S���҃R���{�{�b�N�X�ύX
+        /// <summary>
+        /// �S���ҕύX
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void cmbConstructionPerson_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            if (m_initDataLoad) return;
+
+            // �S���ґI���������I����ݒ肷��
+            SetPerosonToDepartment();
+
+            // �f�[�^�\��
+            DataDisplay();
+        }
+        #endregion
+
+        #region �����R���{�{�b�N�X�ύX
+        /// <summary>
+        /// �����R���{�{�b�N�X�ύX
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            if (m_initDataLoad) return;
+
+            // �S���҃R���{�{�b�N�X�ύX
+            SetcmbPersons();
+
+            // �f�[�^�\��
+            DataDisplay();
+        }
+        #endregion
+
+        #region �c�ƁE�H���S���Ґ؂�ւ�
+        /// <summary>
+        /// �c�ƁE�H���S���Ґ؂�ւ�
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void radioButton_CheckedChanged(object sender, EventArgs e)
+        {
+            if (m_initDataLoad) return;
+
+            // �f�[�^�\��
+            DataDisplay();
+        }
+        #endregion
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetList.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetList.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetList.designer.cs	(revision 6)
@@ -40,13 +40,17 @@
             this.btnEnd = new System.Windows.Forms.Button();
             this.label1 = new System.Windows.Forms.Label();
             this.groupBox1 = new System.Windows.Forms.GroupBox();
-            this.cmbConstructionPeriod = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.label3 = new System.Windows.Forms.Label();
+            this.radioButton2 = new System.Windows.Forms.RadioButton();
+            this.radioButton1 = new System.Windows.Forms.RadioButton();
+            this.label4 = new System.Windows.Forms.Label();
+            this.numUDConstPro = new System.Windows.Forms.NumericUpDown();
+            this.label5 = new System.Windows.Forms.Label();
+            this.label7 = new System.Windows.Forms.Label();
             this.cmbConstructionPerson = new System.Windows.Forms.ComboBox();
-            this.cmbSalesPerson = new System.Windows.Forms.ComboBox();
-            this.btnSerch = new System.Windows.Forms.Button();
-            this.label3 = new System.Windows.Forms.Label();
+            this.cmbDepartment = new System.Windows.Forms.ComboBox();
             this.label2 = new System.Windows.Forms.Label();
-            this.label7 = new System.Windows.Forms.Label();
+            this.btnDataUpDate = new System.Windows.Forms.Button();
             this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -55,8 +59,8 @@
             this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.btnDataUpDate = new System.Windows.Forms.Button();
             this.groupBox1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit();
             this.SuspendLayout();
             // 
@@ -102,13 +106,16 @@
             // groupBox1
             // 
             this.groupBox1.BackColor = System.Drawing.Color.Maroon;
-            this.groupBox1.Controls.Add(this.cmbConstructionPeriod);
+            this.groupBox1.Controls.Add(this.label3);
+            this.groupBox1.Controls.Add(this.radioButton2);
+            this.groupBox1.Controls.Add(this.radioButton1);
+            this.groupBox1.Controls.Add(this.label4);
+            this.groupBox1.Controls.Add(this.numUDConstPro);
+            this.groupBox1.Controls.Add(this.label5);
+            this.groupBox1.Controls.Add(this.label7);
             this.groupBox1.Controls.Add(this.cmbConstructionPerson);
-            this.groupBox1.Controls.Add(this.cmbSalesPerson);
-            this.groupBox1.Controls.Add(this.btnSerch);
-            this.groupBox1.Controls.Add(this.label3);
+            this.groupBox1.Controls.Add(this.cmbDepartment);
             this.groupBox1.Controls.Add(this.label2);
-            this.groupBox1.Controls.Add(this.label7);
             this.groupBox1.ForeColor = System.Drawing.Color.White;
             this.groupBox1.Location = new System.Drawing.Point(10, 40);
             this.groupBox1.Name = "groupBox1";
@@ -115,20 +122,100 @@
             this.groupBox1.Size = new System.Drawing.Size(1260, 55);
             this.groupBox1.TabIndex = 0;
             this.groupBox1.TabStop = false;
-            this.groupBox1.Text = "検索条件";
             // 
-            // cmbConstructionPeriod
+            // label3
             // 
-            this.cmbConstructionPeriod.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.cmbConstructionPeriod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbConstructionPeriod.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbConstructionPeriod.FormattingEnabled = true;
-            this.cmbConstructionPeriod.Location = new System.Drawing.Point(128, 19);
-            this.cmbConstructionPeriod.Name = "cmbConstructionPeriod";
-            this.cmbConstructionPeriod.Size = new System.Drawing.Size(115, 23);
-            this.cmbConstructionPeriod.TabIndex = 0;
+            this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label3.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label3.ForeColor = System.Drawing.Color.Black;
+            this.label3.Location = new System.Drawing.Point(747, 19);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(120, 25);
+            this.label3.TabIndex = 48;
+            this.label3.Text = "担　当　者";
+            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // radioButton2
+            // 
+            this.radioButton2.AutoSize = true;
+            this.radioButton2.BackColor = System.Drawing.Color.Transparent;
+            this.radioButton2.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton2.ForeColor = System.Drawing.Color.White;
+            this.radioButton2.Location = new System.Drawing.Point(662, 32);
+            this.radioButton2.Name = "radioButton2";
+            this.radioButton2.Size = new System.Drawing.Size(77, 20);
+            this.radioButton2.TabIndex = 54;
+            this.radioButton2.Text = "工　事";
+            this.radioButton2.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.radioButton2.UseVisualStyleBackColor = false;
+            this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
+            // 
+            // radioButton1
+            // 
+            this.radioButton1.AutoSize = true;
+            this.radioButton1.BackColor = System.Drawing.Color.Transparent;
+            this.radioButton1.Checked = true;
+            this.radioButton1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.radioButton1.ForeColor = System.Drawing.Color.White;
+            this.radioButton1.Location = new System.Drawing.Point(662, 12);
+            this.radioButton1.Name = "radioButton1";
+            this.radioButton1.Size = new System.Drawing.Size(77, 20);
+            this.radioButton1.TabIndex = 53;
+            this.radioButton1.TabStop = true;
+            this.radioButton1.Text = "営　業";
+            this.radioButton1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
+            this.radioButton1.UseVisualStyleBackColor = false;
+            this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton_CheckedChanged);
+            // 
+            // label4
+            // 
+            this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label4.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label4.ForeColor = System.Drawing.Color.Black;
+            this.label4.Location = new System.Drawing.Point(20, 19);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(120, 25);
+            this.label4.TabIndex = 52;
+            this.label4.Text = "営業期";
+            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // numUDConstPro
+            // 
+            this.numUDConstPro.BackColor = System.Drawing.Color.White;
+            this.numUDConstPro.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.numUDConstPro.ForeColor = System.Drawing.Color.Black;
+            this.numUDConstPro.Location = new System.Drawing.Point(173, 20);
+            this.numUDConstPro.Name = "numUDConstPro";
+            this.numUDConstPro.ReadOnly = true;
+            this.numUDConstPro.Size = new System.Drawing.Size(80, 23);
+            this.numUDConstPro.TabIndex = 45;
+            this.numUDConstPro.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
+            // 
+            // label5
+            // 
+            this.label5.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label5.ForeColor = System.Drawing.Color.White;
+            this.label5.Location = new System.Drawing.Point(253, 23);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(25, 16);
+            this.label5.TabIndex = 50;
+            this.label5.Text = "期";
+            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label7
+            // 
+            this.label7.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label7.ForeColor = System.Drawing.Color.White;
+            this.label7.Location = new System.Drawing.Point(148, 23);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(25, 16);
+            this.label7.TabIndex = 51;
+            this.label7.Text = "第";
+            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // cmbConstructionPerson
             // 
             this.cmbConstructionPerson.BackColor = System.Drawing.Color.White;
@@ -135,47 +222,24 @@
             this.cmbConstructionPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
             this.cmbConstructionPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.cmbConstructionPerson.FormattingEnabled = true;
-            this.cmbConstructionPerson.Location = new System.Drawing.Point(811, 19);
+            this.cmbConstructionPerson.Location = new System.Drawing.Point(875, 20);
             this.cmbConstructionPerson.Name = "cmbConstructionPerson";
-            this.cmbConstructionPerson.Size = new System.Drawing.Size(300, 23);
-            this.cmbConstructionPerson.TabIndex = 2;
+            this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 23);
+            this.cmbConstructionPerson.TabIndex = 47;
+            this.cmbConstructionPerson.SelectedIndexChanged += new System.EventHandler(this.cmbConstructionPerson_SelectedIndexChanged);
             // 
-            // cmbSalesPerson
+            // cmbDepartment
             // 
-            this.cmbSalesPerson.BackColor = System.Drawing.Color.White;
-            this.cmbSalesPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbSalesPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbSalesPerson.FormattingEnabled = true;
-            this.cmbSalesPerson.Location = new System.Drawing.Point(377, 19);
-            this.cmbSalesPerson.Name = "cmbSalesPerson";
-            this.cmbSalesPerson.Size = new System.Drawing.Size(300, 23);
-            this.cmbSalesPerson.TabIndex = 1;
+            this.cmbDepartment.BackColor = System.Drawing.Color.White;
+            this.cmbDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbDepartment.FormattingEnabled = true;
+            this.cmbDepartment.Location = new System.Drawing.Point(422, 20);
+            this.cmbDepartment.Name = "cmbDepartment";
+            this.cmbDepartment.Size = new System.Drawing.Size(200, 23);
+            this.cmbDepartment.TabIndex = 46;
+            this.cmbDepartment.SelectedIndexChanged += new System.EventHandler(this.cmbDepartment_SelectedIndexChanged);
             // 
-            // btnSerch
-            // 
-            this.btnSerch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.btnSerch.ForeColor = System.Drawing.Color.Black;
-            this.btnSerch.Location = new System.Drawing.Point(1137, 16);
-            this.btnSerch.Name = "btnSerch";
-            this.btnSerch.Size = new System.Drawing.Size(120, 30);
-            this.btnSerch.TabIndex = 3;
-            this.btnSerch.Text = "検　　索";
-            this.btnSerch.UseVisualStyleBackColor = false;
-            this.btnSerch.Click += new System.EventHandler(this.btnSerch_Click);
-            // 
-            // label3
-            // 
-            this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label3.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label3.ForeColor = System.Drawing.Color.Black;
-            this.label3.Location = new System.Drawing.Point(693, 18);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(110, 25);
-            this.label3.TabIndex = 4;
-            this.label3.Text = "工事担当者";
-            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // label2
             // 
             this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
@@ -182,25 +246,26 @@
             this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label2.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label2.ForeColor = System.Drawing.Color.Black;
-            this.label2.Location = new System.Drawing.Point(259, 18);
+            this.label2.Location = new System.Drawing.Point(294, 19);
             this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(110, 25);
-            this.label2.TabIndex = 4;
-            this.label2.Text = "営業担当者";
+            this.label2.Size = new System.Drawing.Size(120, 25);
+            this.label2.TabIndex = 49;
+            this.label2.Text = "部　　署";
             this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // label7
+            // btnDataUpDate
             // 
-            this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label7.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label7.ForeColor = System.Drawing.Color.Black;
-            this.label7.Location = new System.Drawing.Point(10, 18);
-            this.label7.Name = "label7";
-            this.label7.Size = new System.Drawing.Size(110, 25);
-            this.label7.TabIndex = 0;
-            this.label7.Text = "営業期";
-            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.btnDataUpDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnDataUpDate.BackColor = System.Drawing.Color.Aquamarine;
+            this.btnDataUpDate.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnDataUpDate.ForeColor = System.Drawing.Color.Black;
+            this.btnDataUpDate.Location = new System.Drawing.Point(1150, 4);
+            this.btnDataUpDate.Name = "btnDataUpDate";
+            this.btnDataUpDate.Size = new System.Drawing.Size(120, 30);
+            this.btnDataUpDate.TabIndex = 6;
+            this.btnDataUpDate.Text = "最新状態に更新";
+            this.btnDataUpDate.UseVisualStyleBackColor = false;
+            this.btnDataUpDate.Click += new System.EventHandler(this.btnDataUpDate_Click);
             // 
             // dgvMaster
             // 
@@ -323,20 +388,6 @@
             this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.Column7.Width = 150;
             // 
-            // btnDataUpDate
-            // 
-            this.btnDataUpDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnDataUpDate.BackColor = System.Drawing.Color.Aquamarine;
-            this.btnDataUpDate.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnDataUpDate.ForeColor = System.Drawing.Color.Black;
-            this.btnDataUpDate.Location = new System.Drawing.Point(1150, 4);
-            this.btnDataUpDate.Name = "btnDataUpDate";
-            this.btnDataUpDate.Size = new System.Drawing.Size(120, 30);
-            this.btnDataUpDate.TabIndex = 6;
-            this.btnDataUpDate.Text = "最新状態に更新";
-            this.btnDataUpDate.UseVisualStyleBackColor = false;
-            this.btnDataUpDate.Click += new System.EventHandler(this.btnDataUpDate_Click);
-            // 
             // FrmCopyTargetList
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -362,6 +413,8 @@
             this.Load += new System.EventHandler(this.FrmConstructionBaseInfoList_Load);
             this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmConstructionBaseInfoList_KeyDown);
             this.groupBox1.ResumeLayout(false);
+            this.groupBox1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).EndInit();
             this.ResumeLayout(false);
 
@@ -373,13 +426,7 @@
         private System.Windows.Forms.Button btnEnd;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.GroupBox groupBox1;
-        private System.Windows.Forms.Button btnSerch;
-        private System.Windows.Forms.Label label2;
-        private System.Windows.Forms.Label label7;
-        private System.Windows.Forms.ComboBox cmbSalesPerson;
         private CustomControls.DataGridViewEX dgvMaster;
-        private System.Windows.Forms.ComboBox cmbConstructionPerson;
-        private System.Windows.Forms.Label label3;
         private System.Windows.Forms.Button btnDataUpDate;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
@@ -388,6 +435,15 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
-        private CustomControls.ComboBoxEX cmbConstructionPeriod;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.RadioButton radioButton2;
+        private System.Windows.Forms.RadioButton radioButton1;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.NumericUpDown numUDConstPro;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.ComboBox cmbConstructionPerson;
+        private System.Windows.Forms.ComboBox cmbDepartment;
+        private System.Windows.Forms.Label label2;
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs	(revision 6)
@@ -135,8 +135,110 @@
                 return string.Empty;
             }
         }
+        #endregion
 
+        #region �����R���{���S���҃R�[�h���擾����
         /// <summary>
+        /// �����R���{���S���҃R�[�h���擾����
+        /// </summary>
+        /// <returns></returns>
+        private int GetDepartmentCode()
+        {
+            try
+            {
+                // �\������Ă��Ȃ��ꍇ�͑I��
+                //if (!cmbDepartment.Visible) return 0;
+
+                return CommonMotions.cnvInt(cmbDepartment.SelectedValue);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}", ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        #region �S���҃R���{���S���҃R�[�h���擾����
+        /// <summary>
+        /// �S���҃R���{���S���҃R�[�h���擾����
+        /// </summary>
+        /// <returns></returns>
+        private int GetConstructionPersonCode()
+        {
+            try
+            {
+                // �\������Ă��Ȃ��ꍇ�͑I��
+                //if (!cmbConstructionPerson.Visible) return 0;
+
+                return CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}", ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        #region �S���҂��I������Ă���ꍇ
+        /// <summary>
+        /// �S���҂��I������Ă���ꍇ
+        /// </summary>
+        /// <returns></returns>
+        private string GetPersonString()
+        {
+            try
+            {
+                string strRet = string.Empty;
+
+                // �c�ƒS���҂��I������Ă���ꍇ
+                int PersonCode = GetConstructionPersonCode();
+                if (PersonCode == 0) return strRet;
+
+                if (radioButton1.Checked)
+                    strRet = string.Format(" AND A.SalesPersonCode = {0}", PersonCode);
+                else
+                    strRet = string.Format(" AND (A.ConstructionPersonCode = {0} OR A.ConstrSubPersonCode = {0} OR A.ConstructionInstructor = {0})", PersonCode);
+
+                return strRet;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return string.Empty;
+            }
+        }
+        #endregion
+
+        #region �������I������Ă���ꍇ
+        /// <summary>
+        /// �������I������Ă���ꍇ
+        /// </summary>
+        /// <returns></returns>
+        private string GetDepartmentString()
+        {
+            try
+            {
+                string strRet = string.Empty;
+
+                int DepartmentCode = GetDepartmentCode();
+                if (DepartmentCode == 0) return strRet;
+
+                strRet += string.Format(" AND (D.DEPARTMENTCODE = {0})", DepartmentCode);
+
+                return strRet;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return string.Empty;
+            }
+        }
+        #endregion
+
+        #region ������SQL�쐬
+        /// <summary>
         /// ������SQL�쐬
         /// </summary>
         private string CreateSerchSQL()
@@ -144,33 +246,15 @@
             string strSubSQL = "";
             try
             {
-                // �J�n�N������ꍇ
-                if (cmbConstructionPeriod.Text.Length != 0)
-                {
-                    strSubSQL = string.Format(" And  ({0} <= A.ConstructionPeriod)", cmbConstructionPeriod.Text);
-                }
-                // �c�ƒS���҂��I������Ă���ꍇ
-                if (cmbSalesPerson.Text.Length != 0)
-                {
-                    int iId = CommonMotions.cnvInt(cmbSalesPerson.SelectedValue);
-                    if (strSubSQL.Length != 0)
-                    {
-                        strSubSQL += " And ";
-                    }
+                // �J�n�N
+                strSubSQL = string.Format(" And  ({0} = A.ConstructionPeriod)", numUDConstPro.Value);
 
-                    strSubSQL += string.Format(" (A.SalesPersonCode = {0})", iId);
-                }
-                // �H���S���҂��I������Ă���ꍇ
-                if (cmbConstructionPerson.Text.Length != 0)
-                {
-                    int iId = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
-                    if (strSubSQL.Length != 0)
-                    {
-                        strSubSQL += " And ";
-                    }
+                // �������I������Ă���ꍇ
+                strSubSQL += GetDepartmentString();
 
-                    strSubSQL += string.Format(" (A.ConstructionPersonCode = {0} OR A.CONSTRSUBPERSONCODE = {0} OR A.CONSTRUCTIONINSTRUCTOR = {0})", iId);
-                }
+                // �S���҂��I������Ă���ꍇ
+                strSubSQL += GetPersonString();
+
                 return strSubSQL;
             }
             catch (Exception ex)
@@ -179,7 +263,9 @@
                 return string.Empty;
             }
         }
+        #endregion
 
+        #region �\���p�f�[�^�擾SQL�쐬
         /// <summary>
         /// �\���p�f�[�^�擾SQL�쐬
         /// </summary>
@@ -193,10 +279,15 @@
                 strSQL += ", A.SalesPersonCode";
                 strSQL += ", A.ConstructionPersonCode";
                 strSQL += ", A.ConstructionStatusFlg";
-                strSQL += " FROM ConstructionBaseInfo A, ConstructionBaseInfoDetail B, EstimateData C";
-                strSQL += " WHERE (A.ConstructionCode = B.ConstructionCode";
-                strSQL += string.Format(" And B.DETAILNO = {0})", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
+                strSQL += " FROM ConstructionBaseInfo A, ConstructionBaseInfoDetail B, EstimateData C, PERSONINCHARGEMASTER D";
+                strSQL += string.Format(" WHERE (A.ConstructionCode = B.ConstructionCode And B.DETAILNO = {0})",
+                                        (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
+                strSQL += " AND (A.SalesPersonCode = D.PersonCode";
+                strSQL += " OR A.ConstructionPersonCode = D.PersonCode";
+                strSQL += " OR A.ConstrSubPersonCode = D.PersonCode";
+                strSQL += " OR A.ConstructionInstructor = D.PersonCode)";
 
+
                 List<int> paraList = new List<int>();
                 bool paraSw = false;
                 bool allSW = false;
@@ -261,6 +352,61 @@
         }
         #endregion
 
+        #region �������f�[�^�擾
+        /// <summary>
+        /// �������f�[�^�擾
+        /// </summary>
+        private void InitDataLoad()
+        {
+            try
+            {
+                // �����N�x�Z�b�g
+                // �f�[�^�ɂ��鎖�Ɗ��ƌ��݂̎��ƃZ�b�g
+                int minval = 0;
+                int maxval = 0;
+                CommonMotions.GetPeriodYear(ref minval, ref maxval);
+                numUDConstPro.Minimum = minval;
+                numUDConstPro.Maximum = maxval;
+                numUDConstPro.Value = CommonMotions.SystemMasterData.BusinessPeriod;
+
+                // ----- �ޔ������f�[�^���������ꍇ�̓Z�b�g����
+                int NowPoint = ClsExcute.GetNowProcessPoint();
+                if (ClsExcute.ProcControlPara[NowPoint].StringSaveParameter.Count > 0)
+                {
+                    //�@�N�x
+                    numUDConstPro.Value = CommonMotions.cnvInt(ClsExcute.ProcControlPara[NowPoint].StringSaveParameter[0]);
+                }
+                // �S����
+                if (ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Count > 0)
+                {
+                    cmbDepartment.SelectedIndex = ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[0];
+                    cmbConstructionPerson.SelectedIndex = ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[1];
+                }
+
+                // �O���b�h�̍s��0�ɖ߂�
+                dgvMaster.Rows.Clear();
+
+                // �f�[�^�\��
+                DataDisplay();
+
+                // �\�[�g���
+                if (ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Count > 2)
+                {
+                    // �J�����擾
+                    DataGridViewColumn wrksortcolumn = dgvMaster.Columns[ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[2]];
+                    // �\�[�g�I�[�_�[�擾
+                    ListSortDirection sortDirection = ((SortOrder)ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[3]) == SortOrder.Ascending ?
+                                                                        ListSortDirection.Ascending : ListSortDirection.Descending;
+                    dgvMaster.Sort(wrksortcolumn, sortDirection);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region �f�[�^�ꗗ�\��
         /// <summary>
         /// �ꗗ�f�[�^�\������
@@ -326,16 +472,61 @@
             }
             finally
             {
-                cbiDB.close();
-                cbiDB = null;
+                cbiDB.close(); cbiDB = null;
+                picDB.close(); picDB = null;
+            }
+        }
+        #endregion
 
-                picDB.close();
-                picDB = null;
+        #region �����R���{�{�b�N�X���Z�b�g����
+        /// <summary>
+        /// �����R���{�{�b�N�X�֕������Z�b�g����
+        /// </summary>
+        private bool SetcmbDepartment()
+        {
+            IOMDepartment depDB = new IOMDepartment();
+            List<DepartmentMaster> workList = new List<DepartmentMaster>();
+            bool bSave = m_initDataLoad;
+            m_initDataLoad = true;
+            try
+            {
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
+                // �����}�X�^�Ǎ�
+                string strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                if (!depDB.SelectAction(strSQL, ref workList)) return false;
+
+                List<KeyValuePair<int, string>> ConstructionDataList = new List<KeyValuePair<int, string>>();
+                ConstructionDataList.Add(new KeyValuePair<int, string>(0, ""));
+
+                foreach (DepartmentMaster work in workList)
+                {
+                    KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(work.DepartmentCode, work.DepartmentString);
+
+                    ConstructionDataList.Add(keyval);
+                }
+
+                // �R���{�{�b�N�X�����\��
+                ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
+
+                return true;
             }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                depDB.close(); depDB = null;
+                m_initDataLoad = bSave;
+            }
         }
         #endregion
 
-        #region �R���{�{�b�N�X�Z�b�g
+        #region �S���҃R���{�{�b�N�X�Z�b�g
         /// <summary>
         /// �S���҃R���{�{�b�N�X�֕������Z�b�g����
         /// </summary>
@@ -345,19 +536,21 @@
             List<PersonInChargeMaster> workList = new List<PersonInChargeMaster>(); ;
             try
             {
-                cmbSalesPerson.DataSource = null;
-                cmbSalesPerson.Items.Clear();
-                cmbSalesPerson.Text = "";
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
 
-                // �S���҃}�X�^����������
-                string strSQL = " Where DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC";
+                string strSQL = string.Empty;
+                int DepartmentCode = GetDepartmentCode();
+                if (DepartmentCode == 0)
+                    strSQL = " WHERE DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC";
+                else
+                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC", DepartmentCode);
 
                 // �S���҃}�X�^�Ǎ�
                 if (!picDB.SelectAction(strSQL, ref workList)) return false;
 
-                List<KeyValuePair<int, string>> SalesDataList = new List<KeyValuePair<int, string>>();
                 List<KeyValuePair<int, string>> ConstructionDataList = new List<KeyValuePair<int, string>>();
-                SalesDataList.Add(new KeyValuePair<int, string>(0, ""));
                 ConstructionDataList.Add(new KeyValuePair<int, string>(0, ""));
 
                 foreach (PersonInChargeMaster work in workList)
@@ -364,14 +557,19 @@
                 {
                     KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(work.PersonCode, work.PersonName);
 
-                    SalesDataList.Add(keyval);
                     ConstructionDataList.Add(keyval);
                 }
 
                 // �R���{�{�b�N�X�����\��
-                ComboBoxAction.InitDataSetCombBox(cmbSalesPerson, SalesDataList);
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
-                
+
+                // ��ʃ��[�U�[�ő����������҂ł͂Ȃ��ꍇ�A���O�C���҂̃R�[�h���Z�b�g����
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key &&
+                    CommonMotions.LoginUserData.DepartmentCode != CommonDefine.s_GeneralAffairsDevision)
+                {
+                    cmbConstructionPerson.SelectedValue = CommonMotions.LoginUserData.PersonCode;
+                }
+
                 return true;
             }
             catch (Exception ex)
@@ -381,39 +579,40 @@
             }
             finally
             {
-                picDB.close();
-                picDB = null;
+                picDB.close(); picDB = null;
             }
         }
         #endregion
 
-        #region �c�Ɗ��R���{�{�b�N�X�Z�b�g
+        #region �S���҃R���{�{�b�N�X�Z�b�g���������Z�b�g����
         /// <summary>
-        /// �c�Ɗ��R���{�{�b�N�X�֕������Z�b�g����
+        /// �S���҃R���{�{�b�N�X�Z�b�g���������Z�b�g����
         /// </summary>
-        private bool SetcmbConstructionPeriod()
+        /// <returns></returns>
+        private bool SetPerosonToDepartment()
         {
+            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbConstructionPeriod.Items.Clear();
-                cmbConstructionPeriod.Text = "";
+                // �R���{�{�b�N�X���I��S���҂��擾����
+                int PersonCode = GetConstructionPersonCode();
+                if (PersonCode < 1) return false;
 
-                // �����Z�b�g�i-2�N�`+2�N�j
-                int NowPeriod = CommonMotions.SystemMasterData.BusinessPeriod;
-                if (NowPeriod > 2) cmbConstructionPeriod.Items.Add((NowPeriod - 2).ToString());
-                if (NowPeriod > 1) cmbConstructionPeriod.Items.Add((NowPeriod - 1).ToString());
-                cmbConstructionPeriod.Items.Add(NowPeriod.ToString());
-                cmbConstructionPeriod.Items.Add((NowPeriod + 1).ToString());
-                cmbConstructionPeriod.Items.Add((NowPeriod + 2).ToString());
+                int DepartmentCode = GetDepartmentCode();
 
-                // ���G�Z�b�g
-                if (cmbConstructionPeriod.Items.Count == 5)
-                    cmbConstructionPeriod.SelectedIndex = 2;
-                else if (cmbConstructionPeriod.Items.Count == 4)
-                    cmbConstructionPeriod.SelectedIndex = 1;
-                else if (cmbConstructionPeriod.Items.Count == 3)
-                    cmbConstructionPeriod.SelectedIndex = 0;
+                string strSQL = PersonDB.CreatePrimarykeyString(PersonCode);
+                PersonInChargeMaster PersonRec = new PersonInChargeMaster();
+                PersonDB.SelectAction(strSQL, ref PersonRec);
 
+                // �����R���{�{�b�N�X�֕����R�[�h�Z�b�g
+                if (PersonRec.DepartmentCode > 0 && DepartmentCode != PersonRec.DepartmentCode)
+                {
+                    bool bSave = m_initDataLoad;
+                    m_initDataLoad = true;
+                    cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+                    m_initDataLoad = bSave;
+                }
+
                 return true;
             }
             catch (Exception ex)
@@ -421,6 +620,10 @@
                 logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
                 return false;
             }
+            finally
+            {
+                PersonDB.close(); PersonDB = null;
+            }
         }
         #endregion
     }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.cs	(revision 6)
@@ -191,7 +191,7 @@
         /// <summary>
         /// �Œ�J�����^�C�g��
         /// </summary>
-        private static string[] ColumnsTitile = new string[] { "�x�@���@���@�v",
+        private static string[] ColumnsTitle = new string[] { "�x�@���@���@�v",
                                                                 "�x �� �� �\ �z",
                                                                 "�x�@���@���@��",
                                                                 "�x �� �� �U �g"};
@@ -354,6 +354,11 @@
         /// </summary>
         private bool m_ParentEnd = false;
         // *-----* ���ʏ����ݒ� *-----*
+
+        /// <summary>
+        /// �l�������X�g���
+        /// </summary>
+        private FrmNumberOfWorkers m_frmNumberOfWorkers = null;
         #endregion
 
         #region �v���p�e�B
@@ -470,6 +475,9 @@
                     }
                 }
 
+                // �l�����ꗗ���\������Ă���΃N���[�Y����
+                if (m_frmNumberOfWorkers != null) m_frmNumberOfWorkers.Close();
+
                 // �I���{�^����ON�Ȃ�ΑO�v���Z�X�ɖ߂�
                 if (m_CloseingProcessOn) ClsExcute.BackProcess();
             }
@@ -625,6 +633,8 @@
         {
             try
             {
+                if (ActiveControl.Name.Equals(btnEnd.Name)) return;
+
                 DataGridView dgv = (DataGridView)sender;
                 DataGridViewRow dgvRow = dgv.CurrentRow;
 
@@ -642,11 +652,11 @@
                         break;
                     case (int)DispGridColumn1.TodayHeadCount:
                         // �����l��
-                        int ToDay = CommonMotions.cnvInt(dgvRow.Cells[(int)DispGridColumn1.TodayHeadCount].Value);
-                        int Total = GetTotalHeadCount(false,
+                        double ToDay = CommonMotions.cnvDouble(dgvRow.Cells[(int)DispGridColumn1.TodayHeadCount].Value);
+                        double Total = GetTotalHeadCount(false,
                                                         CommonMotions.cnvInt(dgvRow.Cells[(int)DispGridColumn1.JobCategoryCode].Value),
                                                         CommonMotions.cnvInt(dgvRow.Cells[(int)DispGridColumn1.CompanyCode].Value));
-                        dgvRow.Cells[(int)DispGridColumn1.TotalHeadCount].Value = (ToDay + Total).ToString("#,0");
+                        dgvRow.Cells[(int)DispGridColumn1.TotalHeadCount].Value = (ToDay + Total).ToString("#,0.0");
                         break;
                     default:
                         return;
@@ -1244,5 +1254,23 @@
             InitDataLoad();
         }
         #endregion
+
+        private void btnWorkingList_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                if (m_frmNumberOfWorkers != null)
+                {
+                    m_frmNumberOfWorkers.Activate();
+                    return;
+                }
+                // �l�����\����ʂ�\��
+                DispConstractorListControl();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.designer.cs	(revision 6)
@@ -158,6 +158,8 @@
             this.btnNext = new System.Windows.Forms.Button();
             this.btnProv = new System.Windows.Forms.Button();
             this.btnOtherProc = new System.Windows.Forms.Button();
+            this.panel2 = new System.Windows.Forms.Panel();
+            this.btnWorkingList = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
             this.pnlApproval.SuspendLayout();
             this.pnlApprovalButton.SuspendLayout();
@@ -167,6 +169,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX2)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).BeginInit();
+            this.panel2.SuspendLayout();
             this.SuspendLayout();
             // 
             // label1
@@ -1421,7 +1424,7 @@
             this.lblCellTotal.BackColor = System.Drawing.Color.WhiteSmoke;
             this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.lblCellTotal.ForeColor = System.Drawing.Color.Black;
-            this.lblCellTotal.Location = new System.Drawing.Point(100, 25259);
+            this.lblCellTotal.Location = new System.Drawing.Point(100, 25902);
             this.lblCellTotal.Name = "lblCellTotal";
             this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
             this.lblCellTotal.TabIndex = 36;
@@ -1616,6 +1619,28 @@
             this.btnOtherProc.UseVisualStyleBackColor = false;
             this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
             // 
+            // panel2
+            // 
+            this.panel2.BackColor = System.Drawing.Color.LemonChiffon;
+            this.panel2.Controls.Add(this.btnWorkingList);
+            this.panel2.Location = new System.Drawing.Point(1100, 3);
+            this.panel2.Name = "panel2";
+            this.panel2.Size = new System.Drawing.Size(237, 34);
+            this.panel2.TabIndex = 97;
+            // 
+            // btnWorkingList
+            // 
+            this.btnWorkingList.BackColor = System.Drawing.Color.DarkOrange;
+            this.btnWorkingList.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnWorkingList.ForeColor = System.Drawing.Color.Black;
+            this.btnWorkingList.Location = new System.Drawing.Point(4, 4);
+            this.btnWorkingList.Name = "btnWorkingList";
+            this.btnWorkingList.Size = new System.Drawing.Size(230, 26);
+            this.btnWorkingList.TabIndex = 12;
+            this.btnWorkingList.Text = "累計人員数を表示する";
+            this.btnWorkingList.UseVisualStyleBackColor = false;
+            this.btnWorkingList.Click += new System.EventHandler(this.btnWorkingList_Click);
+            // 
             // FrmDRConstruction
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -1622,6 +1647,7 @@
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
             this.BackColor = System.Drawing.Color.Black;
             this.ClientSize = new System.Drawing.Size(1344, 692);
+            this.Controls.Add(this.panel2);
             this.Controls.Add(this.btnOtherProc);
             this.Controls.Add(this.btnProv);
             this.Controls.Add(this.btnNext);
@@ -1654,6 +1680,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX2)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).EndInit();
+            this.panel2.ResumeLayout(false);
             this.ResumeLayout(false);
 
         }
@@ -1767,5 +1794,7 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+        private System.Windows.Forms.Panel panel2;
+        private System.Windows.Forms.Button btnWorkingList;
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs	(revision 6)
@@ -712,9 +712,10 @@
                 SetConstructionTime();
 
                 // 担当者取得
+                //int Person = DailyDataRec.PersonCode;
+                //if (Person == 0) Person = CommonMotions.LoginUserData.PersonCode;
                 //int Person = CommonMotions.LoginUserData.PersonCode;
-                int Person = DailyDataRec.PersonCode;
-                if (Person == 0) Person = CommonMotions.LoginUserData.PersonCode;
+                int Person = m_ConstructionBaseInfo.ConstructionPersonCode;
                 strSQL = PersonDB.CreatePrimarykeyString(Person);
                 PersonInChargeMaster PersonRec = new PersonInChargeMaster();
                 PersonDB.SelectAction(strSQL, ref PersonRec);
@@ -883,24 +884,24 @@
                     // データ無は空行を表示する
                     dgv.Rows.Add(s_MinRowCountGrid[(int)DataGridDefine.Detail]);
                     // 合計表示
-                    lblGrid1Total1.Text = "0";
-                    lblGrid1Total2.Text = GetTotalHeadCount().ToString("#,0");
-                    lblGrid1Total3.Text = "0";
+                    lblGrid1Total1.Text = "0.0";
+                    lblGrid1Total2.Text = GetTotalHeadCount().ToString("#,0.0");
+                    lblGrid1Total3.Text = "0.0";
                     return;
                 }
 
                 // グリッド表示
                 int ino = 1;
-                int Total1 = 0;
-                int Total2 = 0;
-                int Total3 = 0;
+                double Total1 = 0;
+                double Total2 = 0;
+                double Total3 = 0;
                 int iCompany = 0;
                 string strCompany = string.Empty;
                 foreach (object[] RecData in arList)
                 {
-                    Total1 += CommonMotions.cnvInt(RecData[4]);
-                    Total2 += CommonMotions.cnvInt(RecData[5]);
-                    Total3 += CommonMotions.cnvInt(RecData[8]);
+                    Total1 += CommonMotions.cnvDouble(RecData[4]);
+                    Total2 += CommonMotions.cnvDouble(RecData[5]);
+                    Total3 += CommonMotions.cnvDouble(RecData[8]);
                     iCompany = CommonMotions.cnvInt(RecData[2]);
                     if (iCompany == -1)
                     {
@@ -915,11 +916,11 @@
                                     CommonMotions.cnvString(RecData[1]),
                                     iCompany,
                                     strCompany,
-                                    CommonMotions.cnvInt(RecData[4]),
-                                    CommonMotions.cnvInt(RecData[5]),
+                                    CommonMotions.cnvDouble(RecData[4]).ToString("#,0.0"),
+                                    CommonMotions.cnvDouble(RecData[5]).ToString("#,0.0"),
                                     CommonMotions.cnvString(RecData[6]),
                                     CommonMotions.cnvString(RecData[7]),
-                                    CommonMotions.cnvInt(RecData[8]));
+                                    CommonMotions.cnvDouble(RecData[8]).ToString("#,0.0"));
 
                     int CurRowCnt = dgv.RowCount - 1;
                     dgv.Rows[CurRowCnt].Cells[(int)DispGridColumn1.JobCategoryName].ToolTipText = CommonMotions.cnvString(RecData[1]);
@@ -928,10 +929,10 @@
                     dgv.Rows[CurRowCnt].Cells[(int)DispGridColumn1.NextdayWork].ToolTipText = CommonMotions.cnvString(RecData[7]);
                 }
                 // 合計表示
-                lblGrid1Total1.Text = Total1.ToString("#,0");
-                lblGrid1Total3.Text = Total3.ToString("#,0");
+                lblGrid1Total1.Text = Total1.ToString("#,0.0");
+                lblGrid1Total3.Text = Total3.ToString("#,0.0");
 
-                lblGrid1Total2.Text = (GetTotalHeadCount() + Total1).ToString("#,0");
+                lblGrid1Total2.Text = (GetTotalHeadCount() + Total1).ToString("#,0.0");
 
                 // 行が足りない場合は追加する
                 int RowCnt = s_MinRowCountGrid[(int)DataGridDefine.Detail] - dgv.RowCount;
@@ -960,19 +961,19 @@
             {
                 DataGridView dgv = m_DgvArray[(int)DataGridDefine.Detail];
                 // グリッド表示
-                int Total1 = 0;
-                int Total2 = 0;
-                int Total3 = 0;
+                double Total1 = 0;
+                double Total2 = 0;
+                double Total3 = 0;
                 foreach (DataGridViewRow wrkRow in dgv.Rows)
                 {
-                    Total1 += CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.TodayHeadCount].Value);
-                    Total2 += CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.TotalHeadCount].Value);
-                    Total3 += CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.NextdayHeadCount].Value);
+                    Total1 += CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn1.TodayHeadCount].Value);
+                    Total2 += CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn1.TotalHeadCount].Value);
+                    Total3 += CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn1.NextdayHeadCount].Value);
                 }
                 // 合計表示
-                lblGrid1Total1.Text = Total1.ToString("#,0");
-                lblGrid1Total2.Text = Total2.ToString("#,0");
-                lblGrid1Total3.Text = Total3.ToString("#,0");
+                lblGrid1Total1.Text = Total1.ToString("#,0.0");
+                lblGrid1Total2.Text = Total2.ToString("#,0.0");
+                lblGrid1Total3.Text = Total3.ToString("#,0.0");
             }
             catch (Exception ex)
             {
@@ -1586,11 +1587,11 @@
                     DataRec.SeqNo = Seqno++;
                     DataRec.JobCategoryCode = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.JobCategoryCode].Value);
                     DataRec.CompanyCode = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.CompanyCode].Value);
-                    DataRec.TodayHeadCount = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.TodayHeadCount].Value);
-                    DataRec.TotalHeadCount = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.TotalHeadCount].Value);
+                    DataRec.TodayHeadCount = CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn1.TodayHeadCount].Value);
+                    DataRec.TotalHeadCount = CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn1.TotalHeadCount].Value);
                     DataRec.TodayWork = Work;
                     DataRec.NextdayWork = NextDayWork;
-                    DataRec.NextdayHeadCount = CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.NextdayHeadCount].Value);
+                    DataRec.NextdayHeadCount = CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn1.NextdayHeadCount].Value);
 
                     // データ登録
                     if (!DetailDB.InsertAction(DataRec, false))
@@ -1598,6 +1599,13 @@
                         MessageBox.Show("日報データ(明細)登録：登録に失敗しました。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
                         return false;
                     }
+
+                    // 当日以降の累計人数を更新する
+                    if (!ReCalcTotalHeadCount(DetailDB, DataRec.JobCategoryCode, DataRec.CompanyCode))
+                    {
+                        MessageBox.Show("日報データ(明細)登録：登録２に失敗しました。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                        return false;
+                    }
                 }
                 return true;
             }
@@ -1914,6 +1922,32 @@
         }
         #endregion
 
+        #region 空白行チェック行
+        /// <summary>
+        /// 空白行チェック行
+        /// </summary>
+        /// <param name="values"></param>
+        /// <returns></returns>
+        private bool FeildEmptyCheck(params string[] values)
+        {
+            try
+            {
+                bool Value_Empty = true;
+                foreach(string wrkStr in values)
+                {
+                    if (wrkStr.Length != 0) Value_Empty = false;
+                }
+
+                return Value_Empty;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return true;
+            }
+        }
+        #endregion
+
         #region 日報データ(明細)チェック
         /// <summary>
         /// 日報データ(明細)チェック
@@ -1928,7 +1962,8 @@
                 string ToDayWork = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn1.TodayWork].Value);
                 string NextDayWork = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn1.NextdayWork].Value);
                 // 業社と作業内容が無い場合はチェックしない
-                if (JobName.Length == 0 && Company.Length == 0 && ToDayWork.Length == 0 && NextDayWork.Length == 0) return true;
+                if (FeildEmptyCheck(JobName, Company, ToDayWork, NextDayWork)) return true;
+                //if (JobName.Length == 0 && Company.Length == 0 && ToDayWork.Length == 0 && NextDayWork.Length == 0) return true;
 
                 bool bRet = true;
                 bool bAns = true;
@@ -1935,7 +1970,7 @@
 
                 // 会社名無はエラー
                 bAns = true;
-                if (JobName.Length != 0)
+                if (Company.Length != 0)
                 {
                     bAns = CommonMotions.chkStringLength(Company, 100, true);
                     // 背景色変更
@@ -1965,6 +2000,8 @@
                         bAns = false;
                     }
                 }
+                // 背景色変更
+                CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn1.TodayHeadCount], bAns);
                 bRet &= bAns;
 
                 // 累計人員数
@@ -1976,6 +2013,8 @@
                         bAns = false;
                     }
                 }
+                // 背景色変更
+                CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn1.TotalHeadCount], bAns);
                 bRet &= bAns;
 
                 // 翌日人員数
@@ -1987,6 +2026,8 @@
                         bAns = false;
                     }
                 }
+                // 背景色変更
+                CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn1.NextdayHeadCount], bAns);
                 bRet &= bAns;
 
                 return bRet;
@@ -2012,7 +2053,8 @@
                 string Owner = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn2.Owner].Value);
                 string Driver = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn2.Driver].Value);
                 // 機種・所有会社・当日運転者が無い場合は登録しない
-                if (Model.Length == 0 && Owner.Length == 0 && Driver.Length == 0) return true;
+                if (FeildEmptyCheck(Model, Owner, Driver)) return true;
+                //if (Model.Length == 0 && Owner.Length == 0 && Driver.Length == 0) return true;
 
                 bool bRet = true;
                 bool bAns = true;
@@ -2092,7 +2134,8 @@
                 string Materials = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn3.Materials].Value);
                 string Quantity = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn3.Quantity].Value);
                 // 資材名・数量が無い場合は登録しない
-                if (Materials.Length == 0 && Quantity.Length == 0) return true; ;
+                if (FeildEmptyCheck(Materials, Quantity)) return true;
+                //if (Materials.Length == 0 && Quantity.Length == 0) return true; ;
 
                 bool bRet = true;
                 bool bAns = true;
@@ -2160,7 +2203,8 @@
                 string Attendee = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn4.Attendee].Value);
                 string ContentsText = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn4.ContentsText].Value);
                 // 出席者・内容が無い場合は登録しない
-                if (Attendee.Length == 0 && ContentsText.Length == 0) return true;
+                if (FeildEmptyCheck(Attendee, ContentsText)) return true;
+                //if (Attendee.Length == 0 && ContentsText.Length == 0) return true;
 
                 bool bRet = true;
                 bool bAns = true;
@@ -2701,7 +2745,7 @@
                 DataGridViewRow dgvRow = dgv.CurrentRow;
 
                 frm.ConstructionCode = m_ConstructionCode;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 // 職種が設定されていれば職種を送る
                 int CategoryCode = CommonMotions.cnvInt(dgvRow.Cells[(int)DispGridColumn1.JobCategoryCode].Value);
                 if (CategoryCode != 0) frm.JobCateCode = CategoryCode;
@@ -2749,7 +2793,7 @@
 
                 frm.DialogUsed = true;
                 frm.MultiSelect = false;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton) return;
 
@@ -2884,7 +2928,7 @@
         {
             try
             {
-                int[] Total = new int[3];
+                double[] Total = new double[3];
                 Total[0] = 0;
                 Total[1] = 0;
                 Total[2] = 0;
@@ -2892,16 +2936,16 @@
                 foreach (DataGridViewRow wrkRow in dgv.Rows)
                 {
                     // 当日人員
-                    Total[0] += CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.TodayHeadCount].Value);
+                    Total[0] += CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn1.TodayHeadCount].Value);
                     // 累計人員
-                    Total[1] += CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.TotalHeadCount].Value);
+                    Total[1] += CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn1.TotalHeadCount].Value);
                     // 翌日予定人員
-                    Total[2] += CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn1.NextdayHeadCount].Value);
+                    Total[2] += CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn1.NextdayHeadCount].Value);
                 }
 
-                lblGrid1Total1.Text = Total[0].ToString("#,0");
-                lblGrid1Total2.Text = (GetTotalHeadCount() + Total[0]).ToString("#,0");
-                lblGrid1Total3.Text = Total[2].ToString("#,0");
+                lblGrid1Total1.Text = Total[0].ToString("#,0.0");
+                lblGrid1Total2.Text = (GetTotalHeadCount() + Total[0]).ToString("#,0.0");
+                lblGrid1Total3.Text = Total[2].ToString("#,0.0");
             }
             catch (Exception ex)
             {
@@ -2917,13 +2961,11 @@
         /// <param name="JobCode"></param>
         /// <param name="CompanyCode"></param>
         /// <returns></returns>
-        private int GetTotalHeadCount(bool TotalFlg = true, int JobCode = 0, int CompanyCode = 0)
+        private double GetTotalHeadCount(bool TotalFlg = true, int JobCode = 0, int CompanyCode = 0)
         {
             IODailyDataDetail DetailDB = new IODailyDataDetail();
             try
             {
-                int iRet = 0;
-
                 if (!TotalFlg && JobCode == 0 && CompanyCode == 0) return 0;
 
                 string strSQL = "SELECT SUM(TODAYHEADCOUNT) FROM DAILYDATADETAIL";
@@ -2936,9 +2978,8 @@
                 ArrayList arList = new ArrayList();
                 DetailDB.ExecuteReader(strSQL, ref arList);
                 object[] wrkobj = (object[])arList[0];
-                iRet = CommonMotions.cnvInt(wrkobj[0]);
 
-                return iRet;
+                return CommonMotions.cnvDouble(wrkobj[0]);
             }
             catch (Exception ex)
             {
@@ -2972,5 +3013,113 @@
             }
         }
         #endregion
+
+        #region 該当日報データ明細の累計人員数を更新日より後を更新する
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="JobCode"></param>
+        /// <param name="CompanyCode"></param>
+        /// <returns></returns>
+        private bool ReCalcTotalHeadCount(IODailyDataDetail DetailDB, int JobCode, int CompanyCode)
+        {
+            try
+            {
+                DateTime StartDate = GetTargetToday();
+
+                // 動作SQL作成
+                string strSQL = "SELECT TO_CHAR(DailyDataDate, 'YYYY/MM/DD') FROM DAILYDATADETAIL";
+
+                // 検索条件SQL作成
+                string strWhere = string.Empty;
+                strWhere = string.Format(" WHERE PersonCode = {0}", m_PersonCode);
+                strWhere += string.Format(" AND ConstructionCode = {0}", m_ConstructionCode);
+                strWhere += string.Format(" AND JobCategoryCode = {0}", JobCode);
+                strWhere += string.Format(" AND CompanyCode = {0}", CompanyCode);
+
+                // 日付指定SQL作成
+                string strDate = string.Format(" AND '{0}' < TO_CHAR(DailyDataDate, 'YYYY/MM/DD')", GetTargetToday().ToShortDateString());
+                // 検索文字列結合
+                strSQL += strWhere + strDate;
+
+                ArrayList TargetList = new ArrayList();
+                if (!DetailDB.ExecuteReader(strSQL, ref TargetList, false)) return false;
+                if (TargetList.Count == 0) return true;
+
+                string strUPDATE = string.Empty;
+                // 更新固定文字列設定
+                string strTemplate = "UPDATE DAILYDATADETAIL SET TOTALHEADCOUNT = (SELECT SUM(TODAYHEADCOUNT) FROM DAILYDATADETAIL" + strWhere;
+                foreach (object[] wrkobj in TargetList)
+                {
+                    strUPDATE = strTemplate;
+                    strUPDATE += string.Format(" AND TO_CHAR(DailyDataDate, 'YYYY/MM/DD') <= '{0}')", CommonMotions.cnvString(wrkobj[0]));
+                    strUPDATE += strWhere;
+                    strUPDATE += string.Format(" AND TO_CHAR(DailyDataDate, 'YYYY/MM/DD') = '{0}'", CommonMotions.cnvString(wrkobj[0]));
+
+                    if (!DetailDB.ExecuteNonQuery(strUPDATE, false)) return false;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 人員数画面表示
+        /// <summary>
+        /// 人員数画面表示を表示する
+        /// </summary>
+        private void DispConstractorListControl()
+        {
+            try
+            {
+                // 協力会社金額画面表示
+                m_frmNumberOfWorkers = new FrmNumberOfWorkers();
+                // 位置設定
+                m_frmNumberOfWorkers.LocationPoint = new Point(this.Right, this.Bottom);
+                m_frmNumberOfWorkers.ConstructionCode = m_ConstructionCode;
+                m_frmNumberOfWorkers.PersonCode = m_PersonCode;
+
+                // タスクバーに表示しない
+                //m_frmNumberOfWorkers.ShowInTaskbar = false;
+
+                // クロースドハンドラをこちらで定義する
+                m_frmNumberOfWorkers.FormClosed += new FormClosedEventHandler(FrmNumberOfWorkers_FormClosed);
+                m_frmNumberOfWorkers.Show();
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 施工金額割当クローズ
+        /// <summary>
+        /// 施工金額割当のクローズを取得する
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmNumberOfWorkers_FormClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                this.Activate();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                // ハンドルクリア
+                m_frmNumberOfWorkers.Dispose(); m_frmNumberOfWorkers = null;
+            }
+        }
+        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/ProcessControl.cs	(revision 6)
@@ -322,32 +322,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -359,32 +366,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -636,7 +650,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DailyReport/FrmDailyReport.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DailyReport/FrmDailyReport.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DailyReport/FrmDailyReport.cs	(revision 6)
@@ -191,7 +191,7 @@
         /// <summary>
         /// �Œ�J�����^�C�g��
         /// </summary>
-        private static string[] ColumnsTitile = new string[] { "�x�@���@���@�v",
+        private static string[] ColumnsTitle = new string[] { "�x�@���@���@�v",
                                                                 "�x �� �� �\ �z",
                                                                 "�x�@���@���@��",
                                                                 "�x �� �� �U �g"};
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DailyReport/FrmDailyReportAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DailyReport/FrmDailyReportAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DailyReport/FrmDailyReportAuxiliary.cs	(revision 6)
@@ -2700,7 +2700,7 @@
                 DataGridViewRow dgvRow = dgv.CurrentRow;
 
                 frm.ConstructionCode = m_ConstructionCode;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 // 職種が設定されていれば職種を送る
                 int CategoryCode = CommonMotions.cnvInt(dgvRow.Cells[(int)DispGridColumn1.JobCategoryCode].Value);
                 if (CategoryCode != 0) frm.JobCateCode = CategoryCode;
@@ -2748,7 +2748,7 @@
 
                 frm.DialogUsed = true;
                 frm.MultiSelect = false;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton) return;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DailyReport/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DailyReport/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DailyReport/ProcessControl.cs	(revision 6)
@@ -322,32 +322,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -359,32 +366,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -636,7 +650,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudget.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudget.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudget.cs	(revision 6)
@@ -112,7 +112,7 @@
             NegotiationPrice,
             Notes,
             TotalFlg,
-            TitileFlg,
+            TitleFlg,
             BlankFlg,
         }
         #endregion
@@ -151,11 +151,15 @@
             /// �ώZ��
             /// </summary>
             IntegratedPerson,
+            /// <summary>
+            /// �����Җ�
+            /// </summary>
+            OrdersName,
         }
         #endregion
 
         #region �^�C�g���敪
-        private enum TitileDivision
+        private enum TitleDivision
         {
             /// <summary>
             /// �^�C�g���s�ł͖���
@@ -216,7 +220,7 @@
         /// <summary>
         /// �O���b�h���ڍs�^�C�g��
         /// </summary>
-        private static string[] GroupTitile = new string[] { ""
+        private static string[] GroupTitle = new string[] { ""
                                                             , "�O�@�@���@�@��@�@"
                                                             , "���@�Ё@�{�@�H�@��@"
                                                             , "���@�ʁ@���@�݁@��@"
@@ -231,7 +235,7 @@
         /// <summary>
         /// �u���b�N���̃^�C�g��
         /// </summary>
-        private static string[] BlockTitile = new string[] { ""
+        private static string[] BlockTitle = new string[] { ""
                                                             , "���@�ځ@�H�@���@��@"
                                                             , "���@�H�@���@��@"
                                                             , "�H�@���@���@���@"
@@ -287,7 +291,7 @@
         /// <summary>
         /// ���x���R���g���[���ێ��z��
         /// </summary>
-        private Control[] m_dispLabelControl = new Control[7];
+        private Control[] m_dispLabelControl = null;
         /// <summary>
         /// �H���R�[�h
         /// </summary>
@@ -759,17 +763,17 @@
 
                 // �^�C�g���E���v�E���v�s�ȊO�͏������Ȃ�
                 if (!(CommonMotions.chkObjectIsNull(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TotalFlg].Value) ||
-                    CommonMotions.chkObjectIsNull(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TitileFlg].Value) ||
+                    CommonMotions.chkObjectIsNull(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TitleFlg].Value) ||
                     CommonMotions.chkObjectIsNull(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.BlankFlg].Value)))
                     return;
 
                 // �t���O�擾
-                int TitileFlg = CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TitileFlg].Value);
+                int TitleFlg = CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TitleFlg].Value);
                 int TotalFlg = CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TotalFlg].Value);
                 int BlankFlg = CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.BlankFlg].Value);
 
                 // ���׍s�͏������Ȃ�
-                if (TotalFlg == 0 && TitileFlg == 0 && BlankFlg == 0) return;
+                if (TotalFlg == 0 && TitleFlg == 0 && BlankFlg == 0) return;
                 
                 //���ږ��Ɩ��̈ȊO�͏������Ȃ�
                 if (!(e.ColumnIndex == (int)DispGridColumn.No ||
@@ -787,7 +791,7 @@
                 // �Z���̋�`���擾
                 Rectangle rect = e.CellBounds;
                 // �J�n�ʒu�E���̏C�����s��
-                if (TitileFlg == (int)TitileDivision.Group || TotalFlg == (int)TitileDivision.Group)
+                if (TitleFlg == (int)TitleDivision.Group || TotalFlg == (int)TitleDivision.Group)
                 {
                     if (e.ColumnIndex == (int)DispGridColumn.No) return;
 
@@ -808,7 +812,7 @@
                 using (SolidBrush brush = new SolidBrush(e.CellStyle.BackColor))
                 {
                     // �u���b�N�v�͐F��ς���
-                    if (TotalFlg == (int)TitileDivision.Block) brush.Color = Color.Black;
+                    if (TotalFlg == (int)TitleDivision.Block) brush.Color = Color.Black;
 
                     // �w�i�̕`��
                     e.Graphics.FillRectangle(brush, rect);
@@ -822,7 +826,7 @@
 
                 // �`�敶���擾
                 TextFormatFlags txtFlg = TextFormatFlags.Left;
-                if (TitileFlg == (int)TitileDivision.Group || TotalFlg == (int)TitileDivision.Group)
+                if (TitleFlg == (int)TitleDivision.Group || TotalFlg == (int)TitleDivision.Group)
                     txtFlg = TextFormatFlags.Left | TextFormatFlags.VerticalCenter;
                 else
                     txtFlg = TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter;
@@ -833,7 +837,7 @@
                 Color DrowForeColor = e.CellStyle.ForeColor;
                 Font DrowFont = e.CellStyle.Font;
                 // �u���b�N�v�͐F��ς���
-                if (TotalFlg == (int)TitileDivision.Block)
+                if (TotalFlg == (int)TitleDivision.Block)
                 {
                     DrowForeColor = Color.White;
                     // �H�����i�̓Z���̃t�H���g���擾����
@@ -859,7 +863,7 @@
                     if (e.RowIndex >= 0 && e.ColumnIndex != (int)DispGridColumn.Notes)
                     {
                         // �u���b�N�v�͐F��ς���
-                        if (CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TotalFlg].Value) == (int)TitileDivision.Block)
+                        if (CommonMotions.cnvInt(dgv.Rows[e.RowIndex].Cells[(int)DispGridColumn.TotalFlg].Value) == (int)TitleDivision.Block)
                         {
                             e.CellStyle.ForeColor = Color.White;
                             e.CellStyle.BackColor = Color.Black;
@@ -1010,7 +1014,7 @@
 
                 // �ςݏグ����Ǘ���̌��ϋ��z�����͂��ꂽ�ꍇ�͌����z�ɂ��Z�b�g����
                 string strName = CommonMotions.cnvString(dgv[(int)DispGridColumn.FirstString, e.RowIndex].Value).Trim();
-                if (strName.Equals(GroupTitile[(int)GroupName_EstimateBudget.FieldManagePileUp].Trim()) &&
+                if (strName.Equals(GroupTitle[(int)GroupName_EstimateBudget.FieldManagePileUp].Trim()) &&
                     e.ColumnIndex == (int)DispGridColumn.EstimatePrice)
                 {
                     dgv[(int)DispGridColumn.NegotiationPrice, e.RowIndex].Value = CommonMotions.cnvInt(dgv[(int)DispGridColumn.EstimatePrice, e.RowIndex].Value).ToString("#,0");
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudget.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudget.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudget.designer.cs	(revision 6)
@@ -42,6 +42,8 @@
             this.btnDataEntry = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
             this.panel1 = new System.Windows.Forms.Panel();
+            this.lblLabel06 = new System.Windows.Forms.Label();
+            this.label7 = new System.Windows.Forms.Label();
             this.pnlApproval = new System.Windows.Forms.Panel();
             this.lblApprovalCount = new System.Windows.Forms.Label();
             this.btnPetition = new System.Windows.Forms.Button();
@@ -159,6 +161,8 @@
             this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Top;
             this.panel1.BackColor = System.Drawing.Color.RoyalBlue;
             this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.panel1.Controls.Add(this.lblLabel06);
+            this.panel1.Controls.Add(this.label7);
             this.panel1.Controls.Add(this.pnlApproval);
             this.panel1.Controls.Add(this.pnlApprovalButton);
             this.panel1.Controls.Add(this.textBox2);
@@ -179,9 +183,31 @@
             this.panel1.Controls.Add(this.label5);
             this.panel1.Location = new System.Drawing.Point(7, 40);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(1330, 110);
+            this.panel1.Size = new System.Drawing.Size(1330, 140);
             this.panel1.TabIndex = 0;
             // 
+            // lblLabel06
+            // 
+            this.lblLabel06.BackColor = System.Drawing.Color.White;
+            this.lblLabel06.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblLabel06.ForeColor = System.Drawing.Color.Black;
+            this.lblLabel06.Location = new System.Drawing.Point(127, 35);
+            this.lblLabel06.Name = "lblLabel06";
+            this.lblLabel06.Size = new System.Drawing.Size(605, 25);
+            this.lblLabel06.TabIndex = 38;
+            this.lblLabel06.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // label7
+            // 
+            this.label7.BackColor = System.Drawing.Color.DeepSkyBlue;
+            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label7.Location = new System.Drawing.Point(5, 37);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(114, 25);
+            this.label7.TabIndex = 37;
+            this.label7.Text = "発注者名称";
+            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // pnlApproval
             // 
             this.pnlApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -192,7 +218,7 @@
             this.pnlApproval.Controls.Add(this.btnPetition);
             this.pnlApproval.Controls.Add(this.btnApproval);
             this.pnlApproval.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.pnlApproval.Location = new System.Drawing.Point(1058, 67);
+            this.pnlApproval.Location = new System.Drawing.Point(1056, 98);
             this.pnlApproval.Name = "pnlApproval";
             this.pnlApproval.Size = new System.Drawing.Size(262, 34);
             this.pnlApproval.TabIndex = 30;
@@ -248,7 +274,7 @@
             this.pnlApprovalButton.Controls.Add(this.btnOnApproval);
             this.pnlApprovalButton.Controls.Add(this.btnNotApproval);
             this.pnlApprovalButton.Controls.Add(this.btnOnHold);
-            this.pnlApprovalButton.Location = new System.Drawing.Point(1058, 67);
+            this.pnlApprovalButton.Location = new System.Drawing.Point(1056, 98);
             this.pnlApprovalButton.Name = "pnlApprovalButton";
             this.pnlApprovalButton.Size = new System.Drawing.Size(262, 34);
             this.pnlApprovalButton.TabIndex = 33;
@@ -292,7 +318,7 @@
             // 
             // textBox2
             // 
-            this.textBox2.Location = new System.Drawing.Point(127, 72);
+            this.textBox2.Location = new System.Drawing.Point(127, 104);
             this.textBox2.Name = "textBox2";
             this.textBox2.Size = new System.Drawing.Size(240, 23);
             this.textBox2.TabIndex = 0;
@@ -305,7 +331,7 @@
             this.panel3.Controls.Add(this.radioButton2);
             this.panel3.Controls.Add(this.radioButton1);
             this.panel3.ForeColor = System.Drawing.Color.Black;
-            this.panel3.Location = new System.Drawing.Point(792, 70);
+            this.panel3.Location = new System.Drawing.Point(788, 100);
             this.panel3.Name = "panel3";
             this.panel3.Size = new System.Drawing.Size(260, 30);
             this.panel3.TabIndex = 31;
@@ -333,7 +359,7 @@
             // 
             // textBox1
             // 
-            this.textBox1.Location = new System.Drawing.Point(498, 71);
+            this.textBox1.Location = new System.Drawing.Point(498, 104);
             this.textBox1.Name = "textBox1";
             this.textBox1.Size = new System.Drawing.Size(60, 23);
             this.textBox1.TabIndex = 1;
@@ -344,7 +370,7 @@
             // 
             this.label8.BackColor = System.Drawing.Color.RoyalBlue;
             this.label8.ForeColor = System.Drawing.Color.Black;
-            this.label8.Location = new System.Drawing.Point(558, 70);
+            this.label8.Location = new System.Drawing.Point(558, 103);
             this.label8.Name = "label8";
             this.label8.Size = new System.Drawing.Size(42, 25);
             this.label8.TabIndex = 23;
@@ -356,7 +382,7 @@
             this.label6.BackColor = System.Drawing.Color.Black;
             this.label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label6.ForeColor = System.Drawing.Color.DeepSkyBlue;
-            this.label6.Location = new System.Drawing.Point(375, 70);
+            this.label6.Location = new System.Drawing.Point(375, 103);
             this.label6.Name = "label6";
             this.label6.Size = new System.Drawing.Size(114, 25);
             this.label6.TabIndex = 23;
@@ -368,7 +394,7 @@
             this.lblLabel04.BackColor = System.Drawing.Color.White;
             this.lblLabel04.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel04.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel04.Location = new System.Drawing.Point(497, 38);
+            this.lblLabel04.Location = new System.Drawing.Point(497, 69);
             this.lblLabel04.Name = "lblLabel04";
             this.lblLabel04.Size = new System.Drawing.Size(100, 25);
             this.lblLabel04.TabIndex = 0;
@@ -413,7 +439,7 @@
             this.label9.BackColor = System.Drawing.Color.DeepSkyBlue;
             this.label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label9.ForeColor = System.Drawing.Color.Black;
-            this.label9.Location = new System.Drawing.Point(934, 36);
+            this.label9.Location = new System.Drawing.Point(934, 69);
             this.label9.Name = "label9";
             this.label9.Size = new System.Drawing.Size(114, 25);
             this.label9.TabIndex = 21;
@@ -425,7 +451,7 @@
             this.label3.BackColor = System.Drawing.Color.Black;
             this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label3.ForeColor = System.Drawing.Color.DeepSkyBlue;
-            this.label3.Location = new System.Drawing.Point(5, 70);
+            this.label3.Location = new System.Drawing.Point(5, 103);
             this.label3.Name = "label3";
             this.label3.Size = new System.Drawing.Size(114, 25);
             this.label3.TabIndex = 21;
@@ -437,7 +463,7 @@
             this.label4.BackColor = System.Drawing.Color.DeepSkyBlue;
             this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label4.ForeColor = System.Drawing.Color.Black;
-            this.label4.Location = new System.Drawing.Point(5, 38);
+            this.label4.Location = new System.Drawing.Point(5, 69);
             this.label4.Name = "label4";
             this.label4.Size = new System.Drawing.Size(114, 25);
             this.label4.TabIndex = 21;
@@ -449,7 +475,7 @@
             this.lblLabel05.BackColor = System.Drawing.Color.White;
             this.lblLabel05.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel05.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel05.Location = new System.Drawing.Point(1056, 36);
+            this.lblLabel05.Location = new System.Drawing.Point(1056, 69);
             this.lblLabel05.Name = "lblLabel05";
             this.lblLabel05.Size = new System.Drawing.Size(264, 25);
             this.lblLabel05.TabIndex = 19;
@@ -460,7 +486,7 @@
             this.lblLabel03.BackColor = System.Drawing.Color.White;
             this.lblLabel03.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel03.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel03.Location = new System.Drawing.Point(127, 38);
+            this.lblLabel03.Location = new System.Drawing.Point(127, 69);
             this.lblLabel03.Name = "lblLabel03";
             this.lblLabel03.Size = new System.Drawing.Size(240, 25);
             this.lblLabel03.TabIndex = 19;
@@ -471,7 +497,7 @@
             this.label2.BackColor = System.Drawing.Color.DeepSkyBlue;
             this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label2.ForeColor = System.Drawing.Color.Black;
-            this.label2.Location = new System.Drawing.Point(614, 73);
+            this.label2.Location = new System.Drawing.Point(610, 103);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(170, 25);
             this.label2.TabIndex = 22;
@@ -485,7 +511,7 @@
             this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label5.Font = new System.Drawing.Font("ＭＳ 明朝", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label5.ForeColor = System.Drawing.Color.Black;
-            this.label5.Location = new System.Drawing.Point(375, 38);
+            this.label5.Location = new System.Drawing.Point(375, 69);
             this.label5.Name = "label5";
             this.label5.Size = new System.Drawing.Size(114, 25);
             this.label5.TabIndex = 22;
@@ -529,9 +555,9 @@
             this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
             this.panel2.Controls.Add(this.lblCellTotal);
             this.panel2.Controls.Add(this.dgvAllDisplay);
-            this.panel2.Location = new System.Drawing.Point(7, 154);
+            this.panel2.Location = new System.Drawing.Point(7, 184);
             this.panel2.Name = "panel2";
-            this.panel2.Size = new System.Drawing.Size(1330, 496);
+            this.panel2.Size = new System.Drawing.Size(1330, 466);
             this.panel2.TabIndex = 35;
             // 
             // lblCellTotal
@@ -539,9 +565,9 @@
             this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
             this.lblCellTotal.AutoSize = true;
             this.lblCellTotal.BackColor = System.Drawing.Color.WhiteSmoke;
-            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9.75F, System.Drawing.FontStyle.Bold);
             this.lblCellTotal.ForeColor = System.Drawing.Color.Black;
-            this.lblCellTotal.Location = new System.Drawing.Point(100, 476);
+            this.lblCellTotal.Location = new System.Drawing.Point(100, 446);
             this.lblCellTotal.Name = "lblCellTotal";
             this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
             this.lblCellTotal.TabIndex = 36;
@@ -588,7 +614,7 @@
             this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
             this.dgvAllDisplay.RowTemplate.Height = 21;
             this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dgvAllDisplay.Size = new System.Drawing.Size(1316, 466);
+            this.dgvAllDisplay.Size = new System.Drawing.Size(1316, 436);
             this.dgvAllDisplay.TabIndex = 35;
             this.dgvAllDisplay.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
             this.dgvAllDisplay.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.dgvAllDisplay_CellPainting);
@@ -846,5 +872,7 @@
         private System.Windows.Forms.Button btnOnApproval;
         private System.Windows.Forms.Button btnNotApproval;
         private System.Windows.Forms.Button btnOnHold;
+        private System.Windows.Forms.Label lblLabel06;
+        private System.Windows.Forms.Label label7;
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudgetAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudgetAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudgetAuxiliary.cs	(revision 6)
@@ -97,6 +97,9 @@
         /// </summary>
         private void SetDisplayObject()
         {
+            int DspCtrlCnt = Enum.GetNames(typeof(DispControl)).Length;
+            m_dispLabelControl = new Control[DspCtrlCnt];
+
             // ヘッダー情報
             m_dispLabelControl[(int)DispControl.ConstructionCode] = lblLabel01;
             m_dispLabelControl[(int)DispControl.ConstructionName] = lblLabel02;
@@ -105,6 +108,7 @@
             m_dispLabelControl[(int)DispControl.PredeterminedPrice] = textBox2;
             m_dispLabelControl[(int)DispControl.ConstructionTime] = textBox1;
             m_dispLabelControl[(int)DispControl.IntegratedPerson] = lblLabel05;
+            m_dispLabelControl[(int)DispControl.OrdersName] = lblLabel06;
         }
         #endregion
 
@@ -354,6 +358,11 @@
                 m_dispLabelControl[(int)DispControl.IntegratedPerson].Text = personRec.PersonName;                                                                  // 積算者
                 lblPersonCode.Text = PersonCode.ToString();
 
+                ConstructionBaseInfoDetail OrderRec = new ConstructionBaseInfoDetail();
+                string strOrder = cbidDB.CreatePrimarykeyString(m_ConstructionCode, (int)ConstructionBaseInfoDetail.DetailDataNo.OrderersName);
+                cbidDB.SelectAction(strOrder, ref OrderRec);
+                m_dispLabelControl[(int)DispControl.OrdersName].Text = OrderRec.DetailString;                                 // 発注者名称
+
                 return true;
             }
             catch (Exception ex)
@@ -456,7 +465,7 @@
 
                 // ----- 以下フラグ
                 dgv.Rows[iLineCnt].Cells[(int)DispGridColumn.TotalFlg].Value = "0";
-                dgv.Rows[iLineCnt].Cells[(int)DispGridColumn.TitileFlg].Value = "0";
+                dgv.Rows[iLineCnt].Cells[(int)DispGridColumn.TitleFlg].Value = "0";
                 dgv.Rows[iLineCnt].Cells[(int)DispGridColumn.BlankFlg].Value = "0";
             }
             catch (Exception ex)
@@ -522,7 +531,7 @@
         /// </summary>
         /// <param name="TotalName"></param>
         /// <returns></returns>
-        private bool DispTitile(string TotalName, int TitileFlg)
+        private bool DispTitle(string TotalName, int TitleFlg)
         {
             try
             {
@@ -533,7 +542,7 @@
                 // タイトルセット
                 dgvAllDisplay.Rows[iLineCnt].Cells[(int)DispGridColumn.FirstString].Value = TotalName;
                 // フラグセット
-                dgvAllDisplay.Rows[iLineCnt].Cells[(int)DispGridColumn.TitileFlg].Value = TitileFlg;
+                dgvAllDisplay.Rows[iLineCnt].Cells[(int)DispGridColumn.TitleFlg].Value = TitleFlg;
 
                 // タイトル行は色を付ける
                 for (int i = 0; i < (int)DispGridColumn.Notes; i++)
@@ -566,7 +575,7 @@
             try
             {
                 // 工事価格計は1行開ける
-                if (TotalType == (int)TitileDivision.Block && GroupFlg == (int)BlockName.TotalCosts)
+                if (TotalType == (int)TitleDivision.Block && GroupFlg == (int)BlockName.TotalCosts)
                     dgvAllDisplay.Rows.Add(1);
 
                 // 合計セット
@@ -580,7 +589,7 @@
                 dgvAllDisplay.Rows[iAddLine].Cells[(int)DispGridColumn.TotalFlg].Value = TotalType;
 
                 // 合計
-                if (TotalType == (int)TitileDivision.Group)
+                if (TotalType == (int)TitleDivision.Group)
                 {
                     CalcGroupTotal(GroupFlg);
                     // 合計行は色を付ける
@@ -598,7 +607,7 @@
                 dgvAllDisplay.Rows[iAddLine].Cells[(int)DispGridColumn.NegotiationPrice].Style.BackColor = s_TotalCellBackColor;
 
                 // 工事価格計は行を大きくする
-                if (TotalType == (int)TitileDivision.Block && GroupFlg == (int)BlockName.TotalCosts)
+                if (TotalType == (int)TitleDivision.Block && GroupFlg == (int)BlockName.TotalCosts)
                 {
                     dgvAllDisplay.Rows[iAddLine].Height *= 2;
                     float FontSize = dgvAllDisplay.DefaultCellStyle.Font.Size;
@@ -629,13 +638,13 @@
                 foreach (DataGridViewRow wrkRow in dgvAllDisplay.Rows)
                 {
                     // グループ計以外は処理しない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitileDivision.Group) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitleDivision.Group) continue;
 
                     dTotal += CommonMotions.cnvDouble(wrkRow.Cells[(int)DispGridColumn.EstimatePrice].Value);
                 }
                 // データセット
-                string TitileString = BlockTitile[BlockCnt] + s_TotaFixlName;
-                CreateTotalLine(TitileString, dTotal, 0, (int)TitileDivision.Block, BlockCnt);
+                string TitleString = BlockTitle[BlockCnt] + s_TotaFixlName;
+                CreateTotalLine(TitleString, dTotal, 0, (int)TitleDivision.Block, BlockCnt);
 
                 // 共通仮設費は計を作成する
                 if (BlockCnt == (int)BlockName.NetConstruction)
@@ -682,7 +691,7 @@
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) != GroupCnt) continue;
 
                     // 自グループのグループ計になれば処理終了
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) == (int)TitileDivision.Group)
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) == (int)TitleDivision.Group)
                     {
                         iTotalLine = wrkRow.Index;
                         break;
@@ -694,11 +703,11 @@
 
                     // 明細以外は処理しない
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) ||
-                        CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) ||
+                        CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) ||
                         CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
 
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0 &&
-                        CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) != 0 &&
+                        CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) != 0 &&
                         CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) != 0) continue;
 
                     // 加算
@@ -739,7 +748,7 @@
 
                     switch (TotalType)
                     {
-                        case (int)TitileDivision.Group:
+                        case (int)TitleDivision.Group:
                             // グループ計
                             wrkRow.Cells[(int)DispGridColumn.EstimatePrice].Value = G_EstimateTotal.ToString("#,0");
                             wrkRow.Cells[(int)DispGridColumn.NegotiationPrice].Value = G_NegotiationTotal.ToString("#,0");
@@ -752,19 +761,19 @@
                             G_EstimateTotal = 0;
                             G_NegotiationTotal = 0;
                             break;
-                        case (int)TitileDivision.Block:
+                        case (int)TitleDivision.Block:
                             // ブロック（共通仮設は処理しない）
                             wrkRow.Cells[(int)DispGridColumn.EstimatePrice].Value = B_EstimateTotal.ToString("#,0");
                             wrkRow.Cells[(int)DispGridColumn.NegotiationPrice].Value = B_NegotiationTotal.ToString("#,0");
                             break;
-                        case (int)TitileDivision.None:
+                        case (int)TitleDivision.None:
                             // 明細以外は処理しない
                             if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) ||
-                                CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) ||
+                                CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) ||
                                 CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
 
                             if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) == 0 &&
-                                CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 0 &&
+                                CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 0 &&
                                 CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 0)
                             {
                                 // 明細
@@ -812,7 +821,7 @@
                 {
                     // 指定ブロックの計まで処理する
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == BlockNo &&
-                        CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) == (int)TitileDivision.Block)
+                        CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) == (int)TitleDivision.Block)
                     {
                         LineCnt = wrkRow.Index;
                         break;
@@ -819,7 +828,7 @@
                     }
 
                     // 小計以外は処理しない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitileDivision.Group) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitleDivision.Group) continue;
                     // 共通仮設費は加算しない（算定率・積み上げですでに計上しているため）
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_EstimateBudget.CommonTemp) continue;
 
@@ -984,7 +993,7 @@
                 if (arList.Count == 0) return;
 
                 // タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.OutSource], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.OutSource], (int)TitleDivision.Group);
 
                 // 先頭レコードブレイクキー取得
                 object[] wrkstart = (object[])arList[0];
@@ -1076,8 +1085,8 @@
                 }
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.OutSource] + s_TotaFixlName;
-                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.OutSource);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.OutSource] + s_TotaFixlName;
+                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.OutSource);
             }
             catch (Exception ex)
             {
@@ -1118,7 +1127,7 @@
                 // 空行セット
                 if (dgvAllDisplay.RowCount > 2) InsertBlankLine(1);
                 // タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.MyConstruction], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.MyConstruction], (int)TitleDivision.Group);
 
                 int BreakCode = 0;
                 double dSumaryWork = 0;
@@ -1158,8 +1167,8 @@
                 }
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.MyConstruction] + s_TotaFixlName;
-                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.MyConstruction);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.MyConstruction] + s_TotaFixlName;
+                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.MyConstruction);
             }
             catch (Exception ex)
             {
@@ -1196,7 +1205,7 @@
 
                 InsertBlankLine(2);
                 // タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.CommonTemp], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.CommonTemp], (int)TitleDivision.Group);
 
                 double dTotal = 0;
                 int icnt = 1;
@@ -1217,8 +1226,8 @@
                 }
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.CommonTemp] + s_TotaFixlName;
-                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.CommonTemp);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.CommonTemp] + s_TotaFixlName;
+                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.CommonTemp);
             }
             catch (Exception ex)
             {
@@ -1245,7 +1254,7 @@
             {
                 InsertBlankLine(2);
                 // グリッド行タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.CommonTemp], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.CommonTemp], (int)TitleDivision.Group);
 
                 // 共通仮設費の固定行をセットする
                 SetPublicCommonTempFix();
@@ -1261,7 +1270,7 @@
 
                 InsertBlankLine(1);
                 // 積み上げ共通仮設費タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.CommonPileUp], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.CommonPileUp], (int)TitleDivision.Group);
 
                 // 積み上げ共通費セット
                 int icnt = 1;
@@ -1281,12 +1290,12 @@
                 }
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.CommonPileUp] + s_TotaFixlName;
-                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.CommonPileUp);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.CommonPileUp] + s_TotaFixlName;
+                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.CommonPileUp);
 
                 // 共通仮設費計
-                strDspName = GroupTitile[(int)GroupName_EstimateBudget.CommonTemp] + s_TotaFixlName;
-                CreateTotalLine(strDspName, 0, 0, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.CommonTemp);
+                strDspName = GroupTitle[(int)GroupName_EstimateBudget.CommonTemp] + s_TotaFixlName;
+                CreateTotalLine(strDspName, 0, 0, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.CommonTemp);
             }
             catch (Exception ex)
             {
@@ -1310,7 +1319,7 @@
             foreach (DataGridViewRow wrkRow in dgvAllDisplay.Rows)
             {
                 // ブロック計以外はいらない
-                if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitileDivision.Group) continue;
+                if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitleDivision.Group) continue;
                 // 共通仮設の行を探す
                 if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) == (int)GroupName_EstimateBudget.CommonTemp)
                 {
@@ -1353,7 +1362,7 @@
                 double dTotal2 = CalcCommonTemporary(false);
 
                 // 共通仮設算定率セット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.CommonTempCalcCosts], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.CommonTempCalcCosts], (int)TitleDivision.Group);
 
                 // 共通仮設算定率費の行数をセットする
                 m_CommonItemLine = dgv.Rows.Count - 1;
@@ -1408,8 +1417,8 @@
 
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.CommonTempCalcCosts] + s_TotaFixlName;
-                CreateTotalLine(strDspName, AllTotal, 0, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.CommonTempCalcCosts);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.CommonTempCalcCosts] + s_TotaFixlName;
+                CreateTotalLine(strDspName, AllTotal, 0, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.CommonTempCalcCosts);
 
             }
             catch (Exception ex)
@@ -1434,13 +1443,13 @@
                 // 空行セット
                 InsertBlankLine(2);
                 // タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.PurchasePrice], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.PurchasePrice], (int)TitleDivision.Group);
 
 
                 // データ表示
                 EstimateBudgetDetail Datarec = new EstimateBudgetDetail();
                 Datarec.GroupCount = (int)GroupName_EstimateBudget.PurchasePrice;                       // グループ番号
-                Datarec.FirstString = GroupTitile[(int)GroupName_EstimateBudget.PurchasePrice];         // 構成名称
+                Datarec.FirstString = GroupTitle[(int)GroupName_EstimateBudget.PurchasePrice];         // 構成名称
                 Datarec.NegotiationPrice = 0;                                                           // 交渉時金額
                 DisplayGridData(1, Datarec);
 
@@ -1451,8 +1460,8 @@
                 dgv.Rows[iLine].Cells[(int)DispGridColumn.EstimatePrice].Style.BackColor = s_CommonCalculatedValueBColor;
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.PurchasePrice] + s_TotaFixlName;
-                CreateTotalLine(strDspName, 0, 0, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.PurchasePrice);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.PurchasePrice] + s_TotaFixlName;
+                CreateTotalLine(strDspName, 0, 0, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.PurchasePrice);
             }
             catch (Exception ex)
             {
@@ -1490,7 +1499,7 @@
                 // 空行セット
                 InsertBlankLine(2);
                 // タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.Expenss], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.Expenss], (int)TitleDivision.Group);
 
                 int icnt = 1;
                 double dSumaryWork = 0;
@@ -1523,8 +1532,8 @@
                 }
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.Expenss] + s_TotaFixlName;
-                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.Expenss);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.Expenss] + s_TotaFixlName;
+                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.Expenss);
 
             }
             catch (Exception ex)
@@ -1564,7 +1573,7 @@
                 // 空行セット
                 InsertBlankLine(2);
                 // タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.Dispose], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.Dispose], (int)TitleDivision.Group);
 
                 int icnt = 1;
                 double dSumaryWork = 0;
@@ -1597,8 +1606,8 @@
                 }
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.Dispose] + s_TotaFixlName;
-                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.Dispose);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.Dispose] + s_TotaFixlName;
+                CreateTotalLine(strDspName, dTotal, dTotal, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.Dispose);
 
             }
             catch (Exception ex)
@@ -1691,7 +1700,7 @@
             {
                 InsertBlankLine(2);
                 // タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.FieldManage], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.FieldManage], (int)TitleDivision.Group);
 
                 // 現場管理費を取得する
                 double dspFieldval = CalcCommonFieldManage(true);
@@ -1727,8 +1736,8 @@
                 DisplayGridData(1, DetailRec);
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.FieldManage] + s_TotaFixlName;
-                CreateTotalLine(strDspName, dspFieldval, 0, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.FieldManage);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.FieldManage] + s_TotaFixlName;
+                CreateTotalLine(strDspName, dspFieldval, 0, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.FieldManage);
             }
             catch (Exception ex)
             {
@@ -1752,13 +1761,13 @@
             {
                 InsertBlankLine(1);
                 // タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.FieldManagePileUp], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.FieldManagePileUp], (int)TitleDivision.Group);
 
                 // 積み上げ現場管理費行セット
                 EstimateBudgetDetail Datarec = new EstimateBudgetDetail();
                 Datarec.GroupCount = (int)GroupName_EstimateBudget.FieldManagePileUp;                       // グループ番号
                 Datarec.ComponentCode = ClsCommonCosts.s_CommunityCompCode;                                 // 構成キー
-                Datarec.FirstString = GroupTitile[(int)GroupName_EstimateBudget.FieldManagePileUp].Trim();  // 構成名称
+                Datarec.FirstString = GroupTitle[(int)GroupName_EstimateBudget.FieldManagePileUp].Trim();  // 構成名称
 
                 DisplayGridData(1, Datarec);
                 
@@ -1768,8 +1777,8 @@
                 dgvAllDisplay.Rows[iLineCnt].Cells[(int)DispGridColumn.EstimatePrice].ReadOnly = false;
                 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.FieldManage] + s_TotaFixlName;
-                CreateTotalLine(strDspName, 0, 0, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.FieldManagePileUp);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.FieldManage] + s_TotaFixlName;
+                CreateTotalLine(strDspName, 0, 0, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.FieldManagePileUp);
 
             }
             catch (Exception ex)
@@ -1792,7 +1801,7 @@
 
                 InsertBlankLine(2);
                 // タイトルセット
-                DispTitile(GroupTitile[(int)GroupName_EstimateBudget.UsualManage], (int)TitileDivision.Group);
+                DispTitle(GroupTitle[(int)GroupName_EstimateBudget.UsualManage], (int)TitleDivision.Group);
 
                 // 一般管理費演算
                 double dspval = CalcCommonUsualManage(true);
@@ -1828,8 +1837,8 @@
                 DisplayGridData(1, DetailRec);
 
                 // 小計
-                string strDspName = GroupTitile[(int)GroupName_EstimateBudget.UsualManage] + s_TotaFixlName;
-                CreateTotalLine(strDspName, dspval, 0, (int)TitileDivision.Group, (int)GroupName_EstimateBudget.UsualManage);
+                string strDspName = GroupTitle[(int)GroupName_EstimateBudget.UsualManage] + s_TotaFixlName;
+                CreateTotalLine(strDspName, dspval, 0, (int)TitleDivision.Group, (int)GroupName_EstimateBudget.UsualManage);
 
             }
             catch (Exception ex)
@@ -1879,7 +1888,7 @@
                 m_frmCostCalc.Value4 = GetGroupTotalFromGrid((int)GroupName_EstimateBudget.Dispose);
 
                 // タスクバー表示無
-                m_frmCostCalc.ShowInTaskbar = false;
+                //m_frmCostCalc.ShowInTaskbar = false;
 
                 // 予定金額
                 m_frmCostCalc.EditValue1 = CommonMotions.cnvDouble(m_dispLabelControl[(int)DispControl.PredeterminedPrice].Text);
@@ -1958,7 +1967,7 @@
                 foreach (DataGridViewRow wrkRow in dgvAllDisplay.Rows)
                 {
                     // ブロック計以外はいらない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitileDivision.Group) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitleDivision.Group) continue;
                     // 指定グループ以外はいらない
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) != GroupNo) continue;
 
@@ -1999,7 +2008,7 @@
                 foreach (DataGridViewRow wrkRow in dgvAllDisplay.Rows)
                 {
                     // ブロック計以外はいらない
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitileDivision.Block) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != (int)TitleDivision.Block) continue;
                     // 指定グループ以外はいらない
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.GroupCount].Value) != BlockNo) continue;
 
@@ -2317,13 +2326,13 @@
         /// 論理エラー時メッセージボックス
         /// </summary>
         /// <param name="strLogString"></param>
-        /// <param name="strTitile"></param>
+        /// <param name="strTitle"></param>
         /// <param name="strMethodName"></param>
         /// <param name="strMessage"></param>
-        private void LogicalErrorMessage(string strLogString, string strTitile, string strMethodName, string strMessage = "")
+        private void LogicalErrorMessage(string strLogString, string strTitle, string strMethodName, string strMessage = "")
         {
-            logger.ErrorFormat(strLogString + "：" + strTitile + "：" + strMethodName + "：" + strMessage);
-            MessageBox.Show(strLogString, strTitile, MessageBoxButtons.OK, MessageBoxIcon.Error);
+            logger.ErrorFormat(strLogString + "：" + strTitle + "：" + strMethodName + "：" + strMessage);
+            MessageBox.Show(strLogString, strTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
         #endregion
 
@@ -2576,8 +2585,8 @@
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) continue;
 
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
@@ -2784,8 +2793,8 @@
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) continue;
 
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
@@ -2877,8 +2886,8 @@
             if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) return false;
             if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) return false;
 
-            if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) return false;
-            if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) return false;
+            if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) return false;
+            if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) return false;
 
             if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) return false;
             if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) return false;
@@ -2908,8 +2917,8 @@
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) continue;
 
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
@@ -2984,8 +2993,8 @@
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) continue;
 
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
@@ -3090,7 +3099,7 @@
 
                 frm.ConstructionCode = m_ConstructionCode;
                 frm.StartupSource = (int)ClsExcute.ProcessExecuteNo.EstimateBudget;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
              
                 // 変更なしは以下の処理無
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/ProcessControl.cs	(revision 6)
@@ -322,32 +322,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -359,32 +366,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -636,7 +650,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs	(revision 6)
@@ -110,6 +110,7 @@
             EstimatesSubmittedDate,
             ConstructionStartDate,
             ConstructionEndDate,
+            OrdersName,
             ComponentCount,
             ItemCount,
             WorkCount,
@@ -238,6 +239,23 @@
 
         #region �ϐ�
         /// <summary>
+        /// �H���R�[�h
+        /// </summary>
+        private int m_ConstructionCode = 0;
+        /// <summary>
+        /// �A�N�Z�X�����t���O
+        /// </summary>
+        private bool m_EditLock = false;
+        /// <summary>
+        /// �f�[�^�ύX�t���O
+        /// </summary>
+        private bool m_DataChangeFlg = false;
+        /// <summary>
+        /// 2��ʕ\���t���O
+        /// </summary>
+        private bool m_DualModeFlg = false;
+
+        /// <summary>
         /// �C�x���g��~�t���O
         /// </summary>
         private bool bEventStopFlg = true;
@@ -253,14 +271,9 @@
         /// <summary>
         /// ���x���R���g���[���ێ��z��
         /// </summary>
-        private Control[] m_dispLabelControl = new Control[9];
+        private Control[] m_dispLabelControl = null;
 
         /// <summary>
-        /// �H���R�[�h
-        /// </summary>
-        private int m_ConstructionCode = 0;
-
-        /// <summary>
         /// ���̓y�[�W�ێ��G���A
         /// </summary>
         private List<EstimateInputPage> m_EntryPage = new List<EstimateInputPage>();
@@ -286,14 +299,6 @@
         /// </summary>
         private List<AmountAllocation> m_AmountList = new List<AmountAllocation>();
         /// <summary>
-        /// �A�N�Z�X�����t���O
-        /// </summary>
-        private bool m_EditLock = false;
-        /// <summary>
-        /// �f�[�^�ύX�t���O
-        /// </summary>
-        private bool m_DataChangeFlg = false;
-        /// <summary>
         /// ���͉�Ѓ��X�g���
         /// </summary>
         private FrmAmountAllocation m_frmAmountAllocation = null;
@@ -300,7 +305,7 @@
         /// <summary>
         /// �ώZ�\�Z�����͉��
         /// </summary>
-        private FrmEstimateBudget m_frmBudget = null;
+        private FrmEstimateInput m_frmParent = null;
 
         private ToolTip toolTip1;
         // *-----* ���ʏ����ݒ� *-----*
@@ -340,6 +345,14 @@
             get { return m_DataChangeFlg; }
             set { m_DataChangeFlg = value; }
         }
+        /// <summary>
+        /// 2��ʕ\���t���O
+        /// </summary>
+        public bool DualModeFlg
+        {
+            get { return m_DualModeFlg; }
+            set { m_DualModeFlg = value; }
+        }
 
         // *-----* ���ʏ����ݒ� *-----*
         /// <summary>
@@ -408,6 +421,8 @@
 
                 // �O�������ꗗ���\������Ă���΃N���[�Y����
                 if (m_frmAmountAllocation != null) m_frmAmountAllocation.Close();
+                // �e���Ϗ����\������Ă���΃N���[�Y����
+                if (m_frmParent != null) m_frmParent.Close();
 
                 // �O�v���Z�X�ɖ߂�
                 if (m_CloseingProcessOn) ClsExcute.BackProcess();
@@ -965,11 +980,11 @@
                 if (!EstimateDB.SelectAction(strSQL, ref DataRec)) m_bChengeAns = true;
 
                 // �f�[�^�ύX�L���̓f�[�^�o�^
-                if (m_bChengeAns)
-                {
-                    if (!DataEntryProcess()) return;
-                }
+                if (m_bChengeAns) if (!DataEntryProcess()) return;
 
+                // �����t�`�F�b�N
+                if (!CheckConstructor()) return;
+
                 // �N���ԍ�
                 int NowPoint = ClsExcute.NextProcess((int)ClsExcute.SubFormExecuteNo.ApprovalScreen);
 
@@ -1056,7 +1071,7 @@
             SetDisplayObject();
 
             // �����\��
-            bool bInitDisp = InitDataLoad();
+            if (!InitDataLoad()) return;
 
             // �\���E���F�\������
             InitApprovalDisplay();
@@ -1084,6 +1099,12 @@
                 }
             }
 
+            // 2��ʃ��[�h�̐e��ʂ͏��F�֘A�����ׂĕ\�����Ȃ�
+            if (m_DualModeFlg)
+            {
+                pnlApprovalButton.Visible = false;
+                pnlApproval.Visible = false;
+            }
             // �������z�v�Z�t���OOff
             bAmountAllocationStopFlg = false;
         }
@@ -1334,40 +1355,6 @@
                 // �v�֖߂�{�^���̕\����ς���
                 TotalButtonVisibled(m_EntryPage[TabCnt].Cotegory);
 
-                //// �I���^�u�Ƀf�[�^������Ώ������Ȃ�
-                //if (GetGridDataCount(TabCnt) != 0) return;
-
-                ////*-----------------------------------------------------------------------------
-                //// �\���^�u�͍H��^�u�����
-                //if (m_EntryPage[TabCnt].Cotegory == CommonDefine.TabCotegory.Component)
-                //{
-                //    // �H��v�f�V�K�^�u�쐬
-                //    drRet = CreateItemLine(TabCnt, 0);
-                //}
-                //// �H��^�u�͍�Ƃ����
-                //else if (m_EntryPage[TabCnt].Cotegory == CommonDefine.TabCotegory.Item)
-                //{
-                //    // ��Ɨv�f�V�K�^�u�쐬
-                //    drRet = CreateWorkLine(TabCnt, 0);
-                //}
-
-                //// �s������΍s�J�E���g���擾����
-                //int RowCnt = 0;
-                //if (m_EntryPage[TabCnt].EntryDGV.Rows.Count != 0)
-                //    RowCnt = m_EntryPage[TabCnt].EntryDGV.CurrentRow.Index;
-
-                //// �󔒍s�쐬
-                //if (drRet == DialogResult.Cancel)
-                //{
-                //    // �V�����s���쐬����
-                //    CreateNewLine(m_EntryPage[TabCnt].EntryDGV, ref RowCnt);
-                //    SetRowClearData(m_EntryPage[TabCnt].EntryDGV, RowCnt);
-                //}
-
-                //// ���i���o�����O
-                //if (m_EntryPage[TabCnt].Cotegory == CommonDefine.TabCotegory.Total) LineReNumberingAlphaCharacter(m_EntryPage[0].EntryDGV);
-                //if (m_EntryPage[TabCnt].Cotegory == CommonDefine.TabCotegory.Component) LineReNumbering(m_EntryPage[TabCnt].EntryDGV);
-
                 // �Y���^�u�փt�H�[�J�X���ړ�
                 m_EntryPage[TabCnt].EntryDGV.Focus();
 
@@ -1377,7 +1364,6 @@
                 {
                     iHeight += wrkrow.Height;
                 }
-                m_EntryPage[TabCnt].CommentShapeContainer.Height = iHeight;
 
                 // �H�퐔�X�V
                 SetDataCount();
@@ -1400,7 +1386,7 @@
             // �t���OON���������Ȃ�
             if (bEventStopFlg) return;
 
-            DataGridView dgvwork = (DataGridView)sender;
+            DataGridView dgv = (DataGridView)sender;
             int TabCnt = TabCollections.SelectedIndex;
 
             switch (e.ColumnIndex)
@@ -1409,13 +1395,13 @@
                     // ���̃Z��
 
                     // ���ʃ^�u�ړ�
-                    MoveToDestinationTab(dgvwork, e.RowIndex);
+                    MoveToDestinationTab(dgv, e.RowIndex);
                     return;
                 case (int)GridItemColumn.UnitName:
                     // �P�ʃZ��
 
                     if (m_EntryPage[TabCnt].Cotegory == CommonDefine.TabCotegory.Total) return;     // ���v�^�u�͏������Ȃ�
-                    if (dgvwork.ReadOnly) return;                                                   // �O���b�h���Ə����݋֎~�͏����I��
+                    if (dgv.ReadOnly) return;                                                   // �O���b�h���Ə����݋֎~�͏����I��
                     
                     ShowUnitNameDiag(TabCnt);                                                       // �P�ʑI��
                     break;
@@ -1426,21 +1412,22 @@
                     
                     if (m_EntryPage[TabCnt].Cotegory == CommonDefine.TabCotegory.Component)         // �\���^�u�͓��͋֎~������
                     {   // ���͉\�ł͖�����Ώ������Ȃ�
-                        DataGridView dgv = m_EntryPage[TabCnt].EntryDGV;
+                        //DataGridView dgv = m_EntryPage[TabCnt].EntryDGV;
                         int iInput = CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)GridComponentColumn.InputFlg].Value);
                         if (iInput == (int)CommonDefine.DirectInput.Protect) return;
                     }
-                    if (dgvwork.ReadOnly) return;                                                   // �O���b�h���Ə����݋֎~�͏����I��
+                    if (dgv.ReadOnly) return;                                                   // �O���b�h���Ə����݋֎~�͏����I��
 
                     ShowSubConstructorDiag(TabCnt);                                                 // ���͉�БI��
                     break;
             }
+            dgv.EndEdit();
             // �O���b�h���Ə����݋֎~�͏����I��
-            if (dgvwork.ReadOnly) return;
+            if (dgv.ReadOnly) return;
 
             // Lock�t�B�[���h�̓^�u�ւ̃��b�Z�[�W���o��
             if (e.ColumnIndex == (int)GridItemColumn.LineTotal &&
-                dgvwork.Rows[e.RowIndex].Cells[(int)GridItemColumn.LineTotal].ReadOnly == true)
+                dgv.Rows[e.RowIndex].Cells[(int)GridItemColumn.LineTotal].ReadOnly == true)
             {
                 if (MessageBox.Show("���ʂɓ��̓^�u������܂��A���̂��N���b�N���Ă��������B", "���͊m�F"
                     , MessageBoxButtons.OK, MessageBoxIcon.Warning) != DialogResult.Yes) return;
@@ -1699,11 +1686,24 @@
         /// <param name="e"></param>
         private void FrmEstimateInput_Shown(object sender, EventArgs e)
         {
-            // ���͉�Ћ��z�\����ʂ�\��
-            //DispConstractorListControl();
+            // ���H�����Ϗ��\��
+            FormLoadParentInput();
         }
         #endregion
 
+        #region ���H�����Ϗ��\���{�^������
+        /// <summary>
+        /// ���H�����Ϗ��\���{�^������
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnParent_Click(object sender, EventArgs e)
+        {
+            // ���H�����Ϗ��\��
+            FormLoadParentInput();
+        }
+        #endregion
+
         #region �����������z
         /// <summary>
         /// �������z�\���{�^��
@@ -1760,30 +1760,6 @@
         }
         #endregion
 
-        #region �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// <summary>
-        /// �ώZ���ϓ��͂̃N���[�Y���擾����
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmBudgetClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                this.Activate();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // �n���h���N���A
-                m_frmBudget.Dispose(); m_frmBudget = null;
-            }
-        }
-        #endregion
-
         #region �R�����g�ǉ��{�^��
         /// <summary>
         /// �R�����g�ǉ��{�^������
@@ -2030,6 +2006,5 @@
             ShowSubConstructorDiag(TabCnt);
         }
         #endregion
-
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs	(revision 6)
@@ -42,6 +42,10 @@
             this.btnDataEntry = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
             this.panel1 = new System.Windows.Forms.Panel();
+            this.lblLabel07 = new System.Windows.Forms.Label();
+            this.label5 = new System.Windows.Forms.Label();
+            this.panel3 = new System.Windows.Forms.Panel();
+            this.btnParent = new System.Windows.Forms.Button();
             this.pnlApproval = new System.Windows.Forms.Panel();
             this.lblApprovalCount = new System.Windows.Forms.Label();
             this.btnPetition = new System.Windows.Forms.Button();
@@ -101,6 +105,7 @@
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.panel1.SuspendLayout();
+            this.panel3.SuspendLayout();
             this.pnlApproval.SuspendLayout();
             this.pnlApprovalButton.SuspendLayout();
             this.pnlComent.SuspendLayout();
@@ -172,6 +177,9 @@
             this.panel1.AutoSize = true;
             this.panel1.BackColor = System.Drawing.Color.RoyalBlue;
             this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.panel1.Controls.Add(this.lblLabel07);
+            this.panel1.Controls.Add(this.label5);
+            this.panel1.Controls.Add(this.panel3);
             this.panel1.Controls.Add(this.pnlApproval);
             this.panel1.Controls.Add(this.pnlApprovalButton);
             this.panel1.Controls.Add(this.pnlComent);
@@ -193,9 +201,54 @@
             this.panel1.Controls.Add(this.lblLabel01);
             this.panel1.Location = new System.Drawing.Point(8, 40);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(1290, 115);
+            this.panel1.Size = new System.Drawing.Size(1290, 140);
             this.panel1.TabIndex = 0;
             // 
+            // lblLabel07
+            // 
+            this.lblLabel07.BackColor = System.Drawing.Color.White;
+            this.lblLabel07.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblLabel07.ForeColor = System.Drawing.Color.Black;
+            this.lblLabel07.Location = new System.Drawing.Point(127, 35);
+            this.lblLabel07.Name = "lblLabel07";
+            this.lblLabel07.Size = new System.Drawing.Size(605, 25);
+            this.lblLabel07.TabIndex = 36;
+            this.lblLabel07.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // label5
+            // 
+            this.label5.BackColor = System.Drawing.Color.DeepSkyBlue;
+            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label5.Location = new System.Drawing.Point(5, 35);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(114, 25);
+            this.label5.TabIndex = 35;
+            this.label5.Text = "発注者名称";
+            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // panel3
+            // 
+            this.panel3.BackColor = System.Drawing.Color.LemonChiffon;
+            this.panel3.Controls.Add(this.btnParent);
+            this.panel3.Location = new System.Drawing.Point(250, 95);
+            this.panel3.Name = "panel3";
+            this.panel3.Size = new System.Drawing.Size(237, 34);
+            this.panel3.TabIndex = 34;
+            this.panel3.Visible = false;
+            // 
+            // btnParent
+            // 
+            this.btnParent.BackColor = System.Drawing.Color.DarkRed;
+            this.btnParent.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnParent.ForeColor = System.Drawing.Color.White;
+            this.btnParent.Location = new System.Drawing.Point(4, 4);
+            this.btnParent.Name = "btnParent";
+            this.btnParent.Size = new System.Drawing.Size(230, 26);
+            this.btnParent.TabIndex = 34;
+            this.btnParent.Text = "元工事表示";
+            this.btnParent.UseVisualStyleBackColor = false;
+            this.btnParent.Click += new System.EventHandler(this.btnParent_Click);
+            // 
             // pnlApproval
             // 
             this.pnlApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -204,7 +257,7 @@
             this.pnlApproval.Controls.Add(this.lblApprovalCount);
             this.pnlApproval.Controls.Add(this.btnPetition);
             this.pnlApproval.Controls.Add(this.btnApproval);
-            this.pnlApproval.Location = new System.Drawing.Point(1013, 68);
+            this.pnlApproval.Location = new System.Drawing.Point(1013, 95);
             this.pnlApproval.Name = "pnlApproval";
             this.pnlApproval.Size = new System.Drawing.Size(262, 34);
             this.pnlApproval.TabIndex = 29;
@@ -259,7 +312,7 @@
             this.pnlApprovalButton.Controls.Add(this.btnOnApproval);
             this.pnlApprovalButton.Controls.Add(this.btnNotApproval);
             this.pnlApprovalButton.Controls.Add(this.btnOnHold);
-            this.pnlApprovalButton.Location = new System.Drawing.Point(1013, 68);
+            this.pnlApprovalButton.Location = new System.Drawing.Point(1013, 95);
             this.pnlApprovalButton.Name = "pnlApprovalButton";
             this.pnlApprovalButton.Size = new System.Drawing.Size(262, 34);
             this.pnlApprovalButton.TabIndex = 32;
@@ -306,7 +359,7 @@
             this.pnlComent.BackColor = System.Drawing.Color.LemonChiffon;
             this.pnlComent.Controls.Add(this.btnDelComment);
             this.pnlComent.Controls.Add(this.btnAddComment);
-            this.pnlComent.Location = new System.Drawing.Point(372, 72);
+            this.pnlComent.Location = new System.Drawing.Point(577, 95);
             this.pnlComent.Name = "pnlComent";
             this.pnlComent.Size = new System.Drawing.Size(272, 34);
             this.pnlComent.TabIndex = 30;
@@ -339,9 +392,9 @@
             // 
             this.panel2.BackColor = System.Drawing.Color.LemonChiffon;
             this.panel2.Controls.Add(this.btnAmountList);
-            this.panel2.Location = new System.Drawing.Point(2, 68);
+            this.panel2.Location = new System.Drawing.Point(5, 95);
             this.panel2.Name = "panel2";
-            this.panel2.Size = new System.Drawing.Size(272, 34);
+            this.panel2.Size = new System.Drawing.Size(237, 34);
             this.panel2.TabIndex = 31;
             // 
             // btnAmountList
@@ -351,7 +404,7 @@
             this.btnAmountList.ForeColor = System.Drawing.Color.Black;
             this.btnAmountList.Location = new System.Drawing.Point(4, 4);
             this.btnAmountList.Name = "btnAmountList";
-            this.btnAmountList.Size = new System.Drawing.Size(264, 26);
+            this.btnAmountList.Size = new System.Drawing.Size(230, 26);
             this.btnAmountList.TabIndex = 12;
             this.btnAmountList.Text = "発注割当金額を表示する";
             this.btnAmountList.UseVisualStyleBackColor = false;
@@ -361,7 +414,7 @@
             // 
             this.label7.BackColor = System.Drawing.Color.LightGreen;
             this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label7.Location = new System.Drawing.Point(1135, 38);
+            this.label7.Location = new System.Drawing.Point(1135, 65);
             this.label7.Name = "label7";
             this.label7.Size = new System.Drawing.Size(80, 25);
             this.label7.TabIndex = 28;
@@ -373,7 +426,7 @@
             this.lblDispCnt03.BackColor = System.Drawing.Color.White;
             this.lblDispCnt03.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblDispCnt03.ForeColor = System.Drawing.Color.Black;
-            this.lblDispCnt03.Location = new System.Drawing.Point(1215, 38);
+            this.lblDispCnt03.Location = new System.Drawing.Point(1215, 65);
             this.lblDispCnt03.Name = "lblDispCnt03";
             this.lblDispCnt03.Size = new System.Drawing.Size(60, 25);
             this.lblDispCnt03.TabIndex = 27;
@@ -384,7 +437,7 @@
             // 
             this.label6.BackColor = System.Drawing.Color.LightGreen;
             this.label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label6.Location = new System.Drawing.Point(995, 38);
+            this.label6.Location = new System.Drawing.Point(995, 65);
             this.label6.Name = "label6";
             this.label6.Size = new System.Drawing.Size(80, 25);
             this.label6.TabIndex = 28;
@@ -396,7 +449,7 @@
             this.lblDispCnt02.BackColor = System.Drawing.Color.White;
             this.lblDispCnt02.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblDispCnt02.ForeColor = System.Drawing.Color.Black;
-            this.lblDispCnt02.Location = new System.Drawing.Point(1075, 38);
+            this.lblDispCnt02.Location = new System.Drawing.Point(1075, 65);
             this.lblDispCnt02.Name = "lblDispCnt02";
             this.lblDispCnt02.Size = new System.Drawing.Size(60, 25);
             this.lblDispCnt02.TabIndex = 27;
@@ -407,7 +460,7 @@
             // 
             this.label4.BackColor = System.Drawing.Color.LightGreen;
             this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label4.Location = new System.Drawing.Point(855, 38);
+            this.label4.Location = new System.Drawing.Point(855, 65);
             this.label4.Name = "label4";
             this.label4.Size = new System.Drawing.Size(80, 25);
             this.label4.TabIndex = 26;
@@ -419,7 +472,7 @@
             this.lblDispCnt01.BackColor = System.Drawing.Color.White;
             this.lblDispCnt01.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblDispCnt01.ForeColor = System.Drawing.Color.Black;
-            this.lblDispCnt01.Location = new System.Drawing.Point(935, 38);
+            this.lblDispCnt01.Location = new System.Drawing.Point(935, 65);
             this.lblDispCnt01.Name = "lblDispCnt01";
             this.lblDispCnt01.Size = new System.Drawing.Size(60, 25);
             this.lblDispCnt01.TabIndex = 25;
@@ -430,7 +483,7 @@
             // 
             this.label9.BackColor = System.Drawing.Color.DeepSkyBlue;
             this.label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label9.Location = new System.Drawing.Point(250, 38);
+            this.label9.Location = new System.Drawing.Point(250, 65);
             this.label9.Name = "label9";
             this.label9.Size = new System.Drawing.Size(114, 25);
             this.label9.TabIndex = 23;
@@ -441,7 +494,7 @@
             // 
             this.label10.BackColor = System.Drawing.Color.DeepSkyBlue;
             this.label10.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label10.Location = new System.Drawing.Point(480, 38);
+            this.label10.Location = new System.Drawing.Point(495, 65);
             this.label10.Name = "label10";
             this.label10.Size = new System.Drawing.Size(114, 25);
             this.label10.TabIndex = 24;
@@ -452,7 +505,7 @@
             // 
             this.label3.BackColor = System.Drawing.Color.DeepSkyBlue;
             this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label3.Location = new System.Drawing.Point(5, 38);
+            this.label3.Location = new System.Drawing.Point(5, 65);
             this.label3.Name = "label3";
             this.label3.Size = new System.Drawing.Size(114, 25);
             this.label3.TabIndex = 18;
@@ -487,9 +540,9 @@
             this.lblLabel06.BackColor = System.Drawing.Color.White;
             this.lblLabel06.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel06.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel06.Location = new System.Drawing.Point(602, 38);
+            this.lblLabel06.Location = new System.Drawing.Point(617, 65);
             this.lblLabel06.Name = "lblLabel06";
-            this.lblLabel06.Size = new System.Drawing.Size(100, 25);
+            this.lblLabel06.Size = new System.Drawing.Size(115, 25);
             this.lblLabel06.TabIndex = 6;
             this.lblLabel06.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
@@ -498,9 +551,9 @@
             this.lblLabel05.BackColor = System.Drawing.Color.White;
             this.lblLabel05.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel05.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel05.Location = new System.Drawing.Point(372, 38);
+            this.lblLabel05.Location = new System.Drawing.Point(372, 65);
             this.lblLabel05.Name = "lblLabel05";
-            this.lblLabel05.Size = new System.Drawing.Size(100, 25);
+            this.lblLabel05.Size = new System.Drawing.Size(115, 25);
             this.lblLabel05.TabIndex = 5;
             this.lblLabel05.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
@@ -509,7 +562,7 @@
             this.lblLabel04.BackColor = System.Drawing.Color.White;
             this.lblLabel04.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblLabel04.ForeColor = System.Drawing.Color.Black;
-            this.lblLabel04.Location = new System.Drawing.Point(127, 38);
+            this.lblLabel04.Location = new System.Drawing.Point(127, 65);
             this.lblLabel04.Name = "lblLabel04";
             this.lblLabel04.Size = new System.Drawing.Size(115, 25);
             this.lblLabel04.TabIndex = 4;
@@ -665,10 +718,10 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.TabCollections.Controls.Add(this.tabPage1);
             this.TabCollections.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed;
-            this.TabCollections.Location = new System.Drawing.Point(8, 160);
+            this.TabCollections.Location = new System.Drawing.Point(8, 185);
             this.TabCollections.Name = "TabCollections";
             this.TabCollections.SelectedIndex = 0;
-            this.TabCollections.Size = new System.Drawing.Size(1290, 485);
+            this.TabCollections.Size = new System.Drawing.Size(1290, 460);
             this.TabCollections.TabIndex = 1;
             this.TabCollections.TabCloseButtonClick += new System.EventHandler(this.btnPageDel_Click);
             this.TabCollections.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.TabCollections_DrawItem);
@@ -684,7 +737,7 @@
             this.tabPage1.Location = new System.Drawing.Point(4, 4);
             this.tabPage1.Name = "tabPage1";
             this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage1.Size = new System.Drawing.Size(1282, 455);
+            this.tabPage1.Size = new System.Drawing.Size(1282, 430);
             this.tabPage1.TabIndex = 0;
             this.tabPage1.Text = "大項目　";
             // 
@@ -693,9 +746,9 @@
             this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
             this.lblCellTotal.AutoSize = true;
             this.lblCellTotal.BackColor = System.Drawing.Color.WhiteSmoke;
-            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9.75F, System.Drawing.FontStyle.Bold);
             this.lblCellTotal.ForeColor = System.Drawing.Color.Black;
-            this.lblCellTotal.Location = new System.Drawing.Point(100, 435);
+            this.lblCellTotal.Location = new System.Drawing.Point(100, 410);
             this.lblCellTotal.Name = "lblCellTotal";
             this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
             this.lblCellTotal.TabIndex = 28;
@@ -757,7 +810,7 @@
             this.dgvEntryData.RowTemplate.Height = 21;
             this.dgvEntryData.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
             this.dgvEntryData.ShowCellToolTips = false;
-            this.dgvEntryData.Size = new System.Drawing.Size(1278, 382);
+            this.dgvEntryData.Size = new System.Drawing.Size(1278, 357);
             this.dgvEntryData.TabIndex = 7;
             this.dgvEntryData.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEntryData_CellDoubleClick);
             this.dgvEntryData.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEntryData_CellEnter);
@@ -946,6 +999,7 @@
             this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmEstimateInput_KeyDown);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
+            this.panel3.ResumeLayout(false);
             this.pnlApproval.ResumeLayout(false);
             this.pnlApprovalButton.ResumeLayout(false);
             this.pnlComent.ResumeLayout(false);
@@ -1024,5 +1078,9 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column13;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
+        private System.Windows.Forms.Panel panel3;
+        private System.Windows.Forms.Button btnParent;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label lblLabel07;
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs	(revision 6)
@@ -997,7 +997,7 @@
         /// <param name="ComponentChar">大項目番号（英字A～Z）</param>
         /// <param name="Componentcode">構成番号</param>
         /// <param name="ItemCnt">大項目番号（英字A～Z）</param>
-        private void CreateTabSetTitile(CommonDefine.TabCotegory CotegoryFlg,
+        private void CreateTabSetTitle(CommonDefine.TabCotegory CotegoryFlg,
                                         string componentname,
                                         int TabIndex,
                                         int Componentcode,
@@ -1118,8 +1118,7 @@
             }
             finally
             {
-                scDB.close();
-                scDB = null;
+                scDB.close(); scDB = null;
             }
         }
         #endregion
@@ -1839,7 +1838,7 @@
 
                 frm.ConstructionCode = m_ConstructionCode;
                 frm.StartupSource = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton == System.Windows.Forms.DialogResult.OK)
                 {
@@ -2068,7 +2067,7 @@
         {
             try
             {
-                // 承認状況一覧表示
+                // 協力会社金額画面表示
                 m_frmAmountAllocation = new FrmAmountAllocation();
                 // 位置設定
                 m_frmAmountAllocation.LocationPoint = new Point(this.Right, this.Bottom);
@@ -2076,7 +2075,7 @@
                 CalculateAmountAllocate();
 
                 // タスクバーに表示しない
-                m_frmAmountAllocation.ShowInTaskbar = false;
+                //m_frmAmountAllocation.ShowInTaskbar = false;
 
                 // クロースドハンドラをこちらで定義する
                 m_frmAmountAllocation.FormClosed += new FormClosedEventHandler(FrmAmountAllocation_FormClosed);
@@ -2435,8 +2434,7 @@
             }
             finally
             {
-                ioDB.close();
-                ioDB = null;
+                ioDB.close(); ioDB = null;
             }
         }
         #endregion
@@ -2465,8 +2463,7 @@
             }
             finally
             {
-                ioDB.close();
-                ioDB = null;
+                ioDB.close(); ioDB = null;
             }
         }
         #endregion
@@ -2571,6 +2568,11 @@
                 // データ表示
                 m_dispLabelControl[(int)DispLabel.ConstructionName1].Text = workdlist[0].DetailString;                       // 工事名称
 
+                ConstructionBaseInfoDetail OrderRec = new ConstructionBaseInfoDetail();
+                string strOrder = cbidDB.CreatePrimarykeyString(m_ConstructionCode, (int)ConstructionBaseInfoDetail.DetailDataNo.OrderersName);
+                cbidDB.SelectAction(strOrder, ref OrderRec);
+                m_dispLabelControl[(int)DispLabel.OrdersName].Text = OrderRec.DetailString;                                 // 発注者名称
+
                 return true;
             }
             catch (Exception ex)
@@ -2580,10 +2582,8 @@
             }
             finally
             {
-                cbiDB.close();
-                cbiDB = null;
-                cbidDB.close();
-                cbidDB = null;
+                cbiDB.close(); cbiDB = null;
+                cbidDB.close(); cbidDB = null;
             }
         }
         #endregion
@@ -2740,7 +2740,7 @@
                 if (!frm.DataExistCheck) return DialogResult.Cancel;
 
                 // 構成要素選択
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
 
                 // キャンセル・終了は処理しない
@@ -2846,7 +2846,7 @@
                 frm.ItemCodeArray = ItemArray;
 
                 // 工種選択
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
 
                 // キャンセル・終了は処理しない
@@ -2955,7 +2955,7 @@
                 frm.ComponentInput = ComponentArray;
 
                 // 構成要素選択
-                frm.ShowInTaskbar = false;
+                ////frm.ShowInTaskbar = false;
                 frm.ShowDialog();
 
                 // キャンセル・終了は処理しない
@@ -3460,13 +3460,13 @@
         /// 論理エラー時メッセージボックス
         /// </summary>
         /// <param name="strLogString"></param>
-        /// <param name="strTitile"></param>
+        /// <param name="strTitle"></param>
         /// <param name="strMethodName"></param>
         /// <param name="strMessage"></param>
-        private void LogicalErrorMessage(string strLogString, string strTitile, string strMethodName, string strMessage = "")
+        private void LogicalErrorMessage(string strLogString, string strTitle, string strMethodName, string strMessage = "")
         {
-            logger.ErrorFormat(strLogString + "：" + strTitile + "：" + strMethodName + "：" + strMessage);
-            MessageBox.Show(strLogString, strTitile, MessageBoxButtons.OK, MessageBoxIcon.Error);
+            logger.ErrorFormat(strLogString + "：" + strTitle + "：" + strMethodName + "：" + strMessage);
+            MessageBox.Show(strLogString, strTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
         #endregion
 
@@ -3611,7 +3611,7 @@
                 // 行№のキャラクタ設定（デフォルトは行番号よりもってくる、これは大項目）
                 string LineCharacter = CommonMotions.cnvNumberToAlphaCharacter(CurrentRow - 1);
                 // 新規作成したタブの表示名称のセット
-                CreateTabSetTitile(NewCotegory,
+                CreateTabSetTitle(NewCotegory,
                             structurename,
                             NewTabCnt,
                             BelongingToComponentCode,
@@ -3828,8 +3828,11 @@
                 btnLineAdd.Visible = true;
                 btnLineDel.Visible = true;
                 btnMasterIn.Visible = false;
-                btnSubConstructor.Visible = false;
+                btnSubConstructor.Visible = true;
 
+                // 協力会社ボタン移動
+                btnSubConstructor.Location = btnDataDelete.Location;
+
                 btnLineAdd.Text = "中項目 行 追加";
                 btnLineDel.Text = "中項目 行 削除";
                 toolTip1.SetToolTip(btnLineAdd, "中項目の行が追加されます。");
@@ -3845,6 +3848,7 @@
 
                 // マスタ登録ボタン移動（表示の時のみ）
                 btnMasterIn.Location = btnDataEntry.Location;
+                // 協力会社ボタン移動
                 btnSubConstructor.Location = btnDataDelete.Location;
 
                 btnLineAdd.Text = "小項目 行 追加";
@@ -4163,7 +4167,7 @@
 
                 frm.DialogUsed = true;
 
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
 
                 int UnitCode = frm.UnitKey;
@@ -4202,6 +4206,8 @@
                 // 会社名とコードをクリアする
                 TergetCell.Value = "";
                 TergetCodeCell.Value = "0";
+
+                m_bChengeAns = true;
             }
             catch (System.Exception ex)
             {
@@ -4216,11 +4222,15 @@
         /// </summary>
         private void SetDisplayObject()
         {
+            int DspCtrlCnt = Enum.GetNames(typeof(DispLabel)).Length;
+            m_dispLabelControl = new Control[DspCtrlCnt];
+
             m_dispLabelControl[(int)DispLabel.ConstructionCode] = lblLabel01;
             m_dispLabelControl[(int)DispLabel.ConstructionName1] = lblLabel02;
             m_dispLabelControl[(int)DispLabel.EstimatesSubmittedDate] = lblLabel04;
             m_dispLabelControl[(int)DispLabel.ConstructionStartDate] = lblLabel05;
             m_dispLabelControl[(int)DispLabel.ConstructionEndDate] = lblLabel06;
+            m_dispLabelControl[(int)DispLabel.OrdersName] = lblLabel07;
             m_dispLabelControl[(int)DispLabel.ComponentCount] = lblDispCnt01;
             m_dispLabelControl[(int)DispLabel.ItemCount] = lblDispCnt02;
             m_dispLabelControl[(int)DispLabel.WorkCount] = lblDispCnt03;
@@ -4228,6 +4238,36 @@
         }
         #endregion
 
+        #region 通常起動時初期処理
+        /// <summary>
+        /// 通常起動時初期処理
+        /// </summary>
+        /// <returns></returns>
+        private bool NormalModeExecute()
+        {
+            try
+            {
+                // データが無い場合は総計ページを作成する
+                // 構成行選択作成
+                if (!CreateComponentLine(0))
+                {
+                    this.Close();
+                    return false;
+                }
+
+                // 採番処理
+                LineReNumberingAlphaCharacter(dgvEntryData);
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
         #region 初期処理
         /// <summary>
         /// 初期時データ取得
@@ -4254,20 +4294,26 @@
 
                 if (!bInitDisp)
                 {
-                    // データが無い場合は総計ページを作成する
-                    // 構成行選択作成
-                    if (!CreateComponentLine(0))
+                    if (MessageBox.Show("新規見積りを作成します。", "見積作成",
+                                        MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.Cancel)
                     {
                         this.Close();
                         return false;
                     }
 
-                    // 採番処理
-                    LineReNumberingAlphaCharacter(dgvEntryData);
-
+                    if (m_ConstructionBaseInfo.TyingFlg!=(int)CommonDefine.BaseInfoTyingFlg.Tying)
+                    {
+                        // 通常起動処理
+                        if (!NormalModeExecute())
+                        {
+                            this.Close();
+                            return false;
+                        }
+                    }
                     // 総計表示処理
                     List<EstimateData> datalist = new List<EstimateData>();
                     InitDispTotalPage(datalist);
+
                 }
                 // 工種数更新
                 SetDataCount();
@@ -4547,7 +4593,7 @@
                                     MiddleList[ix].UnionComponentCode,
                                     0,
                                     subItems);
-                    CreateTabSetTitile((CommonDefine.TabCotegory)MiddleList[ix].Category,
+                    CreateTabSetTitle((CommonDefine.TabCotegory)MiddleList[ix].Category,
                                     MiddleList[ix].PageTitle,
                                     MiddleTab,
                                     MiddleList[ix].ComponentCode,
@@ -5507,5 +5553,175 @@
         }
         #endregion
 
+        #region 割付業者のチェックをおこなう
+        /// <summary>
+        /// 割付業者のチェックをおこなう
+        /// </summary>
+        private bool CheckConstructor()
+        {
+            try
+            {
+                // 割当金額更新
+                CalculateAmountAllocate();
+
+                // 先頭は未割当
+                AmountAllocation wrkList = m_AmountList[0];
+
+                // 割当リストの先頭が未割当ではない場合はエラー
+                if (wrkList.Code != CommonDefine.s_AmountMoney[(int)CommonDefine.AmountMoneyNo.NonAssign].Key) return false;
+                if (wrkList.Name != CommonDefine.s_AmountMoney[(int)CommonDefine.AmountMoneyNo.NonAssign].Value) return false;
+                // 未割当金額が0の場合はＯＫ
+                //if (wrkList.Amount == 0) return true;
+
+                bool bRet = true;
+                bool bAns = true;
+                foreach (EstimateInputPage wrkPage in m_EntryPage)
+                {
+                    // 大項目はチェックしない
+                    if (wrkPage.Cotegory == CommonDefine.TabCotegory.Total) continue;
+
+                    // グリッド行分処理する
+                    foreach (DataGridViewRow wrkRow in wrkPage.EntryDGV.Rows)
+                    {
+                        bAns = true;
+
+                        // 無効行は処理しない
+                        if (!ChkGridLineEffectiveness(wrkRow)) continue;
+                        if (CommonMotions.chkCellBlank(wrkRow.Cells[(int)GridItemColumn.LineTotal].Value)) continue;
+
+                        int Code = 0;
+                        // 金額は共通なので先に取得する
+                        int Amount = CommonMotions.cnvInt(wrkRow.Cells[(int)GridItemColumn.LineTotal].Value);
+
+                        // 金額0は対象外
+                        if (Amount == 0) continue;
+
+                        // 小項目タブ
+                        if (wrkPage.Cotegory == CommonDefine.TabCotegory.Item)
+                        {   // 割当会社を取得する
+                            if (!CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridItemColumn.SubConstractorCode].Value))
+                                Code = CommonMotions.cnvInt(wrkRow.Cells[(int)GridItemColumn.SubConstractorCode].Value);
+                        }
+                        // 中項目
+                        else if (wrkPage.Cotegory == CommonDefine.TabCotegory.Component)
+                        {
+                            // 直接入力項目が処理対象
+                            if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridComponentColumn.InputFlg].Value)) continue;
+                            if (CommonMotions.cnvInt(wrkRow.Cells[(int)GridComponentColumn.InputFlg].Value) != (int)CommonDefine.DirectInput.Input) continue;
+
+                            // 割当会社を取得する
+                            if (!CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridComponentColumn.SubConstractorCode].Value))
+                                Code = CommonMotions.cnvInt(wrkRow.Cells[(int)GridItemColumn.SubConstractorCode].Value);
+
+                            // 割当が無く経費だった場合
+                            if (!CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)GridComponentColumn.ExpensesFlg].Value))
+                            {
+                                if (Code == 0
+                                    && CommonMotions.cnvInt(wrkRow.Cells[(int)GridComponentColumn.ExpensesFlg].Value) == (int)CommonDefine.MyExpenses.Expenses)
+                                {
+                                    continue;
+                                }
+                            }
+                        }
+                        if (Code == 0) bAns = false;
+
+                        // 背景色変更
+                        CommonMotions.chgBackColor(wrkRow.Cells[(int)GridItemColumn.SubConstractorName], bAns);
+                        bRet &= bAns;
+
+                        // エラー時そのページへ移動する
+                        if (!bAns) TabCollections.SelectedTab = wrkPage.EntryTab;
+                    }
+                }
+
+                if (!bRet)
+                {
+                    MessageBox.Show("協力業社が割付られていない項目があります確認してください", "データ確認", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+                }
+
+                return bRet;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 工事金額増減の場合親画面を表示する
+        /// <summary>
+        /// 工事金額増減の場合親画面を表示する
+        /// </summary>
+        private void FormLoadParentInput()
+        {
+            IOConstructionLink LinkDB = new IOConstructionLink();
+            try
+            {
+                // 金額増減の子画面以外は処理しない
+                if (m_ConstructionBaseInfo.TyingFlg != (int)CommonDefine.BaseInfoTyingFlg.Tying) return;
+                
+                // 表示中はアクティブにして抜ける
+                if (m_frmParent != null)
+                {
+                    m_frmAmountAllocation.Activate();
+                    return;
+                }
+
+                // 表示ボタンの表示ON
+                panel3.Visible = true;
+
+                // 親の工事番号を取得する
+                string strSQL = String.Format(" WHERE FluctuationCode = {0}", m_ConstructionCode);
+                ConstructionLink LinkRec = new ConstructionLink();
+                if (!LinkDB.SelectAction(strSQL, ref LinkRec)) return;
+
+                // 積算見積書入力起動
+                m_frmParent = new FrmEstimateInput();
+
+                m_frmParent.ConstructionCode = LinkRec.ConstructionCode;
+                m_frmParent.SubForm = true;
+                m_frmParent.ShowInTaskbar = true;
+                m_frmParent.DualModeFlg = true;
+
+                // クロースドハンドラをこちらで定義する
+                m_frmParent.FormClosed += new FormClosedEventHandler(FormCloseParentInput);
+                m_frmParent.Show();
+
+                // 表示位置変更
+                Point parentPO = m_frmParent.Location;
+                parentPO.X += 50;
+                parentPO.Y += 50;
+                m_frmParent.Location = parentPO;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                LinkDB.close(); LinkDB = null;
+            }
+        }
+        #endregion
+
+        #region 工事金額増減時の親画面クローズを取得する
+        /// <summary>
+        /// 工事金額増減時の親画面クローズを取得する
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FormCloseParentInput(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                m_frmParent.Dispose(); m_frmParent = null;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/ProcessControl.cs	(revision 6)
@@ -322,32 +322,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -359,32 +366,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -636,7 +650,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/FrmEstimatePrint.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/FrmEstimatePrint.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/FrmEstimatePrint.cs	(revision 6)
@@ -279,7 +279,7 @@
                 frmStatus.ProgressStatus = iProgressCode;
 
                 // ウィンドウ表示
-                frmStatus.ShowInTaskbar = false;
+                //frmStatus.ShowInTaskbar = false;
                 frmStatus.ShowDialog();
                 
                 // 終了状態
@@ -299,7 +299,7 @@
                 {
                     // 保存先を選択する
                     frm.SaveType = (int)CommonDefine.SaveFileType.ExcelFile;
-                    frm.ShowInTaskbar = false;
+                    //frm.ShowInTaskbar = false;
                     frm.ShowDialog();
                     if (frm.EndButton == DialogResult.Cancel) return;
                     m_SelectSaveExcel = frm.SelectPath;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/FrmEstimatePrintAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/FrmEstimatePrintAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/FrmEstimatePrintAuxiliary.cs	(revision 6)
@@ -836,8 +836,7 @@
             }
             finally
             {
-                etbDB.close();
-                etbDB = null;
+                etbDB.close(); etbDB = null;
             }
         }
         #endregion
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimatePrint/ProcessControl.cs	(revision 6)
@@ -322,32 +322,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -359,32 +366,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -636,7 +650,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedings.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedings.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedings.cs	(revision 6)
@@ -58,7 +58,7 @@
             EstimatePrice,
             ExecPrice,
             Percent,
-            TitileFlg,
+            TitleFlg,
             TotalFlg,
             BlankFlg,
             IndependentFlg,
@@ -147,7 +147,7 @@
         /// <summary>
         /// �O���[�v�v�E�^�C�g���o�b�N�J���[
         /// </summary>
-        private static Color s_TitileRowBackColor = Color.LightGoldenrodYellow;
+        private static Color s_TitleRowBackColor = Color.LightGoldenrodYellow;
         /// <summary>
         /// �O���[�v�v�������z�o�b�N�J���[
         /// </summary>
@@ -170,7 +170,7 @@
         /// <summary>
         /// �O���b�h���ڍs�^�C�g��
         /// </summary>
-        private static string[] GroupTitile = new string[] { ""
+        private static string[] GroupTitle = new string[] { ""
                                                             , "�o�@�@�@�@�@��"
                                                             , "�{�@�@�H�@�@��"
                                                             , "��ʔ�i�ʍs���E�d�ԑ�j"
@@ -192,7 +192,7 @@
         /// <summary>
         /// �Œ�J�����^�C�g��
         /// </summary>
-        private static string[] ColumnsTitile = new string[] { "�x�@���@���@�v",
+        private static string[] ColumnsTitle = new string[] { "�x�@���@���@�v",
                                                                 "�x �� �� �\ �z",
                                                                 "�x�@���@���@��",
                                                                 "�x �� �� �U �g"};
@@ -806,7 +806,7 @@
                 m_frmAuthorizerList.LocationPoint = new Point(this.Right, this.Top);
 
                 // �^�X�N�o�[�ɕ\�����Ȃ�
-                m_frmAuthorizerList.ShowInTaskbar = false;
+                //m_frmAuthorizerList.ShowInTaskbar = false;
 
                 // �N���[�X�h�n���h����������Œ�`����
                 m_frmAuthorizerList.FormClosed += new FormClosedEventHandler(FrmApprovalAuthorizerList_FormClosed);
@@ -872,8 +872,8 @@
                 if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)DispGridColumn.TotalFlg].Value)) return;
                 if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) return;
 
-                if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value)) return;
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) != 0) return;
+                if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value)) return;
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value) != 0) return;
 
                 if (CommonMotions.chkObjectIsNull(CurRow.Cells[(int)DispGridColumn.BlankFlg].Value)) return;
                 if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.BlankFlg].Value) != 0) return;
@@ -1084,7 +1084,7 @@
             DataGridView dgv = dgvAllDisplay;
 
             // �^�C�g���͏������Ȃ�
-            if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) return;
+            if (CommonMotions.cnvInt(dgv.CurrentRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) return;
 
             switch (e.ColumnIndex)
             {
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs	(revision 6)
@@ -344,7 +344,7 @@
                 ColumnCount += 3;
 
                 // 月毎支払欄作成
-                DateTime dtTitileDate = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text);
+                DateTime dtTitleDate = CommonMotions.cnvDate(m_DspLabelCtrl[(int)DspLblCtrlName.StartingDate].Text);
                 m_GridPaymentColList = new DataGridViewColumn[ColumnCount];
                 m_GridPaymentCellStyleList = new DataGridViewCellStyle[ColumnCount];
                 for (int i = 0; i < ColumnCount; i++)
@@ -360,7 +360,7 @@
                     // カラムの設定
                     m_GridPaymentColList[i].CellTemplate = new DataGridViewTextBoxCell();
                     m_GridPaymentColList[i].DefaultCellStyle = m_GridPaymentCellStyleList[i];
-                    m_GridPaymentColList[i].HeaderText = string.Format("{0}年{1}月", dtTitileDate.AddMonths(i).Year, dtTitileDate.AddMonths(i).Month);
+                    m_GridPaymentColList[i].HeaderText = string.Format("{0}年{1}月", dtTitleDate.AddMonths(i).Year, dtTitleDate.AddMonths(i).Month);
 
                     m_GridPaymentColList[i].Name = string.Format("ColPayment{0}", i);
                     m_GridPaymentColList[i].ReadOnly = false;
@@ -386,7 +386,7 @@
                     // カラムの設定
                     m_GridTotalColList[i].CellTemplate = new DataGridViewTextBoxCell();
                     m_GridTotalColList[i].DefaultCellStyle = m_GridTotalCellStyleList[i];
-                    m_GridTotalColList[i].HeaderText = ColumnsTitile[i];
+                    m_GridTotalColList[i].HeaderText = ColumnsTitle[i];
 
                     m_GridTotalColList[i].Name = string.Format("ColPayTotal{0}", i);
                     // 補填枠は入力可にする
@@ -412,7 +412,7 @@
         /// データ行を作成する
         /// </summary>
         /// <param name="SetData"></param>
-        private void CreateTitileRow(int TitileNo, string TitileName)
+        private void CreateTitleRow(int TitleNo, string TitleName)
         {
             try
             {
@@ -424,11 +424,11 @@
 
                 // データ作成
                 object[] SetData = new object[colcnt];
-                SetData[(int)DispGridColumn.No] = TitileNo;
+                SetData[(int)DispGridColumn.No] = TitleNo;
                 SetData[(int)DispGridColumn.FixFlg] = "*";
-                SetData[(int)DispGridColumn.GroupCount] = TitileNo;
-                SetData[(int)DispGridColumn.ItemName] = TitileName;
-                SetData[(int)DispGridColumn.TitileFlg] = "1";
+                SetData[(int)DispGridColumn.GroupCount] = TitleNo;
+                SetData[(int)DispGridColumn.ItemName] = TitleName;
+                SetData[(int)DispGridColumn.TitleFlg] = "1";
 
                 // 行データセット
                 dgv.Rows[rowcnt].SetValues(SetData);
@@ -436,7 +436,7 @@
                 // 行の色を変える
                 for (int i = 0; i < colcnt; i++)
                 {
-                    dgv.Rows[rowcnt].Cells[i].Style.BackColor = s_TitileRowBackColor;
+                    dgv.Rows[rowcnt].Cells[i].Style.BackColor = s_TitleRowBackColor;
                 }
 
                 // 表示した行を書込み禁止にする
@@ -470,7 +470,7 @@
                 // 行データセット
                 CurRow.SetValues(SetData);
                 // フラグセット
-                CurRow.Cells[(int)DispGridColumn.TitileFlg].Value = "0";
+                CurRow.Cells[(int)DispGridColumn.TitleFlg].Value = "0";
                 CurRow.Cells[(int)DispGridColumn.TotalFlg].Value = "0";
                 CurRow.Cells[(int)DispGridColumn.BlankFlg].Value = "0";
             }
@@ -554,7 +554,7 @@
                 foreach (DataGridViewRow wrkRow in dgv.Rows)
                 {
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
                     // 行の色をデフォルト色へ変更
@@ -588,12 +588,12 @@
                 int colcnt = dgv.Columns.Count;
                 int GroupNo = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.GroupCount].Value);
 
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1)
                 {   // タイトル行
                     // 行の色を変える
                     for (int i = 0; i < colcnt; i++)
                     {
-                        dgv.Rows[m_BeforeGridRow].Cells[i].Style.BackColor = s_TitileRowBackColor;
+                        dgv.Rows[m_BeforeGridRow].Cells[i].Style.BackColor = s_TitleRowBackColor;
                     }
                 }
                 else if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TotalFlg].Value) == 1)
@@ -797,7 +797,7 @@
                 int icnt = 0;
 
                 // グループ名表示
-                CreateTitileRow(GroupNo, GroupTitile[GroupNo]);
+                CreateTitleRow(GroupNo, GroupTitle[GroupNo]);
 
                 // 行位置取得
                 m_CostsRowCount[(int)CostsRowLine.ExpensesRowLine] = dgv.RowCount - 1;
@@ -865,7 +865,7 @@
                 int GroupNo = (int)GroupName_ConstructionLedger.ConstructionCosts;
                 int icnt = 0;
                 // グループ名表示
-                CreateTitileRow(GroupNo, GroupTitile[GroupNo]);
+                CreateTitleRow(GroupNo, GroupTitle[GroupNo]);
 
                 // 行位置取得
                 m_CostsRowCount[(int)CostsRowLine.ConstructionCostLine] = dgv.RowCount - 1;
@@ -921,7 +921,7 @@
                 int icnt = 1;
                 int Block = (int)GroupName_ConstructionLedger.TransportationCosts;
                 // グループ名表示
-                CreateTitileRow(Block ,GroupTitile[(int)GroupName_ConstructionLedger.PurchaseCosts] + "　　等");
+                CreateTitleRow(Block ,GroupTitle[(int)GroupName_ConstructionLedger.PurchaseCosts] + "　　等");
 
                 // 交通費表示
                 GetDispDataFromConstructionBudget(Block, (int)GroupName_ConstructionBudget.TransportationCosts, icnt++);
@@ -976,7 +976,7 @@
                 RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", BlockCnt, icnt);
                 RowData[(int)DispGridColumn.FixFlg] = "*";
                 RowData[(int)DispGridColumn.GroupCount] = GroupNo;
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[GroupNo];
+                RowData[(int)DispGridColumn.ItemName] = GroupTitle[GroupNo];
                 RowData[(int)DispGridColumn.EstimatePrice] = CommonMotions.cnvInt(wrkobj[0]).ToString("#,0");
                 RowData[(int)DispGridColumn.ExecPrice] = CommonMotions.cnvInt(wrkobj[1]).ToString("#,0");
                 RowData[(int)DispGridColumn.Percent] = CommonMotions.cnvDouble(wrkobj[2]).ToString("0.00");
@@ -1074,7 +1074,7 @@
                     case (int)GroupName_ConstructionBudget.PayrollExpenses:
                         // 行位置取得
                         m_CostsRowCount[(int)CostsRowLine.PayrollExpensesRowLine] = dgv.RowCount;
-                        GroupNo = (int)GroupName_ConstructionLedger.PayrollExpenses;
+                        GroupNo = (int)GroupName_ConstructionLedger.Payroll;
                         break;
                     default:
                         // その他の項目
@@ -1142,7 +1142,7 @@
                 int GroupNo = (int)GroupName_ConstructionLedger.TransportationCosts + 1;
                 int icnt = 1;
                 // グループ名表示
-                CreateTitileRow(GroupNo, PersonnelExpensesGroup);
+                CreateTitleRow(GroupNo, PersonnelExpensesGroup);
 
                 // 指導員給与
                 GetDispDataFromConstructionBudget(GroupNo, (int)GroupName_ConstructionBudget.InstructorCosts, icnt++);
@@ -1187,7 +1187,7 @@
                 if (BreakLine == 0) BreakLine = dgv.Rows.Count;
 
                 // 月毎クリア
-                for (int i = 0; i < MTotal.Length; i++) MTotal[i] = 0;
+                Array.Clear(MTotal, 0, MTotal.Length);
                 foreach (DataGridViewRow wrkRow in dgv.Rows)
                 {
                     // 純利益の前までで処理終了
@@ -1294,7 +1294,7 @@
                 // データセット
                 RowData[(int)DispGridColumn.FixFlg] = "*";
                 RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionLedger.NetIncome;
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionLedger.NetIncome];
+                RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionLedger.NetIncome];
                 RowData[(int)DispGridColumn.EstimatePrice] = EstimateValue.ToString("#,0");
                 RowData[(int)DispGridColumn.ExecPrice] = ExecValue.ToString("#,0");
                 RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecValue).ToString("0.00");
@@ -1435,7 +1435,7 @@
                 // データセット
                 RowData[(int)DispGridColumn.FixFlg] = "*";
                 RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionLedger.AllTotal;
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionLedger.AllTotal];
+                RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionLedger.AllTotal];
                 RowData[(int)DispGridColumn.EstimatePrice] = EstimatePriceValue.ToString("#,0");
                 RowData[(int)DispGridColumn.ExecPrice] = ExecPriceValue.ToString("#,0");
                 RowData[(int)DispGridColumn.Percent] = CalculattionPercent((double)ExecPriceValue).ToString("0.00");
@@ -1530,7 +1530,7 @@
                 // データセット
                 RowData[(int)DispGridColumn.FixFlg] = "*";
                 RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionLedger.CurrentProfit;
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionLedger.CurrentProfit];
+                RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionLedger.CurrentProfit];
 
                 // 合計欄位置取得
                 int TotalPoint = dgv.ColumnCount + (int)ColPayTotal.Totals;
@@ -1586,7 +1586,7 @@
                 // データセット
                 RowData[(int)DispGridColumn.FixFlg] = "*";
                 RowData[(int)DispGridColumn.GroupCount] = (int)GroupName_ConstructionLedger.BillingAmount;
-                RowData[(int)DispGridColumn.ItemName] = GroupTitile[(int)GroupName_ConstructionLedger.BillingAmount];
+                RowData[(int)DispGridColumn.ItemName] = GroupTitle[(int)GroupName_ConstructionLedger.BillingAmount];
                 RowData[(int)DispGridColumn.IndependentFlg] = "1";
 
                 string strSQL = ExcuteDB.CreatePrimarykeyString(m_ConstructionCode,
@@ -1681,7 +1681,7 @@
                 int Block = (int)GroupName_ConstructionLedger.Expenses;
                 ConstructionLedgerDetail SaveBillingData = new ConstructionLedgerDetail();
                 // グループ名表示(経費)
-                CreateTitileRow(GroupNo, GroupTitile[GroupNo]);
+                CreateTitleRow(GroupNo, GroupTitle[GroupNo]);
                 foreach (ConstructionLedgerDetail DetailRec in DetailList)
                 {
                     // グループ番号が違えばタイトル行表示
@@ -1694,15 +1694,15 @@
                                 // 施工費
                                 AddEmptyRow();                                      // 空白行
                                 Block = (int)GroupName_ConstructionLedger.ConstructionCosts;
-                                CreateTitileRow(GroupNo, GroupTitile[GroupNo]);     // タイトル表示
+                                CreateTitleRow(GroupNo, GroupTitle[GroupNo]);     // タイトル表示
                                 icnt = 1;
                                 break;
                             case (int)GroupName_ConstructionLedger.TransportationCosts:
                                 // 交通費（通行料・電車代）
                                 AddEmptyRow();                                      // 空白行
-                                string Titilestring = GroupTitile[(int)GroupName_ConstructionLedger.PurchaseCosts] + "　　等";
+                                string Titlestring = GroupTitle[(int)GroupName_ConstructionLedger.PurchaseCosts] + "　　等";
                                 Block = (int)GroupName_ConstructionLedger.TransportationCosts;
-                                CreateTitileRow(GroupNo, Titilestring);             // タイトル表示
+                                CreateTitleRow(GroupNo, Titlestring);             // タイトル表示
                                 icnt = 1;
                                 break;
                             case (int)GroupName_ConstructionLedger.Instructor:
@@ -1709,7 +1709,7 @@
                                 // 指導員給料行
                                 AddEmptyRow();                                      // 空白行
                                 Block = (int)GroupName_ConstructionLedger.TransportationCosts + 1;
-                                CreateTitileRow(Block, PersonnelExpensesGroup);     // タイトル表示
+                                CreateTitleRow(Block, PersonnelExpensesGroup);     // タイトル表示
                                 icnt = 1;
                                 break;
                             case (int)GroupName_ConstructionLedger.PurchaseCosts:           // 購入品
@@ -1717,7 +1717,7 @@
                             case (int)GroupName_ConstructionLedger.ParkingCosts:            // 駐車場・資材置き場
                             case (int)GroupName_ConstructionLedger.RoomChargeCosts:         // 宿泊費
                             case (int)GroupName_ConstructionLedger.DisposeCosts:            // 処分費等
-                            case (int)GroupName_ConstructionLedger.PayrollExpenses:         // 給料行
+                            case (int)GroupName_ConstructionLedger.Payroll:         // 給料行
                                 break;
                             default:
                                 Block = 0;
@@ -1745,7 +1745,7 @@
                         case (int)GroupName_ConstructionLedger.RoomChargeCosts:         // 宿泊費
                         case (int)GroupName_ConstructionLedger.DisposeCosts:            // 処分費等
                         case (int)GroupName_ConstructionLedger.Instructor:              // 指導員給料行
-                        case (int)GroupName_ConstructionLedger.PayrollExpenses:         // 給料行
+                        case (int)GroupName_ConstructionLedger.Payroll:         // 給料行
                             RowData[(int)DispGridColumn.No] = string.Format("{0}-{1}", Block, icnt++);
                             break;
                         default:
@@ -1810,7 +1810,7 @@
                             break;
 
                         case (int)GroupName_ConstructionLedger.Instructor:              // 指導員
-                        case (int)GroupName_ConstructionLedger.PayrollExpenses:         // 給与
+                        case (int)GroupName_ConstructionLedger.Payroll:         // 給与
                         case (int)GroupName_ConstructionLedger.NetIncome:               // 純利益
                             // 16期より前は指導員金額・担当者給与・純利益を表示しない
                             if (m_ConstructionBaseInfo.ConstructionPeriod < 16) dgv.Rows[dgv.RowCount - 1].Visible = false;
@@ -1924,7 +1924,7 @@
                             m_CostsRowCount[(int)CostsRowLine.InstructorRowLine] = dgv.RowCount - 1;
                         break;
                     // 給料
-                    case (int)GroupName_ConstructionLedger.PayrollExpenses:
+                    case (int)GroupName_ConstructionLedger.Payroll:
                         // 行位置取得
                         if (m_CostsRowCount[(int)CostsRowLine.PayrollExpensesRowLine] == 0)
                             m_CostsRowCount[(int)CostsRowLine.PayrollExpensesRowLine] = dgv.RowCount - 1;
@@ -2060,7 +2060,7 @@
                 SetData.Cells[(int)DispGridColumn.ExecPrice].Value = "0";
                 SetData.Cells[(int)DispGridColumn.Percent].Value = "0.00";
                 // フラグセット
-                SetData.Cells[(int)DispGridColumn.TitileFlg].Value = "0";
+                SetData.Cells[(int)DispGridColumn.TitleFlg].Value = "0";
                 SetData.Cells[(int)DispGridColumn.TotalFlg].Value = "0";
                 SetData.Cells[(int)DispGridColumn.BlankFlg].Value = "0";
 
@@ -2138,7 +2138,7 @@
                 RemoveCnt = CurRow.Index;
 
                 // タイトルの場合は削除無
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) RemoveCnt = 0;
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) RemoveCnt = 0;
                 // 空白行の場合は削除無
                 if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) RemoveCnt = 0;
                 // 固定行の場合は削除無
@@ -2231,11 +2231,11 @@
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.IndependentFlg].Value) != 0) return;
                 }
 
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1)
                 {   // タイトルの場合は処理しない
                     UpCnt = 0;
                 }
-                else if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                else if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1)
                 {   // １行上がタイトルの場合は処理しない
                     UpCnt = 0;
                 }
@@ -2289,7 +2289,7 @@
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.IndependentFlg].Value) != 0) return;
                 }
                 
-                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1)
+                if (CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1)
                 {   // タイトルの場合は処理しない
                     DownCnt = 0;
                 }
@@ -2589,8 +2589,8 @@
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) continue;
 
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
@@ -2681,8 +2681,8 @@
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) == 1) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) == 1) continue;
 
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) == 1) continue;
@@ -2756,8 +2756,8 @@
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TotalFlg].Value) != 0) continue;
 
-                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value)) continue;
-                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitileFlg].Value) != 0) continue;
+                    if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value)) continue;
+                    if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.TitleFlg].Value) != 0) continue;
 
                     if (CommonMotions.chkObjectIsNull(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value)) continue;
                     if (CommonMotions.cnvInt(wrkRow.Cells[(int)DispGridColumn.BlankFlg].Value) != 0) continue;
@@ -3092,7 +3092,7 @@
 
                 frm.ConstructionCode = m_ConstructionCode;
                 frm.StartupSource = (int)ClsExcute.ProcessExecuteNo.Proceedings;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton == System.Windows.Forms.DialogResult.OK)
                 {
@@ -3126,7 +3126,7 @@
                 DataGridView dgv = dgvAllDisplay;
 
                 frm.ConstructionCode = m_ConstructionCode;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton == System.Windows.Forms.DialogResult.OK)
                 {
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/ProcessControl.cs	(revision 6)
@@ -329,32 +329,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -366,32 +373,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -643,7 +657,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/CreateNewTabPage.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/CreateNewTabPage.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/CreateNewTabPage.cs	(revision 6)
@@ -162,10 +162,10 @@
                 switch (OrderType)
                 {
                     case (int)CommonDefine.OrderSheetType.SimpleType:
-                        wrkGB.Text = s_TermsTitile1;
+                        wrkGB.Text = s_TermsTitle1;
                         break;
                     case (int)CommonDefine.OrderSheetType.RegularType:
-                        wrkGB.Text = s_TermsTitile2;
+                        wrkGB.Text = s_TermsTitle2;
                         break;
                 }
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.Designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.Designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.Designer.cs	(revision 6)
@@ -42,14 +42,6 @@
             this.label1 = new System.Windows.Forms.Label();
             this.panel1 = new System.Windows.Forms.Panel();
             this.btnInputImage = new System.Windows.Forms.Button();
-            this.pnlApproval = new System.Windows.Forms.Panel();
-            this.lblApprovalCount = new System.Windows.Forms.Label();
-            this.btnPetition = new System.Windows.Forms.Button();
-            this.btnApproval = new System.Windows.Forms.Button();
-            this.pnlApprovalButton = new System.Windows.Forms.Panel();
-            this.btnOnApproval = new System.Windows.Forms.Button();
-            this.btnNotApproval = new System.Windows.Forms.Button();
-            this.btnOnHold = new System.Windows.Forms.Button();
             this.lblLabel01 = new System.Windows.Forms.Label();
             this.panel2 = new System.Windows.Forms.Panel();
             this.radioButton2 = new System.Windows.Forms.RadioButton();
@@ -67,6 +59,14 @@
             this.label11 = new System.Windows.Forms.Label();
             this.label8 = new System.Windows.Forms.Label();
             this.lblLabel04 = new System.Windows.Forms.Label();
+            this.pnlApproval = new System.Windows.Forms.Panel();
+            this.lblApprovalCount = new System.Windows.Forms.Label();
+            this.btnPetition = new System.Windows.Forms.Button();
+            this.btnApproval = new System.Windows.Forms.Button();
+            this.pnlApprovalButton = new System.Windows.Forms.Panel();
+            this.btnOnApproval = new System.Windows.Forms.Button();
+            this.btnNotApproval = new System.Windows.Forms.Button();
+            this.btnOnHold = new System.Windows.Forms.Button();
             this.btnApprovalList = new System.Windows.Forms.Button();
             this.btnDataDelete = new System.Windows.Forms.Button();
             this.btnDataEntry = new System.Windows.Forms.Button();
@@ -73,16 +73,6 @@
             this.btnEnd = new System.Windows.Forms.Button();
             this.tabPage1 = new System.Windows.Forms.TabPage();
             this.panel3 = new System.Windows.Forms.Panel();
-            this.lbl001 = new System.Windows.Forms.Label();
-            this.lbl003 = new System.Windows.Forms.Label();
-            this.label18 = new System.Windows.Forms.Label();
-            this.txtBoxS001 = new System.Windows.Forms.TextBox();
-            this.lbl002 = new System.Windows.Forms.Label();
-            this.label15 = new System.Windows.Forms.Label();
-            this.TabCollections = new System.Windows.Forms.TabControl();
-            this.btnOtherProc = new System.Windows.Forms.Button();
-            this.btnPageDelete = new System.Windows.Forms.Button();
-            this.btnChangeCompany = new System.Windows.Forms.Button();
             this.groupBox3 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
             this.label40 = new System.Windows.Forms.Label();
             this.txtBoxR013 = new System.Windows.Forms.TextBox();
@@ -130,6 +120,11 @@
             this.label19 = new System.Windows.Forms.Label();
             this.label6 = new System.Windows.Forms.Label();
             this.label22 = new System.Windows.Forms.Label();
+            this.lbl001 = new System.Windows.Forms.Label();
+            this.lbl003 = new System.Windows.Forms.Label();
+            this.label18 = new System.Windows.Forms.Label();
+            this.txtBoxS001 = new System.Windows.Forms.TextBox();
+            this.lbl002 = new System.Windows.Forms.Label();
             this.groupBox4 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
             this.dgvTerms = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -152,13 +147,17 @@
             this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.label15 = new System.Windows.Forms.Label();
+            this.TabCollections = new System.Windows.Forms.TabControl();
+            this.btnOtherProc = new System.Windows.Forms.Button();
+            this.btnPageDelete = new System.Windows.Forms.Button();
+            this.btnChangeCompany = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
+            this.panel2.SuspendLayout();
             this.pnlApproval.SuspendLayout();
             this.pnlApprovalButton.SuspendLayout();
-            this.panel2.SuspendLayout();
             this.tabPage1.SuspendLayout();
             this.panel3.SuspendLayout();
-            this.TabCollections.SuspendLayout();
             this.groupBox3.SuspendLayout();
             this.groupBox2.SuspendLayout();
             this.groupBox5.SuspendLayout();
@@ -166,6 +165,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.dgvTerms)).BeginInit();
             this.groupBox1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).BeginInit();
+            this.TabCollections.SuspendLayout();
             this.SuspendLayout();
             // 
             // label1
@@ -188,8 +188,6 @@
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
             this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.panel1.Controls.Add(this.btnInputImage);
-            this.panel1.Controls.Add(this.pnlApproval);
-            this.panel1.Controls.Add(this.pnlApprovalButton);
             this.panel1.Controls.Add(this.lblLabel01);
             this.panel1.Controls.Add(this.panel2);
             this.panel1.Controls.Add(this.label17);
@@ -205,6 +203,8 @@
             this.panel1.Controls.Add(this.label11);
             this.panel1.Controls.Add(this.label8);
             this.panel1.Controls.Add(this.lblLabel04);
+            this.panel1.Controls.Add(this.pnlApproval);
+            this.panel1.Controls.Add(this.pnlApprovalButton);
             this.panel1.Location = new System.Drawing.Point(7, 40);
             this.panel1.Name = "panel1";
             this.panel1.Size = new System.Drawing.Size(1330, 108);
@@ -224,112 +224,6 @@
             this.btnInputImage.UseVisualStyleBackColor = false;
             this.btnInputImage.Click += new System.EventHandler(this.btnInputImage_Click);
             // 
-            // pnlApproval
-            // 
-            this.pnlApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.pnlApproval.AutoSize = true;
-            this.pnlApproval.BackColor = System.Drawing.Color.White;
-            this.pnlApproval.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.pnlApproval.Controls.Add(this.lblApprovalCount);
-            this.pnlApproval.Controls.Add(this.btnPetition);
-            this.pnlApproval.Controls.Add(this.btnApproval);
-            this.pnlApproval.Location = new System.Drawing.Point(1060, 66);
-            this.pnlApproval.Name = "pnlApproval";
-            this.pnlApproval.Size = new System.Drawing.Size(262, 34);
-            this.pnlApproval.TabIndex = 51;
-            // 
-            // lblApprovalCount
-            // 
-            this.lblApprovalCount.BackColor = System.Drawing.Color.Black;
-            this.lblApprovalCount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblApprovalCount.ForeColor = System.Drawing.Color.White;
-            this.lblApprovalCount.Location = new System.Drawing.Point(205, 3);
-            this.lblApprovalCount.Name = "lblApprovalCount";
-            this.lblApprovalCount.Size = new System.Drawing.Size(50, 24);
-            this.lblApprovalCount.TabIndex = 1;
-            this.lblApprovalCount.Text = "4/5";
-            this.lblApprovalCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // btnPetition
-            // 
-            this.btnPetition.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnPetition.BackColor = System.Drawing.Color.White;
-            this.btnPetition.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnPetition.ForeColor = System.Drawing.Color.Red;
-            this.btnPetition.Location = new System.Drawing.Point(3, 3);
-            this.btnPetition.Name = "btnPetition";
-            this.btnPetition.Size = new System.Drawing.Size(100, 24);
-            this.btnPetition.TabIndex = 12;
-            this.btnPetition.Text = "未申請";
-            this.btnPetition.UseVisualStyleBackColor = false;
-            this.btnPetition.Click += new System.EventHandler(this.btnPetition_Click);
-            // 
-            // btnApproval
-            // 
-            this.btnApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnApproval.BackColor = System.Drawing.Color.White;
-            this.btnApproval.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnApproval.ForeColor = System.Drawing.Color.Red;
-            this.btnApproval.Location = new System.Drawing.Point(104, 3);
-            this.btnApproval.Name = "btnApproval";
-            this.btnApproval.Size = new System.Drawing.Size(100, 24);
-            this.btnApproval.TabIndex = 12;
-            this.btnApproval.Text = "未承認";
-            this.btnApproval.UseVisualStyleBackColor = false;
-            this.btnApproval.Click += new System.EventHandler(this.btnApproval_Click);
-            // 
-            // pnlApprovalButton
-            // 
-            this.pnlApprovalButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.pnlApprovalButton.AutoSize = true;
-            this.pnlApprovalButton.BackColor = System.Drawing.Color.White;
-            this.pnlApprovalButton.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.pnlApprovalButton.Controls.Add(this.btnOnApproval);
-            this.pnlApprovalButton.Controls.Add(this.btnNotApproval);
-            this.pnlApprovalButton.Controls.Add(this.btnOnHold);
-            this.pnlApprovalButton.Location = new System.Drawing.Point(1060, 66);
-            this.pnlApprovalButton.Name = "pnlApprovalButton";
-            this.pnlApprovalButton.Size = new System.Drawing.Size(262, 34);
-            this.pnlApprovalButton.TabIndex = 53;
-            this.pnlApprovalButton.Visible = false;
-            // 
-            // btnOnApproval
-            // 
-            this.btnOnApproval.BackColor = System.Drawing.Color.MediumSpringGreen;
-            this.btnOnApproval.Location = new System.Drawing.Point(5, 3);
-            this.btnOnApproval.Name = "btnOnApproval";
-            this.btnOnApproval.Size = new System.Drawing.Size(83, 24);
-            this.btnOnApproval.TabIndex = 34;
-            this.btnOnApproval.TabStop = false;
-            this.btnOnApproval.Text = "承認";
-            this.btnOnApproval.UseVisualStyleBackColor = false;
-            this.btnOnApproval.Click += new System.EventHandler(this.btnOnApproval_Click);
-            // 
-            // btnNotApproval
-            // 
-            this.btnNotApproval.BackColor = System.Drawing.Color.Red;
-            this.btnNotApproval.Location = new System.Drawing.Point(171, 3);
-            this.btnNotApproval.Name = "btnNotApproval";
-            this.btnNotApproval.Size = new System.Drawing.Size(83, 24);
-            this.btnNotApproval.TabIndex = 35;
-            this.btnNotApproval.TabStop = false;
-            this.btnNotApproval.Text = "不承認";
-            this.btnNotApproval.UseVisualStyleBackColor = false;
-            this.btnNotApproval.Click += new System.EventHandler(this.btnNotApproval_Click);
-            // 
-            // btnOnHold
-            // 
-            this.btnOnHold.BackColor = System.Drawing.Color.Yellow;
-            this.btnOnHold.Location = new System.Drawing.Point(88, 3);
-            this.btnOnHold.Name = "btnOnHold";
-            this.btnOnHold.Size = new System.Drawing.Size(83, 24);
-            this.btnOnHold.TabIndex = 36;
-            this.btnOnHold.TabStop = false;
-            this.btnOnHold.Text = "保留";
-            this.btnOnHold.UseVisualStyleBackColor = false;
-            this.btnOnHold.Click += new System.EventHandler(this.btnOnHold_Click);
-            // 
             // lblLabel01
             // 
             this.lblLabel01.BackColor = System.Drawing.Color.White;
@@ -518,6 +412,112 @@
             this.lblLabel04.TabIndex = 36;
             this.lblLabel04.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
+            // pnlApproval
+            // 
+            this.pnlApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.pnlApproval.AutoSize = true;
+            this.pnlApproval.BackColor = System.Drawing.Color.White;
+            this.pnlApproval.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.pnlApproval.Controls.Add(this.lblApprovalCount);
+            this.pnlApproval.Controls.Add(this.btnPetition);
+            this.pnlApproval.Controls.Add(this.btnApproval);
+            this.pnlApproval.Location = new System.Drawing.Point(1060, 66);
+            this.pnlApproval.Name = "pnlApproval";
+            this.pnlApproval.Size = new System.Drawing.Size(262, 34);
+            this.pnlApproval.TabIndex = 51;
+            // 
+            // lblApprovalCount
+            // 
+            this.lblApprovalCount.BackColor = System.Drawing.Color.Black;
+            this.lblApprovalCount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblApprovalCount.ForeColor = System.Drawing.Color.White;
+            this.lblApprovalCount.Location = new System.Drawing.Point(205, 3);
+            this.lblApprovalCount.Name = "lblApprovalCount";
+            this.lblApprovalCount.Size = new System.Drawing.Size(50, 24);
+            this.lblApprovalCount.TabIndex = 1;
+            this.lblApprovalCount.Text = "4/5";
+            this.lblApprovalCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // btnPetition
+            // 
+            this.btnPetition.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnPetition.BackColor = System.Drawing.Color.White;
+            this.btnPetition.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnPetition.ForeColor = System.Drawing.Color.Red;
+            this.btnPetition.Location = new System.Drawing.Point(3, 3);
+            this.btnPetition.Name = "btnPetition";
+            this.btnPetition.Size = new System.Drawing.Size(100, 24);
+            this.btnPetition.TabIndex = 12;
+            this.btnPetition.Text = "未申請";
+            this.btnPetition.UseVisualStyleBackColor = false;
+            this.btnPetition.Click += new System.EventHandler(this.btnPetition_Click);
+            // 
+            // btnApproval
+            // 
+            this.btnApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnApproval.BackColor = System.Drawing.Color.White;
+            this.btnApproval.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnApproval.ForeColor = System.Drawing.Color.Red;
+            this.btnApproval.Location = new System.Drawing.Point(104, 3);
+            this.btnApproval.Name = "btnApproval";
+            this.btnApproval.Size = new System.Drawing.Size(100, 24);
+            this.btnApproval.TabIndex = 12;
+            this.btnApproval.Text = "未承認";
+            this.btnApproval.UseVisualStyleBackColor = false;
+            this.btnApproval.Click += new System.EventHandler(this.btnApproval_Click);
+            // 
+            // pnlApprovalButton
+            // 
+            this.pnlApprovalButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.pnlApprovalButton.AutoSize = true;
+            this.pnlApprovalButton.BackColor = System.Drawing.Color.White;
+            this.pnlApprovalButton.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.pnlApprovalButton.Controls.Add(this.btnOnApproval);
+            this.pnlApprovalButton.Controls.Add(this.btnNotApproval);
+            this.pnlApprovalButton.Controls.Add(this.btnOnHold);
+            this.pnlApprovalButton.Location = new System.Drawing.Point(1060, 66);
+            this.pnlApprovalButton.Name = "pnlApprovalButton";
+            this.pnlApprovalButton.Size = new System.Drawing.Size(262, 34);
+            this.pnlApprovalButton.TabIndex = 53;
+            this.pnlApprovalButton.Visible = false;
+            // 
+            // btnOnApproval
+            // 
+            this.btnOnApproval.BackColor = System.Drawing.Color.MediumSpringGreen;
+            this.btnOnApproval.Location = new System.Drawing.Point(5, 3);
+            this.btnOnApproval.Name = "btnOnApproval";
+            this.btnOnApproval.Size = new System.Drawing.Size(83, 24);
+            this.btnOnApproval.TabIndex = 34;
+            this.btnOnApproval.TabStop = false;
+            this.btnOnApproval.Text = "承認";
+            this.btnOnApproval.UseVisualStyleBackColor = false;
+            this.btnOnApproval.Click += new System.EventHandler(this.btnOnApproval_Click);
+            // 
+            // btnNotApproval
+            // 
+            this.btnNotApproval.BackColor = System.Drawing.Color.Red;
+            this.btnNotApproval.Location = new System.Drawing.Point(171, 3);
+            this.btnNotApproval.Name = "btnNotApproval";
+            this.btnNotApproval.Size = new System.Drawing.Size(83, 24);
+            this.btnNotApproval.TabIndex = 35;
+            this.btnNotApproval.TabStop = false;
+            this.btnNotApproval.Text = "不承認";
+            this.btnNotApproval.UseVisualStyleBackColor = false;
+            this.btnNotApproval.Click += new System.EventHandler(this.btnNotApproval_Click);
+            // 
+            // btnOnHold
+            // 
+            this.btnOnHold.BackColor = System.Drawing.Color.Yellow;
+            this.btnOnHold.Location = new System.Drawing.Point(88, 3);
+            this.btnOnHold.Name = "btnOnHold";
+            this.btnOnHold.Size = new System.Drawing.Size(83, 24);
+            this.btnOnHold.TabIndex = 36;
+            this.btnOnHold.TabStop = false;
+            this.btnOnHold.Text = "保留";
+            this.btnOnHold.UseVisualStyleBackColor = false;
+            this.btnOnHold.Click += new System.EventHandler(this.btnOnHold_Click);
+            // 
             // btnApprovalList
             // 
             this.btnApprovalList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -544,6 +544,7 @@
             this.btnDataDelete.TabIndex = 52;
             this.btnDataDelete.Text = "削　除";
             this.btnDataDelete.UseVisualStyleBackColor = false;
+            this.btnDataDelete.Visible = false;
             this.btnDataDelete.Click += new System.EventHandler(this.btnDataDelete_Click);
             // 
             // btnDataEntry
@@ -608,125 +609,6 @@
             this.panel3.TabIndex = 0;
             this.panel3.Scroll += new System.Windows.Forms.ScrollEventHandler(this.BasePanel_Scroll);
             // 
-            // lbl001
-            // 
-            this.lbl001.BackColor = System.Drawing.Color.White;
-            this.lbl001.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lbl001.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lbl001.Location = new System.Drawing.Point(8, 8);
-            this.lbl001.Name = "lbl001";
-            this.lbl001.Size = new System.Drawing.Size(166, 22);
-            this.lbl001.TabIndex = 73;
-            this.lbl001.Text = "2016999901-001";
-            this.lbl001.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // lbl003
-            // 
-            this.lbl003.BackColor = System.Drawing.Color.White;
-            this.lbl003.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lbl003.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lbl003.Location = new System.Drawing.Point(874, 8);
-            this.lbl003.Name = "lbl003";
-            this.lbl003.Size = new System.Drawing.Size(170, 22);
-            this.lbl003.TabIndex = 72;
-            this.lbl003.Text = "\\999,999,999-";
-            this.lbl003.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label18
-            // 
-            this.label18.BackColor = System.Drawing.Color.SandyBrown;
-            this.label18.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label18.Location = new System.Drawing.Point(706, 7);
-            this.label18.Name = "label18";
-            this.label18.Size = new System.Drawing.Size(160, 25);
-            this.label18.TabIndex = 71;
-            this.label18.Text = "発注金額（税別）";
-            this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // txtBoxS001
-            // 
-            this.txtBoxS001.Location = new System.Drawing.Point(1180, 8);
-            this.txtBoxS001.Name = "txtBoxS001";
-            this.txtBoxS001.Size = new System.Drawing.Size(114, 23);
-            this.txtBoxS001.TabIndex = 66;
-            // 
-            // lbl002
-            // 
-            this.lbl002.BackColor = System.Drawing.Color.White;
-            this.lbl002.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lbl002.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lbl002.Location = new System.Drawing.Point(182, 8);
-            this.lbl002.Name = "lbl002";
-            this.lbl002.Size = new System.Drawing.Size(500, 22);
-            this.lbl002.TabIndex = 70;
-            this.lbl002.Text = "協力会社名称";
-            this.lbl002.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // label15
-            // 
-            this.label15.BackColor = System.Drawing.Color.Cyan;
-            this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label15.Location = new System.Drawing.Point(1052, 7);
-            this.label15.Name = "label15";
-            this.label15.Size = new System.Drawing.Size(120, 25);
-            this.label15.TabIndex = 69;
-            this.label15.Text = "発注書作成日";
-            this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // TabCollections
-            // 
-            this.TabCollections.Alignment = System.Windows.Forms.TabAlignment.Bottom;
-            this.TabCollections.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.TabCollections.Controls.Add(this.tabPage1);
-            this.TabCollections.Location = new System.Drawing.Point(7, 150);
-            this.TabCollections.Name = "TabCollections";
-            this.TabCollections.SelectedIndex = 0;
-            this.TabCollections.Size = new System.Drawing.Size(1330, 502);
-            this.TabCollections.TabIndex = 56;
-            // 
-            // btnOtherProc
-            // 
-            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
-            this.btnOtherProc.Location = new System.Drawing.Point(7, 656);
-            this.btnOtherProc.Name = "btnOtherProc";
-            this.btnOtherProc.Size = new System.Drawing.Size(200, 30);
-            this.btnOtherProc.TabIndex = 95;
-            this.btnOtherProc.TabStop = false;
-            this.btnOtherProc.Text = "他の画面へ";
-            this.btnOtherProc.UseVisualStyleBackColor = false;
-            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
-            // 
-            // btnPageDelete
-            // 
-            this.btnPageDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnPageDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
-            this.btnPageDelete.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnPageDelete.ForeColor = System.Drawing.Color.Black;
-            this.btnPageDelete.Location = new System.Drawing.Point(812, 656);
-            this.btnPageDelete.Name = "btnPageDelete";
-            this.btnPageDelete.Size = new System.Drawing.Size(120, 30);
-            this.btnPageDelete.TabIndex = 96;
-            this.btnPageDelete.Text = "ページ削除";
-            this.btnPageDelete.UseVisualStyleBackColor = false;
-            this.btnPageDelete.Click += new System.EventHandler(this.btnPageDelete_Click);
-            // 
-            // btnChangeCompany
-            // 
-            this.btnChangeCompany.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnChangeCompany.BackColor = System.Drawing.Color.DeepSkyBlue;
-            this.btnChangeCompany.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnChangeCompany.ForeColor = System.Drawing.Color.Black;
-            this.btnChangeCompany.Location = new System.Drawing.Point(686, 655);
-            this.btnChangeCompany.Name = "btnChangeCompany";
-            this.btnChangeCompany.Size = new System.Drawing.Size(120, 30);
-            this.btnChangeCompany.TabIndex = 97;
-            this.btnChangeCompany.Text = "発注先変更";
-            this.btnChangeCompany.UseVisualStyleBackColor = false;
-            this.btnChangeCompany.Click += new System.EventHandler(this.btnChangeCompany_Click);
-            // 
             // groupBox3
             // 
             this.groupBox3.BackColor = System.Drawing.Color.White;
@@ -1288,6 +1170,60 @@
             this.label22.Text = "人";
             this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // lbl001
+            // 
+            this.lbl001.BackColor = System.Drawing.Color.White;
+            this.lbl001.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbl001.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lbl001.Location = new System.Drawing.Point(8, 8);
+            this.lbl001.Name = "lbl001";
+            this.lbl001.Size = new System.Drawing.Size(166, 22);
+            this.lbl001.TabIndex = 73;
+            this.lbl001.Text = "2016999901-001";
+            this.lbl001.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // lbl003
+            // 
+            this.lbl003.BackColor = System.Drawing.Color.White;
+            this.lbl003.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbl003.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lbl003.Location = new System.Drawing.Point(874, 8);
+            this.lbl003.Name = "lbl003";
+            this.lbl003.Size = new System.Drawing.Size(170, 22);
+            this.lbl003.TabIndex = 72;
+            this.lbl003.Text = "\\999,999,999-";
+            this.lbl003.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label18
+            // 
+            this.label18.BackColor = System.Drawing.Color.SandyBrown;
+            this.label18.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label18.Location = new System.Drawing.Point(706, 7);
+            this.label18.Name = "label18";
+            this.label18.Size = new System.Drawing.Size(160, 25);
+            this.label18.TabIndex = 71;
+            this.label18.Text = "発注金額（税別）";
+            this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // txtBoxS001
+            // 
+            this.txtBoxS001.Location = new System.Drawing.Point(1180, 8);
+            this.txtBoxS001.Name = "txtBoxS001";
+            this.txtBoxS001.Size = new System.Drawing.Size(114, 23);
+            this.txtBoxS001.TabIndex = 66;
+            // 
+            // lbl002
+            // 
+            this.lbl002.BackColor = System.Drawing.Color.White;
+            this.lbl002.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbl002.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lbl002.Location = new System.Drawing.Point(182, 8);
+            this.lbl002.Name = "lbl002";
+            this.lbl002.Size = new System.Drawing.Size(500, 22);
+            this.lbl002.TabIndex = 70;
+            this.lbl002.Text = "協力会社名称";
+            this.lbl002.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
             // groupBox4
             // 
             this.groupBox4.BackColor = System.Drawing.Color.White;
@@ -1579,6 +1515,71 @@
             this.Column12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.Column12.Width = 150;
             // 
+            // label15
+            // 
+            this.label15.BackColor = System.Drawing.Color.Cyan;
+            this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label15.Location = new System.Drawing.Point(1052, 7);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(120, 25);
+            this.label15.TabIndex = 69;
+            this.label15.Text = "発注書作成日";
+            this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // TabCollections
+            // 
+            this.TabCollections.Alignment = System.Windows.Forms.TabAlignment.Bottom;
+            this.TabCollections.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.TabCollections.Controls.Add(this.tabPage1);
+            this.TabCollections.Location = new System.Drawing.Point(7, 150);
+            this.TabCollections.Name = "TabCollections";
+            this.TabCollections.SelectedIndex = 0;
+            this.TabCollections.Size = new System.Drawing.Size(1330, 502);
+            this.TabCollections.TabIndex = 56;
+            // 
+            // btnOtherProc
+            // 
+            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
+            this.btnOtherProc.Location = new System.Drawing.Point(7, 656);
+            this.btnOtherProc.Name = "btnOtherProc";
+            this.btnOtherProc.Size = new System.Drawing.Size(200, 30);
+            this.btnOtherProc.TabIndex = 95;
+            this.btnOtherProc.TabStop = false;
+            this.btnOtherProc.Text = "他の画面へ";
+            this.btnOtherProc.UseVisualStyleBackColor = false;
+            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
+            // 
+            // btnPageDelete
+            // 
+            this.btnPageDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnPageDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
+            this.btnPageDelete.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnPageDelete.ForeColor = System.Drawing.Color.Black;
+            this.btnPageDelete.Location = new System.Drawing.Point(812, 656);
+            this.btnPageDelete.Name = "btnPageDelete";
+            this.btnPageDelete.Size = new System.Drawing.Size(120, 30);
+            this.btnPageDelete.TabIndex = 96;
+            this.btnPageDelete.Text = "ページ削除";
+            this.btnPageDelete.UseVisualStyleBackColor = false;
+            this.btnPageDelete.Click += new System.EventHandler(this.btnPageDelete_Click);
+            // 
+            // btnChangeCompany
+            // 
+            this.btnChangeCompany.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnChangeCompany.BackColor = System.Drawing.Color.DeepSkyBlue;
+            this.btnChangeCompany.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnChangeCompany.ForeColor = System.Drawing.Color.Black;
+            this.btnChangeCompany.Location = new System.Drawing.Point(686, 655);
+            this.btnChangeCompany.Name = "btnChangeCompany";
+            this.btnChangeCompany.Size = new System.Drawing.Size(120, 30);
+            this.btnChangeCompany.TabIndex = 97;
+            this.btnChangeCompany.Text = "発注先変更";
+            this.btnChangeCompany.UseVisualStyleBackColor = false;
+            this.btnChangeCompany.Click += new System.EventHandler(this.btnChangeCompany_Click);
+            // 
             // FrmPurchaseOrderEntry
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -1607,13 +1608,12 @@
             this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmPurchaseOrderEntry_KeyDown);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
+            this.panel2.ResumeLayout(false);
             this.pnlApproval.ResumeLayout(false);
             this.pnlApprovalButton.ResumeLayout(false);
-            this.panel2.ResumeLayout(false);
             this.tabPage1.ResumeLayout(false);
             this.panel3.ResumeLayout(false);
             this.panel3.PerformLayout();
-            this.TabCollections.ResumeLayout(false);
             this.groupBox3.ResumeLayout(false);
             this.groupBox3.PerformLayout();
             this.groupBox2.ResumeLayout(false);
@@ -1625,6 +1625,7 @@
             this.groupBox1.ResumeLayout(false);
             this.groupBox1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).EndInit();
+            this.TabCollections.ResumeLayout(false);
             this.ResumeLayout(false);
 
         }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.cs	(revision 6)
@@ -90,19 +90,19 @@
         /// <summary>
         /// 簡易版条件グリッドタイトル
         /// </summary>
-        private const string s_TermsTitile1 = "発注条件";
+        private const string s_TermsTitle1 = "発注条件";
         /// <summary>
         /// 正規版条件グリッドタイトル
         /// </summary>
-        private const string s_TermsTitile2 = "施工指示事項";
+        private const string s_TermsTitle2 = "施工指示事項";
         /// <summary>
         /// 簡易版条件グリッドタイトル
         /// </summary>
-        private const string s_TermsTitileGrid1 = "条　　　件";
+        private const string s_TermsTitleGrid1 = "条　　　件";
         /// <summary>
         /// 正規版条件グリッドタイトル
         /// </summary>
-        private const string s_TermsTitileGrid2 = "指　示　事　項";
+        private const string s_TermsTitleGrid2 = "指　示　事　項";
         #endregion
 
         #region 現金手形比率
@@ -908,8 +908,8 @@
                     // 正規版支払い条件
                     CurPage.EntryGroupBox[(int)PageGroupBox.RegularTypeGroup].Visible = false;
                     // 条件グループ
-                    CurPage.EntryGroupBox[(int)PageGroupBox.OrderTermsGroup].Text = s_TermsTitile1;
-                    dgv.Columns[(int)DispTermsGridColumn.Terms].HeaderText = s_TermsTitileGrid1;
+                    CurPage.EntryGroupBox[(int)PageGroupBox.OrderTermsGroup].Text = s_TermsTitle1;
+                    dgv.Columns[(int)DispTermsGridColumn.Terms].HeaderText = s_TermsTitleGrid1;
                     // その他グループ
                     CurPage.EntryGroupBox[(int)PageGroupBox.EtcGroup].Visible = false;
                     // ベースパネルスクロール
@@ -932,8 +932,8 @@
                     // 正規版支払い条件
                     CurPage.EntryGroupBox[(int)PageGroupBox.RegularTypeGroup].Visible = true;
                     // 条件グループ
-                    CurPage.EntryGroupBox[(int)PageGroupBox.OrderTermsGroup].Text = s_TermsTitile2;
-                    dgv.Columns[(int)DispTermsGridColumn.Terms].HeaderText = s_TermsTitileGrid2;
+                    CurPage.EntryGroupBox[(int)PageGroupBox.OrderTermsGroup].Text = s_TermsTitle2;
+                    dgv.Columns[(int)DispTermsGridColumn.Terms].HeaderText = s_TermsTitleGrid2;
                     // その他グループ
                     CurPage.EntryGroupBox[(int)PageGroupBox.EtcGroup].Visible = true;
                     // ベースパネルスクロール
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs	(revision 6)
@@ -160,6 +160,7 @@
             IOConstructionBaseInfoDetail cbidDB = new IOConstructionBaseInfoDetail();
             IOMPersonInCharge picDB = new IOMPersonInCharge();
             IOMConstructionType ctypeDB = new IOMConstructionType();
+            IOPurchaseOrder OrderDB = new IOPurchaseOrder();
             try
             {
                 m_DspLabelCtrl[(int)DspLblCtrlName.ConstCode].Text = CommonMotions.cnvStringCodeFromInt(m_ConstructionBaseInfo.ConstructionCode, "-", 8);       // 工事コード
@@ -191,18 +192,34 @@
 
                 m_DspLabelCtrl[(int)DspLblCtrlName.CreatorName].Text = personRec.PersonName;                                                                    // 工事担当者
 
-                // 支払条件の初期設定
-                if (!GetConstructionTypeToExecNo())
+                // 注文書タイプ取得
+                strSQL = OrderDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionPersonCode);
+                List<PurchaseOrder> OrderList = new List<PurchaseOrder>();
+                OrderDB.SelectAction(strSQL, ref OrderList);
+                PurchaseOrder OrderRec = new PurchaseOrder();
+                if (OrderList.Count != 0)
                 {
-                    // 注文書種別(簡易版)
-                    radioButton1.Checked = true;
+                    OrderRec = OrderList[0];
+                    if (OrderRec.OrderSheetType == (int)CommonDefine.OrderSheetType.SimpleType) radioButton1.Checked = true;
+                    else radioButton2.Checked = true;
                 }
                 else
                 {
-                    // 注文書種別(正規版)
-                    radioButton2.Checked = true;
+                    radioButton1.Checked = true;
                 }
 
+                // 支払条件の初期設定（現状は簡易版しか使用しない）
+                //if (!GetConstructionTypeToExecNo())
+                //{
+                //     // 注文書種別(簡易版)
+                //      radioButton1.Checked = true;
+                //}
+                //else
+                //{
+                //    // 注文書種別(正規版)
+                //    radioButton2.Checked = true;
+                //}
+
                 // 工事種別マスタ取得
                 strSQL = ctypeDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionType);
                 ConstructionTypeMaster ctypeRec = new ConstructionTypeMaster();
@@ -231,6 +248,7 @@
                 cbidDB.close(); cbidDB = null;
                 picDB.close(); picDB = null;
                 ctypeDB.close(); ctypeDB = null;
+                OrderDB.close(); OrderDB = null;
             }
         }
         #endregion
@@ -467,7 +485,9 @@
             {
                 // 注文書データ読込
                 string strSQL = DetailDB.CreatePrimarykeyString(m_ConstructionCode);
-                strSQL += " AND CompanyCode <> 0 ORDER BY CompanyCode";
+                strSQL += " AND CompanyCode <> 0";
+                strSQL += string.Format(" AND COMPANYTYPE <> {0}", (int)CommonDefine.SearchLogDataType.Person);
+                strSQL += " ORDER BY CompanyCode";
                 List<ConstructionBudgetDetail> DetailList = new List<ConstructionBudgetDetail>();
                 if (!DetailDB.SelectAction(strSQL, ref DetailList)) return false;
                 if (DetailList.Count == 0) return false;
@@ -534,17 +554,17 @@
                     SetConstructionBudget(inputpage, SumBuffer, icnt);
                     icnt++;
                 }
-                // 支払条件の初期設定
-                if (!GetConstructionTypeToExecNo())
-                {
-                    // 注文書種別(簡易版)
-                    radioButton1.Checked = true;
-                }
-                else
-                {
-                    // 注文書種別(正規版)
-                    radioButton2.Checked = true;
-                }
+                //// 支払条件の初期設定
+                //if (!GetConstructionTypeToExecNo())
+                //{
+                //    // 注文書種別(簡易版)
+                //    radioButton1.Checked = true;
+                //}
+                //else
+                //{
+                //    // 注文書種別(正規版)
+                //    radioButton2.Checked = true;
+                //}
                 EventArgs e = new EventArgs();
                 radioButton1_CheckedChanged((object)radioButton1, e);
 
@@ -1050,13 +1070,13 @@
         /// 論理エラー時メッセージボックス
         /// </summary>
         /// <param name="strLogString"></param>
-        /// <param name="strTitile"></param>
+        /// <param name="strTitle"></param>
         /// <param name="strMethodName"></param>
         /// <param name="strMessage"></param>
-        private void LogicalErrorMessage(string strLogString, string strTitile, string strMethodName, string strMessage = "")
+        private void LogicalErrorMessage(string strLogString, string strTitle, string strMethodName, string strMessage = "")
         {
-            logger.ErrorFormat(strLogString + "：" + strTitile + "：" + strMethodName + "：" + strMessage);
-            MessageBox.Show(strLogString, strTitile, MessageBoxButtons.OK, MessageBoxIcon.Error);
+            logger.ErrorFormat(strLogString + "：" + strTitle + "：" + strMethodName + "：" + strMessage);
+            MessageBox.Show(strLogString, strTitle, MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
         #endregion
 
@@ -1393,8 +1413,20 @@
                     for (int ii = 0; ii < m_TabPageList[i].EntryGroupBox.Length; ii++)
                     {
                         GroupBox CurGrp = m_TabPageList[i].EntryGroupBox[ii];
-                        if (ii == 0) continue;
-                        CurGrp.Enabled = false;
+                        bool bEnable = false;
+                        switch (ii)
+                        {
+                            case (int)PageGroupBox.DetailGroup:
+                            case (int)PageGroupBox.OrderTermsGroup:
+                                bEnable = true;
+                                break;
+                            default:
+                                break;
+                        }
+                        CurGrp.Enabled = bEnable;
+
+                        m_TabPageList[i].Group1Button[(int)Group1Button.Up].Visible = false;
+                        m_TabPageList[i].Group1Button[(int)Group1Button.Down].Visible = false;
                     }
                     m_TabPageList[i].PageTextBox.Enabled = false;
                     m_TabPageList[i].Group1TextBox.Enabled = false;
@@ -1408,6 +1440,8 @@
                 btnDataDelete.Visible = false;                      // 削除ボタン
                 btnDispUp.Visible = false;                          // 行アップボタン
                 btnDispDown.Visible = false;                        // 行ダウンボタン
+                btnChangeCompany.Visible = false;                   // 発注先変更ボタン
+                btnPageDelete.Visible = false;                      // ページ削除ボタン
             }
             catch (Exception ex)
             {
@@ -1599,7 +1633,7 @@
                 // 位置設定
                 m_frmInputImage.LocationPoint = new Point(this.Right, this.Top);
                 // タスクバーに表示しない
-                m_frmInputImage.ShowInTaskbar = false;
+                //m_frmInputImage.ShowInTaskbar = false;
 
                 // 注文書種別セット
                 if (radioButton1.Checked)
@@ -2143,7 +2177,7 @@
                 // 協力会社選択画面表示
                 frm.ConstructionCode = m_ConstructionCode;
                 frm.StartupSource = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
 
                 // ＯＫ以外は処理を抜ける
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/ProcessControl.cs	(revision 6)
@@ -322,32 +322,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -359,32 +366,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -636,7 +650,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/FrmPurchaseOrderPrint.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/FrmPurchaseOrderPrint.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/FrmPurchaseOrderPrint.cs	(revision 6)
@@ -90,19 +90,19 @@
         /// <summary>
         /// 簡易版条件グリッドタイトル
         /// </summary>
-        private const string s_TermsTitile1 = "発注条件";
+        private const string s_TermsTitle1 = "発注条件";
         /// <summary>
         /// 正規版条件グリッドタイトル
         /// </summary>
-        private const string s_TermsTitile2 = "施工指示事項";
+        private const string s_TermsTitle2 = "施工指示事項";
         /// <summary>
         /// 簡易版条件グリッドタイトル
         /// </summary>
-        private const string s_TermsTitileGrid1 = "条　　　件";
+        private const string s_TermsTitleGrid1 = "条　　　件";
         /// <summary>
         /// 正規版条件グリッドタイトル
         /// </summary>
-        private const string s_TermsTitileGrid2 = "指　示　事　項";
+        private const string s_TermsTitleGrid2 = "指　示　事　項";
         #endregion
 
         #region 注文書種別
@@ -590,7 +590,7 @@
                 }
 
                 // ウィンドウ表示
-                frmStatus.ShowInTaskbar = false;
+                //frmStatus.ShowInTaskbar = false;
                 frmStatus.ShowDialog();
 
                 // 終了状態
@@ -619,7 +619,7 @@
                     if (bSimplePrint) frm.SaveType = (int)CommonDefine.SaveFileType.ExcelFile;
                     else frm.SaveType = (int)CommonDefine.SaveFileType.WordFile;
 
-                    frm.ShowInTaskbar = false;
+                    //frm.ShowInTaskbar = false;
                     
                     frm.ShowDialog();
                     if (frm.EndButton == DialogResult.Cancel) return;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/ProcessControl.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/ProcessControl.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/ProcessControl.cs	(revision 6)
@@ -322,32 +322,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimateInput(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-            // フォームがあれば最前面へ
-            FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // フォームがあれば最前面へ
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書入力起動
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書入力起動
-            frm = new FrmEstimateInput();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
-            frm.Show();
         }
         #endregion
 
@@ -359,32 +366,39 @@
         /// <param name="e"></param>
         private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
         {
-            int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
-            // フォームがあれば最前面へ
-            FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-            if (frm != null)
+            try
             {
-                frm.Activate();
-                return;
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // フォームがあれば最前面へ
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // データ変更有時はデータ登録
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // 積算見積書印刷起動
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // クロースドハンドラをこちらで定義する
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
             }
-
-            // データ変更有時はデータ登録
-            if (m_bChengeAns)
+            catch (Exception ex)
             {
-                if (!DataEntryProcess()) return;
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-
-            // 積算見積書印刷起動
-            frm = new FrmEstimatePrint();
-            ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
-            ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-            frm.ConstructionCode = m_ConstructionCode;
-            frm.SubForm = true;
-            frm.ShowInTaskbar = true;
-
-            // クロースドハンドラをこちらで定義する
-            frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
-            frm.Show();
         }
         #endregion
 
@@ -636,7 +650,7 @@
                 frm = new FrmConstructionLedger();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
-                frm.ConstructionCode = m_ConstructionCode;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SalesGraphData/FrmSalesGraphData.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SalesGraphData/FrmSalesGraphData.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SalesGraphData/FrmSalesGraphData.cs	(revision 6)
@@ -312,8 +312,7 @@
             }
             finally
             {
-                sgdDB.close();
-                sgdDB = null;
+                sgdDB.close(); sgdDB = null;
             }
         }
         #endregion
@@ -633,8 +632,7 @@
             }
             finally
             {
-                sgdDB.close();
-                sgdDB = null;
+                sgdDB.close(); sgdDB = null;
             }
         }
         #endregion
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCosts.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCosts.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCosts.cs	(revision 6)
@@ -603,7 +603,7 @@
             
             if (m_bChengeAns)
             {
-                if (MessageBox.Show("データに変更があります、部署を変更してよろしいですか？。"
+                if (MessageBox.Show("データに変更があります、登録しますか？。"
                                 , "部署変更確認"
                                 , MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
                 {
@@ -652,7 +652,7 @@
             
             if (m_bChengeAns)
             {
-                if (MessageBox.Show("データに変更があります、担当者を変更してよろしいですか？。"
+                if (MessageBox.Show("データに変更があります、登録しますか？。"
                                 , "担当者変更確認"
                                 , MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
                 {
@@ -697,7 +697,7 @@
 
             if (m_bChengeAns)
             {
-                if (MessageBox.Show("データに変更があります、対象年月を変更してよろしいですか？。"
+                if (MessageBox.Show("データに変更があります、登録しますか？。"
                                 , "対象年月変更確認"
                                 , MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
                 {
@@ -799,7 +799,8 @@
                     default:
                         break;
                 }
-
+                DataGridView dgv = m_dispGridControl[CurTabCnt];
+                dgv.EndEdit();
             }
             catch (System.Exception ex)
             {
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCostsAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCostsAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCostsAuxiliary.cs	(revision 6)
@@ -280,7 +280,8 @@
             try
             {
                 // 担当者マスタを検索する
-                string strSQL = string.Format(" WHERE EMPLOYEECLASSFLG = {0} AND DELETEFLG = 0", (int)CommonDefine.EmployeeClassFlg.Regular);
+                //string strSQL = string.Format(" WHERE EMPLOYEECLASSFLG = {0} AND DELETEFLG = 0", (int)CommonDefine.EmployeeClassFlg.Regular);
+                string strSQL = " WHERE DELETEFLG = 0";
                 
                 // 所　属　長
                 int Superior = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key;
@@ -303,7 +304,7 @@
                 }
 
                 // 担当者マスタ読込
-                strSQL += " ORDER BY DISPLAYORDER ASC";
+                strSQL += " ORDER BY EMPLOYEECLASSFLG ASC, DISPLAYORDER ASC";
                 List<PersonInChargeMaster> workList = new List<PersonInChargeMaster>(); ;
                 if (!picDB.SelectAction(strSQL, ref workList)) return ;
 
@@ -814,17 +815,25 @@
                 int RemoveCnt = CurRow.Index;
 
                 // 選択行が不正ならば処理しない
-                if (RemoveCnt == 0) return;
+                if (RemoveCnt < 0) return;
 
-                // 日付が1日だけの場合は削除できない
-                int CurDay = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.Days].Value);
-
                 if (MessageBox.Show(s_DataTypeString[CurTabCnt] + "行を削除します、よろしいですか？", "行削除確認"
                         , MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) return;
 
+                // 指定行の日付を取得する
+                int CurDay = CommonMotions.cnvInt(CurRow.Cells[(int)DispGridColumn.Days].Value);
+
                 int sameCount = 0;
-                if ((RemoveCnt >= 0) && CurDay == CommonMotions.cnvInt(dgv.Rows[(RemoveCnt - 1)].Cells[(int)DispGridColumn.Days].Value)) sameCount++;
-                if ((RemoveCnt <= (dgv.RowCount - 1)) && CurDay == CommonMotions.cnvInt(dgv.Rows[(RemoveCnt + 1)].Cells[(int)DispGridColumn.Days].Value)) sameCount++;
+                // 1行前が同じ日付かを確認する
+                if (RemoveCnt != 0)
+                {
+                    if (CurDay == CommonMotions.cnvInt(dgv.Rows[(RemoveCnt - 1)].Cells[(int)DispGridColumn.Days].Value)) sameCount++;
+                }
+                // 1行後が同じ日付かを確認する
+                if (RemoveCnt <= (dgv.RowCount - 1))
+                {
+                    if (CurDay == CommonMotions.cnvInt(dgv.Rows[(RemoveCnt + 1)].Cells[(int)DispGridColumn.Days].Value)) sameCount++;
+                }
 
                 // 日付が1日だけの場合は行削除できない
                 if (sameCount == 0)
@@ -1279,7 +1288,6 @@
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode == 0) return;
 
-                // 担当者コードセット
                 frm.PersonCode = PersonCode;
                 // 工事担当者検索
                 frm.PersonCharge = (int)FrmConstructionDiag.PersonChargePoint.Construction;
@@ -1319,7 +1327,7 @@
                 if (dgv.ReadOnly) return;
 
                 frm.ConstructionCode = m_ConstructionCode;
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton == System.Windows.Forms.DialogResult.OK)
                 {
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/AlwaysEmployment/AlwaysEmployment.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/AlwaysEmployment/AlwaysEmployment.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/AlwaysEmployment/AlwaysEmployment.cs	(revision 6)
@@ -343,8 +343,7 @@
             }
             finally
             {
-                picDB.close();
-                picDB = null;
+                picDB.close(); picDB = null;
             }
         }
 
@@ -645,8 +644,7 @@
             }
             finally
             {
-                picDB.close();
-                picDB = null;
+                picDB.close(); picDB = null;
             }
         }
 
@@ -725,8 +723,7 @@
             }
             finally
             {
-                picDB.close();
-                picDB = null;
+                picDB.close(); picDB = null;
             }
         }
 
@@ -878,8 +875,7 @@
             }
             finally
             {
-                picDB.close();
-                picDB = null;
+                picDB.close(); picDB = null;
             }
             return iRet;
         }
@@ -1034,8 +1030,7 @@
             }
             finally
             {
-                picDB.close();
-                picDB = null;
+                picDB.close(); picDB = null;
             }
         }
 
@@ -1134,8 +1129,7 @@
             }
             finally
             {
-                dmDB.close();
-                dmDB = null;
+                dmDB.close(); dmDB = null;
 
                 m_bEventStop = false;
             }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/ApprovalRoute/FrmApprovalRoute.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/ApprovalRoute/FrmApprovalRoute.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/ApprovalRoute/FrmApprovalRoute.cs	(revision 6)
@@ -685,8 +685,7 @@
             }
             finally
             {
-                dmDB.close();
-                dmDB = null;
+                dmDB.close(); dmDB = null;
             }
         }
         /// <summary>
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/BusinessType/FrmBusinessTypeMaster.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/BusinessType/FrmBusinessTypeMaster.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/BusinessType/FrmBusinessTypeMaster.cs	(revision 6)
@@ -366,8 +366,7 @@
             }
             finally
             {
-                uDB.close();
-                uDB = null;
+                uDB.close(); uDB = null;
             }
         }
 
@@ -693,8 +692,7 @@
             }
             finally
             {
-                uDB.close();
-                uDB = null;
+                uDB.close(); uDB = null;
             }
         }
 
@@ -753,8 +751,7 @@
             }
             finally
             {
-                cmDB.close();
-                cmDB = null;
+                cmDB.close(); cmDB = null;
             }
             return true;
         }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Calender/FrmCalendarAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Calender/FrmCalendarAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Calender/FrmCalendarAuxiliary.cs	(revision 6)
@@ -75,10 +75,10 @@
                             switch (iy)
                             {
                                 case 0:
-                                    m_CalendPage.MonthryData[i].lblWeekTitile[ix] = new Label();
+                                    m_CalendPage.MonthryData[i].lblWeekTitle[ix] = new Label();
                                     // 曜日表示
-                                    m_CalendPage.MonthryData[i].lblWeekTitile[ix].Text = s_DayOfTheWeek[ix];
-                                    m_CalendPage.MonthryData[i].lblWeekTitile[ix].TextAlign = ContentAlignment.MiddleCenter;
+                                    m_CalendPage.MonthryData[i].lblWeekTitle[ix].Text = s_DayOfTheWeek[ix];
+                                    m_CalendPage.MonthryData[i].lblWeekTitle[ix].TextAlign = ContentAlignment.MiddleCenter;
 
                                     break;
                                 default:
@@ -116,7 +116,7 @@
                             switch (iy)
                             {
                                 case 0:
-                                    m_CalendPage.MonthTableLayout[i].Controls.Add(m_CalendPage.MonthryData[i].lblWeekTitile[ix], ix, iy);
+                                    m_CalendPage.MonthTableLayout[i].Controls.Add(m_CalendPage.MonthryData[i].lblWeekTitle[ix], ix, iy);
                                     break;
                                 default:
                                     int wrkIY = iy - 1;
@@ -427,8 +427,7 @@
             }
             finally
             {
-                hcDB.close();
-                hcDB = null;
+                hcDB.close(); hcDB = null;
             }
         }
         #endregion
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Component/FrmComponent.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Component/FrmComponent.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Component/FrmComponent.cs	(revision 6)
@@ -542,8 +542,7 @@
             }
             finally
             {
-                ciDB.close();
-                ciDB = null;
+                ciDB.close(); ciDB = null;
             }
         }
         #endregion
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/ComponentLink/FrmComponentLink.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/ComponentLink/FrmComponentLink.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/ComponentLink/FrmComponentLink.cs	(revision 6)
@@ -587,7 +587,7 @@
                 frm.ItemCodeArray = ItemArray;
 
                 // 工種選択
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 
                 // キャンセル・終了は処理しない
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Division/FrmDivisionMaster.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Division/FrmDivisionMaster.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Division/FrmDivisionMaster.cs	(revision 6)
@@ -545,11 +545,11 @@
                 DispGridData();
 
                 // タイトルセット
-                lblTitile.Text = "";
+                lblTitle.Text = "";
                 for (int i = 0; i < CommonDefine.DivisionMasterCode[m_DivisionCode].Length; i++)
                 {
-                    if (i != 0) lblTitile.Text += "　";
-                    lblTitile.Text += CommonDefine.DivisionMasterCode[m_DivisionCode].Substring(i, 1);
+                    if (i != 0) lblTitle.Text += "　";
+                    lblTitle.Text += CommonDefine.DivisionMasterCode[m_DivisionCode].Substring(i, 1);
                 }
 
                 // 初期時フラグ
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Division/FrmDivisionMaster.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Division/FrmDivisionMaster.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Division/FrmDivisionMaster.designer.cs	(revision 6)
@@ -30,14 +30,14 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
             this.btnDataEntry = new System.Windows.Forms.Button();
             this.btnLineEntry = new System.Windows.Forms.Button();
             this.btnLineDelete = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
-            this.lblTitile = new System.Windows.Forms.Label();
+            this.lblTitle = new System.Windows.Forms.Label();
             this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -95,18 +95,18 @@
             this.btnEnd.UseVisualStyleBackColor = false;
             this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
             // 
-            // lblTitile
+            // lblTitle
             // 
-            this.lblTitile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
-            this.lblTitile.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblTitile.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lblTitile.ForeColor = System.Drawing.Color.Black;
-            this.lblTitile.Location = new System.Drawing.Point(100, 10);
-            this.lblTitile.Name = "lblTitile";
-            this.lblTitile.Size = new System.Drawing.Size(500, 20);
-            this.lblTitile.TabIndex = 6;
-            this.lblTitile.Text = "名称マスタメンテナンス";
-            this.lblTitile.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.lblTitle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
+            this.lblTitle.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblTitle.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lblTitle.ForeColor = System.Drawing.Color.Black;
+            this.lblTitle.Location = new System.Drawing.Point(100, 10);
+            this.lblTitle.Name = "lblTitle";
+            this.lblTitle.Size = new System.Drawing.Size(500, 20);
+            this.lblTitle.TabIndex = 6;
+            this.lblTitle.Text = "名称マスタメンテナンス";
+            this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // dgvMaster
             // 
@@ -115,14 +115,14 @@
             this.dgvMaster.AllowUserToResizeColumns = false;
             this.dgvMaster.AllowUserToResizeRows = false;
             this.dgvMaster.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle22.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
             this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Column1,
@@ -141,9 +141,9 @@
             // 
             // Column1
             // 
-            dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle23.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle23;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
             this.Column1.Frozen = true;
             this.Column1.HeaderText = "№";
             this.Column1.Name = "Column1";
@@ -161,9 +161,9 @@
             // 
             // Column3
             // 
-            dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle24.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle24;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle3;
             this.Column3.Frozen = true;
             this.Column3.HeaderText = "名　  称";
             this.Column3.MaxInputLength = 50;
@@ -209,7 +209,7 @@
             this.ClientSize = new System.Drawing.Size(700, 687);
             this.Controls.Add(this.btnDispDown);
             this.Controls.Add(this.btnDispUp);
-            this.Controls.Add(this.lblTitile);
+            this.Controls.Add(this.lblTitle);
             this.Controls.Add(this.btnDataEntry);
             this.Controls.Add(this.btnLineEntry);
             this.Controls.Add(this.btnLineDelete);
@@ -237,7 +237,7 @@
         private System.Windows.Forms.Button btnLineEntry;
         private System.Windows.Forms.Button btnLineDelete;
         private System.Windows.Forms.Button btnEnd;
-        private System.Windows.Forms.Label lblTitile;
+        private System.Windows.Forms.Label lblTitle;
         private System.Windows.Forms.Button btnDispDown;
         private System.Windows.Forms.Button btnDispUp;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Orderer/FrmOrderers.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Orderer/FrmOrderers.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Orderer/FrmOrderers.cs	(revision 6)
@@ -531,7 +531,7 @@
                     Fad.AddressArea3 = m_dispControl[(int)Dispcount.Address3].Text;
                 }
 
-                Fad.ShowInTaskbar = false;
+                //Fad.ShowInTaskbar = false;
                 Fad.ShowDialog();
                 // キャンセルボタン押下
                 if (Fad.CancelButtonClick) return;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/SubContractor/FrmSubContractor.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/SubContractor/FrmSubContractor.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/SubContractor/FrmSubContractor.cs	(revision 6)
@@ -419,8 +419,9 @@
             }
             finally
             {
-                sbDB.close();
-                sbDB = null;
+                sbDB.close(); sbDB = null;
+                jobitemDB.close(); jobitemDB = null;
+                joblinkDB.close(); joblinkDB = null;
             }
         }
         #endregion
@@ -650,7 +651,7 @@
                     Fad.AddressArea3 = m_dispControl[(int)Dispcount.Address3].Text;
                 }
 
-                Fad.ShowInTaskbar = false;
+                //Fad.ShowInTaskbar = false;
                 Fad.ShowDialog();
                 // キャンセルボタン押下
                 if (Fad.CancelButtonClick) return;
@@ -1175,7 +1176,7 @@
             {
                 frm.DialogUsed = true;
 
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton) return;
                 
@@ -1217,7 +1218,7 @@
             {
                 frm.DialogUsed = true;
 
-                frm.ShowInTaskbar = false;
+                //frm.ShowInTaskbar = false;
                 frm.ShowDialog();
                 if (frm.EndButton) return;
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Suppliers/FrmSuppliers.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Suppliers/FrmSuppliers.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Suppliers/FrmSuppliers.cs	(revision 6)
@@ -543,7 +543,7 @@
                     Fad.AddressArea3 = m_dispControl[(int)Dispcount.Address3].Text;
                 }
 
-                Fad.ShowInTaskbar = false;
+                //Fad.ShowInTaskbar = false;
                 Fad.ShowDialog();
                 // キャンセルボタン押下
                 if (Fad.CancelButtonClick) return;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/System/FrmSystem.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/System/FrmSystem.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/System/FrmSystem.cs	(revision 6)
@@ -352,7 +352,7 @@
                     Fad.AddressArea3 = m_dispControl[(int)Dispcount.Address3].Text;
                 }
 
-                Fad.ShowInTaskbar = false;
+                //Fad.ShowInTaskbar = false;
                 Fad.ShowDialog();
                 // キャンセルボタン押下
                 if (Fad.CancelButtonClick) return;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Term/FrmTerm.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Term/FrmTerm.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/Master/Term/FrmTerm.cs	(revision 6)
@@ -61,7 +61,7 @@
             CheckSchdule,
             SeqNo,
             TermDays,
-            SendTitile,
+            SendTitle,
             SendMessage,
         }
 
@@ -74,7 +74,7 @@
             Timing3,
             Timing4,
             TermDays,
-            SendTitile,
+            SendTitle,
             SendMessage,
             ErrorColor,
             EditMode,
@@ -388,7 +388,7 @@
 
                 // グリッドアップキー処理
                 DataGridViewAction.GridRowUpAction((DataGridView)dgvWorkList, startcol, (int)DispColumn.SendMessage);
-                dgvWorkList.CurrentCell = dgvWorkList[(int)DispColumn.SendTitile, dgvWorkList.CurrentRow.Index];
+                dgvWorkList.CurrentCell = dgvWorkList[(int)DispColumn.SendTitle, dgvWorkList.CurrentRow.Index];
 
                 m_bChengeAns = true;
             }
@@ -430,7 +430,7 @@
 
                 // グリッドダウンキー処理
                 DataGridViewAction.GridRowDownAction((DataGridView)dgvWorkList, startcol, (int)DispColumn.SendMessage);
-                dgvWorkList.CurrentCell = dgvWorkList[(int)DispColumn.SendTitile, dgvWorkList.CurrentRow.Index];
+                dgvWorkList.CurrentCell = dgvWorkList[(int)DispColumn.SendTitle, dgvWorkList.CurrentRow.Index];
 
                 m_bChengeAns = true;
             }
@@ -740,7 +740,7 @@
             m_dispControl[(int)DispControl.Timing3] = rdB103;
             m_dispControl[(int)DispControl.Timing4] = rdB104;
             m_dispControl[(int)DispControl.TermDays] = txtInput01;
-            m_dispControl[(int)DispControl.SendTitile] = txtInput03;
+            m_dispControl[(int)DispControl.SendTitle] = txtInput03;
             m_dispControl[(int)DispControl.SendMessage] = txtInput02;
             m_dispControl[(int)DispControl.ErrorColor] = lblErrorColor;
             m_dispControl[(int)DispControl.EditMode] = lblEditMode;
@@ -807,9 +807,9 @@
                 bRet &= bAns;
 
                 // タイトル
-                if (m_dispControl[(int)DispControl.SendTitile].Text != null)
+                if (m_dispControl[(int)DispControl.SendTitle].Text != null)
                     // レングスチェック
-                    bAns = CommonMotions.DispFieldLengthCheck(m_dispControl[(int)DispControl.SendTitile], s_SendMessageLength, true);
+                    bAns = CommonMotions.DispFieldLengthCheck(m_dispControl[(int)DispControl.SendTitle], s_SendMessageLength, true);
                 bRet &= bAns;
 
                 // メッセージ
@@ -929,7 +929,7 @@
                 else if (rdB104.Checked) tmData.CheckSchdule = (int)CommonDefine.TermDateCheckTiming.CheckSchdule3;
 
                 tmData.TermDays = CommonMotions.cnvInt(m_dispControl[(int)DispControl.TermDays].Text.ToString());
-                tmData.SendTitile = m_dispControl[(int)DispControl.SendTitile].Text.ToString();
+                tmData.SendTitle = m_dispControl[(int)DispControl.SendTitle].Text.ToString();
                 tmData.SendMessage = m_dispControl[(int)DispControl.SendMessage].Text.ToString();
                 tmData.BackColor = String.Format("0x{0:X2}{1:X2}{2:X2}", m_dispControl[(int)DispControl.ErrorColor].BackColor.R
                                                                     , m_dispControl[(int)DispControl.ErrorColor].BackColor.G
@@ -1137,15 +1137,15 @@
                                                         , wrkValue3
                                                         , work.SeqNo
                                                         , work.TermDays
-                                                        , work.SendTitile
+                                                        , work.SendTitle
                                                         , work.SendMessage
                                                         );
 
                     // 色設定
-                    dgvWorkList.Rows[ilineCnt].Cells[(int)DispColumn.SendTitile].Style.BackColor = CommonMotions.getBackForeColor(work.BackColor, CommonDefine.PalceOfColor.BackColor);
+                    dgvWorkList.Rows[ilineCnt].Cells[(int)DispColumn.SendTitle].Style.BackColor = CommonMotions.getBackForeColor(work.BackColor, CommonDefine.PalceOfColor.BackColor);
                     dgvWorkList.Rows[ilineCnt].Cells[(int)DispColumn.SendMessage].Style.BackColor = CommonMotions.getBackForeColor(work.BackColor, CommonDefine.PalceOfColor.BackColor);
 
-                    dgvWorkList.Rows[ilineCnt].Cells[(int)DispColumn.SendTitile].Style.ForeColor = CommonMotions.getBackForeColor(work.ForeColor, CommonDefine.PalceOfColor.ForeColor);
+                    dgvWorkList.Rows[ilineCnt].Cells[(int)DispColumn.SendTitle].Style.ForeColor = CommonMotions.getBackForeColor(work.ForeColor, CommonDefine.PalceOfColor.ForeColor);
                     dgvWorkList.Rows[ilineCnt].Cells[(int)DispColumn.SendMessage].Style.ForeColor = CommonMotions.getBackForeColor(work.ForeColor, CommonDefine.PalceOfColor.ForeColor);
                 }
 
@@ -1214,7 +1214,7 @@
                     else if (wrklist[0].CheckSchdule == 3) rdB104.Checked = true;
 
                     m_dispControl[(int)DispControl.TermDays].Text = wrklist[0].TermDays.ToString();
-                    m_dispControl[(int)DispControl.SendTitile].Text = wrklist[0].SendTitile;
+                    m_dispControl[(int)DispControl.SendTitle].Text = wrklist[0].SendTitle;
                     m_dispControl[(int)DispControl.SendMessage].Text = wrklist[0].SendMessage;
 
                     // 背景色設定
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmAmountAllocation.Designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmAmountAllocation.Designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmAmountAllocation.Designer.cs	(revision 6)
@@ -39,11 +39,11 @@
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.lblCompTotal = new System.Windows.Forms.Label();
-            this.lblCompTitile = new System.Windows.Forms.Label();
+            this.lblCompTitle = new System.Windows.Forms.Label();
             this.lblCompTotal2 = new System.Windows.Forms.Label();
-            this.lblTotalTitile2 = new System.Windows.Forms.Label();
+            this.lblTotalTitle2 = new System.Windows.Forms.Label();
             this.lblCompTotal1 = new System.Windows.Forms.Label();
-            this.lblTotalTitile1 = new System.Windows.Forms.Label();
+            this.lblTotalTitle1 = new System.Windows.Forms.Label();
             ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit();
             this.SuspendLayout();
             // 
@@ -149,17 +149,17 @@
             this.lblCompTotal.TabIndex = 49;
             this.lblCompTotal.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             // 
-            // lblCompTitile
+            // lblCompTitle
             // 
-            this.lblCompTitile.BackColor = System.Drawing.Color.Goldenrod;
-            this.lblCompTitile.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblCompTitile.ForeColor = System.Drawing.Color.White;
-            this.lblCompTitile.Location = new System.Drawing.Point(162, 185);
-            this.lblCompTitile.Name = "lblCompTitile";
-            this.lblCompTitile.Size = new System.Drawing.Size(90, 25);
-            this.lblCompTitile.TabIndex = 50;
-            this.lblCompTitile.Text = "合計金額";
-            this.lblCompTitile.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.lblCompTitle.BackColor = System.Drawing.Color.Goldenrod;
+            this.lblCompTitle.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblCompTitle.ForeColor = System.Drawing.Color.White;
+            this.lblCompTitle.Location = new System.Drawing.Point(162, 185);
+            this.lblCompTitle.Name = "lblCompTitle";
+            this.lblCompTitle.Size = new System.Drawing.Size(90, 25);
+            this.lblCompTitle.TabIndex = 50;
+            this.lblCompTitle.Text = "合計金額";
+            this.lblCompTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // lblCompTotal2
             // 
@@ -172,16 +172,16 @@
             this.lblCompTotal2.TabIndex = 51;
             this.lblCompTotal2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             // 
-            // lblTotalTitile2
+            // lblTotalTitle2
             // 
-            this.lblTotalTitile2.BackColor = System.Drawing.Color.White;
-            this.lblTotalTitile2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblTotalTitile2.ForeColor = System.Drawing.Color.Black;
-            this.lblTotalTitile2.Location = new System.Drawing.Point(2, 160);
-            this.lblTotalTitile2.Name = "lblTotalTitile2";
-            this.lblTotalTitile2.Size = new System.Drawing.Size(250, 25);
-            this.lblTotalTitile2.TabIndex = 52;
-            this.lblTotalTitile2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.lblTotalTitle2.BackColor = System.Drawing.Color.White;
+            this.lblTotalTitle2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblTotalTitle2.ForeColor = System.Drawing.Color.Black;
+            this.lblTotalTitle2.Location = new System.Drawing.Point(2, 160);
+            this.lblTotalTitle2.Name = "lblTotalTitle2";
+            this.lblTotalTitle2.Size = new System.Drawing.Size(250, 25);
+            this.lblTotalTitle2.TabIndex = 52;
+            this.lblTotalTitle2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // lblCompTotal1
             // 
@@ -194,16 +194,16 @@
             this.lblCompTotal1.TabIndex = 53;
             this.lblCompTotal1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             // 
-            // lblTotalTitile1
+            // lblTotalTitle1
             // 
-            this.lblTotalTitile1.BackColor = System.Drawing.Color.White;
-            this.lblTotalTitile1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblTotalTitile1.ForeColor = System.Drawing.Color.Black;
-            this.lblTotalTitile1.Location = new System.Drawing.Point(2, 135);
-            this.lblTotalTitile1.Name = "lblTotalTitile1";
-            this.lblTotalTitile1.Size = new System.Drawing.Size(250, 25);
-            this.lblTotalTitile1.TabIndex = 54;
-            this.lblTotalTitile1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.lblTotalTitle1.BackColor = System.Drawing.Color.White;
+            this.lblTotalTitle1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblTotalTitle1.ForeColor = System.Drawing.Color.Black;
+            this.lblTotalTitle1.Location = new System.Drawing.Point(2, 135);
+            this.lblTotalTitle1.Name = "lblTotalTitle1";
+            this.lblTotalTitle1.Size = new System.Drawing.Size(250, 25);
+            this.lblTotalTitle1.TabIndex = 54;
+            this.lblTotalTitle1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // FrmAmountAllocation
             // 
@@ -213,11 +213,11 @@
             this.ClientSize = new System.Drawing.Size(424, 224);
             this.ControlBox = false;
             this.Controls.Add(this.lblCompTotal1);
-            this.Controls.Add(this.lblTotalTitile1);
+            this.Controls.Add(this.lblTotalTitle1);
             this.Controls.Add(this.lblCompTotal2);
-            this.Controls.Add(this.lblTotalTitile2);
+            this.Controls.Add(this.lblTotalTitle2);
             this.Controls.Add(this.lblCompTotal);
-            this.Controls.Add(this.lblCompTitile);
+            this.Controls.Add(this.lblCompTitle);
             this.Controls.Add(this.dgvMain);
             this.Controls.Add(this.btnEnd);
             this.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold);
@@ -241,11 +241,11 @@
         private System.Windows.Forms.Button btnEnd;
         private System.Windows.Forms.DataGridView dgvMain;
         private System.Windows.Forms.Label lblCompTotal;
-        private System.Windows.Forms.Label lblCompTitile;
+        private System.Windows.Forms.Label lblCompTitle;
         private System.Windows.Forms.Label lblCompTotal2;
-        private System.Windows.Forms.Label lblTotalTitile2;
+        private System.Windows.Forms.Label lblTotalTitle2;
         private System.Windows.Forms.Label lblCompTotal1;
-        private System.Windows.Forms.Label lblTotalTitile1;
+        private System.Windows.Forms.Label lblTotalTitle1;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmAmountAllocation.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmAmountAllocation.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmAmountAllocation.cs	(revision 6)
@@ -51,7 +51,7 @@
         /// <summary>
         /// 総計タイトルラベル表示位置Ｘ
         /// </summary>
-        private const int s_poTitileX = 162;
+        private const int s_poTitleX = 162;
         /// <summary>
         /// 総計表示ラベル表示位置Ｘ
         /// </summary>
@@ -63,7 +63,7 @@
         /// <summary>
         /// ラベルタイトルサイズ
         /// </summary>
-        private const int s_LabelTitileWidth = 250;
+        private const int s_LabelTitleWidth = 250;
         #endregion
 
         #region 変数
@@ -144,18 +144,18 @@
             // マウスイベントセット
             dgvMain.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
             dgvMain.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseMove);
-            lblTotalTitile1.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
-            lblTotalTitile1.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseDown);
-            lblTotalTitile2.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
-            lblTotalTitile2.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseDown);
-            lblCompTitile.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
-            lblCompTitile.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseDown);
+            lblTotalTitle1.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
+            lblTotalTitle1.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseMove);
+            lblTotalTitle2.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
+            lblTotalTitle2.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseMove);
+            lblCompTitle.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
+            lblCompTitle.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseMove);
             lblCompTotal.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
-            lblCompTotal.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseDown);
+            lblCompTotal.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseMove);
             lblCompTotal1.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
-            lblCompTotal1.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseDown);
+            lblCompTotal1.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseMove);
             lblCompTotal2.MouseDown += new MouseEventHandler(FrmAmountAllocation_MouseDown);
-            lblCompTotal2.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseDown);
+            lblCompTotal2.MouseMove += new MouseEventHandler(FrmAmountAllocation_MouseMove);
         }
         #endregion
 
@@ -179,13 +179,13 @@
             {
                 // セルサイズ初期設定
                 dgvMain.Columns[(int)DispGridColumn.Name].Width = s_CellWidth;
-                lblTotalTitile1.Width = s_LabelTitileWidth;
-                lblTotalTitile2.Width = s_LabelTitileWidth;
+                lblTotalTitle1.Width = s_LabelTitleWidth;
+                lblTotalTitle2.Width = s_LabelTitleWidth;
 
                 // 合計ラベルの初期位置
-                Point po1 = lblCompTitile.Location;
-                po1.X = s_poTitileX;
-                lblCompTitile.Location = po1;
+                Point po1 = lblCompTitle.Location;
+                po1.X = s_poTitleX;
+                lblCompTitle.Location = po1;
 
                 Point po2 = lblCompTotal.Location;
                 po2.X = s_poTotalX;
@@ -211,13 +211,13 @@
                 AddCellWidth = dgvMain.RowHeadersWidth;
 
                 dgvMain.Columns[(int)DispGridColumn.Name].Width += AddCellWidth;
-                lblTotalTitile1.Width += AddCellWidth;
-                lblTotalTitile2.Width += AddCellWidth;
+                lblTotalTitle1.Width += AddCellWidth;
+                lblTotalTitle2.Width += AddCellWidth;
 
                 // ラベル位置変更
-                po1 = lblCompTitile.Location;
+                po1 = lblCompTitle.Location;
                 po1.X += AddCellWidth;
-                lblCompTitile.Location = po1;
+                lblCompTitle.Location = po1;
 
                 po2 = lblCompTotal.Location;
                 po2.X += AddCellWidth;
@@ -252,6 +252,7 @@
                 // データを表示する
                 dgvMain.Rows.Clear();
 
+                // リストの後ろからグリッドに追加する
                 for (int i = m_AmountList.Count - 1; i >= 0; i--)
                 {
                     AmountAllocation wrk = m_AmountList[i];
@@ -268,11 +269,11 @@
             finally
             {
                 // 未割当表示
-                lblTotalTitile1.Text = m_AmountList[0].Name;
+                lblTotalTitle1.Text = m_AmountList[0].Name;
                 lblCompTotal1.Text = string.Format("\\{0}-", m_AmountList[0].Amount.ToString("#,0"));
 
                 // 自社経費表示
-                lblTotalTitile2.Text = m_AmountList[1].Name;
+                lblTotalTitle2.Text = m_AmountList[1].Name;
                 lblCompTotal2.Text = string.Format("\\{0}-", m_AmountList[1].Amount.ToString("#,0"));
 
                 // 合計金額表示
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardReader.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardReader.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardReader.cs	(revision 6)
@@ -306,7 +306,7 @@
                 MessageBoardData data = new MessageBoardData();
                 if (!mbdDB.SelectAction(strSQL, ref data)) return;
 
-                lblTitile.Text = data.MessageTitile;        // タイトル
+                lblTitle.Text = data.MessageTitle;        // タイトル
                 lblWriter.Text = data.FromName;             // 書込み者
 
                 //  対象者名表示
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardReader.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardReader.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardReader.designer.cs	(revision 6)
@@ -39,7 +39,7 @@
             this.btnDelete = new System.Windows.Forms.Button();
             this.lblLinkCode = new System.Windows.Forms.Label();
             this.lblLinkType = new System.Windows.Forms.Label();
-            this.lblTitile = new System.Windows.Forms.Label();
+            this.lblTitle = new System.Windows.Forms.Label();
             this.txtMessage = new System.Windows.Forms.TextBox();
             this.label5 = new System.Windows.Forms.Label();
             this.lstRecipient = new System.Windows.Forms.ListBox();
@@ -126,14 +126,14 @@
             this.lblLinkType.TabIndex = 11;
             this.lblLinkType.Visible = false;
             // 
-            // lblTitile
+            // lblTitle
             // 
-            this.lblTitile.BackColor = System.Drawing.Color.White;
-            this.lblTitile.Location = new System.Drawing.Point(8, 73);
-            this.lblTitile.Name = "lblTitile";
-            this.lblTitile.Size = new System.Drawing.Size(1160, 20);
-            this.lblTitile.TabIndex = 12;
-            this.lblTitile.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.lblTitle.BackColor = System.Drawing.Color.White;
+            this.lblTitle.Location = new System.Drawing.Point(8, 73);
+            this.lblTitle.Name = "lblTitle";
+            this.lblTitle.Size = new System.Drawing.Size(1160, 20);
+            this.lblTitle.TabIndex = 12;
+            this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
             // 
             // txtMessage
             // 
@@ -331,7 +331,7 @@
             this.BackColor = System.Drawing.Color.Black;
             this.ClientSize = new System.Drawing.Size(1180, 537);
             this.Controls.Add(this.dgvAllDisplay);
-            this.Controls.Add(this.lblTitile);
+            this.Controls.Add(this.lblTitle);
             this.Controls.Add(this.txtMessage);
             this.Controls.Add(this.label5);
             this.Controls.Add(this.lstRecipient);
@@ -373,7 +373,7 @@
         private System.Windows.Forms.Button btnDelete;
         private System.Windows.Forms.Label lblLinkCode;
         private System.Windows.Forms.Label lblLinkType;
-        private System.Windows.Forms.Label lblTitile;
+        private System.Windows.Forms.Label lblTitle;
         private System.Windows.Forms.TextBox txtMessage;
         private System.Windows.Forms.Label label5;
         private System.Windows.Forms.ListBox lstRecipient;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.cs	(revision 6)
@@ -417,7 +417,7 @@
                     }
 
                     // 自分の書き込みの場合は内容を表示する
-                    txtTitile.Text = data.MessageTitile;
+                    txtTitle.Text = data.MessageTitle;
                     txtMessage.Text = data.MessageContent;
                 }
                 else
@@ -425,7 +425,7 @@
                     // 返信者セット
                     m_RecipientList.Add(new KeyValuePair<int, string>(data.FromCode, data.FromName));
 
-                    txtTitile.Text = CommonDefine.s_PageType1GridResString[1] + data.MessageTitile;
+                    txtTitle.Text = CommonDefine.s_PageType1GridResString[1] + data.MessageTitle;
                 }
                 ListBoxAction.InitDataSetListBox(lstRecipient, m_RecipientList);
             }
@@ -453,18 +453,18 @@
             try
             {
                 // 背景色変更
-                //ClsCommon.chgBackColor(txtTitile, bRet);
-                //if (txtTitile.Text.Length == 0)
+                //ClsCommon.chgBackColor(txtTitle, bRet);
+                //if (txtTitle.Text.Length == 0)
                 //{
                 //    bRet = false;
-                //    ClsCommon.chgBackColor(txtTitile, bRet);
+                //    ClsCommon.chgBackColor(txtTitle, bRet);
                 //    MessageBox.Show("入力されていません、確認してください。", "データ確認"
                 //                                , MessageBoxButtons.OK, MessageBoxIcon.Warning);
                 //    return bRet;
                 //}
-                //if (!(bRet = ClsCommon.DispFieldLengthCheck(txtTitile, 100, true)))
+                //if (!(bRet = ClsCommon.DispFieldLengthCheck(txtTitle, 100, true)))
                 //{
-                //    ClsCommon.chgBackColor(txtTitile, bRet);
+                //    ClsCommon.chgBackColor(txtTitle, bRet);
                 //    MessageBox.Show("文字が長すぎです、確認してください。", "データ確認"
                 //                                , MessageBoxButtons.OK, MessageBoxIcon.Warning);
                 //    return bRet;
@@ -645,7 +645,7 @@
                 // データセット
                 work.FromCode = CommonMotions.cnvInt(cmbWriter.SelectedValue.ToString());
                 work.FromName = cmbWriter.Text;
-                work.MessageTitile = txtTitile.Text;
+                work.MessageTitle = txtTitle.Text;
                 work.MessageContent = txtMessage.Text;
                 work.WritingDate = DateTime.Now;
                 work.PersonCode = CommonMotions.LoginUserData.PersonCode;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.designer.cs	(revision 6)
@@ -35,7 +35,7 @@
             this.label1 = new System.Windows.Forms.Label();
             this.txtMessage = new System.Windows.Forms.TextBox();
             this.lblMode = new System.Windows.Forms.Label();
-            this.txtTitile = new System.Windows.Forms.TextBox();
+            this.txtTitle = new System.Windows.Forms.TextBox();
             this.lstRecipient = new System.Windows.Forms.ListBox();
             this.lstAll = new System.Windows.Forms.ListBox();
             this.btnLeft = new System.Windows.Forms.Button();
@@ -107,15 +107,15 @@
             this.lblMode.Text = "新規";
             this.lblMode.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // txtTitile
+            // txtTitle
             // 
-            this.tableLayoutPanel1.SetColumnSpan(this.txtTitile, 3);
-            this.txtTitile.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtTitile.Location = new System.Drawing.Point(3, 29);
-            this.txtTitile.MaxLength = 100;
-            this.txtTitile.Name = "txtTitile";
-            this.txtTitile.Size = new System.Drawing.Size(1158, 20);
-            this.txtTitile.TabIndex = 0;
+            this.tableLayoutPanel1.SetColumnSpan(this.txtTitle, 3);
+            this.txtTitle.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.txtTitle.Location = new System.Drawing.Point(3, 29);
+            this.txtTitle.MaxLength = 100;
+            this.txtTitle.Name = "txtTitle";
+            this.txtTitle.Size = new System.Drawing.Size(1158, 20);
+            this.txtTitle.TabIndex = 0;
             // 
             // lstRecipient
             // 
@@ -184,7 +184,7 @@
             this.tableLayoutPanel1.Controls.Add(this.label6, 0, 0);
             this.tableLayoutPanel1.Controls.Add(this.label7, 0, 4);
             this.tableLayoutPanel1.Controls.Add(this.label8, 0, 2);
-            this.tableLayoutPanel1.Controls.Add(this.txtTitile, 0, 1);
+            this.tableLayoutPanel1.Controls.Add(this.txtTitle, 0, 1);
             this.tableLayoutPanel1.Controls.Add(this.txtMessage, 0, 8);
             this.tableLayoutPanel1.Controls.Add(this.cmbWriter, 0, 3);
             this.tableLayoutPanel1.Controls.Add(this.lstRecipient, 0, 5);
@@ -292,7 +292,7 @@
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.TextBox txtMessage;
         private System.Windows.Forms.Label lblMode;
-        private System.Windows.Forms.TextBox txtTitile;
+        private System.Windows.Forms.TextBox txtTitle;
         private System.Windows.Forms.ListBox lstRecipient;
         private System.Windows.Forms.ListBox lstAll;
         private System.Windows.Forms.Button btnLeft;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNewOrContinueCopy.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNewOrContinueCopy.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNewOrContinueCopy.cs	(revision 6)
@@ -291,7 +291,7 @@
         /// <returns></returns>
         private string GetPersonName(int PersonCode)
         {
-            IOMPersonInCharge picDB= new IOMPersonInCharge();
+            IOMPersonInCharge picDB = new IOMPersonInCharge();
             try
             {
                 string strRet = string.Empty;
@@ -471,11 +471,9 @@
         private void SetConstructionCode()
         {
             IOConstructionBaseInfo cbDB = new IOConstructionBaseInfo();
-            int ConstructionCode = 0;
             try
             {
-                int CodeUpper = 0;
-                int CodeLower = 0;
+                int ConstructionCode = 0;
                 // ----- 工事情報・見積データコピー
                 if (radioButton1.Checked)
                 {
@@ -482,35 +480,23 @@
                     btnExecProc1.Enabled = true;
 
                     // 継続工事番号の表示
-                    ConstructionCode = m_ConstructionCode;
-                    while (true)
-                    {
-                        // 最終枝番検索
-                        CodeUpper = CommonMotions.cnvTruncate(ConstructionCode / 100) * 100;
-                        CodeLower = (ConstructionCode % 100);
-                        ConstructionCode = CodeUpper + (CodeLower + 1);
+                    ConstructionCode = cbDB.CreateNextBranchCounstructionCode(m_ConstructionCode);
 
-                        string strSQL = cbDB.CreatePrimarykeyString(ConstructionCode);
-                        ConstructionBaseInfo cbRec = new ConstructionBaseInfo();
-                        // データが無ければ抜ける
-                        if (!cbDB.SelectAction(strSQL, ref cbRec)) break;
-
-                        // 次のデータ
-                        ConstructionCode++;
-                        if ((ConstructionCode - CodeUpper) > 99) break;
-                    }
                     m_dispControl[(int)Dispcount.ConstructionCode1].Text = CommonMotions.cnvStringCodeFromInt(ConstructionCode, "-", 8);
 
                     // 作成限界を超えた場合はエラーにする
-                    if ((ConstructionCode - CodeUpper) > 99)
+                    if (ConstructionCode < 0)
                     {
+                        MessageBox.Show("新規工事番号が取得できません。", "継続作成エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                        btnExecProc1.Enabled = false;
+                    }
+                    else if ((ConstructionCode - m_ConstructionCode) > 99)
+                    {
                         MessageBox.Show("変更作成の上限数を超えました、\nこれ以上は作成できません、\n新規工事として作成してください。",
-                                        "継続作成エラー",
-                                        MessageBoxButtons.OK,
-                                        MessageBoxIcon.Error);
+                                        "継続作成エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
                         btnExecProc1.Enabled = false;
                     }
-
+                    // ----- ここで抜ける（以下の処理は新規工事番号取得）
                     return;
                 }
 
@@ -852,6 +838,7 @@
                 cbRec.EstimatesSubmitDeadline = DateTime.Now.AddDays(s_EstimatesSubmitDeadline);	// 見積提出期限
                 cbRec.EstimatesSubmittedDate = DateTime.MinValue;	                                // 見積提出日
                 cbRec.EstimatesExpirationDate = DateTime.MinValue;	                                // 見積有効期限
+                cbRec.ProvisionalOrderDate = DateTime.MinValue;                                     // 仮受注日
                 cbRec.OrderDate = DateTime.MinValue;                                                // 受注日
                 cbRec.TransferConstructionDate = DateTime.MinValue;                                 // 部署引継日
                 cbRec.ConstructionStartingDate = DateTime.MinValue;                                 // 施工開始日
@@ -859,6 +846,37 @@
                 cbRec.BillingStartDate = DateTime.MinValue;	                                        // 請求準備開始日
                 cbRec.BillingDate = DateTime.MinValue;	                                            // 請求日
 
+                // 工事情報のみコピーは工事の情報以外はクリアする
+                if (radioButton3.Checked)
+                {
+                    cbRec.OrderStartingDate = DateTime.MinValue;	        // 開始予定日
+                    cbRec.OrderCompletionDate = DateTime.MinValue;	        // 完了予定日
+                    cbRec.PreparationStartDate = DateTime.MinValue;         // 施工準備開始日
+                    cbRec.NonOrderDate = DateTime.MinValue;                 // 非受注日
+                    cbRec.OrdersDecisionPrice = 0;                          // 税抜受注決定金額
+                    cbRec.OrdersDecisionPriceInTax = 0;                     // 税込受注決定金額
+                    cbRec.ConstructionPersonCode = 0;                       // 工事担当者コード
+                    cbRec.ConstrSubPersonCode = 0;	                        // 工事副担当者コード
+                    cbRec.ConstructionInstructor = 0;                       // 工事指導員コード
+                    cbRec.TransferConstruction = 0;                         // 移管先コード
+                    cbRec.TransferConstructionDate = DateTime.MinValue;     // 工事移管日
+                    cbRec.ConstructionPeriodStart = DateTime.MinValue;      // 契約工期開始
+                    cbRec.ConstructionPeriodEnd = DateTime.MinValue;        // 契約工期完了
+                    cbRec.ConstructionPeriodStart2 = DateTime.MinValue;     // 契約工期開始（延長時）
+                    cbRec.ConstructionPeriodEnd2 = DateTime.MinValue;       // 契約工期完了（延長時）
+                    cbRec.StartDate = DateTime.MinValue;	                // 工事開始日
+                    cbRec.EndDate = DateTime.MinValue;                      // 工事終了日
+                    cbRec.PurchaseOrderMailingDate = DateTime.MinValue;     // 注文書郵送日
+                    cbRec.PurchaseOrderReturnDate = DateTime.MinValue;      // 注文書返送日
+                    cbRec.PurchaseOrderReturnCheckDate = DateTime.MinValue; // 注文書返送確認日
+                    cbRec.ConsumptionTaxFlg = 1;                            // 消費税フラグ
+                    cbRec.PrimeContractorFlg = 1;	                        // 元請フラグ
+                    cbRec.SalesCostFlg = 1;	                                // 営業経費発生フラグ
+                    cbRec.EstimateType = 1;                                 // 見積種別
+                    cbRec.BillingSplitFlg = 1;                              // 請求回数フラグ
+                    cbRec.BillingSendDate = DateTime.MinValue;              // 請求書郵送/手渡し日
+                }
+
                 // 営業担当
                 if (cmbSalesPerson.Text.Length != 0)
                 {
@@ -1000,7 +1018,7 @@
         /// </summary>
         /// <param name="cpdDB"></param>
         /// <returns></returns>
-        private bool ProgressDate(IOConstructionProgressDate cpdDB, int ConstructionCode)
+        public bool ProgressDate(IOConstructionProgressDate cpdDB, int ConstructionCode)
         {
             try
             {
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNumberOfWorkers.Designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNumberOfWorkers.Designer.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNumberOfWorkers.Designer.cs	(revision 6)
@@ -0,0 +1,224 @@
+﻿namespace ProcessManagement.Forms.SubForms
+{
+    partial class FrmNumberOfWorkers
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.btnEnd = new System.Windows.Forms.Button();
+            this.dgvMain = new System.Windows.Forms.DataGridView();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.lblCompTotal = new System.Windows.Forms.Label();
+            this.lblCompTitle = new System.Windows.Forms.Label();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // btnEnd
+            // 
+            this.btnEnd.BackColor = System.Drawing.Color.Blue;
+            this.btnEnd.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnEnd.ForeColor = System.Drawing.Color.White;
+            this.btnEnd.Location = new System.Drawing.Point(2, 330);
+            this.btnEnd.Name = "btnEnd";
+            this.btnEnd.Size = new System.Drawing.Size(120, 30);
+            this.btnEnd.TabIndex = 3;
+            this.btnEnd.Text = "終　了";
+            this.btnEnd.UseVisualStyleBackColor = false;
+            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
+            // 
+            // dgvMain
+            // 
+            this.dgvMain.AllowUserToAddRows = false;
+            this.dgvMain.AllowUserToDeleteRows = false;
+            this.dgvMain.AllowUserToResizeColumns = false;
+            this.dgvMain.AllowUserToResizeRows = false;
+            this.dgvMain.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold);
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgvMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgvMain.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1,
+            this.Column4,
+            this.Column2,
+            this.Column6,
+            this.Column3,
+            this.Column5});
+            this.dgvMain.Location = new System.Drawing.Point(2, 5);
+            this.dgvMain.Name = "dgvMain";
+            this.dgvMain.RowHeadersVisible = false;
+            this.dgvMain.RowHeadersWidth = 20;
+            this.dgvMain.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dgvMain.RowTemplate.Height = 20;
+            this.dgvMain.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dgvMain.Size = new System.Drawing.Size(670, 322);
+            this.dgvMain.TabIndex = 0;
+            // 
+            // Column1
+            // 
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.Format = "N0";
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
+            this.Column1.Frozen = true;
+            this.Column1.HeaderText = "№";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column1.Width = 50;
+            // 
+            // Column4
+            // 
+            this.Column4.Frozen = true;
+            this.Column4.HeaderText = "職種コード";
+            this.Column4.Name = "Column4";
+            this.Column4.ReadOnly = true;
+            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column4.Visible = false;
+            // 
+            // Column2
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle3;
+            this.Column2.Frozen = true;
+            this.Column2.HeaderText = "職　　　種";
+            this.Column2.Name = "Column2";
+            this.Column2.ReadOnly = true;
+            this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column2.Width = 160;
+            // 
+            // Column6
+            // 
+            this.Column6.Frozen = true;
+            this.Column6.HeaderText = "業者コード";
+            this.Column6.Name = "Column6";
+            this.Column6.ReadOnly = true;
+            this.Column6.Visible = false;
+            // 
+            // Column3
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle4.Format = "C0";
+            dataGridViewCellStyle4.NullValue = null;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle4;
+            this.Column3.Frozen = true;
+            this.Column3.HeaderText = "業　者　名";
+            this.Column3.Name = "Column3";
+            this.Column3.ReadOnly = true;
+            this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column3.Width = 200;
+            // 
+            // Column5
+            // 
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle5;
+            this.Column5.Frozen = true;
+            this.Column5.HeaderText = "累　計";
+            this.Column5.Name = "Column5";
+            this.Column5.ReadOnly = true;
+            this.Column5.Width = 80;
+            // 
+            // lblCompTotal
+            // 
+            this.lblCompTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.lblCompTotal.BackColor = System.Drawing.Color.White;
+            this.lblCompTotal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblCompTotal.Location = new System.Drawing.Point(412, 327);
+            this.lblCompTotal.Name = "lblCompTotal";
+            this.lblCompTotal.Size = new System.Drawing.Size(80, 25);
+            this.lblCompTotal.TabIndex = 49;
+            this.lblCompTotal.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // lblCompTitle
+            // 
+            this.lblCompTitle.BackColor = System.Drawing.Color.DarkTurquoise;
+            this.lblCompTitle.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblCompTitle.ForeColor = System.Drawing.Color.Black;
+            this.lblCompTitle.Location = new System.Drawing.Point(212, 327);
+            this.lblCompTitle.Name = "lblCompTitle";
+            this.lblCompTitle.Size = new System.Drawing.Size(200, 25);
+            this.lblCompTitle.TabIndex = 50;
+            this.lblCompTitle.Text = "合計人数";
+            this.lblCompTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // FrmNumberOfWorkers
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.BackColor = System.Drawing.Color.Black;
+            this.ClientSize = new System.Drawing.Size(676, 362);
+            this.ControlBox = false;
+            this.Controls.Add(this.lblCompTotal);
+            this.Controls.Add(this.lblCompTitle);
+            this.Controls.Add(this.dgvMain);
+            this.Controls.Add(this.btnEnd);
+            this.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+            this.KeyPreview = true;
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "FrmNumberOfWorkers";
+            this.ShowIcon = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Load += new System.EventHandler(this.FrmCostStructureDiag_Load);
+            this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.FrmNumberOfWorkers_MouseDown);
+            this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.FrmNumberOfWorkers_MouseMove);
+            ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button btnEnd;
+        private System.Windows.Forms.DataGridView dgvMain;
+        private System.Windows.Forms.Label lblCompTotal;
+        private System.Windows.Forms.Label lblCompTitle;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+    }
+}
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNumberOfWorkers.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNumberOfWorkers.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNumberOfWorkers.cs	(revision 6)
@@ -0,0 +1,558 @@
+﻿using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using System.Collections;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+
+namespace ProcessManagement.Forms.SubForms
+{
+    /// <summary>
+    /// 人員割り振り表示
+    /// </summary>
+    public partial class FrmNumberOfWorkers : Form
+    {
+        #region ログ使用定義
+        //log4netログを使用する
+        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+        /// <summary>
+        /// 表示カラム
+        /// </summary>
+        private enum GridColumn
+        {
+            No = 0,
+            JobCategoryCode,
+            JobCategoryName,
+            CompanyCode,
+            CompanyName,
+            Total,
+            First,
+        }
+        /// <summary>
+        /// グリッド表示行数
+        /// </summary>
+        private const int s_GridDispLine = 5;
+        /// <summary>
+        /// 自画面幅
+        /// </summary>
+        private const int s_MyWidth = 682;
+        /// <summary>
+        /// 自画面高さ
+        /// </summary>
+        private const int s_MyHeight = 368;
+        /// <summary>
+        /// 総計タイトルラベル表示位置Ｘ
+        /// </summary>
+        private const int s_poTitleX = 212;
+        /// <summary>
+        /// 総計表示ラベル表示位置Ｘ
+        /// </summary>
+        private const int s_poTotalX = 412;
+        /// <summary>
+        /// 名称セルサイズ
+        /// </summary>
+        private const int s_CellWidth1 = 160;
+        private const int s_CellWidth2 = 200;
+
+        /// <summary>
+        /// 自社施工定義
+        /// </summary>
+        private KeyValuePair<int, string> s_OwnData = new KeyValuePair<int, string>(-1, "自　　社");
+        #endregion
+
+        #region 変数
+        /// <summary>
+        /// 工事コード
+        /// </summary>
+        private int m_ConstructionCode = 0;
+
+        /// <summary>
+        /// 担当者コード
+        /// </summary>
+        private int m_PersonCode = 0;
+
+        /// <summary>
+        /// 表示位置
+        /// </summary>
+        private Point m_LocationPoint = new Point(((System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width / 2) - (s_MyWidth / 2)),
+                                                    ((System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height / 2) - (s_MyHeight / 2)));
+
+        /// <summary>
+        /// 終了状態フラグ
+        /// </summary>
+        private DialogResult m_EndButton = DialogResult.None;
+
+        /// <summary>
+        /// 年月人員数作成エリア
+        /// </summary>
+        private DataGridViewColumn[] m_GridColList = null;
+        private DataGridViewCellStyle[] m_GridCellStyleList = null;
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        /// 工事番号
+        /// </summary>
+        public int ConstructionCode
+        {
+            get { return m_ConstructionCode; }
+            set { m_ConstructionCode = value; }
+        }
+
+        /// <summary>
+        /// 担当者コード
+        /// </summary>
+        public int PersonCode
+        {
+            get { return m_PersonCode; }
+            set { m_PersonCode = value; }
+        }
+
+        /// <summary>
+        /// 終了ボタン状態
+        /// </summary>
+        public DialogResult EndButton
+        {
+            get { return m_EndButton; }
+        }
+
+        /// <summary>
+        /// 表示位置
+        /// </summary>
+        public Point LocationPoint
+        {
+            get { return m_LocationPoint; }
+            set { m_LocationPoint = value; }
+        }
+        #endregion
+
+        #region コンストラクタ
+        /// <summary>
+        /// フォーム初期化
+        /// </summary>
+        public FrmNumberOfWorkers()
+        {
+            InitializeComponent();
+        }
+        #endregion
+
+        #region フォームロード
+        /// <summary>
+        /// フォームロード
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmCostStructureDiag_Load(object sender, EventArgs e)
+        {
+            // フォームサイズ固定
+            this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height);
+
+            // フォーム表示位置セット
+            Point po = new Point(m_LocationPoint.X - this.Width, m_LocationPoint.Y - (this.Height + 50));
+            this.Location = po;
+
+            // マウスイベントセット
+            dgvMain.MouseDown += new MouseEventHandler(FrmNumberOfWorkers_MouseDown);
+            dgvMain.MouseMove += new MouseEventHandler(FrmNumberOfWorkers_MouseMove);
+            lblCompTitle.MouseDown += new MouseEventHandler(FrmNumberOfWorkers_MouseDown);
+            lblCompTitle.MouseMove += new MouseEventHandler(FrmNumberOfWorkers_MouseMove);
+            lblCompTotal.MouseDown += new MouseEventHandler(FrmNumberOfWorkers_MouseDown);
+            lblCompTotal.MouseMove += new MouseEventHandler(FrmNumberOfWorkers_MouseMove);
+        
+            // データ表示
+            DispData();
+        }
+        #endregion
+
+        #region 終了ボタン
+        /// <summary>
+        /// 終了ボタン押下
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnEnd_Click(object sender, EventArgs e)
+        {
+            m_EndButton = DialogResult.None;
+            this.Close();
+        }
+        #endregion
+
+        #region 表示状態を変更する
+        private void SetDisplayStyle()
+        {
+            try
+            {
+                // セルサイズ初期設定
+                dgvMain.Columns[(int)GridColumn.JobCategoryName].Width = s_CellWidth1;
+                dgvMain.Columns[(int)GridColumn.CompanyName].Width = s_CellWidth2;
+
+                // 合計ラベルの初期位置
+                Point po1 = lblCompTitle.Location;
+                po1.X = s_poTitleX;
+                lblCompTitle.Location = po1;
+
+                Point po2 = lblCompTotal.Location;
+                po2.X = s_poTotalX;
+                lblCompTotal.Location = po2;
+
+                if (dgvMain.Rows.Count > s_GridDispLine) return;
+                // 表示行以下の場合
+                int AddCellWidth = 0;
+
+                int addRow = s_GridDispLine - dgvMain.Rows.Count;
+                if (addRow != 0) dgvMain.Rows.Add(addRow);
+
+                dgvMain.ScrollBars = ScrollBars.None;
+                // セルサイズ変更
+                AddCellWidth = dgvMain.RowHeadersWidth;
+
+                dgvMain.Columns[(int)GridColumn.CompanyName].Width += AddCellWidth;
+                dgvMain.Columns[(int)GridColumn.JobCategoryName].Width += AddCellWidth;
+
+                // ラベル位置変更
+                po1 = lblCompTitle.Location;
+                po1.X += AddCellWidth;
+                lblCompTitle.Location = po1;
+
+                po2 = lblCompTotal.Location;
+                po2.X += AddCellWidth;
+                lblCompTotal.Location = po2;
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region データ表示
+        /// <summary>
+        /// データ表示処理
+        /// </summary>
+        private void DispData()
+        {
+            try
+            {
+                // カラムを作成してヘッダー文字をセットする
+                SetHeaderMonth();
+
+                // データ表示処理
+                SetRowData();
+
+                // 表示スタイル変更
+                SetDisplayStyle();
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+            }
+        }
+        #endregion
+
+        #region カラムを作成してヘッダー文字をセットする
+        /// <summary>
+        /// カラムを作成してヘッダー文字をセットする
+        /// </summary>
+        private void SetHeaderMonth()
+        {
+            IODailyDataDetail DailyDB = new IODailyDataDetail();
+            try
+            {
+                // 年月カラム数を取得する
+                string strSQL = "SELECT";
+                strSQL += " TO_CHAR(A.DAILYDATADATE, 'YYYY/MM')";
+                strSQL += " FROM DAILYDATADETAIL A, SUBCONTRACTORJOBCATEGORY B, SUBCONTRACTORMASTER C";
+                strSQL += string.Format(" WHERE PersonCode = {0}", m_PersonCode);
+                strSQL += string.Format(" AND ConstructionCode = {0}", m_ConstructionCode);
+                strSQL += " AND A.JOBCATEGORYCODE = B.JOBCATEGORYCODE(+)";
+                strSQL += " AND A.COMPANYCODE = C.COMPANYCODE(+)";
+                strSQL += " group By TO_CHAR(A.DAILYDATADATE, 'YYYY/MM')";
+                strSQL += " ORDER BY 1";
+                ArrayList arList = new ArrayList();
+                DailyDB.ExecuteReader(strSQL, ref arList);
+                if (arList.Count == 0) return;
+
+                int ColumnCount = arList.Count;
+                if (ColumnCount < 2) ColumnCount = 2;
+                m_GridColList = new DataGridViewColumn[ColumnCount];
+                m_GridCellStyleList = new DataGridViewCellStyle[ColumnCount];
+                string strTitle = string.Empty;
+                for (int i = 0; i < ColumnCount; i++)
+                {
+                    strTitle = string.Empty;
+                    if (i < arList.Count)
+                    {
+                        object[] wrkobj = (object[])arList[i];
+                        strTitle = CommonMotions.cnvString(wrkobj[0]);
+                    }
+
+                    // カラム作成
+                    CreateColumn(i, strTitle);
+                    //// スタイル作成
+                    //m_GridCellStyleList[i] = new DataGridViewCellStyle();
+                    //m_GridCellStyleList[i].Alignment = DataGridViewContentAlignment.MiddleRight;
+
+                    //// セル作成
+                    //m_GridColList[i] = new DataGridViewColumn();
+                    //m_GridColList[i].CellTemplate = new DataGridViewTextBoxCell();
+                    //dgv.Columns.Add(m_GridColList[i]);
+
+                    //// カラムの設定
+                    //m_GridColList[i].CellTemplate = new DataGridViewTextBoxCell();
+                    //m_GridColList[i].DefaultCellStyle = m_GridCellStyleList[i];
+                    //m_GridColList[i].HeaderText = CommonMotions.cnvString(wrkobj[0]);
+
+                    //m_GridColList[i].Name = string.Format("GridColumns{0}", i);
+                    //m_GridColList[i].ReadOnly = false;
+                    //m_GridColList[i].Resizable = DataGridViewTriState.False;
+                    //m_GridColList[i].SortMode = DataGridViewColumnSortMode.NotSortable;
+                    //m_GridColList[i].Width = 80;
+                }
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                DailyDB.close(); DailyDB = null;
+            }
+        }
+        #endregion
+
+        #region カラム作成
+        /// <summary>
+        /// カラム作成
+        /// </summary>
+        /// <param name="Cnt"></param>
+        /// <param name="Title"></param>
+        private void CreateColumn(int Cnt, string Title)
+        {
+            try
+            {
+                DataGridView dgv = dgvMain;
+
+                // スタイル作成
+                m_GridCellStyleList[Cnt] = new DataGridViewCellStyle();
+                m_GridCellStyleList[Cnt].Alignment = DataGridViewContentAlignment.MiddleRight;
+
+                // セル作成
+                m_GridColList[Cnt] = new DataGridViewColumn();
+                m_GridColList[Cnt].CellTemplate = new DataGridViewTextBoxCell();
+                dgv.Columns.Add(m_GridColList[Cnt]);
+
+                // カラムの設定
+                m_GridColList[Cnt].CellTemplate = new DataGridViewTextBoxCell();
+                m_GridColList[Cnt].DefaultCellStyle = m_GridCellStyleList[Cnt];
+                m_GridColList[Cnt].HeaderText = Title;
+
+                m_GridColList[Cnt].Name = string.Format("GridColumns{0}", Cnt);
+                m_GridColList[Cnt].ReadOnly = false;
+                m_GridColList[Cnt].Resizable = DataGridViewTriState.False;
+                m_GridColList[Cnt].SortMode = DataGridViewColumnSortMode.NotSortable;
+                m_GridColList[Cnt].Width = 80;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 読込み並び
+        /// <summary>
+        /// 読込み並び
+        /// </summary>
+        private enum DetilData
+        {
+            JobCategoryCode = 0,
+            JobCategoryName,
+            CompanyCode,
+            CompanyName,
+            DailyDataDate,
+            TodayHeadCount,
+        }
+        #endregion
+
+        #region データ表示
+        /// <summary>
+        /// データ表示処理
+        /// </summary>
+        private void SetRowData()
+        {
+            IODailyDataDetail DailyDB = new IODailyDataDetail();
+            double lTotal = 0;
+            try
+            {
+                int icnt = 1;
+                // データを表示する
+                dgvMain.Rows.Clear();
+                string strSQL = "SELECT";
+                strSQL += " A.JOBCATEGORYCODE, B.JOBCATEGORYNAME, A.COMPANYCODE,";
+                strSQL += " C.COMPANYNAME, TO_CHAR(A.DAILYDATADATE, 'YYYY/MM'), SUM(A.TODAYHEADCOUNT)";
+                strSQL += " FROM DAILYDATADETAIL A, SUBCONTRACTORJOBCATEGORY B, SUBCONTRACTORMASTER C";
+                strSQL += string.Format(" WHERE PersonCode = {0}", m_PersonCode);
+                strSQL += string.Format(" AND ConstructionCode = {0}", m_ConstructionCode);
+                strSQL += " AND A.JOBCATEGORYCODE = B.JOBCATEGORYCODE(+)";
+                strSQL += " AND A.COMPANYCODE = C.COMPANYCODE(+)";
+                strSQL += " GROUP BY A.JOBCATEGORYCODE, B.JOBCATEGORYNAME, A.COMPANYCODE, C.COMPANYNAME, TO_CHAR(A.DAILYDATADATE, 'YYYY/MM')";
+                strSQL += " ORDER BY 3, 1, 4";
+
+                ArrayList arList = new ArrayList();
+                DailyDB.ExecuteReader(strSQL, ref arList);
+                if (arList.Count == 0) return;
+
+                DataGridView dgv = dgvMain;
+                foreach (object[] wrkobj in arList)
+                {
+                    // グリッドの対象行を取得する
+                    DataGridViewRow CurRow = GetDataRow(wrkobj, ref icnt);
+                    double dTotal = 0;
+                    // データの年月を取得する
+                    string CurMounth = CommonMotions.cnvString(wrkobj[(int)DetilData.DailyDataDate]);
+                    // グリッドの対象列を取得する
+                    for (int ix = (int)GridColumn.First; ix < dgv.ColumnCount; ix++)
+                    {
+                        // グリッドの対象列を探す
+                        if (CurMounth.Equals(dgv.Columns[ix].HeaderText))
+                        {
+                            // あればセットする
+                            CurRow.Cells[ix].Value = CommonMotions.cnvDouble(wrkobj[(int)DetilData.TodayHeadCount]).ToString("#,0.0");
+                        }
+                        dTotal += CommonMotions.cnvDouble(CurRow.Cells[ix].Value);
+                    }
+                    // 累計値セット
+                    CurRow.Cells[(int)GridColumn.Total].Value = dTotal.ToString("#,0.0");
+                }
+                // 合計集計
+                for (int iy = 0; iy < dgv.RowCount; iy++)
+                {
+                    lTotal += CommonMotions.cnvDouble(dgv.Rows[iy].Cells[(int)GridColumn.Total].Value);
+                }
+
+                if (dgv.RowCount < 15)
+                {
+                    int RCnt = 15 - dgv.RowCount;
+                    dgv.Rows.Add(RCnt);
+                }
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                DailyDB.close(); DailyDB = null;
+                // 合計人数表示
+                lblCompTotal.Text = lTotal.ToString("#,0");
+            }
+        }
+        #endregion
+
+        #region 対象データの行を探す
+        /// <summary>
+        /// 対象データの行を探す
+        /// </summary>
+        /// <param name="wrkobj"></param>
+        /// <param name="icnt"></param>
+        /// <returns></returns>
+        private DataGridViewRow GetDataRow(object[] wrkobj, ref int icnt)
+        {
+            DataGridViewRow RetRow = null;
+            try
+            {
+                DataGridView dgv = dgvMain;
+                for (int iy = 0; iy < dgv.RowCount; iy++)
+                {
+                    int RecJobCode = CommonMotions.cnvInt(wrkobj[(int)DetilData.JobCategoryCode]);
+                    int RecCompanyCode = CommonMotions.cnvInt(wrkobj[(int)DetilData.CompanyCode]);
+                    int GridJobCode = CommonMotions.cnvInt(dgv.Rows[iy].Cells[(int)GridColumn.JobCategoryCode].Value);
+                    int GridCompanyCode = CommonMotions.cnvInt(dgv.Rows[iy].Cells[(int)GridColumn.CompanyCode].Value);
+
+                    // 行に対象データがあればセットする
+                    if (RecJobCode == GridJobCode && RecCompanyCode == GridCompanyCode) 
+                    {
+                        RetRow = dgv.Rows[iy];
+                        break;
+                    }
+                }
+                // 行に対象データが無ければ新たに行を作成する
+                if (RetRow == null)
+                {
+                    int CategoryCode = CommonMotions.cnvInt(wrkobj[(int)DetilData.JobCategoryCode]);
+                    string CategoryName = CommonMotions.cnvString(wrkobj[(int)DetilData.JobCategoryName]);
+                    
+                    int CompanyCode = CommonMotions.cnvInt(wrkobj[(int)DetilData.CompanyCode]);
+                    string CompanyName =CommonMotions.cnvString(wrkobj[(int)DetilData.CompanyName]);
+                    // 自社は文字セット
+                    if (CompanyCode == s_OwnData.Key) CompanyName = s_OwnData.Value;
+
+                    int RowCount = dgv.Rows.Add(icnt++, CategoryCode, CategoryName, CompanyCode, CompanyName, 0);
+                    RetRow = dgv.Rows[RowCount];
+                }
+
+                return RetRow;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return RetRow;
+            }
+        }
+        #endregion
+
+        //マウスのクリック位置を記憶
+        private Point mousePoint;
+
+        #region マウスダウン
+        /// <summary>
+        /// マウスのボタンが押されたとき
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmNumberOfWorkers_MouseDown(object sender, MouseEventArgs e)
+        {
+            if ((e.Button & MouseButtons.Left) == MouseButtons.Left)
+            {
+                //位置を記憶する
+                mousePoint = new Point(e.X, e.Y);
+            }
+        }
+        #endregion
+
+        #region マウスムーブ
+        /// <summary>
+        /// マウスが動いたとき
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmNumberOfWorkers_MouseMove(object sender, MouseEventArgs e)
+        {
+            if ((e.Button & MouseButtons.Left) == MouseButtons.Left)
+            {
+                this.Left += e.X - mousePoint.X;
+                this.Top += e.Y - mousePoint.Y;
+            }
+        }
+        #endregion
+    }
+}
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNumberOfWorkers.resx
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNumberOfWorkers.resx	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmNumberOfWorkers.resx	(revision 6)
@@ -0,0 +1,138 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubConJobDiag.Designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubConJobDiag.Designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubConJobDiag.Designer.cs	(revision 6)
@@ -49,11 +49,13 @@
             this.tabPage2 = new System.Windows.Forms.TabPage();
             this.panel2 = new System.Windows.Forms.Panel();
             this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
-            this.cmbJapaneseSyllabary = new System.Windows.Forms.ComboBox();
+            this.cmbLabour = new System.Windows.Forms.ComboBox();
+            this.label26 = new System.Windows.Forms.Label();
             this.btnMyCompany = new System.Windows.Forms.Button();
             this.label1 = new System.Windows.Forms.Label();
             this.cmbIJobType = new System.Windows.Forms.ComboBox();
             this.label2 = new System.Windows.Forms.Label();
+            this.cmbJapaneseSyllabary = new System.Windows.Forms.ComboBox();
             this.dgvSearch = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -228,7 +230,7 @@
             this.panel2.Controls.Add(this.tableLayoutPanel1);
             this.panel2.Location = new System.Drawing.Point(6, 5);
             this.panel2.Name = "panel2";
-            this.panel2.Size = new System.Drawing.Size(620, 110);
+            this.panel2.Size = new System.Drawing.Size(620, 140);
             this.panel2.TabIndex = 19;
             // 
             // tableLayoutPanel1
@@ -236,31 +238,48 @@
             this.tableLayoutPanel1.ColumnCount = 2;
             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F));
             this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 75F));
-            this.tableLayoutPanel1.Controls.Add(this.cmbJapaneseSyllabary, 1, 1);
-            this.tableLayoutPanel1.Controls.Add(this.btnMyCompany, 0, 2);
+            this.tableLayoutPanel1.Controls.Add(this.cmbLabour, 1, 1);
+            this.tableLayoutPanel1.Controls.Add(this.label26, 0, 1);
+            this.tableLayoutPanel1.Controls.Add(this.btnMyCompany, 0, 3);
             this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
             this.tableLayoutPanel1.Controls.Add(this.cmbIJobType, 1, 0);
-            this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
+            this.tableLayoutPanel1.Controls.Add(this.label2, 0, 2);
+            this.tableLayoutPanel1.Controls.Add(this.cmbJapaneseSyllabary, 1, 2);
             this.tableLayoutPanel1.Location = new System.Drawing.Point(48, 4);
             this.tableLayoutPanel1.Name = "tableLayoutPanel1";
-            this.tableLayoutPanel1.RowCount = 3;
+            this.tableLayoutPanel1.RowCount = 4;
             this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
             this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
             this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
-            this.tableLayoutPanel1.Size = new System.Drawing.Size(520, 100);
+            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+            this.tableLayoutPanel1.Size = new System.Drawing.Size(520, 130);
             this.tableLayoutPanel1.TabIndex = 1;
             // 
-            // cmbJapaneseSyllabary
+            // cmbLabour
             // 
-            this.cmbJapaneseSyllabary.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbJapaneseSyllabary.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbJapaneseSyllabary.FormattingEnabled = true;
-            this.cmbJapaneseSyllabary.Location = new System.Drawing.Point(133, 33);
-            this.cmbJapaneseSyllabary.Name = "cmbJapaneseSyllabary";
-            this.cmbJapaneseSyllabary.Size = new System.Drawing.Size(100, 24);
-            this.cmbJapaneseSyllabary.TabIndex = 2;
-            this.cmbJapaneseSyllabary.SelectedIndexChanged += new System.EventHandler(this.cmbJapaneseSyllabary_SelectedIndexChanged);
+            this.cmbLabour.Dock = System.Windows.Forms.DockStyle.Left;
+            this.cmbLabour.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbLabour.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbLabour.FormattingEnabled = true;
+            this.cmbLabour.Location = new System.Drawing.Point(133, 33);
+            this.cmbLabour.Name = "cmbLabour";
+            this.cmbLabour.Size = new System.Drawing.Size(160, 24);
+            this.cmbLabour.TabIndex = 1;
+            this.cmbLabour.SelectedIndexChanged += new System.EventHandler(this.cmbLabour_SelectedIndexChanged);
             // 
+            // label26
+            // 
+            this.label26.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+            this.label26.BackColor = System.Drawing.Color.White;
+            this.label26.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label26.Location = new System.Drawing.Point(3, 30);
+            this.label26.Name = "label26";
+            this.label26.Size = new System.Drawing.Size(124, 30);
+            this.label26.TabIndex = 5;
+            this.label26.Text = "協力業者";
+            this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // btnMyCompany
             // 
             this.btnMyCompany.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
@@ -270,10 +289,10 @@
             this.tableLayoutPanel1.SetColumnSpan(this.btnMyCompany, 2);
             this.btnMyCompany.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.btnMyCompany.ForeColor = System.Drawing.Color.White;
-            this.btnMyCompany.Location = new System.Drawing.Point(3, 63);
+            this.btnMyCompany.Location = new System.Drawing.Point(3, 93);
             this.btnMyCompany.Name = "btnMyCompany";
             this.btnMyCompany.Size = new System.Drawing.Size(514, 34);
-            this.btnMyCompany.TabIndex = 4;
+            this.btnMyCompany.TabIndex = 3;
             this.btnMyCompany.Text = "自　社　選　択";
             this.btnMyCompany.UseVisualStyleBackColor = false;
             this.btnMyCompany.Click += new System.EventHandler(this.btnMyCompany_Click);
@@ -280,11 +299,10 @@
             // 
             // label1
             // 
-            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
+            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
             this.label1.BackColor = System.Drawing.Color.White;
             this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label1.Location = new System.Drawing.Point(3, 0);
+            this.label1.Location = new System.Drawing.Point(3, 1);
             this.label1.Name = "label1";
             this.label1.Size = new System.Drawing.Size(124, 27);
             this.label1.TabIndex = 0;
@@ -304,11 +322,10 @@
             // 
             // label2
             // 
-            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
+            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
             this.label2.BackColor = System.Drawing.Color.White;
             this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label2.Location = new System.Drawing.Point(3, 30);
+            this.label2.Location = new System.Drawing.Point(3, 61);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(124, 27);
             this.label2.TabIndex = 1;
@@ -315,6 +332,17 @@
             this.label2.Text = "50音順";
             this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // cmbJapaneseSyllabary
+            // 
+            this.cmbJapaneseSyllabary.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbJapaneseSyllabary.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbJapaneseSyllabary.FormattingEnabled = true;
+            this.cmbJapaneseSyllabary.Location = new System.Drawing.Point(133, 63);
+            this.cmbJapaneseSyllabary.Name = "cmbJapaneseSyllabary";
+            this.cmbJapaneseSyllabary.Size = new System.Drawing.Size(100, 24);
+            this.cmbJapaneseSyllabary.TabIndex = 2;
+            this.cmbJapaneseSyllabary.SelectedIndexChanged += new System.EventHandler(this.cmbJapaneseSyllabary_SelectedIndexChanged);
+            // 
             // dgvSearch
             // 
             this.dgvSearch.AllowUserToAddRows = false;
@@ -336,7 +364,7 @@
             this.Column2,
             this.Column3});
             this.dgvSearch.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
-            this.dgvSearch.Location = new System.Drawing.Point(6, 123);
+            this.dgvSearch.Location = new System.Drawing.Point(6, 153);
             this.dgvSearch.MultiSelect = false;
             this.dgvSearch.Name = "dgvSearch";
             this.dgvSearch.RowHeadersVisible = false;
@@ -344,8 +372,9 @@
             this.dgvSearch.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
             this.dgvSearch.RowTemplate.Height = 21;
             this.dgvSearch.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.dgvSearch.Size = new System.Drawing.Size(620, 460);
+            this.dgvSearch.Size = new System.Drawing.Size(620, 430);
             this.dgvSearch.TabIndex = 18;
+            this.dgvSearch.TabStop = false;
             this.dgvSearch.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSearch_CellDoubleClick);
             // 
             // Column1
@@ -434,5 +463,7 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
         private System.Windows.Forms.Button btnMyCompany;
+        private System.Windows.Forms.Label label26;
+        private System.Windows.Forms.ComboBox cmbLabour;
     }
 }
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubConJobDiag.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubConJobDiag.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubConJobDiag.cs	(revision 6)
@@ -325,6 +325,7 @@
                 if (m_InitFlg) return;
 
                 cmbJapaneseSyllabary.SelectedIndex = -1;
+                cmbLabour.SelectedIndex = -1;
 
                 string strSQL = " Where CompanyCode In (Select CompanyCode From SUBCONTRACTORJOBLINK";
                 strSQL += string.Format("  Where JobCategoryCode = {0})", CommonMotions.cnvInt(cmbIJobType.SelectedValue));
@@ -352,6 +353,7 @@
                 if (m_InitFlg) return;
 
                 cmbIJobType.SelectedIndex = -1;
+                cmbLabour.SelectedIndex = -1;
 
                 string strSQL = " Where JapaneseSyllabary = '" + cmbJapaneseSyllabary.SelectedValue.ToString() + "'";
                 strSQL += " Order By DisplayOrder";
@@ -365,6 +367,34 @@
         }
         #endregion
 
+        #region 手間業者コンボボックスチェンジ
+        /// <summary>
+        /// 手間業者コンボボックスチェンジ
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void cmbLabour_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            try
+            {
+                if (m_InitFlg) return;
+
+                cmbJapaneseSyllabary.SelectedIndex = -1;
+                cmbIJobType.SelectedIndex = -1;
+
+                string strSQL = string.Format(" Where labourKind = {0}", cmbLabour.SelectedValue);
+                strSQL += " Order By DisplayOrder";
+                // データ表示
+                DispMasterGridData(strSQL);
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region 初期表示
         /// <summary>
         /// マスタ検索グリッド初期設定
@@ -377,6 +407,8 @@
             SetcmbSubConJob();
             // 50音順セット
             SetcmbcmbJapaneseSyllabary();
+            // 手間業者セット
+            SetcmbcmbLabout();
         }
         #endregion
 
@@ -653,6 +685,34 @@
         }
         #endregion
 
+        #region 手間業者コンボボックスセット
+        /// <summary>
+        /// 手間業者コンボボックスセット
+        /// </summary>
+        private void SetcmbcmbLabout()
+        {
+            try
+            {
+
+                // データセット
+                List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
+                DataList.Add(new KeyValuePair<int, string>(-1, ""));
+
+                foreach (KeyValuePair<int, string> SetValue in CommonDefine.s_SubContractorKind)
+                {
+                    DataList.Add(new KeyValuePair<int, string>(SetValue.Key, SetValue.Value));
+                }
+
+                // コンボボックス初期表示
+                ComboBoxAction.InitDataSetCombBox(cmbLabour, DataList);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region 描画関連
         /// <summary>
         /// タブの描画
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.Designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.Designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.Designer.cs	(revision 6)
@@ -28,14 +28,14 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle46 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle47 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle48 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
             this.btnSelect = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
             this.tabControl1 = new System.Windows.Forms.TabControl();
@@ -50,19 +50,19 @@
             this.tabPage2 = new System.Windows.Forms.TabPage();
             this.panel2 = new System.Windows.Forms.Panel();
             this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
+            this.cmbLabour = new System.Windows.Forms.ComboBox();
+            this.label26 = new System.Windows.Forms.Label();
             this.btnVariable = new System.Windows.Forms.Button();
-            this.cmbJapaneseSyllabary = new System.Windows.Forms.ComboBox();
             this.btnMyCompany = new System.Windows.Forms.Button();
             this.label1 = new System.Windows.Forms.Label();
             this.cmbItemType = new System.Windows.Forms.ComboBox();
             this.label2 = new System.Windows.Forms.Label();
+            this.cmbJapaneseSyllabary = new System.Windows.Forms.ComboBox();
             this.dgvSearch = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.label26 = new System.Windows.Forms.Label();
-            this.cmbLabour = new System.Windows.Forms.ComboBox();
             this.tabControl1.SuspendLayout();
             this.tabPage1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvHistory)).BeginInit();
@@ -156,14 +156,14 @@
             this.dgvHistory.AllowUserToResizeColumns = false;
             this.dgvHistory.AllowUserToResizeRows = false;
             this.dgvHistory.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle45.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle45.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle45.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold);
-            dataGridViewCellStyle45.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle45.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle45.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle45.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvHistory.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle45;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold);
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvHistory.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
             this.dgvHistory.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvHistory.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.dataGridViewTextBoxColumn1,
@@ -185,8 +185,8 @@
             // 
             // dataGridViewTextBoxColumn1
             // 
-            dataGridViewCellStyle46.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle46;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle2;
             this.dataGridViewTextBoxColumn1.Frozen = true;
             this.dataGridViewTextBoxColumn1.HeaderText = "No.";
             this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
@@ -194,8 +194,8 @@
             // 
             // dataGridViewTextBoxColumn2
             // 
-            dataGridViewCellStyle47.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle47;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle3;
             this.dataGridViewTextBoxColumn2.Frozen = true;
             this.dataGridViewTextBoxColumn2.HeaderText = "コード";
             this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
@@ -205,9 +205,9 @@
             // 
             // dataGridViewTextBoxColumn3
             // 
-            dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle48.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle48;
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle4.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle4;
             this.dataGridViewTextBoxColumn3.Frozen = true;
             this.dataGridViewTextBoxColumn3.HeaderText = "名　　称";
             this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
@@ -271,6 +271,30 @@
             this.tableLayoutPanel1.Size = new System.Drawing.Size(520, 160);
             this.tableLayoutPanel1.TabIndex = 1;
             // 
+            // cmbLabour
+            // 
+            this.cmbLabour.Dock = System.Windows.Forms.DockStyle.Left;
+            this.cmbLabour.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbLabour.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbLabour.FormattingEnabled = true;
+            this.cmbLabour.Location = new System.Drawing.Point(133, 33);
+            this.cmbLabour.Name = "cmbLabour";
+            this.cmbLabour.Size = new System.Drawing.Size(160, 24);
+            this.cmbLabour.TabIndex = 22;
+            this.cmbLabour.SelectedIndexChanged += new System.EventHandler(this.cmbLabour_SelectedIndexChanged);
+            // 
+            // label26
+            // 
+            this.label26.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+            this.label26.BackColor = System.Drawing.Color.White;
+            this.label26.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label26.Location = new System.Drawing.Point(3, 31);
+            this.label26.Name = "label26";
+            this.label26.Size = new System.Drawing.Size(124, 27);
+            this.label26.TabIndex = 4;
+            this.label26.Text = "協力業者";
+            this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // btnVariable
             // 
             this.btnVariable.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
@@ -288,18 +312,6 @@
             this.btnVariable.UseVisualStyleBackColor = false;
             this.btnVariable.Click += new System.EventHandler(this.btnVariable_Click);
             // 
-            // cmbJapaneseSyllabary
-            // 
-            this.cmbJapaneseSyllabary.Dock = System.Windows.Forms.DockStyle.Left;
-            this.cmbJapaneseSyllabary.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbJapaneseSyllabary.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbJapaneseSyllabary.FormattingEnabled = true;
-            this.cmbJapaneseSyllabary.Location = new System.Drawing.Point(133, 63);
-            this.cmbJapaneseSyllabary.Name = "cmbJapaneseSyllabary";
-            this.cmbJapaneseSyllabary.Size = new System.Drawing.Size(100, 24);
-            this.cmbJapaneseSyllabary.TabIndex = 2;
-            this.cmbJapaneseSyllabary.SelectedIndexChanged += new System.EventHandler(this.cmbJapaneseSyllabary_SelectedIndexChanged);
-            // 
             // btnMyCompany
             // 
             this.btnMyCompany.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
@@ -319,12 +331,12 @@
             // 
             // label1
             // 
+            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
             this.label1.BackColor = System.Drawing.Color.White;
             this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.label1.Location = new System.Drawing.Point(3, 0);
+            this.label1.Location = new System.Drawing.Point(3, 1);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(124, 30);
+            this.label1.Size = new System.Drawing.Size(124, 27);
             this.label1.TabIndex = 0;
             this.label1.Text = "工　種";
             this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -342,9 +354,10 @@
             // 
             // label2
             // 
+            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
             this.label2.BackColor = System.Drawing.Color.White;
             this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label2.Location = new System.Drawing.Point(3, 60);
+            this.label2.Location = new System.Drawing.Point(3, 61);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(124, 27);
             this.label2.TabIndex = 1;
@@ -351,6 +364,18 @@
             this.label2.Text = "50音順";
             this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // cmbJapaneseSyllabary
+            // 
+            this.cmbJapaneseSyllabary.Dock = System.Windows.Forms.DockStyle.Left;
+            this.cmbJapaneseSyllabary.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbJapaneseSyllabary.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbJapaneseSyllabary.FormattingEnabled = true;
+            this.cmbJapaneseSyllabary.Location = new System.Drawing.Point(133, 63);
+            this.cmbJapaneseSyllabary.Name = "cmbJapaneseSyllabary";
+            this.cmbJapaneseSyllabary.Size = new System.Drawing.Size(100, 24);
+            this.cmbJapaneseSyllabary.TabIndex = 2;
+            this.cmbJapaneseSyllabary.SelectedIndexChanged += new System.EventHandler(this.cmbJapaneseSyllabary_SelectedIndexChanged);
+            // 
             // dgvSearch
             // 
             this.dgvSearch.AllowUserToAddRows = false;
@@ -358,14 +383,14 @@
             this.dgvSearch.AllowUserToResizeColumns = false;
             this.dgvSearch.AllowUserToResizeRows = false;
             this.dgvSearch.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle41.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle41.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle41.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold);
-            dataGridViewCellStyle41.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle41.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle41.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle41.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvSearch.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle41;
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold);
+            dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvSearch.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
             this.dgvSearch.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvSearch.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Column1,
@@ -387,8 +412,8 @@
             // 
             // Column1
             // 
-            dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle42;
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle6;
             this.Column1.Frozen = true;
             this.Column1.HeaderText = "No.";
             this.Column1.Name = "Column1";
@@ -396,8 +421,8 @@
             // 
             // Column2
             // 
-            dataGridViewCellStyle43.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.Column2.DefaultCellStyle = dataGridViewCellStyle43;
+            dataGridViewCellStyle7.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle7;
             this.Column2.Frozen = true;
             this.Column2.HeaderText = "会社コード";
             this.Column2.Name = "Column2";
@@ -407,9 +432,9 @@
             // 
             // Column3
             // 
-            dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle44.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle44;
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle8.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle8;
             this.Column3.Frozen = true;
             this.Column3.HeaderText = "会　社　名　称";
             this.Column3.Name = "Column3";
@@ -426,29 +451,6 @@
             this.Column5.Visible = false;
             this.Column5.Width = 5;
             // 
-            // label26
-            // 
-            this.label26.BackColor = System.Drawing.Color.White;
-            this.label26.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label26.Location = new System.Drawing.Point(3, 30);
-            this.label26.Name = "label26";
-            this.label26.Size = new System.Drawing.Size(124, 30);
-            this.label26.TabIndex = 4;
-            this.label26.Text = "協力業者";
-            this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // cmbLabour
-            // 
-            this.cmbLabour.Dock = System.Windows.Forms.DockStyle.Left;
-            this.cmbLabour.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbLabour.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbLabour.FormattingEnabled = true;
-            this.cmbLabour.Location = new System.Drawing.Point(133, 33);
-            this.cmbLabour.Name = "cmbLabour";
-            this.cmbLabour.Size = new System.Drawing.Size(160, 24);
-            this.cmbLabour.TabIndex = 22;
-            this.cmbLabour.SelectedIndexChanged += new System.EventHandler(this.cmbLabour_SelectedIndexChanged);
-            // 
             // FrmSubContractorDiag
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.cs	(revision 6)
@@ -1015,8 +1015,10 @@
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
                 DataList.Add(new KeyValuePair<int, string>(-1, ""));
 
-                DataList.Add(new KeyValuePair<int, string>((int)CommonDefine.SubContractorPaymentKind.Normal, "通　常　業　者"));
-                DataList.Add(new KeyValuePair<int, string>((int)CommonDefine.SubContractorPaymentKind.Labor, "手　間　業　者"));
+                foreach (KeyValuePair<int, string> SetValue in CommonDefine.s_SubContractorKind)
+                {
+                    DataList.Add(new KeyValuePair<int, string>(SetValue.Key, SetValue.Value));
+                }
 
                 // コンボボックス初期表示
                 ComboBoxAction.InitDataSetCombBox(cmbLabour, DataList);
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.resx
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.resx	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.resx	(revision 6)
@@ -117,28 +117,28 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
 </root>
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmValueOfOrder.Designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmValueOfOrder.Designer.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmValueOfOrder.Designer.cs	(revision 6)
@@ -0,0 +1,390 @@
+﻿namespace ProcessManagement.Forms.SubForms
+{
+    partial class FrmValueOfOrderDiag
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.btnEnd = new System.Windows.Forms.Button();
+            this.btnEntry = new System.Windows.Forms.Button();
+            this.label30 = new System.Windows.Forms.Label();
+            this.textBox001 = new System.Windows.Forms.TextBox();
+            this.label27 = new System.Windows.Forms.Label();
+            this.textBox002 = new System.Windows.Forms.TextBox();
+            this.label1 = new System.Windows.Forms.Label();
+            this.textBox003 = new System.Windows.Forms.TextBox();
+            this.dgvMaster = new System.Windows.Forms.DataGridView();
+            this.Column0 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.label2 = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
+            this.lbl001 = new System.Windows.Forms.Label();
+            this.lbl002 = new System.Windows.Forms.Label();
+            this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
+            ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // btnEnd
+            // 
+            this.btnEnd.BackColor = System.Drawing.Color.Blue;
+            this.btnEnd.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnEnd.ForeColor = System.Drawing.Color.White;
+            this.btnEnd.Location = new System.Drawing.Point(892, 294);
+            this.btnEnd.Name = "btnEnd";
+            this.btnEnd.Size = new System.Drawing.Size(120, 30);
+            this.btnEnd.TabIndex = 6;
+            this.btnEnd.Text = "終　了";
+            this.btnEnd.UseVisualStyleBackColor = false;
+            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
+            // 
+            // btnEntry
+            // 
+            this.btnEntry.BackColor = System.Drawing.Color.Green;
+            this.btnEntry.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnEntry.ForeColor = System.Drawing.Color.White;
+            this.btnEntry.Location = new System.Drawing.Point(764, 294);
+            this.btnEntry.Name = "btnEntry";
+            this.btnEntry.Size = new System.Drawing.Size(120, 30);
+            this.btnEntry.TabIndex = 4;
+            this.btnEntry.Text = "実　行";
+            this.btnEntry.UseVisualStyleBackColor = false;
+            this.btnEntry.Click += new System.EventHandler(this.btnEntry_Click);
+            // 
+            // label30
+            // 
+            this.label30.BackColor = System.Drawing.Color.MidnightBlue;
+            this.label30.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label30.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label30.ForeColor = System.Drawing.Color.Gold;
+            this.label30.Location = new System.Drawing.Point(470, 50);
+            this.label30.Name = "label30";
+            this.label30.Size = new System.Drawing.Size(160, 40);
+            this.label30.TabIndex = 192;
+            this.label30.Text = "変更後　税込金額";
+            this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // textBox001
+            // 
+            this.textBox001.BackColor = System.Drawing.Color.White;
+            this.textBox001.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.textBox001.ForeColor = System.Drawing.Color.Black;
+            this.textBox001.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBox001.Location = new System.Drawing.Point(180, 53);
+            this.textBox001.MaxLength = 12;
+            this.textBox001.Name = "textBox001";
+            this.textBox001.Size = new System.Drawing.Size(274, 34);
+            this.textBox001.TabIndex = 0;
+            this.textBox001.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            this.textBox001.TextChanged += new System.EventHandler(this.textBox_TextChanged);
+            this.textBox001.Validated += new System.EventHandler(this.textBox_Validated);
+            // 
+            // label27
+            // 
+            this.label27.BackColor = System.Drawing.Color.MidnightBlue;
+            this.label27.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label27.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label27.ForeColor = System.Drawing.Color.Gold;
+            this.label27.Location = new System.Drawing.Point(12, 50);
+            this.label27.Name = "label27";
+            this.label27.Size = new System.Drawing.Size(160, 40);
+            this.label27.TabIndex = 191;
+            this.label27.Text = "変更後　税別金額";
+            this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // textBox002
+            // 
+            this.textBox002.BackColor = System.Drawing.Color.White;
+            this.textBox002.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.textBox002.ForeColor = System.Drawing.Color.Black;
+            this.textBox002.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.textBox002.Location = new System.Drawing.Point(638, 53);
+            this.textBox002.MaxLength = 12;
+            this.textBox002.Name = "textBox002";
+            this.textBox002.Size = new System.Drawing.Size(274, 34);
+            this.textBox002.TabIndex = 1;
+            this.textBox002.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            this.textBox002.TextChanged += new System.EventHandler(this.textBox_TextChanged);
+            this.textBox002.Validated += new System.EventHandler(this.textBox_Validated);
+            // 
+            // label1
+            // 
+            this.label1.BackColor = System.Drawing.Color.MidnightBlue;
+            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label1.ForeColor = System.Drawing.Color.Gold;
+            this.label1.Location = new System.Drawing.Point(12, 90);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(160, 40);
+            this.label1.TabIndex = 193;
+            this.label1.Text = "変更理由";
+            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // textBox003
+            // 
+            this.textBox003.BackColor = System.Drawing.Color.White;
+            this.textBox003.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.textBox003.ForeColor = System.Drawing.Color.Black;
+            this.textBox003.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.textBox003.Location = new System.Drawing.Point(180, 95);
+            this.textBox003.MaxLength = 200;
+            this.textBox003.Name = "textBox003";
+            this.textBox003.Size = new System.Drawing.Size(832, 34);
+            this.textBox003.TabIndex = 2;
+            this.textBox003.TextChanged += new System.EventHandler(this.textBox_TextChanged);
+            // 
+            // dgvMaster
+            // 
+            this.dgvMaster.AllowUserToAddRows = false;
+            this.dgvMaster.AllowUserToDeleteRows = false;
+            this.dgvMaster.AllowUserToResizeColumns = false;
+            this.dgvMaster.AllowUserToResizeRows = false;
+            this.dgvMaster.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold);
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgvMaster.ColumnHeadersHeight = 24;
+            this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column0,
+            this.Column1,
+            this.Column2,
+            this.Column3,
+            this.Column4,
+            this.Column5,
+            this.Column6});
+            this.dgvMaster.Location = new System.Drawing.Point(12, 140);
+            this.dgvMaster.Name = "dgvMaster";
+            this.dgvMaster.RowHeadersVisible = false;
+            this.dgvMaster.RowHeadersWidth = 20;
+            this.dgvMaster.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dgvMaster.RowTemplate.Height = 24;
+            this.dgvMaster.Size = new System.Drawing.Size(1000, 146);
+            this.dgvMaster.TabIndex = 3;
+            this.dgvMaster.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvMaster_CellClick);
+            // 
+            // Column0
+            // 
+            this.Column0.Frozen = true;
+            this.Column0.HeaderText = "枝番";
+            this.Column0.Name = "Column0";
+            this.Column0.ReadOnly = true;
+            this.Column0.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column0.Visible = false;
+            // 
+            // Column1
+            // 
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle2.NullValue = "false";
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
+            this.Column1.Frozen = true;
+            this.Column1.HeaderText = "変更日";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column1.Width = 120;
+            // 
+            // Column2
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle3;
+            this.Column2.Frozen = true;
+            this.Column2.HeaderText = "変更前　金額";
+            this.Column2.Name = "Column2";
+            this.Column2.ReadOnly = true;
+            this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column2.Width = 160;
+            // 
+            // Column3
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle4;
+            this.Column3.Frozen = true;
+            this.Column3.HeaderText = "変更後　金額";
+            this.Column3.Name = "Column3";
+            this.Column3.ReadOnly = true;
+            this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column3.Width = 160;
+            // 
+            // Column4
+            // 
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column4.DefaultCellStyle = dataGridViewCellStyle5;
+            this.Column4.Frozen = true;
+            this.Column4.HeaderText = "変更理由";
+            this.Column4.Name = "Column4";
+            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column4.Width = 540;
+            // 
+            // Column5
+            // 
+            this.Column5.Frozen = true;
+            this.Column5.HeaderText = "変更前税込";
+            this.Column5.Name = "Column5";
+            this.Column5.ReadOnly = true;
+            this.Column5.Visible = false;
+            this.Column5.Width = 5;
+            // 
+            // Column6
+            // 
+            this.Column6.Frozen = true;
+            this.Column6.HeaderText = "変更後税込";
+            this.Column6.Name = "Column6";
+            this.Column6.ReadOnly = true;
+            this.Column6.Visible = false;
+            this.Column6.Width = 5;
+            // 
+            // label2
+            // 
+            this.label2.BackColor = System.Drawing.Color.LightGoldenrodYellow;
+            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label2.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label2.ForeColor = System.Drawing.Color.Black;
+            this.label2.Location = new System.Drawing.Point(12, 10);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(160, 40);
+            this.label2.TabIndex = 194;
+            this.label2.Text = "変更前　税別金額";
+            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label3
+            // 
+            this.label3.BackColor = System.Drawing.Color.LightGoldenrodYellow;
+            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label3.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label3.ForeColor = System.Drawing.Color.Black;
+            this.label3.Location = new System.Drawing.Point(470, 10);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(160, 40);
+            this.label3.TabIndex = 195;
+            this.label3.Text = "変更前　税込金額";
+            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // lbl001
+            // 
+            this.lbl001.BackColor = System.Drawing.Color.White;
+            this.lbl001.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbl001.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold);
+            this.lbl001.ForeColor = System.Drawing.Color.Black;
+            this.lbl001.Location = new System.Drawing.Point(180, 13);
+            this.lbl001.Name = "lbl001";
+            this.lbl001.Size = new System.Drawing.Size(274, 34);
+            this.lbl001.TabIndex = 196;
+            this.lbl001.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // lbl002
+            // 
+            this.lbl002.BackColor = System.Drawing.Color.White;
+            this.lbl002.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbl002.Font = new System.Drawing.Font("ＭＳ 明朝", 20.25F, System.Drawing.FontStyle.Bold);
+            this.lbl002.ForeColor = System.Drawing.Color.Black;
+            this.lbl002.Location = new System.Drawing.Point(638, 13);
+            this.lbl002.Name = "lbl002";
+            this.lbl002.Size = new System.Drawing.Size(274, 34);
+            this.lbl002.TabIndex = 197;
+            this.lbl002.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // FrmValueOfOrderDiag
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.BackColor = System.Drawing.Color.Black;
+            this.ClientSize = new System.Drawing.Size(1024, 331);
+            this.Controls.Add(this.lbl002);
+            this.Controls.Add(this.lbl001);
+            this.Controls.Add(this.label3);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.label30);
+            this.Controls.Add(this.textBox003);
+            this.Controls.Add(this.textBox002);
+            this.Controls.Add(this.label27);
+            this.Controls.Add(this.textBox001);
+            this.Controls.Add(this.dgvMaster);
+            this.Controls.Add(this.btnEntry);
+            this.Controls.Add(this.btnEnd);
+            this.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+            this.KeyPreview = true;
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "FrmValueOfOrderDiag";
+            this.ShowIcon = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Text = "受注金額変更処理";
+            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmValueOfOrderDiag_FormClosing);
+            this.Load += new System.EventHandler(this.FrmValueOfOrder_Load);
+            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmValueOfOrderDiag_KeyDown);
+            ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button btnEnd;
+        private System.Windows.Forms.Button btnEntry;
+        private System.Windows.Forms.Label label30;
+        private System.Windows.Forms.Label label27;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.TextBox textBox001;
+        private System.Windows.Forms.TextBox textBox002;
+        private System.Windows.Forms.TextBox textBox003;
+        private System.Windows.Forms.DataGridView dgvMaster;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column0;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Label lbl001;
+        private System.Windows.Forms.Label lbl002;
+        private System.Windows.Forms.ToolTip toolTip1;
+    }
+}
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmValueOfOrder.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmValueOfOrder.cs	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmValueOfOrder.cs	(revision 6)
@@ -0,0 +1,813 @@
+﻿using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+using System.Collections;
+
+namespace ProcessManagement.Forms.SubForms
+{
+    public partial class FrmValueOfOrderDiag : Form
+    {
+        #region ログ使用定義
+        //log4netログを使用する
+        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+        /// <summary>
+        /// 表示カラム
+        /// </summary>
+        private enum DispGridColumn
+        {
+            SeqNo = 0,
+            ChangeDate,
+            BeforePrice,
+            AfterPrice,
+            ChangeComment,
+            BeforePriceTax,
+            AfterPriceTax,
+        }
+
+        /// <summary>
+        /// 表示固定行数
+        /// </summary>
+        private static int s_TempRowCnt = 5;
+        
+        #endregion
+
+        #region 変数
+        /// <summary>
+        /// フィールド値変化フラグ
+        /// </summary>
+        private bool m_bChengeAns = false;
+
+        /// <summary>
+        /// 工事番号
+        /// </summary>
+        private int m_ConstructionCode = 0;
+
+        /// <summary>
+        /// 変更可能フラグ
+        /// </summary>
+        private bool m_EditFalg = false;
+
+        /// <summary>
+        /// 変更受注税抜金額
+        /// </summary>
+        private int m_OrdersDecisionPrice = 0;
+
+        /// <summary>
+        /// 変更受注税込金額
+        /// </summary>
+        private int m_OrdersDecisionPriceInTax = 0;
+
+        /// <summary>
+        /// 変更コメント
+        /// </summary>
+        private string m_ChanngeComment = string.Empty;
+
+        /// <summary>
+        /// 終了状態フラグ
+        /// </summary>
+        private DialogResult m_EndButton = DialogResult.None;
+
+        /// <summary>
+        /// 該当工事基本情報
+        /// </summary>
+        private ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo();
+
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        /// 工事番号
+        /// </summary>
+        public int ConstructionCode
+        {
+            get { return m_ConstructionCode; }
+            set { m_ConstructionCode = value; }
+        }
+
+        /// <summary>
+        /// 変更可能フラグ
+        /// </summary>
+        public bool EditFalg
+        {
+            get { return m_EditFalg; }
+            set { m_EditFalg = value; }
+        }
+
+        /// <summary>
+        /// 受注税抜金額
+        /// </summary>
+        public int OrdersDecisionPrice
+        {
+            get { return m_OrdersDecisionPrice; }
+            set { m_OrdersDecisionPrice = value; }
+        }
+
+        /// <summary>
+        /// 受注税込金額
+        /// </summary>
+        public int OrdersDecisionPriceInTax
+        {
+            get { return m_OrdersDecisionPriceInTax; }
+            set { m_OrdersDecisionPriceInTax = value; }
+        }
+
+        /// <summary>
+        /// 変更コメント
+        /// </summary>
+        public string ChanngeComment
+        {
+            get { return m_ChanngeComment; }
+            set { m_ChanngeComment = value; }
+        }
+
+        /// <summary>
+        /// 終了ボタン押下
+        /// </summary>
+        public DialogResult EndButton
+        {
+            get { return m_EndButton; }
+        }
+
+        #endregion
+
+        #region フォーム初期化
+        /// <summary>
+        /// フォーム初期化
+        /// </summary>
+        public FrmValueOfOrderDiag()
+        {
+            InitializeComponent();
+        }
+        #endregion
+
+        #region フォームロード
+        /// <summary>
+        /// フォームロード
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmValueOfOrder_Load(object sender, EventArgs e)
+        {
+            // フォームサイズ固定
+            this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height);
+
+            // 工事情報取得
+            if (!GetBaseInfoData())
+            {
+                MessageBox.Show("工事基本情報が存在しません。", "エラー表示", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                this.Close();
+                return;
+            }
+
+            // 初期表示
+            InitDataLoad();
+
+            // 編集モード設定
+            InitFormat();
+        }
+        #endregion
+
+        #region 編集モード設定
+        /// <summary>
+        /// 編集モード設定
+        /// </summary>
+        private void InitFormat()
+        {
+            textBox001.ReadOnly = !m_EditFalg;
+            textBox002.ReadOnly = !m_EditFalg;
+            textBox003.ReadOnly = !m_EditFalg;
+            btnEntry.Visible = m_EditFalg;
+        }
+        #endregion
+
+        #region フォームキーダウン
+        /// <summary>
+        /// フォームキーダウン
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmValueOfOrderDiag_KeyDown(object sender, KeyEventArgs e)
+        {
+            //Enterキーが押されているか確認
+            if (e.KeyCode == Keys.Enter)
+            {
+                //あたかもTabキーが押されたかのようにする。
+                // Shiftが押されている時は前のコントロールへフォーカスを移動
+                this.ProcessTabKey(!e.Shift);
+
+                e.Handled = true;
+                //.NET Framework 2.0以降
+                e.SuppressKeyPress = true;
+            }
+        }
+        #endregion
+
+        #region セルクリック時
+        /// <summary>
+        /// セルクリック時
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvMaster_CellClick(object sender, DataGridViewCellEventArgs e)
+        {
+            try
+            {
+                if (m_bChengeAns)
+                {
+                    if (MessageBox.Show("入力したデータを破棄しますか？。", "データ表示確認"
+                                    , MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) return;
+                }
+
+                DataGridView dgv = dgvMaster;
+                DataGridViewRow dgvRow = dgv.CurrentRow;
+
+                // 空白チェック
+                if (!BlanckRowCheck(dgvRow)) return;
+                // グリッドクリック以外は処理しない
+                if (e.RowIndex < 0) return;
+
+                // 編集領域クリア
+                ClearEditArea();
+
+                // 変更後受注税抜金額
+                lbl001.Text = CommonMotions.cnvString(dgvRow.Cells[(int)DispGridColumn.BeforePrice].Value);
+
+                // 変更後受注税込金額
+                lbl002.Text = CommonMotions.cnvString(dgvRow.Cells[(int)DispGridColumn.BeforePriceTax].Value);
+
+                // 変更後受注税抜金額
+                textBox001.Text = CommonMotions.cnvString(dgvRow.Cells[(int)DispGridColumn.AfterPrice].Value);
+                textBox001.ReadOnly = true;
+
+                // 変更後受注税込金額
+                textBox002.Text = CommonMotions.cnvString(dgvRow.Cells[(int)DispGridColumn.AfterPriceTax].Value);
+                textBox002.ReadOnly = true;
+
+                // 変更コメント
+                textBox003.Text = CommonMotions.cnvString(dgvRow.Cells[(int)DispGridColumn.ChangeComment].Value);
+                textBox003.ReadOnly = true;
+
+                //ツールチップを表示するコントロールと、表示するメッセージ
+                toolTip1.SetToolTip(textBox003, textBox003.Text);
+
+                m_bChengeAns = false;
+
+                btnEntry.Visible = false;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 終了ボタン押下
+        /// <summary>
+        /// 終了ボタン押下
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnEnd_Click(object sender, EventArgs e)
+        {
+            m_EndButton = DialogResult.No;
+            this.Close();
+        }
+        #endregion
+
+        #region 実行ボタン押下
+        /// <summary>
+        /// 実行ボタン押下
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnEntry_Click(object sender, EventArgs e)
+        {
+            // 金額変更
+            if (!EntryValueOfOrder()) return;
+
+            m_EndButton = DialogResult.OK;
+            this.Close();
+        }
+        #endregion
+
+        #region 編集領域クリア
+        /// <summary>
+        /// 編集領域クリア
+        /// </summary>
+        private void ClearEditArea()
+        {
+            try
+            {
+                lbl001.Text = "0";
+                lbl002.Text = "0";
+                textBox001.Text = "0";
+                textBox002.Text = "0";
+                textBox003.Text = string.Empty;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 初期表示処理
+        /// <summary>
+        /// 初期表示処理
+        /// </summary>
+        private void InitDataLoad()
+        {
+            try
+            {
+                // グリッドの行を0に戻す
+                dgvMaster.Rows.Clear();
+
+                // 現在受注金額表示
+                SetInitOrderValue();
+                
+                // 一覧表示
+                ItemListDisplay();
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 現在受注金額表示
+        /// <summary>
+        /// 現在受注金額表示
+        /// </summary>
+        private void SetInitOrderValue()
+        {
+            try
+            {
+                // 編集エリアクリア
+                ClearEditArea();
+
+                // 現在受注金額表示
+                lbl001.Text = m_ConstructionBaseInfo.OrdersDecisionPrice.ToString("#,0");
+                lbl002.Text = m_ConstructionBaseInfo.OrdersDecisionPriceInTax.ToString("#,0");
+
+                m_bChengeAns = false;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 受注金額変更一覧
+        /// <summary>
+        /// 受注金額変更一覧
+        /// </summary>
+        private void ItemListDisplay()
+        {
+            IOOrdersPriceData PriceDB = new IOOrdersPriceData();
+            try
+            {
+                DataGridView dgv = dgvMaster;
+                dgv.Rows.Clear();
+
+                // 進行中案件を検索する
+                string strSQL = PriceDB.CreatePrimarykeyString(m_ConstructionCode);
+                strSQL += " ORDER BY ChangeNo Desc";
+
+                List<OrdersPriceData> PriceList = new List<OrdersPriceData>();
+                if (!PriceDB.SelectAction(strSQL, ref PriceList)) return;
+
+                // 要素表示
+                foreach (OrdersPriceData wrk in PriceList)
+                {
+                    // データ表示
+                    dgv.Rows.Add(wrk.ChangeNo,
+                                        wrk.ChangeDate.ToShortDateString(),
+                                        wrk.BeforeValue.ToString("#,0"),
+                                        wrk.AfterValue.ToString("#,0"),
+                                        wrk.ChangeComment,
+                                        wrk.BeforeValueInTax.ToString("#,0"),
+                                        wrk.AfterValueInTax.ToString("#,0"));
+                }
+                // 表示行が足りない場合の表示
+                if (dgv.Rows.Count < s_TempRowCnt)
+                {
+                    int AddRowCnt = s_TempRowCnt - dgv.Rows.Count;
+                    string strDummy = string.Empty;
+                    for (int ix = 0; ix < AddRowCnt; ix++)
+                    {
+                        int rowCnt = dgv.Rows.Add(strDummy, strDummy, strDummy, strDummy);
+                        dgv.Rows[rowCnt].ReadOnly = true;
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                PriceDB.close(); PriceDB = null;
+            }
+        }
+        #endregion
+
+        #region グリッド空行チェック
+        /// <summary>
+        /// グリッド空行チェック
+        /// </summary>
+        /// <param name="row"></param>
+        /// <returns></returns>
+        private bool BlanckRowCheck(DataGridViewRow row)
+        {
+            try
+            {
+                // 空欄チェック
+                if (CommonMotions.chkObjectIsNull(row.Cells[(int)DispGridColumn.AfterPrice].Value)) return false;
+                if (CommonMotions.chkObjectIsNull(row.Cells[(int)DispGridColumn.BeforePrice].Value)) return false;
+                if (CommonMotions.cnvString(row.Cells[(int)DispGridColumn.ChangeComment].Value).Length == 0) return false;
+
+                if (CommonMotions.cnvInt(row.Cells[(int)DispGridColumn.AfterPrice].Value) == 0
+                    && CommonMotions.cnvInt(row.Cells[(int)DispGridColumn.BeforePrice].Value) == 0) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 金額変更
+        /// <summary>
+        /// 金額変更
+        /// </summary>
+        /// <returns></returns>
+        private bool EntryValueOfOrder()
+        {
+            try
+            {
+                // エラーチェック
+                if (!DispFeildCheck()) return false;
+
+                DataGridView dgv = dgvMaster;
+
+                dgv.Rows.Insert(0, 1);
+
+                DataGridViewRow dgvRow = dgv.Rows[0];
+
+                dgvRow.Cells[(int)DispGridColumn.BeforePrice].Value = CommonMotions.cnvInt(lbl001.Text).ToString("#,0");
+                dgvRow.Cells[(int)DispGridColumn.BeforePriceTax].Value = CommonMotions.cnvInt(lbl002.Text).ToString("#,0");
+
+                if (CommonMotions.cnvDate(dgvRow.Cells[(int)DispGridColumn.ChangeDate].Value) == DateTime.MinValue)
+                    dgvRow.Cells[(int)DispGridColumn.ChangeDate].Value = DateTime.Now.ToShortDateString();
+
+                dgvRow.Cells[(int)DispGridColumn.AfterPrice].Value = CommonMotions.cnvInt(textBox001.Text).ToString("#,0");
+                dgvRow.Cells[(int)DispGridColumn.AfterPriceTax].Value = CommonMotions.cnvInt(textBox002.Text).ToString("#,0");
+                
+                dgvRow.Cells[(int)DispGridColumn.ChangeComment].Value = textBox003.Text;
+
+                // 変更金額登録
+                if (!ChangePriceValue())
+                {
+                    MessageBox.Show("受注金額登録に失敗しました。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return false;
+                }
+
+                m_bChengeAns = false;
+
+                // プロパティ値セット
+                m_OrdersDecisionPrice = CommonMotions.cnvInt(textBox001.Text);
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 受注金額変更処理
+        /// <summary>
+        /// 受注金額変更処理
+        /// </summary>
+        /// <param name="BaseChange">基本情報変更フラグ</param>
+        /// <returns></returns>
+        private bool ChangePriceValue()
+        {
+            IOOrdersPriceData PriceDB = new IOOrdersPriceData();
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            try
+            {
+                DataGridView dgv = dgvMaster;
+                DataGridViewRow dgvRow = dgv.CurrentRow;
+
+                PriceDB.connect(); PriceDB.beginTran();
+                BaseDB.connect(); BaseDB.beginTran();
+
+                // 受注金額登録
+                if (!OrdersPriceDataInsert(PriceDB))
+                {
+                    PriceDB.rollback();
+                    return false;
+                }
+
+                // 工事基本情報受注金額変更
+                if (!BaseOrdersDecisionChange(BaseDB))
+                {
+                    BaseDB.rollback();
+                    PriceDB.rollback();
+                    return false;
+                }
+
+                PriceDB.commit();
+                BaseDB.commit();
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                PriceDB.close(); PriceDB = null;
+                BaseDB.close(); BaseDB = null;
+            }
+        }
+        #endregion
+
+        #region 変更金額履歴登録
+        /// <summary>
+        /// 変更金額履歴登録
+        /// </summary>
+        /// <returns></returns>
+        private bool OrdersPriceDataInsert(IOOrdersPriceData PriceDB)
+        {
+            try
+            {
+                // 変更番号取得
+                string strSQL = PriceDB.CreatePrimarykeyString(m_ConstructionCode);
+                int MaxSeq = PriceDB.SelectMaxAddDataCount(strSQL, false) + 1;
+
+                // データ追加
+                OrdersPriceData PriceRec = new OrdersPriceData();
+                PriceRec.ConstructionCode = m_ConstructionCode;
+                PriceRec.ChangeNo = MaxSeq;
+                PriceRec.ChangeDate = DateTime.Now;
+                PriceRec.ChangePersonCode = CommonMotions.LoginUserData.PersonCode;
+                PriceRec.ChangePersonName = CommonMotions.LoginUserData.PersonName;
+
+                PriceRec.BeforeValue = CommonMotions.cnvInt(lbl001.Text);
+                PriceRec.BeforeValueInTax = CommonMotions.cnvInt(lbl002.Text);
+
+                PriceRec.AfterValue = CommonMotions.cnvInt(textBox001.Text);
+                PriceRec.AfterValueInTax = CommonMotions.cnvInt(textBox002.Text);
+                PriceRec.ChangeComment = CommonMotions.cnvString(textBox003.Text);
+
+                if (!PriceDB.InsertAction(PriceRec, false))
+                {
+                    return false;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 工事基本情報受注金額変更
+        /// <summary>
+        /// 工事基本情報受注金額変更
+        /// </summary>
+        /// <param name="BaseDB"></param>
+        /// <returns></returns>
+        private bool BaseOrdersDecisionChange(IOConstructionBaseInfo BaseDB)
+        {
+            try
+            {
+                // 現在受注金額表示
+                lbl001.Text = m_ConstructionBaseInfo.OrdersDecisionPrice.ToString("#,0");
+                lbl002.Text = m_ConstructionBaseInfo.OrdersDecisionPriceInTax.ToString("#,0");
+
+                // 税抜受注金額変更
+                if (!BaseDB.UpdateFeild(m_ConstructionCode,
+                                    (int)IOConstructionBaseInfo.TableColumn.ORDERS_DECISION_PRICE,
+                                        CommonMotions.cnvInt(textBox001.Text), false)) return false;
+
+                // 税込受注金額変更
+                if (!BaseDB.UpdateFeild(m_ConstructionCode,
+                                    (int)IOConstructionBaseInfo.TableColumn.ORDERS_DECISION_PRICE_IN_TAX,
+                                        CommonMotions.cnvInt(textBox002.Text), false)) return false;
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 画面項目のチェック
+        /// <summary>
+        /// 画面項目のチェック
+        /// </summary>
+        /// <returns></returns>
+        private bool DispFeildCheck()
+        {
+            bool bAns = true;
+            try
+            {
+                // 受注税抜金額
+                bAns = true;
+                if (textBox001.Text.Length == 0)
+                {
+                    bAns = false;
+                }
+                else
+                {
+                    if (!CommonMotions.chkNumeric(textBox001.Text)) bAns = false;
+                }
+                CommonMotions.chgBackColor(textBox001, bAns);
+                if (!bAns)
+                {
+                    MessageBox.Show("税別受注金額にエラーがあります。", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return false;
+                }
+
+                // 受注税込金額
+                bAns = true;
+                if (textBox002.Text.Length == 0)
+                {
+                    bAns = false;
+                }
+                else
+                {
+                    if (!CommonMotions.chkNumeric(textBox002.Text)) bAns = false;
+                }
+                CommonMotions.chgBackColor(textBox002, bAns);
+                if (!bAns)
+                {
+                    MessageBox.Show("税込受注金額にエラーがあります。", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return false;
+                }
+
+                // 変更コメント
+                bAns = true;
+                if (textBox003.Text.Length == 0)
+                {
+                    bAns = false;
+                }
+                CommonMotions.chgBackColor(textBox003, bAns);
+                if (!bAns)
+                {
+                    MessageBox.Show("変更理由にエラーがあります。", "入力エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return false;
+                }
+
+                return true;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 数字エリア入力後編集
+        /// <summary>
+        /// 数字エリア入力後編集
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void textBox_Validated(object sender, EventArgs e)
+        {
+            try
+            {
+                if (ActiveControl.Name.Equals(btnEnd.Name)) return;
+
+                TextBox txtbox = (TextBox)sender;
+                int iwrk = CommonMotions.cnvInt(txtbox.Text);
+                txtbox.Text = iwrk.ToString("#,0");
+
+                if (txtbox.Name.Equals(textBox001.Name))
+                {
+                    // 税込金額を計算する
+                    double wrkOrdersDecisionPriceInTax = ((double)iwrk * (1.0 + (CommonMotions.SystemMasterData.ConsumptionTax / 100.0)));
+                    textBox002.Text = Math.Round(wrkOrdersDecisionPriceInTax, 0).ToString("#,0");
+                }
+                else
+                {
+                    // 税込金額を計算する
+                    double wrkOrdersDecisionPrice = ((double)iwrk / (1.0 + (CommonMotions.SystemMasterData.ConsumptionTax / 100.0)));
+                    textBox001.Text = Math.Round(wrkOrdersDecisionPrice, 0).ToString("#,0");
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 工事情報取得処理
+        /// <summary>
+        /// 工事情報取得
+        /// </summary>
+        /// <returns></returns>
+        private bool GetBaseInfoData()
+        {
+            IOConstructionBaseInfo cbDB = new IOConstructionBaseInfo();
+            try
+            {
+                string strSQL = cbDB.CreatePrimarykeyString(m_ConstructionCode);
+                if (!cbDB.SelectAction(strSQL, ref m_ConstructionBaseInfo)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                cbDB.close(); cbDB = null;
+            }
+        }
+        #endregion
+
+        #region 編集領域変更時イベント
+        /// <summary>
+        /// 編集領域変更時イベント
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void textBox_TextChanged(object sender, EventArgs e)
+        {
+            try
+            {
+                m_bChengeAns = true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region フォームクローズ処理
+        /// <summary>
+        /// フォームクローズ処理
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmValueOfOrderDiag_FormClosing(object sender, FormClosingEventArgs e)
+        {
+            try
+            {
+                if (m_bChengeAns)
+                {
+                    if (MessageBox.Show("データに変更があります、登録せずに終了してよろしいですか？。", "終了確認"
+                                    , MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
+                    {
+                        e.Cancel = true;
+                        return;
+                    }
+                }
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+    }
+}
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmValueOfOrder.resx
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmValueOfOrder.resx	(nonexistent)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmValueOfOrder.resx	(revision 6)
@@ -0,0 +1,147 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="Column0.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>55</value>
+  </metadata>
+</root>
\ No newline at end of file
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.cs	(revision 6)
@@ -135,7 +135,7 @@
                 {
                     FrmChangePassword wrkFrm = new FrmChangePassword();
                     wrkFrm.PerssonCode = CommonMotions.LoginUserData.PersonCode;
-                    wrkFrm.ShowInTaskbar = false;
+                    //wrkFrm.ShowInTaskbar = false;
                     wrkFrm.ShowDialog();
                     passchange = wrkFrm.EndButton;
                     wrkFrm.Dispose();
@@ -224,14 +224,14 @@
                 m_VersionInfo = FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location);
                 // タイトルの表示
                 // タイトルの表示
-                lblTitile.Text = "";
+                lblTitle.Text = "";
                 for (int i = 0; i < m_VersionInfo.ProductName.Length; i++)
                 {
-                    if (i != 0) lblTitile.Text += "　";
-                    lblTitile.Text += m_VersionInfo.ProductName.Substring(i, 1);
+                    if (i != 0) lblTitle.Text += "　";
+                    lblTitle.Text += m_VersionInfo.ProductName.Substring(i, 1);
                 }
 
-                lblTitile.Text += "　ロ　グ　イ　ン";
+                lblTitle.Text += "　ロ　グ　イ　ン";
 
                 // コンボボックス初期処理
                 SetPersonInChargeCombBox();
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.designer.cs	(revision 6)
@@ -33,7 +33,7 @@
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmLogin));
             this.btnExecuttion = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
-            this.lblTitile = new System.Windows.Forms.Label();
+            this.lblTitle = new System.Windows.Forms.Label();
             this.label2 = new System.Windows.Forms.Label();
             this.cmbUserList = new System.Windows.Forms.ComboBox();
             this.txtPassWord = new System.Windows.Forms.TextBox();
@@ -71,19 +71,19 @@
             this.btnEnd.UseVisualStyleBackColor = true;
             this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
             // 
-            // lblTitile
+            // lblTitle
             // 
-            this.lblTitile.BackColor = System.Drawing.Color.Black;
-            this.lblTitile.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblTitile.Font = new System.Drawing.Font("AR丸ゴシック体E", 14.25F);
-            this.lblTitile.ForeColor = System.Drawing.Color.White;
-            this.lblTitile.Location = new System.Drawing.Point(190, 6);
-            this.lblTitile.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.lblTitile.Name = "lblTitile";
-            this.lblTitile.Size = new System.Drawing.Size(400, 22);
-            this.lblTitile.TabIndex = 7;
-            this.lblTitile.Text = "現　場　監　督　秘　書　ロ　グ　イ　ン";
-            this.lblTitile.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.lblTitle.BackColor = System.Drawing.Color.Black;
+            this.lblTitle.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblTitle.Font = new System.Drawing.Font("AR丸ゴシック体E", 14.25F);
+            this.lblTitle.ForeColor = System.Drawing.Color.White;
+            this.lblTitle.Location = new System.Drawing.Point(190, 6);
+            this.lblTitle.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.lblTitle.Name = "lblTitle";
+            this.lblTitle.Size = new System.Drawing.Size(400, 22);
+            this.lblTitle.TabIndex = 7;
+            this.lblTitle.Text = "現　場　監　督　秘　書　ロ　グ　イ　ン";
+            this.lblTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // label2
             // 
@@ -211,7 +211,7 @@
             this.Controls.Add(this.cmbUserList);
             this.Controls.Add(this.label3);
             this.Controls.Add(this.label2);
-            this.Controls.Add(this.lblTitile);
+            this.Controls.Add(this.lblTitle);
             this.Controls.Add(this.btnExecuttion);
             this.Controls.Add(this.btnEnd);
             this.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
@@ -238,7 +238,7 @@
 
         private System.Windows.Forms.Button btnExecuttion;
         private System.Windows.Forms.Button btnEnd;
-        private System.Windows.Forms.Label lblTitile;
+        private System.Windows.Forms.Label lblTitle;
         private System.Windows.Forms.Label label2;
         private System.Windows.Forms.ComboBox cmbUserList;
         private System.Windows.Forms.TextBox txtPassWord;
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.Designer.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.Designer.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.Designer.cs	(revision 6)
@@ -215,7 +215,7 @@
             this.label25 = new System.Windows.Forms.Label();
             this.btnReLoadDAprroval = new System.Windows.Forms.Button();
             this.ProgressDApproval = new System.Windows.Forms.ProgressBar();
-            this.dgvDocumentApproval = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.dgvApproval = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.ApprovalColumn02 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.ApprovalColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.ApprovalColumn01 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -320,6 +320,10 @@
             this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.tabPage14 = new System.Windows.Forms.TabPage();
+            this.label39 = new System.Windows.Forms.Label();
+            this.numUDNonOrder = new System.Windows.Forms.NumericUpDown();
+            this.label40 = new System.Windows.Forms.Label();
+            this.label41 = new System.Windows.Forms.Label();
             this.btnDataCopyD = new System.Windows.Forms.Button();
             this.ProgressNonOrders = new System.Windows.Forms.ProgressBar();
             this.btnReloadNonOrders = new System.Windows.Forms.Button();
@@ -333,10 +337,14 @@
             this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.tabPage15 = new System.Windows.Forms.TabPage();
+            this.label9 = new System.Windows.Forms.Label();
+            this.numUDCompletion = new System.Windows.Forms.NumericUpDown();
+            this.label10 = new System.Windows.Forms.Label();
+            this.label17 = new System.Windows.Forms.Label();
             this.lblCompTotal02 = new System.Windows.Forms.Label();
             this.lblCompTotal01 = new System.Windows.Forms.Label();
-            this.lblCompTitile02 = new System.Windows.Forms.Label();
-            this.lblCompTitile01 = new System.Windows.Forms.Label();
+            this.lblCompTitle02 = new System.Windows.Forms.Label();
+            this.lblCompTitle01 = new System.Windows.Forms.Label();
             this.ProgressCompletionOfConstruction = new System.Windows.Forms.ProgressBar();
             this.btnReloadCompletionOfConstruction = new System.Windows.Forms.Button();
             this.label14 = new System.Windows.Forms.Label();
@@ -625,7 +633,6 @@
             this.btnMaster3_05 = new System.Windows.Forms.Button();
             this.btnMaster3_11 = new System.Windows.Forms.Button();
             this.btnMaster3_17 = new System.Windows.Forms.Button();
-            this.tabPage13 = new System.Windows.Forms.TabPage();
             this.tabPage23 = new System.Windows.Forms.TabPage();
             this.lblDate = new System.Windows.Forms.Label();
             this.lblVersion = new System.Windows.Forms.Label();
@@ -639,7 +646,7 @@
             this.tabPage7.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvMessageBoard)).BeginInit();
             this.tabPage21.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.dgvDocumentApproval)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvApproval)).BeginInit();
             this.tabPage8.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvSalesInProjects)).BeginInit();
             this.tabPage17.SuspendLayout();
@@ -650,8 +657,10 @@
             ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvConstructionProjects)).BeginInit();
             this.tabPage14.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.numUDNonOrder)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvNonOrders)).BeginInit();
             this.tabPage15.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.numUDCompletion)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvCompletionOfConstruction)).BeginInit();
             this.tabPage10.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvActionSchedule)).BeginInit();
@@ -737,7 +746,6 @@
             this.tabMenu.Controls.Add(this.tabPage19);
             this.tabMenu.Controls.Add(this.tabPage5);
             this.tabMenu.Controls.Add(this.tabPage6);
-            this.tabMenu.Controls.Add(this.tabPage13);
             this.tabMenu.Controls.Add(this.tabPage23);
             this.tabMenu.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.tabMenu.ItemSize = new System.Drawing.Size(90, 26);
@@ -1085,7 +1093,7 @@
             this.tabPage21.Controls.Add(this.label25);
             this.tabPage21.Controls.Add(this.btnReLoadDAprroval);
             this.tabPage21.Controls.Add(this.ProgressDApproval);
-            this.tabPage21.Controls.Add(this.dgvDocumentApproval);
+            this.tabPage21.Controls.Add(this.dgvApproval);
             this.tabPage21.Location = new System.Drawing.Point(4, 30);
             this.tabPage21.Name = "tabPage21";
             this.tabPage21.Size = new System.Drawing.Size(1192, 536);
@@ -1180,19 +1188,19 @@
             this.ProgressDApproval.TabIndex = 33;
             this.ProgressDApproval.Visible = false;
             // 
-            // dgvDocumentApproval
+            // dgvApproval
             // 
-            this.dgvDocumentApproval.AllowUserToAddRows = false;
-            this.dgvDocumentApproval.AllowUserToDeleteRows = false;
-            this.dgvDocumentApproval.AllowUserToResizeColumns = false;
-            this.dgvDocumentApproval.AllowUserToResizeRows = false;
+            this.dgvApproval.AllowUserToAddRows = false;
+            this.dgvApproval.AllowUserToDeleteRows = false;
+            this.dgvApproval.AllowUserToResizeColumns = false;
+            this.dgvApproval.AllowUserToResizeRows = false;
             dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.dgvDocumentApproval.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13;
-            this.dgvDocumentApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            this.dgvApproval.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13;
+            this.dgvApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.dgvDocumentApproval.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
-            this.dgvDocumentApproval.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.dgvApproval.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+            this.dgvApproval.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
             dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
             dataGridViewCellStyle14.Font = new System.Drawing.Font("ＭＳ 明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
@@ -1200,10 +1208,10 @@
             dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
             dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
             dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvDocumentApproval.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
-            this.dgvDocumentApproval.ColumnHeadersHeight = 20;
-            this.dgvDocumentApproval.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            this.dgvDocumentApproval.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.dgvApproval.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
+            this.dgvApproval.ColumnHeadersHeight = 20;
+            this.dgvApproval.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgvApproval.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.ApprovalColumn02,
             this.ApprovalColumn12,
             this.ApprovalColumn01,
@@ -1216,19 +1224,19 @@
             this.ApprovalColumn09,
             this.ApprovalColumn10,
             this.ApprovalColumn11});
-            this.dgvDocumentApproval.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
-            this.dgvDocumentApproval.Location = new System.Drawing.Point(6, 29);
-            this.dgvDocumentApproval.MultiSelect = false;
-            this.dgvDocumentApproval.Name = "dgvDocumentApproval";
-            this.dgvDocumentApproval.ReadOnly = true;
-            this.dgvDocumentApproval.RowHeadersVisible = false;
-            this.dgvDocumentApproval.RowHeadersWidth = 20;
-            this.dgvDocumentApproval.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dgvDocumentApproval.RowTemplate.Height = 20;
-            this.dgvDocumentApproval.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dgvDocumentApproval.Size = new System.Drawing.Size(1180, 464);
-            this.dgvDocumentApproval.TabIndex = 6;
-            this.dgvDocumentApproval.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDocumentApproval_CellDoubleClick);
+            this.dgvApproval.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
+            this.dgvApproval.Location = new System.Drawing.Point(6, 29);
+            this.dgvApproval.MultiSelect = false;
+            this.dgvApproval.Name = "dgvApproval";
+            this.dgvApproval.ReadOnly = true;
+            this.dgvApproval.RowHeadersVisible = false;
+            this.dgvApproval.RowHeadersWidth = 20;
+            this.dgvApproval.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dgvApproval.RowTemplate.Height = 20;
+            this.dgvApproval.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dgvApproval.Size = new System.Drawing.Size(1180, 464);
+            this.dgvApproval.TabIndex = 6;
+            this.dgvApproval.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvApproval_CellDoubleClick);
             // 
             // ApprovalColumn02
             // 
@@ -2608,6 +2616,10 @@
             // tabPage14
             // 
             this.tabPage14.BackColor = System.Drawing.Color.Black;
+            this.tabPage14.Controls.Add(this.label39);
+            this.tabPage14.Controls.Add(this.numUDNonOrder);
+            this.tabPage14.Controls.Add(this.label40);
+            this.tabPage14.Controls.Add(this.label41);
             this.tabPage14.Controls.Add(this.btnDataCopyD);
             this.tabPage14.Controls.Add(this.ProgressNonOrders);
             this.tabPage14.Controls.Add(this.btnReloadNonOrders);
@@ -2619,6 +2631,54 @@
             this.tabPage14.TabIndex = 12;
             this.tabPage14.Text = "非受注工事";
             // 
+            // label39
+            // 
+            this.label39.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.label39.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label39.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label39.ForeColor = System.Drawing.Color.Black;
+            this.label39.Location = new System.Drawing.Point(6, 5);
+            this.label39.Name = "label39";
+            this.label39.Size = new System.Drawing.Size(120, 20);
+            this.label39.TabIndex = 69;
+            this.label39.Text = "営業期";
+            this.label39.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // numUDNonOrder
+            // 
+            this.numUDNonOrder.BackColor = System.Drawing.Color.White;
+            this.numUDNonOrder.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.numUDNonOrder.ForeColor = System.Drawing.Color.Black;
+            this.numUDNonOrder.Location = new System.Drawing.Point(159, 4);
+            this.numUDNonOrder.Name = "numUDNonOrder";
+            this.numUDNonOrder.ReadOnly = true;
+            this.numUDNonOrder.Size = new System.Drawing.Size(80, 23);
+            this.numUDNonOrder.TabIndex = 66;
+            this.numUDNonOrder.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.numUDNonOrder.ValueChanged += new System.EventHandler(this.numUDNonOrder_ValueChanged);
+            // 
+            // label40
+            // 
+            this.label40.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label40.ForeColor = System.Drawing.Color.White;
+            this.label40.Location = new System.Drawing.Point(239, 7);
+            this.label40.Name = "label40";
+            this.label40.Size = new System.Drawing.Size(25, 16);
+            this.label40.TabIndex = 67;
+            this.label40.Text = "期";
+            this.label40.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label41
+            // 
+            this.label41.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label41.ForeColor = System.Drawing.Color.White;
+            this.label41.Location = new System.Drawing.Point(134, 7);
+            this.label41.Name = "label41";
+            this.label41.Size = new System.Drawing.Size(25, 16);
+            this.label41.TabIndex = 68;
+            this.label41.Text = "第";
+            this.label41.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // btnDataCopyD
             // 
             this.btnDataCopyD.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
@@ -2798,10 +2858,14 @@
             // tabPage15
             // 
             this.tabPage15.BackColor = System.Drawing.Color.Black;
+            this.tabPage15.Controls.Add(this.label9);
+            this.tabPage15.Controls.Add(this.numUDCompletion);
+            this.tabPage15.Controls.Add(this.label10);
+            this.tabPage15.Controls.Add(this.label17);
             this.tabPage15.Controls.Add(this.lblCompTotal02);
             this.tabPage15.Controls.Add(this.lblCompTotal01);
-            this.tabPage15.Controls.Add(this.lblCompTitile02);
-            this.tabPage15.Controls.Add(this.lblCompTitile01);
+            this.tabPage15.Controls.Add(this.lblCompTitle02);
+            this.tabPage15.Controls.Add(this.lblCompTitle01);
             this.tabPage15.Controls.Add(this.ProgressCompletionOfConstruction);
             this.tabPage15.Controls.Add(this.btnReloadCompletionOfConstruction);
             this.tabPage15.Controls.Add(this.label14);
@@ -2812,6 +2876,54 @@
             this.tabPage15.TabIndex = 13;
             this.tabPage15.Text = "完了工事";
             // 
+            // label9
+            // 
+            this.label9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label9.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label9.ForeColor = System.Drawing.Color.Black;
+            this.label9.Location = new System.Drawing.Point(6, 5);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(120, 20);
+            this.label9.TabIndex = 65;
+            this.label9.Text = "営業期";
+            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // numUDCompletion
+            // 
+            this.numUDCompletion.BackColor = System.Drawing.Color.White;
+            this.numUDCompletion.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.numUDCompletion.ForeColor = System.Drawing.Color.Black;
+            this.numUDCompletion.Location = new System.Drawing.Point(159, 4);
+            this.numUDCompletion.Name = "numUDCompletion";
+            this.numUDCompletion.ReadOnly = true;
+            this.numUDCompletion.Size = new System.Drawing.Size(80, 23);
+            this.numUDCompletion.TabIndex = 62;
+            this.numUDCompletion.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+            this.numUDCompletion.ValueChanged += new System.EventHandler(this.numUDCompletion_ValueChanged);
+            // 
+            // label10
+            // 
+            this.label10.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label10.ForeColor = System.Drawing.Color.White;
+            this.label10.Location = new System.Drawing.Point(239, 7);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(25, 16);
+            this.label10.TabIndex = 63;
+            this.label10.Text = "期";
+            this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label17
+            // 
+            this.label17.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label17.ForeColor = System.Drawing.Color.White;
+            this.label17.Location = new System.Drawing.Point(134, 7);
+            this.label17.Name = "label17";
+            this.label17.Size = new System.Drawing.Size(25, 16);
+            this.label17.TabIndex = 64;
+            this.label17.Text = "第";
+            this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // lblCompTotal02
             // 
             this.lblCompTotal02.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
@@ -2836,31 +2948,31 @@
             this.lblCompTotal01.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             this.lblCompTotal01.Visible = false;
             // 
-            // lblCompTitile02
+            // lblCompTitle02
             // 
-            this.lblCompTitile02.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.lblCompTitile02.BackColor = System.Drawing.Color.Yellow;
-            this.lblCompTitile02.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblCompTitile02.Location = new System.Drawing.Point(716, 504);
-            this.lblCompTitile02.Name = "lblCompTitile02";
-            this.lblCompTitile02.Size = new System.Drawing.Size(120, 25);
-            this.lblCompTitile02.TabIndex = 48;
-            this.lblCompTitile02.Text = "今期完了金額";
-            this.lblCompTitile02.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            this.lblCompTitile02.Visible = false;
+            this.lblCompTitle02.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.lblCompTitle02.BackColor = System.Drawing.Color.Yellow;
+            this.lblCompTitle02.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblCompTitle02.Location = new System.Drawing.Point(716, 504);
+            this.lblCompTitle02.Name = "lblCompTitle02";
+            this.lblCompTitle02.Size = new System.Drawing.Size(120, 25);
+            this.lblCompTitle02.TabIndex = 48;
+            this.lblCompTitle02.Text = "今期完了金額";
+            this.lblCompTitle02.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.lblCompTitle02.Visible = false;
             // 
-            // lblCompTitile01
+            // lblCompTitle01
             // 
-            this.lblCompTitile01.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.lblCompTitile01.BackColor = System.Drawing.Color.Yellow;
-            this.lblCompTitile01.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblCompTitile01.Location = new System.Drawing.Point(460, 504);
-            this.lblCompTitile01.Name = "lblCompTitile01";
-            this.lblCompTitile01.Size = new System.Drawing.Size(120, 25);
-            this.lblCompTitile01.TabIndex = 49;
-            this.lblCompTitile01.Text = "前期完了金額";
-            this.lblCompTitile01.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            this.lblCompTitile01.Visible = false;
+            this.lblCompTitle01.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.lblCompTitle01.BackColor = System.Drawing.Color.Yellow;
+            this.lblCompTitle01.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblCompTitle01.Location = new System.Drawing.Point(460, 504);
+            this.lblCompTitle01.Name = "lblCompTitle01";
+            this.lblCompTitle01.Size = new System.Drawing.Size(120, 25);
+            this.lblCompTitle01.TabIndex = 49;
+            this.lblCompTitle01.Text = "前期完了金額";
+            this.lblCompTitle01.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.lblCompTitle01.Visible = false;
             // 
             // ProgressCompletionOfConstruction
             // 
@@ -4402,7 +4514,7 @@
             this.btnConstruction00.Name = "btnConstruction00";
             this.btnConstruction00.Size = new System.Drawing.Size(316, 38);
             this.btnConstruction00.TabIndex = 0;
-            this.btnConstruction00.Text = "工事予算書入力";
+            this.btnConstruction00.Text = "工事予算書";
             this.btnConstruction00.UseVisualStyleBackColor = true;
             this.btnConstruction00.Click += new System.EventHandler(this.btnConstruction_Click);
             // 
@@ -4426,13 +4538,12 @@
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.btnConstruction02.BackColor = System.Drawing.Color.Yellow;
-            this.btnConstruction02.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
             this.btnConstruction02.Location = new System.Drawing.Point(4, 179);
             this.btnConstruction02.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnConstruction02.Name = "btnConstruction02";
             this.btnConstruction02.Size = new System.Drawing.Size(316, 38);
             this.btnConstruction02.TabIndex = 2;
-            this.btnConstruction02.Text = "日次管理入力";
+            this.btnConstruction02.Text = "日報管理（各工事）";
             this.btnConstruction02.UseVisualStyleBackColor = false;
             this.btnConstruction02.Click += new System.EventHandler(this.btnConstruction_Click);
             // 
@@ -4460,7 +4571,6 @@
             this.btnConstruction04.Name = "btnConstruction04";
             this.btnConstruction04.Size = new System.Drawing.Size(316, 38);
             this.btnConstruction04.TabIndex = 4;
-            this.btnConstruction04.Text = "発注者打ち合わせ議事録入力";
             this.btnConstruction04.UseVisualStyleBackColor = true;
             this.btnConstruction04.Click += new System.EventHandler(this.btnConstruction_Click);
             // 
@@ -4469,12 +4579,13 @@
             this.btnConstruction10.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnConstruction10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.btnConstruction10.Location = new System.Drawing.Point(382, 355);
             this.btnConstruction10.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnConstruction10.Name = "btnConstruction10";
             this.btnConstruction10.Size = new System.Drawing.Size(316, 38);
             this.btnConstruction10.TabIndex = 10;
-            this.btnConstruction10.UseVisualStyleBackColor = true;
+            this.btnConstruction10.UseVisualStyleBackColor = false;
             this.btnConstruction10.Click += new System.EventHandler(this.btnConstruction_Click);
             // 
             // btnConstruction09
@@ -4501,7 +4612,7 @@
             this.btnConstruction12.Name = "btnConstruction12";
             this.btnConstruction12.Size = new System.Drawing.Size(316, 38);
             this.btnConstruction12.TabIndex = 12;
-            this.btnConstruction12.Text = "注文書入力";
+            this.btnConstruction12.Text = "注文書作成";
             this.btnConstruction12.UseVisualStyleBackColor = true;
             this.btnConstruction12.Click += new System.EventHandler(this.btnConstruction_Click);
             // 
@@ -4570,7 +4681,6 @@
             this.btnConstruction05.Name = "btnConstruction05";
             this.btnConstruction05.Size = new System.Drawing.Size(316, 38);
             this.btnConstruction05.TabIndex = 5;
-            this.btnConstruction05.Text = "社内質疑閲覧入力";
             this.btnConstruction05.UseVisualStyleBackColor = true;
             this.btnConstruction05.Click += new System.EventHandler(this.btnConstruction_Click);
             // 
@@ -4597,7 +4707,6 @@
             this.btnConstruction17.Name = "btnConstruction17";
             this.btnConstruction17.Size = new System.Drawing.Size(316, 38);
             this.btnConstruction17.TabIndex = 17;
-            this.btnConstruction17.Text = "工事日報・議事録・質疑印刷";
             this.btnConstruction17.UseVisualStyleBackColor = true;
             this.btnConstruction17.Click += new System.EventHandler(this.btnConstruction_Click);
             // 
@@ -4619,12 +4728,14 @@
             this.btnConstruction08.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnConstruction08.BackColor = System.Drawing.Color.Yellow;
             this.btnConstruction08.Location = new System.Drawing.Point(382, 179);
             this.btnConstruction08.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnConstruction08.Name = "btnConstruction08";
             this.btnConstruction08.Size = new System.Drawing.Size(316, 38);
             this.btnConstruction08.TabIndex = 8;
-            this.btnConstruction08.UseVisualStyleBackColor = true;
+            this.btnConstruction08.Text = "発注者打ち合わせ議事録入力";
+            this.btnConstruction08.UseVisualStyleBackColor = false;
             this.btnConstruction08.Click += new System.EventHandler(this.btnConstruction_Click);
             // 
             // btnConstruction07
@@ -4632,13 +4743,14 @@
             this.btnConstruction07.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnConstruction07.BackColor = System.Drawing.Color.Yellow;
             this.btnConstruction07.Location = new System.Drawing.Point(382, 91);
             this.btnConstruction07.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnConstruction07.Name = "btnConstruction07";
             this.btnConstruction07.Size = new System.Drawing.Size(316, 38);
             this.btnConstruction07.TabIndex = 7;
-            this.btnConstruction07.Text = "交通費・購入品費";
-            this.btnConstruction07.UseVisualStyleBackColor = true;
+            this.btnConstruction07.Text = "交通費・購入品管理（各工事）";
+            this.btnConstruction07.UseVisualStyleBackColor = false;
             this.btnConstruction07.Click += new System.EventHandler(this.btnConstruction_Click);
             // 
             // label8
@@ -5720,7 +5832,7 @@
             this.tblLayoutMaster.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 44F));
             this.tblLayoutMaster.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 44F));
             this.tblLayoutMaster.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 44F));
-            this.tblLayoutMaster.Size = new System.Drawing.Size(1029, 748);
+            this.tblLayoutMaster.Size = new System.Drawing.Size(876, 748);
             this.tblLayoutMaster.TabIndex = 14;
             this.tblLayoutMaster.MouseEnter += new System.EventHandler(this.tblLayoutMaster_MouseEnter);
             // 
@@ -5732,7 +5844,7 @@
             this.btnMaster_00.Location = new System.Drawing.Point(4, 3);
             this.btnMaster_00.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_00.Name = "btnMaster_00";
-            this.btnMaster_00.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_00.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_00.TabIndex = 0;
             this.btnMaster_00.Text = "会社情報登録";
             this.btnMaster_00.UseVisualStyleBackColor = true;
@@ -5743,10 +5855,10 @@
             this.btnMaster_06.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_06.Location = new System.Drawing.Point(363, 3);
+            this.btnMaster_06.Location = new System.Drawing.Point(309, 3);
             this.btnMaster_06.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_06.Name = "btnMaster_06";
-            this.btnMaster_06.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_06.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_06.TabIndex = 9;
             this.btnMaster_06.Text = "部署登録";
             this.btnMaster_06.UseVisualStyleBackColor = true;
@@ -5757,10 +5869,10 @@
             this.btnMaster_10.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_10.Location = new System.Drawing.Point(363, 355);
+            this.btnMaster_10.Location = new System.Drawing.Point(309, 355);
             this.btnMaster_10.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_10.Name = "btnMaster_10";
-            this.btnMaster_10.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_10.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_10.TabIndex = 13;
             this.btnMaster_10.Text = "法人格登録";
             this.btnMaster_10.UseVisualStyleBackColor = true;
@@ -5771,10 +5883,10 @@
             this.btnMaster_09.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_09.Location = new System.Drawing.Point(363, 267);
+            this.btnMaster_09.Location = new System.Drawing.Point(309, 267);
             this.btnMaster_09.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_09.Name = "btnMaster_09";
-            this.btnMaster_09.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_09.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_09.TabIndex = 12;
             this.btnMaster_09.Text = "車　両　登　録";
             this.btnMaster_09.UseVisualStyleBackColor = true;
@@ -5785,10 +5897,10 @@
             this.btnMaster_08.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_08.Location = new System.Drawing.Point(363, 179);
+            this.btnMaster_08.Location = new System.Drawing.Point(309, 179);
             this.btnMaster_08.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_08.Name = "btnMaster_08";
-            this.btnMaster_08.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_08.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_08.TabIndex = 11;
             this.btnMaster_08.Text = "外注扱い（常雇工）登録";
             this.btnMaster_08.UseVisualStyleBackColor = true;
@@ -5799,10 +5911,10 @@
             this.btnMaster_07.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_07.Location = new System.Drawing.Point(363, 91);
+            this.btnMaster_07.Location = new System.Drawing.Point(309, 91);
             this.btnMaster_07.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_07.Name = "btnMaster_07";
-            this.btnMaster_07.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_07.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_07.TabIndex = 10;
             this.btnMaster_07.Text = "担当者登録";
             this.btnMaster_07.UseVisualStyleBackColor = true;
@@ -5813,10 +5925,10 @@
             this.btnMaster_12.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_12.Location = new System.Drawing.Point(722, 3);
+            this.btnMaster_12.Location = new System.Drawing.Point(614, 3);
             this.btnMaster_12.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_12.Name = "btnMaster_12";
-            this.btnMaster_12.Size = new System.Drawing.Size(303, 38);
+            this.btnMaster_12.Size = new System.Drawing.Size(258, 38);
             this.btnMaster_12.TabIndex = 18;
             this.btnMaster_12.Text = "協力会社登録";
             this.btnMaster_12.UseVisualStyleBackColor = true;
@@ -5827,10 +5939,10 @@
             this.btnMaster_13.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_13.Location = new System.Drawing.Point(722, 91);
+            this.btnMaster_13.Location = new System.Drawing.Point(614, 91);
             this.btnMaster_13.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_13.Name = "btnMaster_13";
-            this.btnMaster_13.Size = new System.Drawing.Size(303, 38);
+            this.btnMaster_13.Size = new System.Drawing.Size(258, 38);
             this.btnMaster_13.TabIndex = 18;
             this.btnMaster_13.Text = "協力会社工種登録";
             this.btnMaster_13.UseVisualStyleBackColor = true;
@@ -5841,10 +5953,10 @@
             this.btnMaster_14.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_14.Location = new System.Drawing.Point(722, 179);
+            this.btnMaster_14.Location = new System.Drawing.Point(614, 179);
             this.btnMaster_14.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_14.Name = "btnMaster_14";
-            this.btnMaster_14.Size = new System.Drawing.Size(303, 38);
+            this.btnMaster_14.Size = new System.Drawing.Size(258, 38);
             this.btnMaster_14.TabIndex = 20;
             this.btnMaster_14.Text = "協力会社職種登録";
             this.btnMaster_14.UseVisualStyleBackColor = true;
@@ -5855,10 +5967,10 @@
             this.btnMaster_15.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_15.Location = new System.Drawing.Point(722, 267);
+            this.btnMaster_15.Location = new System.Drawing.Point(614, 267);
             this.btnMaster_15.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_15.Name = "btnMaster_15";
-            this.btnMaster_15.Size = new System.Drawing.Size(303, 38);
+            this.btnMaster_15.Size = new System.Drawing.Size(258, 38);
             this.btnMaster_15.TabIndex = 21;
             this.btnMaster_15.UseVisualStyleBackColor = true;
             this.btnMaster_15.Click += new System.EventHandler(this.btnMaster_Click);
@@ -5868,10 +5980,10 @@
             this.btnMaster_16.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_16.Location = new System.Drawing.Point(722, 355);
+            this.btnMaster_16.Location = new System.Drawing.Point(614, 355);
             this.btnMaster_16.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_16.Name = "btnMaster_16";
-            this.btnMaster_16.Size = new System.Drawing.Size(303, 38);
+            this.btnMaster_16.Size = new System.Drawing.Size(258, 38);
             this.btnMaster_16.TabIndex = 22;
             this.btnMaster_16.Text = "積算単位登録";
             this.btnMaster_16.UseVisualStyleBackColor = true;
@@ -5882,10 +5994,10 @@
             this.btnMaster_11.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_11.Location = new System.Drawing.Point(363, 443);
+            this.btnMaster_11.Location = new System.Drawing.Point(309, 443);
             this.btnMaster_11.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_11.Name = "btnMaster_11";
-            this.btnMaster_11.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_11.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_11.TabIndex = 14;
             this.btnMaster_11.Text = "発注者区分登録";
             this.btnMaster_11.UseVisualStyleBackColor = true;
@@ -5896,10 +6008,10 @@
             this.btnMaster_17.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_17.Location = new System.Drawing.Point(722, 443);
+            this.btnMaster_17.Location = new System.Drawing.Point(614, 443);
             this.btnMaster_17.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_17.Name = "btnMaster_17";
-            this.btnMaster_17.Size = new System.Drawing.Size(303, 38);
+            this.btnMaster_17.Size = new System.Drawing.Size(258, 38);
             this.btnMaster_17.TabIndex = 23;
             this.btnMaster_17.Text = "積算大項目登録";
             this.btnMaster_17.UseVisualStyleBackColor = true;
@@ -5913,7 +6025,7 @@
             this.btnMaster_05.Location = new System.Drawing.Point(4, 443);
             this.btnMaster_05.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_05.Name = "btnMaster_05";
-            this.btnMaster_05.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_05.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_05.TabIndex = 5;
             this.btnMaster_05.Text = "期　限　登　録";
             this.btnMaster_05.UseVisualStyleBackColor = true;
@@ -5927,7 +6039,7 @@
             this.btnMaster_04.Location = new System.Drawing.Point(4, 355);
             this.btnMaster_04.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_04.Name = "btnMaster_04";
-            this.btnMaster_04.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_04.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_04.TabIndex = 4;
             this.btnMaster_04.Text = "会社休日登録";
             this.btnMaster_04.UseVisualStyleBackColor = true;
@@ -5941,7 +6053,7 @@
             this.btnMaster_03.Location = new System.Drawing.Point(4, 267);
             this.btnMaster_03.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_03.Name = "btnMaster_03";
-            this.btnMaster_03.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_03.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_03.TabIndex = 3;
             this.btnMaster_03.UseVisualStyleBackColor = true;
             this.btnMaster_03.Click += new System.EventHandler(this.btnMaster_Click);
@@ -5954,7 +6066,7 @@
             this.btnMaster_02.Location = new System.Drawing.Point(4, 179);
             this.btnMaster_02.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_02.Name = "btnMaster_02";
-            this.btnMaster_02.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_02.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_02.TabIndex = 2;
             this.btnMaster_02.Text = "工事経費名称登録";
             this.btnMaster_02.UseVisualStyleBackColor = true;
@@ -5968,7 +6080,7 @@
             this.btnMaster_01.Location = new System.Drawing.Point(4, 91);
             this.btnMaster_01.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_01.Name = "btnMaster_01";
-            this.btnMaster_01.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_01.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_01.TabIndex = 1;
             this.btnMaster_01.Text = "工事種別登録";
             this.btnMaster_01.UseVisualStyleBackColor = true;
@@ -5982,7 +6094,7 @@
             this.btnMaster_18.Location = new System.Drawing.Point(4, 531);
             this.btnMaster_18.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_18.Name = "btnMaster_18";
-            this.btnMaster_18.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_18.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_18.TabIndex = 6;
             this.btnMaster_18.UseVisualStyleBackColor = true;
             this.btnMaster_18.Click += new System.EventHandler(this.btnMaster_Click);
@@ -5992,10 +6104,10 @@
             this.btnMaster_19.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_19.Location = new System.Drawing.Point(363, 531);
+            this.btnMaster_19.Location = new System.Drawing.Point(309, 531);
             this.btnMaster_19.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_19.Name = "btnMaster_19";
-            this.btnMaster_19.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_19.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_19.TabIndex = 15;
             this.btnMaster_19.Text = "発注者登録";
             this.btnMaster_19.UseVisualStyleBackColor = true;
@@ -6006,10 +6118,10 @@
             this.btnMaster_20.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_20.Location = new System.Drawing.Point(722, 531);
+            this.btnMaster_20.Location = new System.Drawing.Point(614, 531);
             this.btnMaster_20.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_20.Name = "btnMaster_20";
-            this.btnMaster_20.Size = new System.Drawing.Size(303, 38);
+            this.btnMaster_20.Size = new System.Drawing.Size(258, 38);
             this.btnMaster_20.TabIndex = 24;
             this.btnMaster_20.Text = "積算大・中項目関連登録";
             this.btnMaster_20.UseVisualStyleBackColor = true;
@@ -6023,7 +6135,7 @@
             this.btnMaster_21.Location = new System.Drawing.Point(4, 619);
             this.btnMaster_21.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_21.Name = "btnMaster_21";
-            this.btnMaster_21.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_21.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_21.TabIndex = 7;
             this.btnMaster_21.Text = "売上グラフデータ入力";
             this.btnMaster_21.UseVisualStyleBackColor = true;
@@ -6034,10 +6146,10 @@
             this.btnMaster_22.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_22.Location = new System.Drawing.Point(363, 619);
+            this.btnMaster_22.Location = new System.Drawing.Point(309, 619);
             this.btnMaster_22.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_22.Name = "btnMaster_22";
-            this.btnMaster_22.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_22.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_22.TabIndex = 16;
             this.btnMaster_22.Text = "購入先登録";
             this.btnMaster_22.UseVisualStyleBackColor = true;
@@ -6048,10 +6160,10 @@
             this.btnMaster_23.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_23.Location = new System.Drawing.Point(722, 619);
+            this.btnMaster_23.Location = new System.Drawing.Point(614, 619);
             this.btnMaster_23.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_23.Name = "btnMaster_23";
-            this.btnMaster_23.Size = new System.Drawing.Size(303, 38);
+            this.btnMaster_23.Size = new System.Drawing.Size(258, 38);
             this.btnMaster_23.TabIndex = 25;
             this.btnMaster_23.Text = "積算中項目登録";
             this.btnMaster_23.UseVisualStyleBackColor = true;
@@ -6065,7 +6177,7 @@
             this.btnMaster_24.Location = new System.Drawing.Point(4, 707);
             this.btnMaster_24.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_24.Name = "btnMaster_24";
-            this.btnMaster_24.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_24.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_24.TabIndex = 8;
             this.btnMaster_24.UseVisualStyleBackColor = true;
             this.btnMaster_24.Click += new System.EventHandler(this.btnMaster_Click);
@@ -6075,10 +6187,10 @@
             this.btnMaster_25.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_25.Location = new System.Drawing.Point(363, 707);
+            this.btnMaster_25.Location = new System.Drawing.Point(309, 707);
             this.btnMaster_25.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_25.Name = "btnMaster_25";
-            this.btnMaster_25.Size = new System.Drawing.Size(300, 38);
+            this.btnMaster_25.Size = new System.Drawing.Size(254, 38);
             this.btnMaster_25.TabIndex = 17;
             this.btnMaster_25.Text = "承認経路登録";
             this.btnMaster_25.UseVisualStyleBackColor = true;
@@ -6089,10 +6201,10 @@
             this.btnMaster_26.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnMaster_26.Location = new System.Drawing.Point(722, 707);
+            this.btnMaster_26.Location = new System.Drawing.Point(614, 707);
             this.btnMaster_26.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
             this.btnMaster_26.Name = "btnMaster_26";
-            this.btnMaster_26.Size = new System.Drawing.Size(303, 38);
+            this.btnMaster_26.Size = new System.Drawing.Size(258, 38);
             this.btnMaster_26.TabIndex = 26;
             this.btnMaster_26.Text = "積算小項目登録";
             this.btnMaster_26.UseVisualStyleBackColor = true;
@@ -7009,16 +7121,6 @@
             this.btnMaster3_17.UseVisualStyleBackColor = true;
             this.btnMaster3_17.Click += new System.EventHandler(this.btnMaster3_Click);
             // 
-            // tabPage13
-            // 
-            this.tabPage13.BackColor = System.Drawing.Color.Black;
-            this.tabPage13.ForeColor = System.Drawing.Color.White;
-            this.tabPage13.Location = new System.Drawing.Point(4, 30);
-            this.tabPage13.Name = "tabPage13";
-            this.tabPage13.Size = new System.Drawing.Size(1192, 536);
-            this.tabPage13.TabIndex = 11;
-            this.tabPage13.Text = "参考資料";
-            // 
             // tabPage23
             // 
             this.tabPage23.BackColor = System.Drawing.Color.Black;
@@ -7116,7 +7218,7 @@
             this.tabPage7.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dgvMessageBoard)).EndInit();
             this.tabPage21.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.dgvDocumentApproval)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvApproval)).EndInit();
             this.tabPage8.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dgvSalesInProjects)).EndInit();
             this.tabPage17.ResumeLayout(false);
@@ -7127,8 +7229,10 @@
             ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvConstructionProjects)).EndInit();
             this.tabPage14.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.numUDNonOrder)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvNonOrders)).EndInit();
             this.tabPage15.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.numUDCompletion)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvCompletionOfConstruction)).EndInit();
             this.tabPage10.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dgvActionSchedule)).EndInit();
@@ -7282,7 +7386,6 @@
         private System.Windows.Forms.TabPage tabPage10;
         private System.Windows.Forms.TabPage tabPage11;
         private System.Windows.Forms.TabPage tabPage12;
-        private System.Windows.Forms.TabPage tabPage13;
         private System.Windows.Forms.ToolTip toolTip1;
         private System.Windows.Forms.Button btnReLoadMessage;
         private System.Windows.Forms.Label label8;
@@ -7406,8 +7509,8 @@
         private System.Windows.Forms.Timer timer_StaffAssign;
         private System.Windows.Forms.Label lblCompTotal02;
         private System.Windows.Forms.Label lblCompTotal01;
-        private System.Windows.Forms.Label lblCompTitile02;
-        private System.Windows.Forms.Label lblCompTitile01;
+        private System.Windows.Forms.Label lblCompTitle02;
+        private System.Windows.Forms.Label lblCompTitle01;
         private System.Windows.Forms.Button btnMaster_24;
         private System.Windows.Forms.Button btnMaster_25;
         private System.Windows.Forms.Button btnMaster_26;
@@ -7415,7 +7518,7 @@
         private System.Windows.Forms.TabPage tabPage21;
         private System.Windows.Forms.Button btnReLoadDAprroval;
         private System.Windows.Forms.ProgressBar ProgressDApproval;
-        private CustomControls.DataGridViewEX dgvDocumentApproval;
+        private CustomControls.DataGridViewEX dgvApproval;
         private System.Windows.Forms.Label label27;
         private System.Windows.Forms.Label label26;
         private System.Windows.Forms.Label label25;
@@ -7619,6 +7722,14 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19;
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18;
+        private System.Windows.Forms.Label label9;
+        private System.Windows.Forms.NumericUpDown numUDCompletion;
+        private System.Windows.Forms.Label label10;
+        private System.Windows.Forms.Label label17;
+        private System.Windows.Forms.Label label39;
+        private System.Windows.Forms.NumericUpDown numUDNonOrder;
+        private System.Windows.Forms.Label label40;
+        private System.Windows.Forms.Label label41;
     }
 }
 
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs	(revision 6)
@@ -138,6 +138,7 @@
         private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
         #endregion
 
+        #region 定数
         #region メニュータブと位置を関連付けるEnum
         /// <summary>
         /// メニュータブと位置を関連付けるEnum
@@ -229,10 +230,6 @@
             /// </summary>
             MentenanceMenu3,
             /// <summary>
-            /// 22:参考資料
-            /// </summary>
-            ReferenceData,
-            /// <summary>
             /// 23:資材管理
             /// </summary>
             Materials,
@@ -256,7 +253,6 @@
                                                                                     {"tabPage10", 10},
                                                                                     {"tabPage11", 11},
                                                                                     {"tabPage12", 12},
-                                                                                    {"tabPage13", 13},
                                                                                     {"tabPage14", 14},
                                                                                     {"tabPage15", 15},
                                                                                     {"tabPage16", 16},
@@ -279,7 +275,7 @@
             BranchNumber,
             FromName,
             ToName,
-            MessageTitile,
+            MessageTitle,
             WritingDate,
             Writer,
         }
@@ -289,7 +285,7 @@
             BranchNumber,
             FromName,
             ToName,
-            MessageTitile,
+            MessageTitle,
             MessageContent,
             WritingDate,
             Writer,
@@ -423,6 +419,7 @@
             ApprovalPerson4,
         }
         #endregion
+        #endregion
 
         #region 変数
         /// <summary>
@@ -824,10 +821,60 @@
         /// <param name="e"></param>
         private void btnReLoad_Click(object sender, EventArgs e)
         {
-            // ソートクリア
-            ClearGridSort();
-            // 再表示
-            DisplayGridList();
+            string wrkname = tabMenu.SelectedTab.Name;
+            int Tabcount = MenuTabName[wrkname];
+            switch (Tabcount)
+            {
+                case (int)FrmMenuTabNameEnum.MessageBoard:
+                    // 掲示板データ表示
+                    DispMessageBoard((int)FrmMenuTabNameEnum.MessageBoard);
+                    break;
+                case (int)FrmMenuTabNameEnum.BusinessMessage:
+                    // 業務連絡掲示板表示
+                    DispMessageBoard((int)FrmMenuTabNameEnum.BusinessMessage);
+                    break;
+                case (int)FrmMenuTabNameEnum.Tenders:
+                    // 入札案件一覧情報表示
+                    DispTenders();
+                    break;
+                case (int)FrmMenuTabNameEnum.BudgetUpProjects:
+                    // 予算取り案件一覧情報表示
+                    DispBudgetUpProjects();
+                    break;
+                case (int)FrmMenuTabNameEnum.SalesInProjects:
+                    // 工事案件一覧情報表示
+                    DispSalesInProjects();
+                    break;
+                case (int)FrmMenuTabNameEnum.ConstructionProjects:
+                    // 受注状況一覧表示
+                    DispConstructionProjects();
+                    btnDataCopyE.Visible = true;
+                    break;
+                case (int)FrmMenuTabNameEnum.NonOrders:
+                    // 非受注一覧
+                    DispNonOrders();
+                    break;
+                case (int)FrmMenuTabNameEnum.CompletionOfConstruction:
+                    // 完了工事一覧
+                    DispCompletionOfConstruction();
+                    break;
+                case (int)FrmMenuTabNameEnum.ActionSchedule:
+                    // 行動予定一覧
+                    DispActionList();
+                    break;
+                case (int)FrmMenuTabNameEnum.StaffAssignment:
+                    // 人員配置一覧
+                    DispStaffAssignment();
+                    break;
+                case (int)FrmMenuTabNameEnum.SalesGraph:
+                    // 売上グラフ
+                    DispSalesGraph();
+                    break;
+                case (int)FrmMenuTabNameEnum.DocumentApproval:
+                    // 書類承認
+                    DispDocumentApproval();
+                    break;
+            }
         }
         #endregion
 
@@ -1294,7 +1341,7 @@
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void dgvStaffAssignment_CellTitileOther(DataGridViewCellPaintingEventArgs e, int TitileLine)
+        private void dgvStaffAssignment_CellTitleOther(DataGridViewCellPaintingEventArgs e, int TitleLine)
         {
             try
             {
@@ -1303,10 +1350,10 @@
                 int iColumnCnt = e.ColumnIndex;
                 int iStartCnt = 0;
                 int iEndedCnt = 0;
-                int titilePos = 0;
+                int titlePos = 0;
 
                 // 0行目
-                if (TitileLine == s_StaffAssignMonthLine)
+                if (TitleLine == s_StaffAssignMonthLine)
                 {
                     for (int i = 0; i < m_StaffAssignmentMonthLastLine.Length - 1; i++)
                     {
@@ -1324,7 +1371,7 @@
                     //    iEndedCnt = m_StaffAssignmentMonthLastLine[m_StaffAssignmentMonthLastLine.Length - 1];
                     //}
                 }
-                else if (TitileLine == s_StaffAssignDaysLine)
+                else if (TitleLine == s_StaffAssignDaysLine)
                 {
                     for (int i = 0; i < m_StaffAssignmentDaySplitLine.Length - 1; i++)
                     {
@@ -1343,17 +1390,17 @@
                     //}
                 }
                 // タイトル文字位置退避
-                titilePos = iStartCnt;
+                titlePos = iStartCnt;
 
                 // 先頭位置の取得
-                string strText = CommonMotions.cnvString(dgv[titilePos, TitileLine].Value);
-                Rectangle rect = dgv.GetCellDisplayRectangle(iStartCnt, TitileLine, false);
+                string strText = CommonMotions.cnvString(dgv[titlePos, TitleLine].Value);
+                Rectangle rect = dgv.GetCellDisplayRectangle(iStartCnt, TitleLine, false);
                 if (rect == Rectangle.Empty)
                 {
                     // 表示されている先頭位置を探す
                     for (int i = iStartCnt; i < iEndedCnt; i++)
                     {
-                        rect = dgv.GetCellDisplayRectangle(i, TitileLine, false);
+                        rect = dgv.GetCellDisplayRectangle(i, TitleLine, false);
                         if (rect != Rectangle.Empty)
                         {
                             iStartCnt = i;
@@ -1362,13 +1409,13 @@
                     }
                 }
                 // 最終位置の取得
-                Rectangle Endrect = dgv.GetCellDisplayRectangle(iEndedCnt, TitileLine, false);
+                Rectangle Endrect = dgv.GetCellDisplayRectangle(iEndedCnt, TitleLine, false);
                 if (rect == Rectangle.Empty)
                 {
                     // 表示されている最終位置を探す
                     for (int i = iEndedCnt; iStartCnt < i; i--)
                     {
-                        rect = dgv.GetCellDisplayRectangle(i, TitileLine, false);
+                        rect = dgv.GetCellDisplayRectangle(i, TitleLine, false);
                         if (rect != Rectangle.Empty)
                         {
                             iEndedCnt = i;
@@ -1376,12 +1423,12 @@
                         }
                     }
                 }
-                if (TitileLine == s_StaffAssignMonthLine)
+                if (TitleLine == s_StaffAssignMonthLine)
                 {
                     // タイトル文字幅に足りなければクリア
                     if ((iEndedCnt - iStartCnt) < 10) strText = string.Empty;
                 }
-                else if (TitileLine == s_StaffAssignDaysLine)
+                else if (TitleLine == s_StaffAssignDaysLine)
                 {
                     // タイトル文字幅に足りなければクリア
                     if ((iEndedCnt - iStartCnt) < 5) strText = string.Empty;
@@ -1388,7 +1435,7 @@
                 }
                 
                 // 描画幅セット
-                rect.Width += (iEndedCnt - iStartCnt) * dgv[iStartCnt, TitileLine].Size.Width;
+                rect.Width += (iEndedCnt - iStartCnt) * dgv[iStartCnt, TitleLine].Size.Width;
                 // 背景・タイトル描画
                 rect.X--;
                 rect.Height--;
@@ -1398,7 +1445,7 @@
                                         strText,
                                         e.CellStyle.Font, rect, e.CellStyle.ForeColor,
                                         TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter);
-                //Console.WriteLine(string.Format("dgvStaffAssignment_CellTitileOther 位置：X-{0} Y-{1}", e.ColumnIndex, e.RowIndex));
+                //Console.WriteLine(string.Format("dgvStaffAssignment_CellTitleOther 位置：X-{0} Y-{1}", e.ColumnIndex, e.RowIndex));
             }
             catch (Exception ex)
             {
@@ -1413,7 +1460,7 @@
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void dgvStaffAssignment_CellTitile(DataGridViewCellPaintingEventArgs e, int TitileLine)
+        private void dgvStaffAssignment_CellTitle(DataGridViewCellPaintingEventArgs e, int TitleLine)
         {
             try
             {
@@ -1424,7 +1471,7 @@
                 for (int i = e.ColumnIndex; i < dgv.ColumnCount; i++)
                 {
                     DataGridViewCell cell = null;
-                    cell = dgv[i, TitileLine];
+                    cell = dgv[i, TitleLine];
 
                     // 一つ右のセルの幅を足す
                     rect.Width += cell.Size.Width;
@@ -1434,7 +1481,7 @@
 
                     // セルに文字が入っていれば抜ける
                     DataGridViewCell Nextcell = null;
-                    Nextcell = dgv[(i + 1), TitileLine];
+                    Nextcell = dgv[(i + 1), TitleLine];
                     if (!CommonMotions.chkObjectIsNull(Nextcell.Value)) break;
                 }
                 // 背景・タイトルの描画
@@ -1447,7 +1494,7 @@
                                         e.FormattedValue.ToString(),
                                         e.CellStyle.Font, rect, e.CellStyle.ForeColor,
                                         TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter);
-                //Console.WriteLine(string.Format("dgvStaffAssignment_CellTitile 位置：X-{0} Y-{1}", e.ColumnIndex, e.RowIndex));
+                //Console.WriteLine(string.Format("dgvStaffAssignment_CellTitle 位置：X-{0} Y-{1}", e.ColumnIndex, e.RowIndex));
             }
             catch (Exception ex)
             {
@@ -1500,11 +1547,11 @@
                         if (!CommonMotions.chkObjectIsNull(dgv[e.ColumnIndex, e.RowIndex].Value))
                         {
                             // タイトル描画
-                            dgvStaffAssignment_CellTitile(e, s_StaffAssignMonthLine);
+                            dgvStaffAssignment_CellTitle(e, s_StaffAssignMonthLine);
                         }
                         else
                         {
-                            dgvStaffAssignment_CellTitileOther(e, s_StaffAssignMonthLine);
+                            dgvStaffAssignment_CellTitleOther(e, s_StaffAssignMonthLine);
                         }
                         // イベントハンドラ内で処理を完了したこと通知
                         e.Handled = true;
@@ -1526,11 +1573,11 @@
                         if (!CommonMotions.chkObjectIsNull(dgv[e.ColumnIndex, e.RowIndex].Value))
                         {
                             // タイトル描画
-                            dgvStaffAssignment_CellTitile(e, s_StaffAssignDaysLine);
+                            dgvStaffAssignment_CellTitle(e, s_StaffAssignDaysLine);
                         }
                         else
                         {
-                            dgvStaffAssignment_CellTitileOther(e, s_StaffAssignDaysLine);
+                            dgvStaffAssignment_CellTitleOther(e, s_StaffAssignDaysLine);
                         }
                         // イベントハンドラ内で処理を完了したこと通知
                         e.Handled = true;
@@ -1616,8 +1663,29 @@
         #endregion
         #endregion
 
-        #region 売上グラフ
+        #region 売上グラフ描画禁止フラグ
         /// <summary>
+        /// 売上グラフ描画禁止フラグ
+        /// </summary>
+        private bool bGraphNotDrow = false;
+        #endregion
+
+        #region 売上グラフ期数選択
+        /// <summary>
+        /// 売上グラフ期数選択
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void SalseGraphNum_ValueChanged(object sender, EventArgs e)
+        {
+            if (bGraphNotDrow) return;
+
+            DispSalesGraph(false);
+        }
+        #endregion
+
+        #region 売上グラフ再描画処理
+        /// <summary>
         /// 売上グラフ再描画処理
         /// </summary>
         /// <param name="sender"></param>
@@ -1624,17 +1692,19 @@
         /// <param name="e"></param>
         private void btnReLoadSalesGraph_Click(object sender, EventArgs e)
         {
+            if (bGraphNotDrow) return;
+
             DispSalesGraph(false);
         }
         #endregion
 
-        #region 書類承認
+        #region 承認一覧
         /// <summary>
-        /// 書類承認グリッドクリック時処理
+        /// 承認一覧グリッドクリック時処理
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void dgvDocumentApproval_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
+        private void dgvApproval_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
         {
             bool bExecFlg = false;
             try
@@ -2851,16 +2921,34 @@
         }
         #endregion
 
-        #region 売上グラフ期数選択
+        #region 完了工事営業期数選択
         /// <summary>
-        /// 売上グラフ期数選択
+        /// 完了工事営業期数選択
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
-        private void SalseGraphNum_ValueChanged(object sender, EventArgs e)
+        private void numUDCompletion_ValueChanged(object sender, EventArgs e)
         {
-            DispSalesGraph(false);
+            // 初期時は処理しない
+            if (m_bInitFlg) return;
+            // データ表示
+            DispCompletionOfConstruction();
         }
         #endregion
+
+        #region 非受注工事営業期数選択
+        /// <summary>
+        /// 非受注工事営業期数選択
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void numUDNonOrder_ValueChanged(object sender, EventArgs e)
+        {
+            // 初期時は処理しない
+            if (m_bInitFlg) return;
+            // データ表示
+            DispNonOrders();
+        }
+        #endregion
     }
 }
Index: trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 6)
@@ -84,7 +84,7 @@
                         ClearGridSortStatus(dgvTenders);                                    // ソート退避エリアクリア
                         break;
                     case (int)FrmMenuTabNameEnum.BudgetUpProjects:
-                        ClearGridSortStatus(dgvDocumentApproval);                           // ソート退避エリアクリア
+                        ClearGridSortStatus(dgvApproval);                           // ソート退避エリアクリア
                         break;
                     case (int)FrmMenuTabNameEnum.SalesInProjects:
                         ClearGridSortStatus(dgvSalesInProjects);                            // ソート退避エリアクリア
@@ -160,10 +160,12 @@
                         break;
                     case (int)FrmMenuTabNameEnum.NonOrders:
                         // 非受注一覧
+                        SetInitNumUDData(numUDNonOrder);        // 営業期選択ボックス初期設定
                         DispNonOrders();
                         break;
                     case (int)FrmMenuTabNameEnum.CompletionOfConstruction:
                         // 完了工事一覧
+                        SetInitNumUDData(numUDCompletion);      // 営業期選択ボックス初期設定
                         DispCompletionOfConstruction();
                         btnDataCopyE.Visible = true;
                         break;
@@ -226,17 +228,6 @@
                     m_tabManager.PageArray[i].Visible = true;
                 }
 
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.MessageBoard, false);
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.SalesInProjects, false);
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.ConstructionProjects, false);
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.CompletionOfConstruction, false);
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.ActionSchedule, false);
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.StaffAssignment, false);
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.SalesGraph, false);
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.DocumentApproval, false);
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.ReferenceData, false);
-                //m_tabManager.ChangeTabPageVisible((int)MenuTabAssign.DocumentsToBeBubmitted, false);
-
                 // システム権限によって表示メニューを変更する
                 if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement)
                 {
@@ -320,10 +311,10 @@
                 foreach (TabPage wrkPage in tabMenu.TabPages)
                 {
                     string wrkname = wrkPage.Name;
-                    int Tabcount = MenuTabName[wrkname];
+                    int Tabcount = MenuTabName[wrkname] - 1;
 
                     if (m_Alldgv[Tabcount] == null) continue;
-                    
+
                     // ----- グリッドのサイズを変更する
                     if (m_GridWidthSize[Tabcount] < 0) continue;
 
@@ -336,7 +327,7 @@
                         int NotVisibleSize = 0;
                         for (int i = 0; i < m_Alldgv[Tabcount].ColumnCount; i++)
                         {
-                                if (m_CellSize[Tabcount, i] < 0) continue;
+                            if (m_CellSize[Tabcount, i] < 0) continue;
                             TotalWidth += m_CellSize[Tabcount, i];
                             if (m_Alldgv[Tabcount].Columns[i].Visible)
                             {
@@ -357,6 +348,8 @@
 
                     for (int i = 0; i < m_Alldgv[Tabcount].ColumnCount; i++)
                     {
+                        if (m_Alldgv[Tabcount] == null) continue;
+
                         DataGridViewColumn wrkCol = m_Alldgv[Tabcount].Columns[i];
                         wrkCol.Width = m_CellSize[Tabcount, i] + idifference;
                     }
@@ -511,9 +504,8 @@
         /// </summary>
         /// <param name="wrkRow"></param>
         /// <param name="cnt"></param>
-        private void SetMessageBoardGrid(MessageBoardData wrkRow, int exeflg)
+        private void SetMessageBoardGrid(MessageBoardData wrkRow, int exeflg, string TergetName)
         {
-            IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
             try
             {
                 DataGridView dgv = dgvMessageBoard;
@@ -520,15 +512,6 @@
                 if (exeflg != (int)FrmMenuTabNameEnum.MessageBoard)
                     dgv = dgvBusinessMessage;
 
-                List<MessageBoardTerget> mbtList = new List<MessageBoardTerget>();
-                string strTerget = mbtDB.CreatePrimarykeyString(wrkRow.RecordNumber, wrkRow.BranchNumber);
-                if (!mbtDB.SelectAction(strTerget, ref mbtList)) return;
-                string TergetName = "";
-                foreach (MessageBoardTerget wrkname in mbtList)
-                {
-                    if (TergetName.Length != 0) TergetName += ",";
-                    TergetName += wrkname.ToName;
-                }
                 int cnt = 0;
                 if (exeflg == (int)FrmMenuTabNameEnum.MessageBoard)
                 {
@@ -536,13 +519,13 @@
                                         wrkRow.BranchNumber,
                                         wrkRow.FromName,
                                         TergetName,
-                                        wrkRow.MessageTitile,
+                                        wrkRow.MessageTitle,
                                         wrkRow.WritingDate.ToShortDateString() + " " + wrkRow.WritingDate.ToShortTimeString(),
                                         wrkRow.PersonCode);
                     // ToolTip表示
                     dgv.Rows[cnt].Cells[(int)MessageGridCount.FromName].ToolTipText = wrkRow.FromName;
                     dgv.Rows[cnt].Cells[(int)MessageGridCount.ToName].ToolTipText = TergetName;
-                    dgv.Rows[cnt].Cells[(int)MessageGridCount.MessageTitile].ToolTipText = wrkRow.MessageTitile;
+                    dgv.Rows[cnt].Cells[(int)MessageGridCount.MessageTitle].ToolTipText = wrkRow.MessageTitle;
                     dgv.Rows[cnt].Cells[(int)MessageGridCount.WritingDate].ToolTipText = wrkRow.WritingDate.ToShortDateString() + " " + wrkRow.WritingDate.ToShortTimeString();
                 }
                 else
@@ -551,7 +534,7 @@
                                         wrkRow.BranchNumber,
                                         wrkRow.FromName,
                                         TergetName,
-                                        wrkRow.MessageTitile,
+                                        wrkRow.MessageTitle,
                                         wrkRow.MessageContent,
                                         wrkRow.WritingDate.ToShortDateString() + " " + wrkRow.WritingDate.ToShortTimeString(),
                                         wrkRow.PersonCode);
@@ -558,7 +541,7 @@
                     // ToolTip表示
                     dgv.Rows[cnt].Cells[(int)MessageGridCount2.FromName].ToolTipText = wrkRow.FromName;
                     dgv.Rows[cnt].Cells[(int)MessageGridCount2.ToName].ToolTipText = TergetName;
-                    dgv.Rows[cnt].Cells[(int)MessageGridCount2.MessageTitile].ToolTipText = wrkRow.MessageTitile;
+                    dgv.Rows[cnt].Cells[(int)MessageGridCount2.MessageTitle].ToolTipText = wrkRow.MessageTitle;
                     dgv.Rows[cnt].Cells[(int)MessageGridCount2.MessageContent].ToolTipText = wrkRow.MessageContent;
                     dgv.Rows[cnt].Cells[(int)MessageGridCount2.WritingDate].ToolTipText = wrkRow.WritingDate.ToShortDateString() + " " + wrkRow.WritingDate.ToShortTimeString();
                 }
@@ -580,10 +563,6 @@
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-            finally
-            {
-                mbtDB.close(); mbtDB = null;
-            }
         }
         #endregion
 
@@ -593,37 +572,40 @@
         /// </summary>
         private void DispMessageBoard(int exeflg)
         {
-
             IOMessageBoardData mbdDB = new IOMessageBoardData();
 
             DataGridView dgv = dgvMessageBoard;
-            ProgressBar prgber = UpDateProgress;
-            TabPage tabpage = tabPage7;
-            if (exeflg != (int)FrmMenuTabNameEnum.MessageBoard)
-            {
-                dgv = dgvBusinessMessage;
-                prgber = BusinessProgress;
-                tabpage = tabPage20;
-            }
             try
             {
+                TabPage tabpage = tabPage7;
+                ProgressBar prgber = UpDateProgress;
+                if (exeflg != (int)FrmMenuTabNameEnum.MessageBoard)
+                {
+                    dgv = dgvBusinessMessage;
+                    prgber = BusinessProgress;
+                    tabpage = tabPage20;
+                }
+
                 // 表示先のメッセージを検索する
                 string strSQL = string.Empty;
                 if (exeflg == (int)FrmMenuTabNameEnum.MessageBoard)
-                {
-                    strSQL = " Where WritingDate > Add_Months(sysdate, -3)";
-                    strSQL += " And MessageFlag = 0";
-                    strSQL += " Order By RecordNumber Desc, BranchNumber Asc";
+                {   // 掲示板データ
+                    strSQL = "SELECT A.*, B.TONAME FROM MESSAGEBOARDDATA A, MESSAGEBOARDTERGET B";
+                    strSQL += " Where A.WritingDate > Add_Months(sysdate, -1) And A.MessageFlag = 0";
+                    strSQL += " AND B.RECORDNUMBER = A.RECORDNUMBER AND B.BRANCHNUMBER = A.BRANCHNUMBER";
+                    strSQL += " Order By A.RecordNumber Desc, A.BranchNumber Asc, B.SeqNum ASC";
                 }
                 else
-                {
-                    strSQL += " Where WritingDate > Add_Months(sysdate, -1)";
-                    strSQL += " And MessageFlag = 1";
-                    strSQL += " Order By WritingDate Desc, MessageTitile Asc";
+                {   // 秘書からの連絡
+                    strSQL = "SELECT A.*, B.TONAME FROM MESSAGEBOARDDATA A, MESSAGEBOARDTERGET B";
+                    strSQL += " Where A.WritingDate > (sysdate - 10) And A.MessageFlag = 1";
+                    strSQL += " AND B.RECORDNUMBER = A.RECORDNUMBER AND B.BRANCHNUMBER = A.BRANCHNUMBER";
+                    strSQL += " Order By A.WritingDate Desc, A.MessageTitile Asc, B.SeqNum ASC";
                 }
 
-                List<MessageBoardData> mbdData = new List<MessageBoardData>();
-                if (!mbdDB.SelectAction(strSQL, ref mbdData)) return;
+                ArrayList mbdData = new ArrayList();
+                if (!mbdDB.ExecuteReader(strSQL, ref mbdData)) return;
+                if (mbdData.Count == 0) return;
 
                 prgber.Visible = true;
                 prgber.Minimum = 0;
@@ -635,12 +617,38 @@
                 dgv.RowTemplate.Height = 29;
 
                 int i = 0;
-                foreach (MessageBoardData wrkRow in mbdData)
+                object[] firstRec = (object[])mbdData[0];
+
+                // 掲示板データフィールド数取得
+                int ToNameCnt = Enum.GetNames(typeof(IOMessageBoardData.NameColumn)).Length;
+
+                // １件目のデータ取得
+                int BreakRecordNo = CommonMotions.cnvInt(firstRec[(int)IOMessageBoardData.NameColumn.RecordNumber]);
+                MessageBoardData wrkRow = new MessageBoardData();
+                mbdDB.Reader2Struct(firstRec, ref wrkRow);
+                string TergetName = string.Empty;
+                
+                foreach (object[] DataRec in mbdData)
                 {
+                    if (BreakRecordNo == CommonMotions.cnvInt(DataRec[(int)IOMessageBoardData.NameColumn.RecordNumber]))
+                    {
+                        if (TergetName.Length != 0) TergetName += ",";
+                        TergetName += CommonMotions.cnvString(DataRec[ToNameCnt]);
+                        continue;
+                    }
+
                     // データセット
-                    SetMessageBoardGrid(wrkRow, exeflg);
+                    SetMessageBoardGrid(wrkRow, exeflg, TergetName);
                     i++;
+                    
+                    // ブレイクキーセット
+                    BreakRecordNo = CommonMotions.cnvInt(DataRec[(int)IOMessageBoardData.NameColumn.RecordNumber]);
 
+                    // 次データセット
+                    mbdDB.ClearStruct(ref wrkRow);
+                    mbdDB.Reader2Struct(DataRec, ref wrkRow);
+                    TergetName = CommonMotions.cnvString(DataRec[ToNameCnt]);
+
                     // ProgressBarの値を変更する
                     prgber.Value = i;
                     prgber.Update();
@@ -660,8 +668,6 @@
                 // 空欄追加
                 if (s_PageType1GridRowCount > dgv.RowCount)
                 {
-                    //for (int i = 0; i < s_PageType1GridRowCount - dgvMessageBoard.RowCount; i++)
-                    //    dgvMessageBoard.Rows.Add("", "", "", "", "", "");
                     int AddRowCnt = s_PageType1GridRowCount - dgv.RowCount;
                     if (AddRowCnt != 0) dgv.Rows.Add(AddRowCnt);
                 }
@@ -678,6 +684,308 @@
         #endregion
         #endregion
 
+        #region 承認申請
+        #region 承認申請データを取得する
+        /// <summary>
+        /// 承認申請データを取得する
+        /// </summary>
+        /// <param name="arData"></param>
+        /// <returns></returns>
+        private bool GetDocumentApproval(ref ArrayList arData)
+        {
+            IOProcessApproval paDB = new IOProcessApproval();
+            try
+            {
+                string strLimitedSQL = string.Empty;
+                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
+                {
+                    // 一般ユーザーは自分の承認のみ表示する
+                    strLimitedSQL += string.Format(" And A.PersonCode = {0} ", CommonMotions.LoginUserData.PersonCode);
+                }
+                // ----- 工事案件毎に最大の承認を取得する
+                int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("請求完了")).Key;
+                // 完了工事以外の申請中と承認後7日間のデータを対象とする
+                string strSQL = "SELECT A.APPROVALCODE, A.CONSTRUCTIONCODE, A.PETITIONAPPROVALDATE, A.EntryDate, A.ApprovalLimitDates, A.PERSONCODE, C.PERSONNAME, D.DETAILSTRING, C.DEPARTMENTCODE";
+                strSQL += " FROM PROCESSAPPROVAL A, CONSTRUCTIONBASEINFO B, PERSONINCHARGEMASTER C, CONSTRUCTIONBASEINFODETAIL D";
+                strSQL += string.Format(" WHERE (SEQNO = 1 AND ApprovalStatus != {0})", (int)CommonDefine.ApprovalStatus.Approval);
+                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
+                strSQL += " AND A.PERSONCODE = C.PERSONCODE";
+                strSQL += string.Format(" AND A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE AND D.DETAILNO = {0}",(int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
+
+                strSQL += " UNION SELECT A.APPROVALCODE, A.CONSTRUCTIONCODE, A.PETITIONAPPROVALDATE, A.EntryDate, A.ApprovalLimitDates, A.PERSONCODE, C.PERSONNAME, D.DETAILSTRING, C.DEPARTMENTCODE";
+                strSQL += " FROM  PROCESSAPPROVAL A, CONSTRUCTIONBASEINFO B, PERSONINCHARGEMASTER C, CONSTRUCTIONBASEINFODETAIL D";
+                strSQL += string.Format(" WHERE (SEQNO = 1 AND ApprovalStatus = {0}", (int)CommonDefine.ApprovalStatus.Approval);
+                strSQL += " AND TRUNC(A.UPDATEDATE) >= (TRUNC(SYSDATE) - 7))";
+                strSQL += " AND (A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND B.CONSTRUCTIONSTATUSFLG < {0})", iStatus);
+                strSQL += " AND A.PERSONCODE = C.PERSONCODE";
+                strSQL += string.Format(" AND A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE AND D.DETAILNO = {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
+
+                strSQL += " ORDER BY APPROVALCODE DESC, PETITIONAPPROVALDATE DESC, PERSONCODE ASC";
+                if (!paDB.ExecuteReader(strSQL, ref arData)) return false;
+
+                if (arData.Count == 0) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                paDB.close(); paDB = null;
+            }
+        }
+        #endregion
+
+        #region 書類承認データ並び
+        /// <summary>
+        /// 書類承認データ並び
+        /// </summary>
+        private enum ApprovalDataList
+        {
+            /// <summary>
+            /// 承認処理コード
+            /// </summary>
+            ApprovalCode = 0,
+            /// <summary>
+            /// 工事番号
+            /// </summary>
+            ConstructionCode,
+            /// <summary>
+            /// 承認日付
+            /// </summary>
+            PetitionapprovalDate,
+            /// <summary>
+            /// 申請日
+            /// </summary>
+            EntryDate,
+            /// <summary>
+            /// 承認希望日
+            /// </summary>
+            ApprovalLimitDates,
+            /// <summary>
+            /// 申請者コード
+            /// </summary>
+            PersonCode,
+            /// <summary>
+            /// 申請者名
+            /// </summary>
+            PersonName,
+            /// <summary>
+            /// 工事名称
+            /// </summary>
+            ConstructionName,
+            /// <summary>
+            /// 部署コード
+            /// </summary>
+            DepartmentCode,
+        }
+        #endregion
+        
+        #region 承認者リスト
+        /// <summary>
+        /// 承認者リスト
+        /// </summary>
+        private enum ApprovalerList
+        {
+            ///// <summary>
+            ///// 承認者コード
+            ///// </summary>
+            //ApprovalPerson,
+            ///// <summary>
+            ///// 表示順
+            ///// </summary>
+            //DisplayOrder,
+            ///// <summary>
+            ///// 承認者名
+            ///// </summary>
+            //PersonName,
+            ///// <summary>
+            ///// 部署名
+            ///// </summary>
+            //DepartmentString,
+            ///// <summary>
+            ///// 役職名
+            ///// </summary>
+            //DisplayString,
+            ///// <summary>
+            ///// 承認状態
+            ///// </summary>
+            //ApprovalStatus,
+
+            /// <summary>
+            /// 承認者コード
+            /// </summary>
+            ApprovalPerson,
+            /// <summary>
+            /// 表示順
+            /// </summary>
+            DisplayOrder,
+            /// <summary>
+            /// 承認者名
+            /// </summary>
+            PersonName,
+            /// <summary>
+            /// 承認状態
+            /// </summary>
+            ApprovalStatus,
+        }
+        #endregion
+        
+        #region 書類承認表示処理
+        /// <summary>
+        /// 書類承認表示処理
+        /// </summary>
+        private void DispDocumentApproval()
+        {
+            IOProcessApproval paDB = new IOProcessApproval();
+            IOMPersonInCharge picDB = new IOMPersonInCharge();
+            try
+            {
+                DataGridView dgv = dgvApproval;
+                dgv.Rows.Clear();
+
+                // ----- 工事案件毎に最大の承認を取得する
+                ArrayList arData = new ArrayList();
+                if (!GetDocumentApproval(ref arData)) return;
+
+                ProgressDApproval.Visible = true;
+                ProgressDApproval.Minimum = 0;
+                ProgressDApproval.Maximum = arData.Count;
+                tabPage21.Update();
+
+                // 行を作成する
+                DataGridViewRow[] list = new DataGridViewRow[arData.Count];
+                // データ表示
+                int ino = 1;
+                int iLineCnt = 0;
+                int BreakCode = 0;
+                foreach (object[] objwrk in arData)
+                {
+                    // データ取得
+                    int iConstructionCode = CommonMotions.cnvInt(objwrk[(int)ApprovalDataList.ConstructionCode]);       // 工事番号
+                    int iApprovalCode = CommonMotions.cnvInt(objwrk[(int)ApprovalDataList.ApprovalCode]);               // 承認機能番号
+                    DateTime ApprovalEntryDate = CommonMotions.cnvDate(objwrk[(int)ApprovalDataList.EntryDate]);        // 申請日付
+                    int DepartmentCode = CommonMotions.cnvInt(objwrk[(int)ApprovalDataList.DepartmentCode]);            // 対象部署取得
+                    string strPerson = CommonMotions.cnvString(objwrk[(int)ApprovalDataList.PersonName]);               // 申請者名取得
+                    DateTime ApprovalLimitDates = CommonMotions.cnvDate(objwrk[(int)ApprovalDataList.ApprovalLimitDates].ToString());   // 承認希望日
+
+                    string strLimitDate = string.Empty;
+                    if (ApprovalLimitDates != DateTime.MinValue)
+                    {
+                        strLimitDate = ApprovalLimitDates.ToShortDateString();
+                    }
+
+                    // 処理月で空行を入れる
+                    if (ino == 1)
+                    {
+                        BreakCode = iApprovalCode;
+                    }
+                    if (BreakCode != iApprovalCode)
+                    {
+                        dgv.Rows.Add(1);
+                        BreakCode = iApprovalCode;
+                    }
+
+                    // データセット
+                    int CurRowCnt = dgv.Rows.Add(iConstructionCode,
+                                                    iApprovalCode,
+                                                    ino,
+                                                    CommonMotions.cnvString(objwrk[(int)ApprovalDataList.ConstructionName]),
+                                                    ClsExcute.AppovalList[iApprovalCode],
+                                                    strPerson,
+                                                    ApprovalEntryDate.ToShortDateString(),
+                                                    strLimitDate);
+
+                    // 承認種別と種別名に色を付ける
+                    dgv.Rows[CurRowCnt].Cells[(int)DocumentApprovalGridCount.ApprovalName].Style.BackColor = ClsExcute.ApprovalTypeColorList[iApprovalCode];
+
+                    // 承認者取得
+                    string strSQL = "SELECT A.APPROVALPERSON, A.DISPLAYORDER, B.PERSONNAME, NVL(D.APPROVALSTATUS, 4)";
+                    strSQL += " FROM APPROVALMASTER A Left Join PROCESSAPPROVAL D";
+                    strSQL += string.Format(" ON D.CONSTRUCTIONCODE = {0} AND D.APPROVALCODE = {1}", iConstructionCode, iApprovalCode);
+                    strSQL += " AND D.SEQNO != 1 And D.PERSONCODE = A.APPROVALPERSON,";
+                    strSQL += " PERSONINCHARGEMASTER B";
+                    strSQL += string.Format(" Where (A.APPROVALCODE = {0} And A.DEPARTMENTCODE = {1})", iApprovalCode, DepartmentCode);
+                    strSQL += " And A.APPROVALPERSON = B.PERSONCODE";
+                    strSQL += " Order By A.DISPLAYORDER Desc";
+                    // SQL実行
+                    ArrayList AuthorizerData = new ArrayList();
+                    if (!paDB.ExecuteReader(strSQL, ref AuthorizerData)) continue;
+
+                    // データセット
+                    for (int i = 0; i < AuthorizerData.Count; i++)
+                    {
+                        // 承認者が列カウントを超えた場合
+                        if ((dgvApproval.ColumnCount - 1) < ((int)DocumentApprovalGridCount.ApprovalPerson1 + i))
+                        {
+                            // 列を作成する
+                            DataGridViewTextBoxColumn NewColumn = new DataGridViewTextBoxColumn();
+                            // 名前とヘッダーを設定する
+                            NewColumn.Name = string.Format("ApprovalPerson{0}", i);
+                            NewColumn.HeaderText = string.Format("承認者", (i + 1));
+                            // 列の幅
+                            NewColumn.Width = dgvApproval.Columns[((int)DocumentApprovalGridCount.ApprovalPerson1)].Width;
+                            // 列のアライメントセット
+                            NewColumn.DefaultCellStyle = dgvApproval.Columns[((int)DocumentApprovalGridCount.ApprovalPerson1)].DefaultCellStyle;
+
+                            // 列を追加する
+                            dgvApproval.Columns.Add(NewColumn);
+                        }
+
+                        object[] objAuthorizer = (object[])AuthorizerData[i];
+
+                        int ApprovalStatus = CommonMotions.cnvInt(objAuthorizer[(int)ApprovalerList.ApprovalStatus]);
+                        DataGridViewRow CurRowPo = dgvApproval.Rows[CurRowCnt];
+                        DataGridViewCell CurCell = null;
+                        CurCell = CurRowPo.Cells[(int)DocumentApprovalGridCount.ApprovalPerson1 + i];
+
+                        CurCell.Value = CommonMotions.cnvString(objAuthorizer[(int)ApprovalerList.PersonName]);
+                        CurCell.Style.BackColor = CommonDefine.ApprovalBackColorStatusColor[ApprovalStatus];
+                        CurCell.Style.ForeColor = CommonDefine.ApprovalForeColorStatusColor[ApprovalStatus];
+
+                    }
+                    iLineCnt++;
+
+                    // ProgressBarの値を変更する
+                    ProgressDApproval.Value = ino++;
+                    ProgressDApproval.Update();
+                }
+
+                dgv.ResumeLayout();
+
+                // ProgressBarの値を変更する
+                ProgressDApproval.Value = ProgressDApproval.Maximum;
+                ProgressDApproval.Update();
+                ProgressDApproval.Visible = false;
+
+                // 読込時データカウント取得
+                if (CommonDefine.s_MaxInitLineCount > arData.Count)
+                    dgv.RowCount += (CommonDefine.s_MaxInitLineCount - arData.Count);
+
+                // データが多くなればソートできる
+                foreach (DataGridViewColumn wrkCol in dgv.Columns)
+                    wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
+
+                // グリッドソート実行
+                GridSortExcute(dgv);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                picDB.close(); picDB = null;
+                paDB.close(); paDB = null;
+            }
+        }
+        #endregion
+        #endregion
+
         #region 案件表示データ共通部
         #region 表示用共通部SQL作成
         /// <summary>
@@ -691,7 +999,8 @@
             string strSQL = string.Empty;
             try
             {
-                strSQL = " Where";
+                strSQL += string.Format(" Where TyingFlg != {0}", (int)CommonDefine.BaseInfoTyingFlg.Tying);
+                strSQL += " AND";
                 strSQL += " (";
 
                 if (EstimateType)
@@ -730,6 +1039,68 @@
         /// </summary>
         /// <param name="constructionCode"></param>
         /// <param name="Details"></param>
+        private void getDetailStrings(int constructionCode, ArrayList arList, ref List<string> Details)
+        {
+            try
+            {
+                Details.Clear();
+                for (int i = 0; i < 5; i++)
+                {
+                    Details.Add("");
+                }
+
+                foreach (object[] objRec in arList)
+                {
+
+                    int iConstrCode = CommonMotions.cnvInt(objRec[(int)DBColumn1.ConstructionCode]);
+                    int iDetailNo = CommonMotions.cnvInt(objRec[(int)DBColumn1.DETAILNO]);
+
+                    // 工事番号が違えば次レコード
+                    if (iConstrCode != constructionCode) continue;
+                    // 工事番号が大きくなったら処理終了
+                    if (iConstrCode > constructionCode) break;
+
+                    int iPoint = -1;
+                    switch (iDetailNo)
+                    {
+                        case (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName:
+                            iPoint = 0;
+                            break;
+
+                        case (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace1:
+                            iPoint = 1;
+                            break;
+
+                        case (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace2:
+                            iPoint = 2;
+                            break;
+
+                        case (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3:
+                            iPoint = 3;
+                            break;
+
+                        case (int)ConstructionBaseInfoDetail.DetailDataNo.OrderersName:
+                            iPoint = 4;
+                            break;
+                        default:
+                            break;
+                    }
+                    if (iPoint < 0) continue;
+                    Details[iPoint] = CommonMotions.cnvString(objRec[(int)DBColumn1.DETAILSTRING]);
+                
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #region 工事の明細を取得する
+        /// <summary>
+        /// 工事の明細を取得する
+        /// </summary>
+        /// <param name="constructionCode"></param>
+        /// <param name="Details"></param>
         private void getDetailStrings(int constructionCode, List<string> Details)
         {
             IOConstructionBaseInfoDetail cbiDB = new IOConstructionBaseInfoDetail();
@@ -808,31 +1179,63 @@
         }
         #endregion
 
-        #region 入札案件一覧表示関連
-        #region 入札案件一覧表示
+        #region 工事案件一覧データ並び
         /// <summary>
-        /// 入札案件一覧表示
+        /// 工事案件一覧データ並び
         /// </summary>
-        private void DispTenders()
+        private enum DBColumn1
         {
+            ConstructionCode = 0,
+            ConstructionPeriod,
+            DETAILNO,
+            DETAILSTRING,
+            ConstructionStatusFlg,
+            EstimatesSubmitDeadline,
+            S_PERSONNAME,
+            C_PERSONNAME,
+            STARTDATE,
+            ENDDATE,
+        }
+        #endregion
+
+        #region 案件一覧表示
+        /// <summary>
+        /// 案件一覧表示
+        /// </summary>
+        private void DispSalesInProjects()
+        {
             ClsSystemOnceExecute ChkProc = new ClsSystemOnceExecute();
             IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
-            dgvTenders.SuspendLayout();
+            dgvSalesInProjects.SuspendLayout();
             try
             {
-                dgvTenders.Rows.Clear();
+                dgvSalesInProjects.Rows.Clear();
                 // SQL作成
-                string strSQL = CreateTendersSQL();
-                strSQL += " Order By ConstructionPeriod Desc, ConstructionCode Desc, ConstructionStatusFlg Asc";
-                List<ConstructionBaseInfo> arData = new List<ConstructionBaseInfo>();
+                string strSQL = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DETAILNO, B.DETAILSTRING, A.ConstructionStatusFlg,";
+                strSQL += " A.EstimatesSubmitDeadline, C.PERSONNAME, D.PERSONNAME, A.STARTDATE, A.ENDDATE, A.* ";
+                strSQL += " FROM CONSTRUCTIONBASEINFO A LEFT JOIN  PERSONINCHARGEMASTER D  ON D.PERSONCODE = A.CONSTRUCTIONPERSONCODE,";
+                strSQL += " CONSTRUCTIONBASEINFODETAIL B , PERSONINCHARGEMASTER C";
+
+                strSQL += CreateSalesInProjectsSQL();
+                strSQL += string.Format(" AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE AND B.DETAILNO <= {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);
+                strSQL += " AND C.PERSONCODE = A.SALESPERSONCODE";
+
+                strSQL += " Order By A.ConstructionPeriod Desc, A.ConstructionCode Desc, A.ConstructionStatusFlg Asc, B.DETAILNO ASC";
+                ArrayList arData = new ArrayList();
+
+                DateTime dStart = DateTime.Now;
+                Console.WriteLine("Read Start :" + dStart.ToString("hh:mm:ss.fff"));
+
                 // 工事基本情報取得
-                if (!cbiDB.SelectAction(strSQL, ref arData)) return;
+                if (!cbiDB.ExecuteReader(strSQL, ref arData)) return;
                 if (arData.Count == 0) return;
 
-                ProgressTenders.Visible = true;
-                ProgressTenders.Minimum = 0;
-                ProgressTenders.Maximum = arData.Count;
+                DateTime dEnd = DateTime.Now;
+                Console.WriteLine("Read End   :" + dEnd.ToString("hh:mm:ss.fff") + "==" + (dEnd - dStart).ToString());
+
+                ProgressSalesProjects.Visible = true;
+                ProgressSalesProjects.Minimum = 0;
+                ProgressSalesProjects.Maximum = arData.Count;
                 tabPage8.Update();
                 //Thread.Sleep(100);
 
@@ -839,83 +1242,84 @@
                 // データ表示
                 int ino = 1;
                 List<string> Details = new List<string>();
-                PersonInChargeMaster salesData = new PersonInChargeMaster();
-                PersonInChargeMaster constructorData = new PersonInChargeMaster();
 
-                // 期数を取得する
-                int BlankCnt = GetPeriodCount(CreateTendersSQL()) - 1;
-                // 行を作成する
-                DataGridViewRow[] list = null;
-                if ((arData.Count + BlankCnt) > 0)
-                    list = new DataGridViewRow[arData.Count + BlankCnt];
-
                 // 先頭の期数を取得する
-                ConstructionBaseInfo firstwrkRec = arData[0];
-                int BreakConstructionPeriod = firstwrkRec.ConstructionPeriod;
+                object[] firstwrkRec = (object[])arData[0];
+                int BreakConstructionPeriod = CommonMotions.cnvInt(firstwrkRec[(int)DBColumn1.ConstructionPeriod]);
                 int iLineCnt = 0;
-                foreach (ConstructionBaseInfo wrkRec in arData)
+                int DBCnt = Enum.GetNames(typeof(DBColumn1)).Length;
+                int BreakConstructionCode = 0;
+                foreach (object[] wrkRec in arData)
                 {
-                    // 営業担当名取得
-                    string strSales = picDB.CreatePrimarykeyString(wrkRec.SalesPersonCode);
-                    picDB.ClearStruct(ref salesData);
-                    picDB.SelectAction(strSales, ref salesData);
-                    string salesname = salesData.PersonName;
-                    // 工事担当名取得
-                    string strConstructor = picDB.CreatePrimarykeyString(wrkRec.ConstructionPersonCode);
-                    picDB.ClearStruct(ref constructorData);
-                    string constructorname = CommonDefine.s_UndecidedString;
-                    if (picDB.SelectAction(strConstructor, ref constructorData)) constructorname = constructorData.PersonName;
+                    int iConstructionCode = CommonMotions.cnvInt(wrkRec[(int)DBColumn1.ConstructionCode]);
+                    int iConstructionPeriod = CommonMotions.cnvInt(wrkRec[(int)DBColumn1.ConstructionPeriod]);
+                    int iConstructionStatusFlg = CommonMotions.cnvInt(wrkRec[(int)DBColumn1.ConstructionStatusFlg]);
+                    DateTime dEstimatesSubmitDeadline = CommonMotions.cnvDate(wrkRec[(int)DBColumn1.EstimatesSubmitDeadline]);
+                    string salesname = CommonMotions.cnvString(wrkRec[(int)DBColumn1.S_PERSONNAME]);
+                    string constructorname = CommonMotions.cnvString(wrkRec[(int)DBColumn1.C_PERSONNAME]);
+                    if (constructorname.Length == 0) constructorname = CommonDefine.s_UndecidedString;
+                    DateTime dStartDate = CommonMotions.cnvDate(wrkRec[(int)DBColumn1.STARTDATE]);
+                    DateTime dEndDate = CommonMotions.cnvDate(wrkRec[(int)DBColumn1.ENDDATE]);
 
+                    if (iConstructionCode == BreakConstructionCode) continue;
                     // 名称取得
-                    getDetailStrings(wrkRec.ConstructionCode, Details);
+                    getDetailStrings(iConstructionCode, arData, ref Details);
 
+                    BreakConstructionCode = iConstructionCode;
                     // 期が違えば空白を開ける
-                    if (BreakConstructionPeriod != wrkRec.ConstructionPeriod)
+                    if (BreakConstructionPeriod != iConstructionPeriod)
                     {
-                        DataGridViewRow brow = new DataGridViewRow();
-                        brow.CreateCells(dgvTenders);
-                        list[iLineCnt] = brow;
-                        BreakConstructionPeriod = wrkRec.ConstructionPeriod;
+                        BreakConstructionPeriod = iConstructionPeriod;
+                        dgvSalesInProjects.Rows.Add();
                         iLineCnt++;
                     }
 
                     // データセット
-                    DataGridViewRow row = new DataGridViewRow();
-                    row.CreateCells(dgvTenders);
-                    row.SetValues(new object[] { wrkRec.ConstructionCode.ToString()
+                    int LineCnt = dgvSalesInProjects.Rows.Add(iConstructionCode
                                                 , ino
-                                                , wrkRec.ConstructionPeriod.ToString()
+                                                , iConstructionPeriod
                                                 , Details[0]
-                                                , CommonDefine.ProjectsStatus[wrkRec.ConstructionStatusFlg]
-                                                , CommonMotions.cnvDateToUndecidedString(wrkRec.EstimatesSubmitDeadline)
+                                                , CommonDefine.ProjectsStatus[iConstructionStatusFlg]
+                                                , CommonMotions.cnvDateToUndecidedString(dEstimatesSubmitDeadline)
                                                 , salesname
                                                 , constructorname
-                                                , CommonMotions.cnvDateToUndecidedString(wrkRec.StartDate)
-                                                , CommonMotions.cnvDateToUndecidedString(wrkRec.EndDate)
+                                                , CommonMotions.cnvDateToUndecidedString(dStartDate)
+                                                , CommonMotions.cnvDateToUndecidedString(dEndDate)
                                                 , Details[1] + Details[2] + Details[3]
-                                                , Details[4]});
+                                                , Details[4]);
+                                                //, Details[4]});
 
+                    // データを工事情報のフォーマットに詰めなおす
+                    ConstructionBaseInfo BaseRec = new ConstructionBaseInfo();
+                    int objCnt = wrkRec.Length - DBCnt;
+                    object[] wrkobj = new object[objCnt];
+                    for (int i = 0; i < objCnt; i++)
+                    {
+                        wrkobj[i] = wrkRec[i + DBCnt];
+                    }
+                    cbiDB.Reader2Struct(wrkobj, ref BaseRec);
+
                     // エラー行に色を付ける
-                    DispErrorSubmittedDateRow(dgvTenders, row, wrkRec, ChkProc);
-                    list[iLineCnt] = row;
+                    DataGridViewRow row = dgvSalesInProjects.Rows[LineCnt];
+                    DispErrorSubmittedDateRow(dgvSalesInProjects, row, BaseRec, ChkProc);
                     iLineCnt++;
-                    
+
                     // ProgressBarの値を変更する
-                    ProgressTenders.Value = ino++;
-                    ProgressTenders.Update();
+                    ProgressSalesProjects.Value = ino++;
+                    ProgressSalesProjects.Update();
                 }
                 // 行や列を追加したり、セルに値を設定するときは、自動サイズ設定しない。
-                dgvTenders.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
-                dgvTenders.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
-                dgvTenders.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+                dgvSalesInProjects.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
+                dgvSalesInProjects.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
+                dgvSalesInProjects.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
 
-                // グリッドに表示
-                if (list.Length != 0) dgvTenders.Rows.AddRange(list);
+                // ProgressBarの値を変更する
+                ProgressSalesProjects.Value = ProgressSalesProjects.Maximum;
+                ProgressSalesProjects.Update();
+                ProgressSalesProjects.Visible = false;
 
-                // ProgressBarの値を変更する
-                ProgressTenders.Value = ProgressTenders.Maximum;
-                ProgressTenders.Update();
-                ProgressTenders.Visible = false;
+                DateTime dAEnd = DateTime.Now;
+                Console.WriteLine("Read End   :" + dAEnd.ToString("hh:mm:ss.fff") + "==" + (dAEnd - dStart).ToString());
             }
             catch (Exception ex)
             {
@@ -923,35 +1327,34 @@
             }
             finally
             {
-                // 読込時データカウント取得
-                if (CommonDefine.s_MaxInitLineCount > dgvTenders.RowCount)
-                    dgvTenders.RowCount += (CommonDefine.s_MaxInitLineCount - dgvTenders.RowCount);
+                // データが多くなればソートできる
+                if (CommonDefine.s_MaxInitLineCount > dgvSalesInProjects.RowCount)
+                    dgvSalesInProjects.RowCount += (CommonDefine.s_MaxInitLineCount - dgvSalesInProjects.RowCount);
 
-                // ソートできる
-                foreach (DataGridViewColumn wrkCol in dgvTenders.Columns)
+                // データが多くなればソートできる
+                foreach (DataGridViewColumn wrkCol in dgvSalesInProjects.Columns)
                     wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
 
                 // グリッドソート実行
-                GridSortExcute(dgvTenders);
+                GridSortExcute(dgvSalesInProjects);
                 ChkProc = null;
                 cbiDB.close(); cbiDB = null;
-                picDB.close(); picDB = null;
-                dgvTenders.ResumeLayout();
+                dgvSalesInProjects.ResumeLayout();
             }
         }
         #endregion
 
-        #region 入札案件一覧表示用データ取得SQL作成
+        #region 工事案件一覧表示用データ取得SQL作成
         /// <summary>
-        /// 入札案件一覧表示用データ取得SQL作成
+        /// 工事案件一覧表示用データ取得SQL作成
         /// </summary>
-        private string CreateTendersSQL()
+        private string CreateSalesInProjectsSQL()
         {
             string strSQL = string.Empty;
             try
             {
                 List<int> stat = new List<int>();
-                stat.Add((int)CommonDefine.BaseInfoEstimateType.Didding);
+                stat.Add((int)CommonDefine.BaseInfoEstimateType.Normal);
 
                 strSQL += CreateListSQL(stat, true);
 
@@ -966,31 +1369,39 @@
         #endregion
         #endregion
 
-        #region 予算取り委案件一覧表示関連
-        #region 予算取り案件一覧表示
+        #region 入札案件一覧表示関連
+        #region 入札案件一覧表示
         /// <summary>
-        /// 予算取り案件一覧表示
+        /// 入札案件一覧表示
         /// </summary>
-        private void DispBudgetUpProjects()
+        private void DispTenders()
         {
             ClsSystemOnceExecute ChkProc = new ClsSystemOnceExecute();
             IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
-            dgvBudgetUp.SuspendLayout();
+            dgvTenders.SuspendLayout();
             try
             {
-                dgvBudgetUp.Rows.Clear();
+                dgvTenders.Rows.Clear();
                 // SQL作成
-                string strSQL = CreateBudgetUpProjectsSQL();
-                strSQL += " Order By ConstructionPeriod Desc, ConstructionCode Desc, ConstructionStatusFlg Asc";
-                List<ConstructionBaseInfo> arData = new List<ConstructionBaseInfo>();
+                string strSQL = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DETAILNO, B.DETAILSTRING, A.ConstructionStatusFlg,";
+                strSQL += " A.EstimatesSubmitDeadline, C.PERSONNAME, D.PERSONNAME, A.STARTDATE, A.ENDDATE, A.* ";
+                strSQL += " FROM CONSTRUCTIONBASEINFO A LEFT JOIN  PERSONINCHARGEMASTER D  ON D.PERSONCODE = A.CONSTRUCTIONPERSONCODE,";
+                strSQL += " CONSTRUCTIONBASEINFODETAIL B , PERSONINCHARGEMASTER C";
+
+                strSQL += CreateTendersSQL();
+                strSQL += string.Format(" AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE AND B.DETAILNO <= {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);
+                strSQL += " AND C.PERSONCODE = A.SALESPERSONCODE";
+
+                strSQL += " Order By A.ConstructionPeriod Desc, A.ConstructionCode Desc, A.ConstructionStatusFlg Asc, B.DETAILNO ASC";
+                ArrayList arData = new ArrayList();
+
                 // 工事基本情報取得
-                if (!cbiDB.SelectAction(strSQL, ref arData)) return;
+                if (!cbiDB.ExecuteReader(strSQL, ref arData)) return;
                 if (arData.Count == 0) return;
 
-                ProgressBudgetUp.Visible = true;
-                ProgressBudgetUp.Minimum = 0;
-                ProgressBudgetUp.Maximum = arData.Count;
+                ProgressTenders.Visible = true;
+                ProgressTenders.Minimum = 0;
+                ProgressTenders.Maximum = arData.Count;
                 tabPage8.Update();
                 //Thread.Sleep(100);
 
@@ -997,84 +1408,81 @@
                 // データ表示
                 int ino = 1;
                 List<string> Details = new List<string>();
-                PersonInChargeMaster salesData = new PersonInChargeMaster();
-                PersonInChargeMaster constructorData = new PersonInChargeMaster();
 
-                // 期数を取得する
-                int BlankCnt = GetPeriodCount(CreateBudgetUpProjectsSQL()) - 1;
-                // 行を作成する
-                DataGridViewRow[] list = null;
-                if ((arData.Count + BlankCnt) > 0)
-                    list = new DataGridViewRow[arData.Count + BlankCnt];
-
                 // 先頭の期数を取得する
-                ConstructionBaseInfo firstwrkRec = arData[0];
-                int BreakConstructionPeriod = firstwrkRec.ConstructionPeriod;
+                object[] firstwrkRec = (object[])arData[0];
+                int BreakConstructionPeriod = CommonMotions.cnvInt(firstwrkRec[(int)DBColumn1.ConstructionPeriod]);
                 int iLineCnt = 0;
-                foreach (ConstructionBaseInfo wrkRec in arData)
+                int DBCnt = Enum.GetNames(typeof(DBColumn1)).Length;
+                int BreakConstructionCode = 0;
+                foreach (object[] wrkRec in arData)
                 {
+                    int iConstructionCode = CommonMotions.cnvInt(wrkRec[(int)DBColumn1.ConstructionCode]);
+                    int iConstructionPeriod = CommonMotions.cnvInt(wrkRec[(int)DBColumn1.ConstructionPeriod]);
+                    int iConstructionStatusFlg = CommonMotions.cnvInt(wrkRec[(int)DBColumn1.ConstructionStatusFlg]);
+                    DateTime dEstimatesSubmitDeadline = CommonMotions.cnvDate(wrkRec[(int)DBColumn1.EstimatesSubmitDeadline]);
+                    string salesname = CommonMotions.cnvString(wrkRec[(int)DBColumn1.S_PERSONNAME]);
+                    string constructorname = CommonMotions.cnvString(wrkRec[(int)DBColumn1.C_PERSONNAME]);
+                    if (constructorname.Length == 0) constructorname = CommonDefine.s_UndecidedString;
+                    DateTime dStartDate = CommonMotions.cnvDate(wrkRec[(int)DBColumn1.STARTDATE]);
+                    DateTime dEndDate = CommonMotions.cnvDate(wrkRec[(int)DBColumn1.ENDDATE]);
 
-                    // 営業担当名取得
-                    string strSales = picDB.CreatePrimarykeyString(wrkRec.SalesPersonCode);
-                    picDB.ClearStruct(ref salesData);
-                    picDB.SelectAction(strSales, ref salesData);
-                    string salesname = salesData.PersonName;
-                    // 工事担当名取得
-                    string strConstructor = picDB.CreatePrimarykeyString(wrkRec.ConstructionPersonCode);
-                    picDB.ClearStruct(ref constructorData);
-                    string constructorname = CommonDefine.s_UndecidedString;
-                    if (picDB.SelectAction(strConstructor, ref constructorData)) constructorname = constructorData.PersonName;
-
+                    if (iConstructionCode == BreakConstructionCode) continue;
                     // 名称取得
-                    getDetailStrings(wrkRec.ConstructionCode, Details);
+                    getDetailStrings(iConstructionCode, arData, ref Details);
 
+                    BreakConstructionCode = iConstructionCode;
+
                     // 期が違えば空白を開ける
-                    if (BreakConstructionPeriod != wrkRec.ConstructionPeriod)
+                    if (BreakConstructionPeriod != iConstructionPeriod)
                     {
-                        DataGridViewRow brow = new DataGridViewRow();
-                        brow.CreateCells(dgvBudgetUp);
-                        list[iLineCnt] = brow;
-                        BreakConstructionPeriod = wrkRec.ConstructionPeriod;
+                        BreakConstructionPeriod = iConstructionPeriod;
+                        dgvTenders.Rows.Add();
                         iLineCnt++;
                     }
 
                     // データセット
-                    DataGridViewRow row = new DataGridViewRow();
-                    row.CreateCells(dgvBudgetUp);
-                    row.SetValues(new object[] { wrkRec.ConstructionCode.ToString()
+                    int LineCnt = dgvTenders.Rows.Add(iConstructionCode
                                                 , ino
-                                                , wrkRec.ConstructionPeriod.ToString()
+                                                , iConstructionPeriod
                                                 , Details[0]
-                                                , CommonDefine.ProjectsStatus[wrkRec.ConstructionStatusFlg]
-                                                , CommonMotions.cnvDateToUndecidedString(wrkRec.EstimatesSubmitDeadline)
+                                                , CommonDefine.ProjectsStatus[iConstructionStatusFlg]
+                                                , CommonMotions.cnvDateToUndecidedString(dEstimatesSubmitDeadline)
                                                 , salesname
                                                 , constructorname
-                                                , CommonMotions.cnvDateToUndecidedString(wrkRec.StartDate)
-                                                , CommonMotions.cnvDateToUndecidedString(wrkRec.EndDate)
+                                                , CommonMotions.cnvDateToUndecidedString(dStartDate)
+                                                , CommonMotions.cnvDateToUndecidedString(dEndDate)
                                                 , Details[1] + Details[2] + Details[3]
-                                                , Details[4]});
+                                                , Details[4]);
 
+                    // データを工事情報のフォーマットに詰めなおす
+                    ConstructionBaseInfo BaseRec = new ConstructionBaseInfo();
+                    int objCnt = wrkRec.Length - DBCnt;
+                    object[] wrkobj = new object[objCnt];
+                    for (int i = 0; i < objCnt; i++)
+                    {
+                        wrkobj[i] = wrkRec[i + DBCnt];
+                    }
+                    cbiDB.Reader2Struct(wrkobj, ref BaseRec);
+
                     // エラー行に色を付ける
-                    DispErrorSubmittedDateRow(dgvBudgetUp, row, wrkRec, ChkProc);
-                    list[iLineCnt] = row;
+                    DataGridViewRow row = dgvSalesInProjects.Rows[LineCnt];
+                    DispErrorSubmittedDateRow(dgvTenders, row, BaseRec, ChkProc);
                     iLineCnt++;
-
+                    
                     // ProgressBarの値を変更する
-                    ProgressBudgetUp.Value = ino++;
-                    ProgressBudgetUp.Update();
+                    ProgressTenders.Value = ino++;
+                    ProgressTenders.Update();
                 }
                 // 行や列を追加したり、セルに値を設定するときは、自動サイズ設定しない。
-                dgvBudgetUp.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
-                dgvBudgetUp.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
-                dgvBudgetUp.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+                dgvTenders.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
+                dgvTenders.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
+                dgvTenders.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
 
-                // グリッドに表示
-                dgvBudgetUp.Rows.AddRange(list);
-
                 // ProgressBarの値を変更する
-                ProgressBudgetUp.Value = ProgressBudgetUp.Maximum;
-                ProgressBudgetUp.Update();
-                ProgressBudgetUp.Visible = false;
+                ProgressTenders.Value = ProgressTenders.Maximum;
+                ProgressTenders.Update();
+                ProgressTenders.Visible = false;
             }
             catch (Exception ex)
             {
@@ -1082,36 +1490,34 @@
             }
             finally
             {
-                // データが多くなればソートできる
-                if (CommonDefine.s_MaxInitLineCount > dgvBudgetUp.RowCount)
-                    dgvBudgetUp.RowCount += (CommonDefine.s_MaxInitLineCount - dgvBudgetUp.RowCount);
+                // 読込時データカウント取得
+                if (CommonDefine.s_MaxInitLineCount > dgvTenders.RowCount)
+                    dgvTenders.RowCount += (CommonDefine.s_MaxInitLineCount - dgvTenders.RowCount);
 
-                // 読込時データカウント取得
-                foreach (DataGridViewColumn wrkCol in dgvBudgetUp.Columns)
+                // ソートできる
+                foreach (DataGridViewColumn wrkCol in dgvTenders.Columns)
                     wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
 
                 // グリッドソート実行
-                GridSortExcute(dgvBudgetUp);
-
+                GridSortExcute(dgvTenders);
                 ChkProc = null;
                 cbiDB.close(); cbiDB = null;
-                picDB.close(); picDB = null;
-                dgvBudgetUp.ResumeLayout();
+                dgvTenders.ResumeLayout();
             }
         }
         #endregion
 
-        #region 予算取り案件一覧表示用データ取得SQL作成
+        #region 入札案件一覧表示用データ取得SQL作成
         /// <summary>
-        /// 予算取り案件一覧表示用データ取得SQL作成
+        /// 入札案件一覧表示用データ取得SQL作成
         /// </summary>
-        private string CreateBudgetUpProjectsSQL()
+        private string CreateTendersSQL()
         {
             string strSQL = string.Empty;
             try
             {
                 List<int> stat = new List<int>();
-                stat.Add((int)CommonDefine.BaseInfoEstimateType.GetBudget);
+                stat.Add((int)CommonDefine.BaseInfoEstimateType.Didding);
 
                 strSQL += CreateListSQL(stat, true);
 
@@ -1126,37 +1532,39 @@
         #endregion
         #endregion
 
-        #region 工事案件一覧表示関連
+        #region 予算取り委案件一覧表示関連
+        #region 予算取り案件一覧表示
         /// <summary>
-        /// 案件一覧表示
+        /// 予算取り案件一覧表示
         /// </summary>
-        private void DispSalesInProjects()
+        private void DispBudgetUpProjects()
         {
             ClsSystemOnceExecute ChkProc = new ClsSystemOnceExecute();
             IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
-            dgvSalesInProjects.SuspendLayout();
+            dgvBudgetUp.SuspendLayout();
             try
             {
-                dgvSalesInProjects.Rows.Clear();
+                dgvBudgetUp.Rows.Clear();
                 // SQL作成
-                string strSQL = CreateSalesInProjectsSQL();
-                strSQL += " Order By ConstructionPeriod Desc, ConstructionCode Desc, ConstructionStatusFlg Asc";
-                List<ConstructionBaseInfo> arData = new List<ConstructionBaseInfo>();
+                string strSQL = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DETAILNO, B.DETAILSTRING, A.ConstructionStatusFlg,";
+                strSQL += " A.EstimatesSubmitDeadline, C.PERSONNAME, D.PERSONNAME, A.STARTDATE, A.ENDDATE, A.* ";
+                strSQL += " FROM CONSTRUCTIONBASEINFO A LEFT JOIN  PERSONINCHARGEMASTER D  ON D.PERSONCODE = A.CONSTRUCTIONPERSONCODE,";
+                strSQL += " CONSTRUCTIONBASEINFODETAIL B , PERSONINCHARGEMASTER C";
 
-                DateTime dStart = DateTime.Now;
-                Console.WriteLine("Read Start :" + dStart.ToString("hh:mm:ss.fff"));
+                strSQL += CreateBudgetUpProjectsSQL();
+                strSQL += string.Format(" AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE AND B.DETAILNO <= {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);
+                strSQL += " AND C.PERSONCODE = A.SALESPERSONCODE";
 
+                strSQL += " Order By A.ConstructionPeriod Desc, A.ConstructionCode Desc, A.ConstructionStatusFlg Asc, B.DETAILNO ASC";
+                ArrayList arData = new ArrayList();
+
                 // 工事基本情報取得
-                if (!cbiDB.SelectAction(strSQL, ref arData)) return;
+                if (!cbiDB.ExecuteReader(strSQL, ref arData)) return;
                 if (arData.Count == 0) return;
 
-                DateTime dEnd = DateTime.Now;
-                Console.WriteLine("Read End   :" + dEnd.ToString("hh:mm:ss.fff") + "==" + (dEnd - dStart).ToString());
-
-                ProgressSalesProjects.Visible = true;
-                ProgressSalesProjects.Minimum = 0;
-                ProgressSalesProjects.Maximum = arData.Count;
+                ProgressBudgetUp.Visible = true;
+                ProgressBudgetUp.Minimum = 0;
+                ProgressBudgetUp.Maximum = arData.Count;
                 tabPage8.Update();
                 //Thread.Sleep(100);
 
@@ -1163,84 +1571,81 @@
                 // データ表示
                 int ino = 1;
                 List<string> Details = new List<string>();
-                PersonInChargeMaster salesData = new PersonInChargeMaster();
-                PersonInChargeMaster constructorData = new PersonInChargeMaster();
 
-                // 期数を取得する
-                int BlankCnt = GetPeriodCount(CreateSalesInProjectsSQL()) - 1;
-                // 行を作成する
-                DataGridViewRow[] list = new DataGridViewRow[arData.Count + BlankCnt];
-
                 // 先頭の期数を取得する
-                ConstructionBaseInfo firstwrkRec = arData[0];
-                int BreakConstructionPeriod = firstwrkRec.ConstructionPeriod;
+                object[] firstwrkRec = (object[])arData[0];
+                int BreakConstructionPeriod = CommonMotions.cnvInt(firstwrkRec[(int)DBColumn1.ConstructionPeriod]);
                 int iLineCnt = 0;
-                foreach (ConstructionBaseInfo wrkRec in arData)
+                int DBCnt = Enum.GetNames(typeof(DBColumn1)).Length;
+                int BreakConstructionCode = 0;
+                foreach (object[] wrkRec in arData)
                 {
-                    // 営業担当名取得
-                    string strSales = picDB.CreatePrimarykeyString(wrkRec.SalesPersonCode);
-                    picDB.ClearStruct(ref salesData);
-                    picDB.SelectAction(strSales, ref salesData);
-                    string salesname = salesData.PersonName;
-                    // 工事担当名取得
-                    string strConstructor = picDB.CreatePrimarykeyString(wrkRec.ConstructionPersonCode);
-                    picDB.ClearStruct(ref constructorData);
-                    string constructorname = CommonDefine.s_UndecidedString;
-                    if (picDB.SelectAction(strConstructor, ref constructorData)) constructorname = constructorData.PersonName;
+                    int iConstructionCode = CommonMotions.cnvInt(wrkRec[(int)DBColumn1.ConstructionCode]);
+                    int iConstructionPeriod = CommonMotions.cnvInt(wrkRec[(int)DBColumn1.ConstructionPeriod]);
+                    int iConstructionStatusFlg = CommonMotions.cnvInt(wrkRec[(int)DBColumn1.ConstructionStatusFlg]);
+                    DateTime dEstimatesSubmitDeadline = CommonMotions.cnvDate(wrkRec[(int)DBColumn1.EstimatesSubmitDeadline]);
+                    string salesname = CommonMotions.cnvString(wrkRec[(int)DBColumn1.S_PERSONNAME]);
+                    string constructorname = CommonMotions.cnvString(wrkRec[(int)DBColumn1.C_PERSONNAME]);
+                    if (constructorname.Length == 0) constructorname = CommonDefine.s_UndecidedString;
+                    DateTime dStartDate = CommonMotions.cnvDate(wrkRec[(int)DBColumn1.STARTDATE]);
+                    DateTime dEndDate = CommonMotions.cnvDate(wrkRec[(int)DBColumn1.ENDDATE]);
 
+                    if (iConstructionCode == BreakConstructionCode) continue;
                     // 名称取得
-                    getDetailStrings(wrkRec.ConstructionCode, Details);
+                    getDetailStrings(iConstructionCode, arData, ref Details);
 
+                    BreakConstructionCode = iConstructionCode;
+
                     // 期が違えば空白を開ける
-                    if (BreakConstructionPeriod != wrkRec.ConstructionPeriod)
+                    if (BreakConstructionPeriod != iConstructionPeriod)
                     {
-                        DataGridViewRow brow = new DataGridViewRow();
-                        brow.CreateCells(dgvSalesInProjects);
-                        list[iLineCnt] = brow;
-                        BreakConstructionPeriod = wrkRec.ConstructionPeriod;
+                        BreakConstructionPeriod = iConstructionPeriod;
+                        dgvBudgetUp.Rows.Add();
                         iLineCnt++;
                     }
 
                     // データセット
-                    DataGridViewRow row = new DataGridViewRow();
-                    row.CreateCells(dgvSalesInProjects);
-                    row.SetValues(new object[] { wrkRec.ConstructionCode.ToString()
+                    int LineCnt = dgvBudgetUp.Rows.Add(iConstructionCode
                                                 , ino
-                                                , wrkRec.ConstructionPeriod.ToString()
+                                                , iConstructionPeriod
                                                 , Details[0]
-                                                , CommonDefine.ProjectsStatus[wrkRec.ConstructionStatusFlg]
-                                                , CommonMotions.cnvDateToUndecidedString(wrkRec.EstimatesSubmitDeadline)
+                                                , CommonDefine.ProjectsStatus[iConstructionStatusFlg]
+                                                , CommonMotions.cnvDateToUndecidedString(dEstimatesSubmitDeadline)
                                                 , salesname
                                                 , constructorname
-                                                , CommonMotions.cnvDateToUndecidedString(wrkRec.StartDate)
-                                                , CommonMotions.cnvDateToUndecidedString(wrkRec.EndDate)
+                                                , CommonMotions.cnvDateToUndecidedString(dStartDate)
+                                                , CommonMotions.cnvDateToUndecidedString(dEndDate)
                                                 , Details[1] + Details[2] + Details[3]
-                                                , Details[4]});
-                    
+                                                , Details[4]);
+
+                    // データを工事情報のフォーマットに詰めなおす
+                    ConstructionBaseInfo BaseRec = new ConstructionBaseInfo();
+                    int objCnt = wrkRec.Length - DBCnt;
+                    object[] wrkobj = new object[objCnt];
+                    for (int i = 0; i < objCnt; i++)
+                    {
+                        wrkobj[i] = wrkRec[i + DBCnt];
+                    }
+                    cbiDB.Reader2Struct(wrkobj, ref BaseRec);
+
                     // エラー行に色を付ける
-                    DispErrorSubmittedDateRow(dgvSalesInProjects, row, wrkRec, ChkProc);
-                    list[iLineCnt] = row;
+                    DataGridViewRow row = dgvSalesInProjects.Rows[LineCnt];
+                    DispErrorSubmittedDateRow(dgvBudgetUp, row, BaseRec, ChkProc);
                     iLineCnt++;
 
                     // ProgressBarの値を変更する
-                    ProgressSalesProjects.Value = ino++;
-                    ProgressSalesProjects.Update();
+                    ProgressBudgetUp.Value = ino++;
+                    ProgressBudgetUp.Update();
                 }
                 // 行や列を追加したり、セルに値を設定するときは、自動サイズ設定しない。
-                dgvSalesInProjects.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
-                dgvSalesInProjects.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
-                dgvSalesInProjects.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+                dgvBudgetUp.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
+                dgvBudgetUp.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
+                dgvBudgetUp.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
 
-                // グリッドに表示
-                dgvSalesInProjects.Rows.AddRange(list);
-
                 // ProgressBarの値を変更する
-                ProgressSalesProjects.Value = ProgressSalesProjects.Maximum;
-                ProgressSalesProjects.Update();
-                ProgressSalesProjects.Visible = false;
-
-                DateTime dAEnd = DateTime.Now;
-                Console.WriteLine("Read End   :" + dAEnd.ToString("hh:mm:ss.fff") + "==" + (dAEnd - dStart).ToString());
+                ProgressBudgetUp.Value = ProgressBudgetUp.Maximum;
+                ProgressBudgetUp.Update();
+                ProgressBudgetUp.Visible = false;
             }
             catch (Exception ex)
             {
@@ -1249,129 +1654,34 @@
             finally
             {
                 // データが多くなればソートできる
-                if (CommonDefine.s_MaxInitLineCount > dgvSalesInProjects.RowCount)
-                    dgvSalesInProjects.RowCount += (CommonDefine.s_MaxInitLineCount - dgvSalesInProjects.RowCount);
+                if (CommonDefine.s_MaxInitLineCount > dgvBudgetUp.RowCount)
+                    dgvBudgetUp.RowCount += (CommonDefine.s_MaxInitLineCount - dgvBudgetUp.RowCount);
 
-                // データが多くなればソートできる
-                foreach (DataGridViewColumn wrkCol in dgvSalesInProjects.Columns)
+                // 読込時データカウント取得
+                foreach (DataGridViewColumn wrkCol in dgvBudgetUp.Columns)
                     wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
 
                 // グリッドソート実行
-                GridSortExcute(dgvSalesInProjects);
+                GridSortExcute(dgvBudgetUp);
+
                 ChkProc = null;
                 cbiDB.close(); cbiDB = null;
-                picDB.close(); picDB = null;
-                dgvSalesInProjects.ResumeLayout();
+                dgvBudgetUp.ResumeLayout();
             }
         }
-        #region 旧工事案件表示
-        //private void DispSalesInProjects()
-        //{
-        //    IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-        //    IOMPersonInCharge picDB = new IOMPersonInCharge();
-        //    try
-        //    {
-        //        dgvSalesInProjects.Rows.Clear();
-        //        // SQL作成
-        //        string strSQL = CreateSalesInProjectsSQL();
-        //        ArrayList arData = new ArrayList();
+        #endregion
 
-        //        DateTime dStart = DateTime.Now;
-        //        Console.WriteLine("Read Start :" + dStart.ToString("hh:mm:ss.fff"));
-
-        //        // 工事基本情報取得
-        //        if (cbiDB.ExecuteReader(strSQL, ref arData))
-        //        {
-        //            DateTime dEnd = DateTime.Now;
-        //            Console.WriteLine("Read End   :" + dEnd.ToString("hh:mm:ss.fff") + "==" + (dEnd - dStart).ToString());
-
-        //            ProgressSalesProjects.Visible = true;
-        //            ProgressSalesProjects.Minimum = 0;
-        //            ProgressSalesProjects.Maximum = arData.Count;
-        //            tabPage8.Update();
-        //            //Thread.Sleep(100);
-
-        //            dgvSalesInProjects.SuspendLayout();
-
-        //            // データ表示
-        //            int ino = 1;
-        //            foreach (object[] objwrk in arData)
-        //            {
-        //                // 営業担当名取得
-        //                string strSales = picDB.CreatePrimarykeyString(int.Parse(objwrk[3].ToString()));
-        //                PersonInChargeMaster salesData = new PersonInChargeMaster();
-        //                picDB.SelectAction(strSales, ref salesData);
-        //                string salesname = salesData.PersonName;
-        //                // 工事担当名取得
-        //                string strConstructor = picDB.CreatePrimarykeyString(int.Parse(objwrk[4].ToString()));
-        //                PersonInChargeMaster constructorData = new PersonInChargeMaster();
-        //                string constructorname = ClsCommonDefine.s_UndecidedString;
-        //                if (picDB.SelectAction(strConstructor, ref constructorData)) constructorname = constructorData.PersonName;
-
-        //                int rowcnt = dgvSalesInProjects.Rows.Add(objwrk[0].ToString()
-        //                                            , ino
-        //                                            , objwrk[1].ToString()
-        //                                            , objwrk[2].ToString()
-        //                                            , ClsCommonDefine.ConstructionProjectsStatus[int.Parse(objwrk[11].ToString())]
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[13].ToString()))
-        //                                            , salesname
-        //                                            , constructorname
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[5].ToString()))
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[6].ToString()))
-        //                                            , objwrk[7].ToString() + objwrk[8].ToString() + objwrk[9].ToString()
-        //                                            , objwrk[10].ToString()
-        //                                            );
-        //                // ProgressBarの値を変更する
-        //                ProgressSalesProjects.Value = ino++;
-        //                ProgressSalesProjects.Update();
-
-        //                // エラー行に色を付ける
-        //                DispErrorEstimatesSubmittedDate(dgvSalesInProjects, rowcnt, objwrk);
-        //            }
-        //            // ProgressBarの値を変更する
-        //            ProgressSalesProjects.Value = ProgressSalesProjects.Maximum;
-        //            ProgressSalesProjects.Update();
-        //            ProgressSalesProjects.Visible = false;
-        //        }
-
-        //        // データが多くなればソートできる
-        //        if (ClsCommonDefine.s_MaxInitLineCount < dgvSalesInProjects.RowCount)
-        //        {
-        //            foreach (DataGridViewColumn wrkCol in dgvSalesInProjects.Columns)
-        //                wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
-        //        }
-        //        else
-        //        {
-        //            // 読込時データカウント取得
-        //            dgvSalesInProjects.RowCount += (ClsCommonDefine.s_MaxInitLineCount - arData.Count);
-        //        }
-
-        //        dgvSalesInProjects.ResumeLayout();
-        //    }
-        //    catch (Exception ex)
-        //    {
-        //        logger.ErrorFormat("システムエラー：{0}：{1}", ClsCommon.GetMethodName(), ex.Message);
-        //    }
-        //    finally
-        //    {
-        //        cbiDB.close();
-        //        cbiDB = null;
-
-        //        picDB.close();
-        //        picDB = null;
-        //    }
-        //}
-        #endregion
+        #region 予算取り案件一覧表示用データ取得SQL作成
         /// <summary>
-        /// 工事案件一覧表示用データ取得SQL作成
+        /// 予算取り案件一覧表示用データ取得SQL作成
         /// </summary>
-        private string CreateSalesInProjectsSQL()
+        private string CreateBudgetUpProjectsSQL()
         {
             string strSQL = string.Empty;
             try
             {
                 List<int> stat = new List<int>();
-                stat.Add((int)CommonDefine.BaseInfoEstimateType.Normal);
+                stat.Add((int)CommonDefine.BaseInfoEstimateType.GetBudget);
 
                 strSQL += CreateListSQL(stat, true);
 
@@ -1384,9 +1694,31 @@
             }
         }
         #endregion
+        #endregion
 
         #region 受注状況一覧表示関連
+        #region 受注状況一覧データ並び
         /// <summary>
+        /// 受注状況一覧データ並び
+        /// </summary>
+        private enum DBColumn2
+        {
+            ConstructionCode = 0,
+            ConstructionPeriod,
+            DETAILNO,
+            DETAILSTRING,
+            ConstructionStatusFlg,
+            EstimatesSubmitDeadline,
+            S_PERSONNAME,
+            C_PERSONNAME,
+            CS_PERSONNAME,
+            I_PERSONNAME,
+            DepartmentCode,
+        }
+        #endregion
+
+        #region 受注状況一覧表示
+        /// <summary>
         /// 受注状況一覧表示
         /// </summary>
         private void DispConstructionProjects()
@@ -1393,7 +1725,6 @@
         {
             ClsSystemOnceExecute ChkProc = new ClsSystemOnceExecute();
             IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
             IOMDepartment dmDB = new IOMDepartment();
             dgvConstructionProjects.SuspendLayout();
             try
@@ -1400,12 +1731,24 @@
             {
                 dgvConstructionProjects.Rows.Clear();
                 // SQL作成
-                string strSQL = CreateConstructionProjectsSQL();
-                //strSQL += string.Format(" And ConstructionPeriod = {0}", CommonMotions.SystemMasterData.BusinessPeriod);
-                strSQL += " Order By ConstructionPeriod Desc, ConstructionStatusFlg Asc, ConstructionCode Asc";
-                List<ConstructionBaseInfo> arData = new List<ConstructionBaseInfo>();
+                string strSQL = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DETAILNO, B.DETAILSTRING, A.ConstructionStatusFlg,";
+                strSQL += " A.EstimatesSubmitDeadline, C.PERSONNAME, D.PERSONNAME, E.PERSONNAME, F.PERSONNAME, D.DepartmentCode , A.*";
+                strSQL += " FROM (CONSTRUCTIONBASEINFO A LEFT JOIN PERSONINCHARGEMASTER D ON D.PERSONCODE = A.CONSTRUCTIONPERSONCODE)";
+                strSQL += " LEFT JOIN PERSONINCHARGEMASTER E ON E.PERSONCODE = A.CONSTRSUBPERSONCODE";
+                strSQL += " LEFT JOIN PERSONINCHARGEMASTER F ON E.PERSONCODE = A.CONSTRUCTIONINSTRUCTOR";
+                strSQL += " , CONSTRUCTIONBASEINFODETAIL B, PERSONINCHARGEMASTER C";
+
+                strSQL += CreateConstructionProjectsSQL();
+
+                strSQL += " AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND B.DETAILNO <= {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);
+                strSQL += " AND C.PERSONCODE = A.SALESPERSONCODE";
+                
+                strSQL += " Order By A.ConstructionPeriod Desc, A.ConstructionStatusFlg Asc, A.ConstructionCode Asc, B.DETAILNO ASC";
+                ArrayList arData = new ArrayList();
+
                 // 工事基本情報取得
-                if (!cbiDB.SelectAction(strSQL, ref arData)) return;
+                if (!cbiDB.ExecuteReader(strSQL, ref arData)) return;
                 if (arData.Count == 0) return;
 
                 ProgressConstructionProjects.Visible = true;
@@ -1424,9 +1767,6 @@
                 long lDep04 = 0;
                 long lDep05 = 0;
                 List<string> Details = new List<string>();
-                PersonInChargeMaster salesData = new PersonInChargeMaster();
-                PersonInChargeMaster constructorData = new PersonInChargeMaster();
-                PersonInChargeMaster InstructorData = new PersonInChargeMaster();
 
                 // 期数をセットする
                 string strPeriod = CreateConstructionProjectsSQL();
@@ -1446,40 +1786,46 @@
                 DataGridViewRow[] list = new DataGridViewRow[arData.Count + BlankCnt];
 
                 // 先頭の期数を取得する
-                ConstructionBaseInfo firstwrkRec = arData[0];
-                int BreakConstructionPeriod = firstwrkRec.ConstructionPeriod;
+                object[] firstwrkRec = (object[])arData[0];
+                int BreakConstructionPeriod = CommonMotions.cnvInt(firstwrkRec[(int)DBColumn1.ConstructionPeriod]);
                 int iLineCnt = 0;
-                foreach (ConstructionBaseInfo wrkRec in arData)
+                int DBCnt = Enum.GetNames(typeof(DBColumn2)).Length;
+                int BreakConstructionCode = 0;
+                foreach (object[] DataRec in arData)
                 {
+                    int iConstructionCode = CommonMotions.cnvInt(DataRec[(int)DBColumn2.ConstructionCode]);
+                    int iConstructionPeriod = CommonMotions.cnvInt(DataRec[(int)DBColumn2.ConstructionPeriod]);
+                    int iConstructionStatusFlg = CommonMotions.cnvInt(DataRec[(int)DBColumn2.ConstructionStatusFlg]);
+                    DateTime dEstimatesSubmitDeadline = CommonMotions.cnvDate(DataRec[(int)DBColumn2.EstimatesSubmitDeadline]);
+                    string salesname = CommonMotions.cnvString(DataRec[(int)DBColumn2.S_PERSONNAME]);
+                    string constructorname = CommonMotions.cnvString(DataRec[(int)DBColumn2.C_PERSONNAME]);
+                    if (constructorname.Length == 0) constructorname = CommonDefine.s_UndecidedString;
+                    string instructorname = CommonMotions.cnvString(DataRec[(int)DBColumn2.I_PERSONNAME]);
+                    if (instructorname.Length == 0) instructorname = CommonDefine.s_UndecidedString;
+                    int iDepartmentCode = CommonMotions.cnvInt(DataRec[(int)DBColumn2.DepartmentCode]);
 
-                    // 営業担当名取得
-                    string strSales = picDB.CreatePrimarykeyString(wrkRec.SalesPersonCode);
-                    picDB.ClearStruct(ref salesData);
-                    picDB.SelectAction(strSales, ref salesData);
-                    string salesname = salesData.PersonName;
+                    if (iConstructionCode == BreakConstructionCode) continue;
+                    // 名称取得
+                    getDetailStrings(iConstructionCode, arData, ref Details);
 
-                    // 工事担当名取得
-                    string strConstructor = picDB.CreatePrimarykeyString(wrkRec.ConstructionPersonCode);
-                    picDB.ClearStruct(ref constructorData);
-                    string constructorname = CommonDefine.s_UndecidedString;
-                    if (picDB.SelectAction(strConstructor, ref constructorData)) constructorname = constructorData.PersonName;
+                    BreakConstructionCode = iConstructionCode;
 
-                    // 工事指導員取得
-                    string strConstructionInstructor = picDB.CreatePrimarykeyString(wrkRec.ConstructionInstructor);
-                    picDB.ClearStruct(ref InstructorData);
-                    string instructorname = "";
-                    if (picDB.SelectAction(strConstructionInstructor, ref InstructorData)) instructorname = InstructorData.PersonName;
+                    // データを工事情報のフォーマットに詰めなおす
+                    ConstructionBaseInfo wrkRec = new ConstructionBaseInfo();
+                    int objCnt = DataRec.Length - DBCnt;
+                    object[] wrkobj = new object[objCnt];
+                    for (int i = 0; i < objCnt; i++)
+                    {
+                        wrkobj[i] = DataRec[i + DBCnt];
+                    }
+                    cbiDB.Reader2Struct(wrkobj, ref wrkRec);
 
-                    // 名称取得
-                    getDetailStrings(wrkRec.ConstructionCode, Details);
 
                     // 期が違えば空白を開ける
                     if (BreakConstructionPeriod != wrkRec.ConstructionPeriod)
                     {
-                        DataGridViewRow brow = new DataGridViewRow();
-                        brow.CreateCells(dgvConstructionProjects);
-                        list[iLineCnt] = brow;
                         BreakConstructionPeriod = wrkRec.ConstructionPeriod;
+                        dgvConstructionProjects.Rows.Add();
                         iLineCnt++;
                     }
                     string jyutyu = "";
@@ -1488,9 +1834,7 @@
                     int iStatusFlg = wrkRec.ConstructionStatusFlg;
 
                     // データセット
-                    DataGridViewRow row = new DataGridViewRow();
-                    row.CreateCells(dgvConstructionProjects);
-                    row.SetValues(new object[] { wrkRec.ConstructionCode
+                    int LineCnt = dgvConstructionProjects.Rows.Add(wrkRec.ConstructionCode
                                                 , ino
                                                 , wrkRec.ConstructionPeriod
                                                 , Details[0]
@@ -1502,11 +1846,11 @@
                                                 , CommonMotions.cnvDateToUndecidedString(wrkRec.OrderCompletionDate)
                                                 , Details[1] + Details[2] + Details[3]
                                                 , Details[4]
-                                                , jyutyu });
+                                                , jyutyu );
 
                     // エラー行に色を付ける
+                    DataGridViewRow row = dgvConstructionProjects.Rows[LineCnt];
                     DispErrorSubmittedDateRow(dgvConstructionProjects, row, wrkRec, ChkProc);
-                    list[iLineCnt] = row;
                     iLineCnt++;
 
                     // ProgressBarの値を変更する
@@ -1524,23 +1868,23 @@
                     else
                     {
                         lTotal02 += (long)wrkRec.OrdersDecisionPrice;
-                        if (constructorData.DepartmentCode == s_ConstructionProjectsTotalCode1)
+                        if (iDepartmentCode == s_ConstructionProjectsTotalCode1)
                         {          // 山本組
                             lDep01 += (long)wrkRec.OrdersDecisionPrice;
                         }
-                        else if (constructorData.DepartmentCode == s_ConstructionProjectsTotalCode2)
+                        else if (iDepartmentCode == s_ConstructionProjectsTotalCode2)
                         {          // 工事部
                             lDep02 += (long)wrkRec.OrdersDecisionPrice;
                         }
-                        else if (constructorData.DepartmentCode == s_ConstructionProjectsTotalCode3)
+                        else if (iDepartmentCode == s_ConstructionProjectsTotalCode3)
                         {          // 営繕部
                             lDep03 += (long)wrkRec.OrdersDecisionPrice;
                         }
-                        else if (constructorData.DepartmentCode == s_ConstructionProjectsTotalCode4)
+                        else if (iDepartmentCode == s_ConstructionProjectsTotalCode4)
                         {          // 営業
                             lDep04 += (long)wrkRec.OrdersDecisionPrice;
                         }
-                        else if (constructorData.DepartmentCode == s_ConstructionProjectsTotalCode5)
+                        else if (iDepartmentCode == s_ConstructionProjectsTotalCode5)
                         {          // 企画・設計・リフォーム部
                             lDep05 += (long)wrkRec.OrdersDecisionPrice;
                         }
@@ -1551,9 +1895,6 @@
                 dgvConstructionProjects.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
                 dgvConstructionProjects.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
 
-                // グリッドに表示
-                dgvConstructionProjects.Rows.AddRange(list);
-
                 // ProgressBarの値を変更する
                 ProgressConstructionProjects.Value = ProgressConstructionProjects.Maximum;
                 ProgressConstructionProjects.Update();
@@ -1614,116 +1955,13 @@
 
                 ChkProc = null;
                 cbiDB.close(); cbiDB = null;
-                picDB.close(); picDB = null;
                 dmDB.close(); dmDB = null;
                 dgvConstructionProjects.ResumeLayout();
             }
         }
-        #region 旧案件一覧表示
-        //private void DispConstructionProjects()
-        //{
-        //    IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-        //    IOMPersonInCharge picDB = new IOMPersonInCharge();
-        //    try
-        //    {
-        //        dgvConstructionProjects.Rows.Clear();
-        //        // SQL作成
-        //        string strSQL = CreateConstructionProjectsSQL();
-        //        ArrayList arData = new ArrayList();
-        //        // 工事基本情報取得
-        //        if (cbiDB.ExecuteReader(strSQL, ref arData))
-        //        {
-        //            ProgressConstructionProjects.Visible = true;
-        //            ProgressConstructionProjects.Minimum = 0;
-        //            ProgressConstructionProjects.Maximum = arData.Count;
-        //            tabPage9.Update();
-        //            //Thread.Sleep(100);
-
-        //            dgvConstructionProjects.SuspendLayout();
-
-        //            // データ表示
-        //            int ino = 1;
-        //            long lTotal = 0;
-        //            foreach (object[] objwrk in arData)
-        //            {
-        //                // 営業担当名取得
-        //                string strSales = picDB.CreatePrimarykeyString(int.Parse(objwrk[3].ToString()));
-        //                PersonInChargeMaster salesData = new PersonInChargeMaster();
-        //                picDB.SelectAction(strSales, ref salesData);
-        //                string salesname = salesData.PersonName;
-        //                // 工事担当名取得
-        //                string strConstructor = picDB.CreatePrimarykeyString(int.Parse(objwrk[4].ToString()));
-        //                PersonInChargeMaster constructorData = new PersonInChargeMaster();
-        //                string constructorname = ClsCommonDefine.s_UndecidedString;
-        //                if (picDB.SelectAction(strConstructor, ref constructorData)) constructorname = constructorData.PersonName;
-        //                // 工事指導員取得
-        //                string strConstructionInstructor = picDB.CreatePrimarykeyString(int.Parse(objwrk[16].ToString()));
-        //                PersonInChargeMaster InstructorData = new PersonInChargeMaster();
-        //                string instructorname = "";
-        //                if (picDB.SelectAction(strConstructionInstructor, ref InstructorData)) instructorname = InstructorData.PersonName;
-
-        //                string jyutyu = "";
-        //                if (ClsCommon.cnvInt(objwrk[15].ToString()) != 0)
-        //                    jyutyu = @"\" + ClsCommon.cnvInt(objwrk[15].ToString()).ToString("#,#") + "-";
-
-        //                dgvConstructionProjects.Rows.Add(objwrk[0].ToString()
-        //                                            , ino
-        //                                            , objwrk[1].ToString()
-        //                                            , objwrk[2].ToString()
-        //                                            , ClsCommonDefine.ConstructionProjectsStatus[int.Parse(objwrk[11].ToString())]
-        //                                            , salesname
-        //                                            , constructorname
-        //                                            , instructorname
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[5].ToString()))
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[6].ToString()))
-        //                                            , objwrk[7].ToString() + objwrk[8].ToString() + objwrk[9].ToString()
-        //                                            , objwrk[10].ToString()
-        //                                            , jyutyu
-        //                                            );
-        //                // ProgressBarの値を変更する
-        //                ProgressConstructionProjects.Value = ino++;
-        //                ProgressConstructionProjects.Update();
-
-        //                lTotal += ClsCommon.cnvInt(objwrk[15].ToString());
-        //            }
-        //            // ProgressBarの値を変更する
-        //            ProgressConstructionProjects.Value = ProgressConstructionProjects.Maximum;
-        //            ProgressConstructionProjects.Update();
-        //            ProgressConstructionProjects.Visible = false;
-
-        //            lblConstructionProjectsTotal.Text = @"\" + lTotal.ToString("#,0") + "-";
-        //        }
-
-        //        // データが多くなればソートできる
-        //        if (ClsCommonDefine.s_MaxInitLineCount < dgvConstructionProjects.RowCount)
-        //        {
-        //            foreach (DataGridViewColumn wrkCol in dgvConstructionProjects.Columns)
-        //                wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
-        //        }
-        //        else
-        //        {
-        //            // 読込時データカウント取得
-        //            dgvConstructionProjects.RowCount += (ClsCommonDefine.s_MaxInitLineCount - arData.Count);
-        //        }
-
-        //        dgvConstructionProjects.ResumeLayout();
-
-        //    }
-        //    catch (Exception ex)
-        //    {
-        //        logger.ErrorFormat("システムエラー：{0}：{1}", ClsCommon.GetMethodName(), ex.Message);
-        //    }
-        //    finally
-        //    {
-        //        cbiDB.close();
-        //        cbiDB = null;
-
-        //        picDB.close();
-        //        picDB = null;
-        //    }
-        //}
         #endregion
 
+        #region 受注状況一覧表示用データ取得SQL作成
         /// <summary>
         /// 受注状況一覧表示用データ取得SQL作成
         /// </summary>
@@ -1751,44 +1989,26 @@
             }
         }
         #endregion
+        #endregion
 
-        #region 期の最大・最少を取得する
+        #region 非受注案件一覧表示関連
+        #region 非受注状況一覧データ並び
         /// <summary>
-        /// 期の最大・最少を取得する
+        /// 非受注状況一覧データ並び
         /// </summary>
-        /// <param name="StartDate"></param>
-        /// <returns></returns>
-        private void GetPeriodYear(string strWhere, ref int min, ref int max)
+        private enum DBColumn3
         {
-            IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-            try
-            {
-                string strSQL = "SELECT ConstructionPeriod FROM CONSTRUCTIONBASEINFO";
-                strSQL += strWhere;
-                strSQL += " GROUP BY ConstructionPeriod";
-                ArrayList arList = new ArrayList();
-                if (!cbiDB.ExecuteReader(strSQL, ref arList)) return;
-                int[] iNumber = new int[arList.Count];
-                int i = 0;
-                foreach (object[] wrkobj in arList)
-                {
-                    iNumber[i++] = CommonMotions.cnvInt(wrkobj[0].ToString());
-                }
-                min = iNumber.Min();
-                max = iNumber.Max();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                cbiDB.close(); cbiDB = null;
-            }
+            ConstructionCode = 0,
+            ConstructionPeriod,
+            DETAILNO,
+            DETAILSTRING,
+            ConstructionStatusFlg,
+            EstimatesSubmitDeadline,
+            PERSONNAME,
         }
         #endregion
 
-        #region 非受注案件一覧表示関連
+        #region 非受注案件一覧表示
         /// <summary>
         /// 非受注案件一覧表示
         /// </summary>
@@ -1801,11 +2021,19 @@
             {
                 dgvNonOrders.Rows.Clear();
                 // SQL作成
-                string strSQL = CreateNonOrdersSQL();
-                strSQL += " Order By ConstructionPeriod Desc, ConstructionCode Desc";
-                List<ConstructionBaseInfo> arData = new List<ConstructionBaseInfo>();
+                string strSQL = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DETAILNO, B.DETAILSTRING, A.ConstructionStatusFlg, A.EstimatesSubmitDeadline, C.PERSONNAME, A.* ";
+                strSQL += " FROM CONSTRUCTIONBASEINFO A, CONSTRUCTIONBASEINFODETAIL B, PERSONINCHARGEMASTER C";
+                strSQL += CreateNonOrdersSQL();
+
+                strSQL += " AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND B.DETAILNO <= {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);
+                strSQL += " AND C.PERSONCODE = A.SALESPERSONCODE";
+
+                strSQL += " Order By A.ConstructionPeriod Desc, A.ConstructionCode Desc, B.DETAILNO ASC";
+                ArrayList arData = new ArrayList();
+
                 // 工事基本情報取得
-                if (!cbiDB.SelectAction(strSQL, ref arData)) return;
+                if (!cbiDB.ExecuteReader(strSQL, ref arData)) return;
                 if (arData.Count == 0) return;
 
                 ProgressNonOrders.Visible = true;
@@ -1824,42 +2052,52 @@
                 // 行を作成する
                 DataGridViewRow[] list = new DataGridViewRow[arData.Count + BlankCnt];
                 // 先頭の期数を取得する
-                ConstructionBaseInfo firstwrkRec = arData[0];
-                int BreakConstructionPeriod = firstwrkRec.ConstructionPeriod;
+                object[] firstwrkRec = (object[])arData[0];
+                int BreakConstructionPeriod = CommonMotions.cnvInt(firstwrkRec[(int)DBColumn1.ConstructionPeriod]);
                 int iLineCnt = 0;
-                foreach (ConstructionBaseInfo wrkRec in arData)
+                int DBCnt = Enum.GetNames(typeof(DBColumn3)).Length;
+                int BreakConstructionCode = 0;
+                foreach (object[] DataRec in arData)
                 {
-                    // 営業担当名取得
-                    string strSales = picDB.CreatePrimarykeyString(wrkRec.SalesPersonCode);
-                    picDB.ClearStruct(ref salesData);
-                    picDB.SelectAction(strSales, ref salesData);
-                    string salesname = salesData.PersonName;
+                    int iConstructionCode = CommonMotions.cnvInt(DataRec[(int)DBColumn3.ConstructionCode]);
+                    int iConstructionPeriod = CommonMotions.cnvInt(DataRec[(int)DBColumn3.ConstructionPeriod]);
+                    int iConstructionStatusFlg = CommonMotions.cnvInt(DataRec[(int)DBColumn3.ConstructionStatusFlg]);
+                    DateTime dEstimatesSubmitDeadline = CommonMotions.cnvDate(DataRec[(int)DBColumn3.EstimatesSubmitDeadline]);
+                    string salesname = CommonMotions.cnvString(DataRec[(int)DBColumn3.PERSONNAME]);
 
+                    if (iConstructionCode == BreakConstructionCode) continue;
                     // 名称取得
-                    getDetailStrings(wrkRec.ConstructionCode, Details);
+                    getDetailStrings(iConstructionCode, arData, ref Details);
 
+                    BreakConstructionCode = iConstructionCode;
+
+                    // データを工事情報のフォーマットに詰めなおす
+                    ConstructionBaseInfo wrkRec = new ConstructionBaseInfo();
+                    int objCnt = DataRec.Length - DBCnt;
+                    object[] wrkobj = new object[objCnt];
+                    for (int i = 0; i < objCnt; i++)
+                    {
+                        wrkobj[i] = DataRec[i + DBCnt];
+                    }
+                    cbiDB.Reader2Struct(wrkobj, ref wrkRec);
+
                     // 期が違えば空白を開ける
                     if (BreakConstructionPeriod != wrkRec.ConstructionPeriod)
                     {
-                        DataGridViewRow brow = new DataGridViewRow();
-                        brow.CreateCells(dgvNonOrders);
-                        list[iLineCnt] = brow;
                         BreakConstructionPeriod = wrkRec.ConstructionPeriod;
+                        dgvNonOrders.Rows.Add();
                         iLineCnt++;
                     }
 
                     // データセット
-                    DataGridViewRow row = new DataGridViewRow();
-                    row.CreateCells(dgvNonOrders);
-                    row.SetValues(new object[] { wrkRec.ConstructionCode
+                    int LineCnt = dgvNonOrders.Rows.Add(wrkRec.ConstructionCode
                                                 , ino
                                                 , wrkRec.ConstructionPeriod
                                                 , Details[0]
                                                 , salesname
                                                 , Details[4]
-                                                , Details[1] + Details[2] + Details[3]});
+                                                , Details[1] + Details[2] + Details[3]);
 
-                    list[iLineCnt] = row;
                     iLineCnt++;
 
                     // ProgressBarの値を変更する
@@ -1872,9 +2110,6 @@
                 dgvNonOrders.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
                 dgvNonOrders.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
 
-                // グリッドに表示
-                dgvNonOrders.Rows.AddRange(list);
-
                 // ProgressBarの値を変更する
                 ProgressNonOrders.Value = ProgressNonOrders.Maximum;
                 ProgressNonOrders.Update();
@@ -1903,6 +2138,9 @@
                 dgvNonOrders.ResumeLayout();
             }
         }
+        #endregion
+
+        #region 非受注案件一覧表示用データ取得SQL作成
         /// <summary>
         /// 非受注案件一覧表示用データ取得SQL作成
         /// </summary>
@@ -1915,6 +2153,7 @@
                 stat.Add(CommonDefine.ProjectsStatus.First(x => x.Value.Equals("非 受 注")).Key);            // 11
 
                 strSQL += CreateListSQL(stat);
+                strSQL += string.Format(" And CONSTRUCTIONPERIOD = {0}", numUDNonOrder.Value);
 
                 return strSQL;
             }
@@ -1924,88 +2163,29 @@
                 return string.Empty;
             }
         }
-        #region 旧非受注一覧
-        //private void DispNonOrders()
-        //{
-        //    IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-        //    IOMPersonInCharge picDB = new IOMPersonInCharge();
-        //    try
-        //    {
-        //        dgvNonOrders.Rows.Clear();
-        //        // SQL作成
-        //        string strSQL = CreateNonOrdersSQL();
-        //        ArrayList arData = new ArrayList();
-        //        // 工事基本情報取得
-        //        if (cbiDB.ExecuteReader(strSQL, ref arData))
-        //        {
-        //            ProgressNonOrders.Visible = true;
-        //            ProgressNonOrders.Minimum = 0;
-        //            ProgressNonOrders.Maximum = arData.Count;
-        //            tabPage14.Update();
-        //            //Thread.Sleep(100);
-
-        //            dgvNonOrders.SuspendLayout();
-
-        //            // データ表示
-        //            int ino = 1;
-        //            foreach (object[] objwrk in arData)
-        //            {
-        //                // 営業担当名取得
-        //                string strSales = picDB.CreatePrimarykeyString(int.Parse(objwrk[3].ToString()));
-        //                PersonInChargeMaster salesData = new PersonInChargeMaster();
-        //                picDB.SelectAction(strSales, ref salesData);
-        //                string salesname = salesData.PersonName;
-
-        //                dgvNonOrders.Rows.Add(objwrk[0].ToString()
-        //                                            , ino
-        //                                            , objwrk[1].ToString()
-        //                                            , objwrk[2].ToString()
-        //                                            , salesname
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[5].ToString()))
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[6].ToString()))
-        //                                            , objwrk[7].ToString() + objwrk[8].ToString() + objwrk[9].ToString()
-        //                                            , objwrk[10].ToString()
-        //                                            );
-
-        //                // ProgressBarの値を変更する
-        //                ProgressNonOrders.Value = ino++;
-        //                ProgressNonOrders.Update();
-        //            }
-        //            // ProgressBarの値を変更する
-        //            ProgressNonOrders.Value = ProgressNonOrders.Maximum;
-        //            ProgressNonOrders.Update();
-        //            ProgressNonOrders.Visible = false;
-        //        }
-
-        //        // データが多くなればソートできる
-        //        if (ClsCommonDefine.s_MaxInitLineCount < dgvNonOrders.RowCount)
-        //        {
-        //            foreach (DataGridViewColumn wrkCol in dgvNonOrders.Columns)
-        //                wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
-        //        }
-        //        else
-        //        {
-        //            // 読込時データカウント取得
-        //            dgvNonOrders.RowCount += (ClsCommonDefine.s_MaxInitLineCount - arData.Count);
-        //        }
-
-        //        dgvNonOrders.ResumeLayout();
-        //    }
-        //    catch (Exception ex)
-        //    {
-        //        logger.ErrorFormat("システムエラー：{0}：{1}", ClsCommon.GetMethodName(), ex.Message);
-        //    }
-        //    finally
-        //    {
-        //        cbiDB.close(); cbiDB = null;
-        //        picDB.close(); picDB = null;
-        //    }
-        //}
         #endregion
         #endregion
 
         #region 完了案件一覧表示関連
+        #region 完了工事一覧データ並び
         /// <summary>
+        /// 完了工事一覧データ並び
+        /// </summary>
+        private enum DBColumn4
+        {
+            ConstructionCode = 0,
+            ConstructionPeriod,
+            DETAILNO,
+            DETAILSTRING,
+            ConstructionStatusFlg,
+            CompletionDate,
+            S_PERSONNAME,
+            C_PERSONNAME,
+        }
+        #endregion
+
+        #region 完了案件一覧表示
+        /// <summary>
         /// 完了案件一覧表示
         /// </summary>
         private void DispCompletionOfConstruction()
@@ -2017,11 +2197,20 @@
             {
                 dgvCompletionOfConstruction.Rows.Clear();
                 // SQL作成
-                DateTime StartDate = DateTime.Parse(DateTime.Now.FiscalYear().ToString() + "/" + CommonMotions.SystemMasterData.BusinessBeginningDate);
-                string strSQL = CreateCompletionOfConstructionSQL(StartDate.AddYears(-1));
-                List<ConstructionBaseInfo> arData = new List<ConstructionBaseInfo>();
+                string strSQL = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DETAILNO, B.DETAILSTRING, A.ConstructionStatusFlg,";
+                strSQL += " A.ConstructionCompletionDate, C.PERSONNAME, D.PERSONNAME, A.* ";
+                strSQL += " FROM CONSTRUCTIONBASEINFO A LEFT JOIN  PERSONINCHARGEMASTER D  ON D.PERSONCODE = A.CONSTRUCTIONPERSONCODE,";
+                strSQL += " CONSTRUCTIONBASEINFODETAIL B , PERSONINCHARGEMASTER C";
+
+                strSQL += CreateCompletionOfConstructionSQL();
+                strSQL += string.Format(" AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE AND B.DETAILNO <= {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionPlace3);
+                strSQL += " AND C.PERSONCODE = A.SALESPERSONCODE";
+
+                strSQL += " Order By A.ConstructionCompletionDate Desc, A.ConstructionCode Asc, A.ConstructionStatusFlg Asc, B.DETAILNO ASC";
+                ArrayList arData = new ArrayList();
+
                 // 工事基本情報取得
-                if (!cbiDB.SelectAction(strSQL, ref arData)) return;
+                if (!cbiDB.ExecuteReader(strSQL, ref arData)) return;
                 if (arData.Count == 0) return;
 
                 ProgressCompletionOfConstruction.Visible = true;
@@ -2030,8 +2219,8 @@
                 tabPage15.Update();
                 //Thread.Sleep(100);
 
-                lblCompTitile01.Visible = false;
-                lblCompTitile02.Visible = false;
+                lblCompTitle01.Visible = false;
+                lblCompTitle02.Visible = false;
                 lblCompTotal01.Visible = false;
                 lblCompTotal02.Visible = false;
 
@@ -2039,28 +2228,48 @@
 
                 // 1件目取得
                 DateTime BreakDate = DateTime.Now;
-                if (arData.Count != 0)
-                {
-                    BreakDate = arData[0].ConstructionCompletionDate;
-                }
+                object[] firstwrkRec = (object[])arData[0];
+                int BreakConstructionPeriod = CommonMotions.cnvInt(firstwrkRec[(int)DBColumn1.ConstructionPeriod]);
+                BreakDate = CommonMotions.cnvDate(firstwrkRec[(int)DBColumn4.CompletionDate]);
 
                 // データ表示
                 int ino = 1;
-                long Total01 = 0;
-                long Total02 = 0;
                 DateTime BreakPeriodDate = DateTime.Parse(DateTime.Now.FiscalYear().ToString() + "/" + CommonMotions.SystemMasterData.BusinessBeginningDate);
                 List<string> Details = new List<string>();
-                PersonInChargeMaster salesData = new PersonInChargeMaster();
-                PersonInChargeMaster constructorData = new PersonInChargeMaster();
-                ArrayList personlist= new ArrayList();
+                ArrayList personlist = new ArrayList();
                 // 月のカウントから空白行数を取得する
-                int BlankCount = GetMonthryCount(StartDate.AddYears(-1));
+                //int BlankCount = GetMonthryCount(StartDate.AddYears(-1));
+                int BlankCount = GetMonthryCount();
                 if (BlankCount > 2) BlankCount--;
-                // 行を作成する
-                DataGridViewRow[] list = new DataGridViewRow[arData.Count + BlankCount];
                 int iLineCnt = 0;
-                foreach (ConstructionBaseInfo wrkRec in arData)
+                int DBCnt = Enum.GetNames(typeof(DBColumn4)).Length;
+                int BreakConstructionCode = 0;
+                foreach (object[] DataRec in arData)
                 {
+                    int iConstructionCode = CommonMotions.cnvInt(DataRec[(int)DBColumn1.ConstructionCode]);
+                    int iConstructionPeriod = CommonMotions.cnvInt(DataRec[(int)DBColumn1.ConstructionPeriod]);
+                    int iConstructionStatusFlg = CommonMotions.cnvInt(DataRec[(int)DBColumn1.ConstructionStatusFlg]);
+                    DateTime dEstimatesSubmitDeadline = CommonMotions.cnvDate(DataRec[(int)DBColumn1.EstimatesSubmitDeadline]);
+                    string salesname = CommonMotions.cnvString(DataRec[(int)DBColumn1.S_PERSONNAME]);
+                    string constructorname = CommonMotions.cnvString(DataRec[(int)DBColumn1.C_PERSONNAME]);
+                    if (constructorname.Length == 0) constructorname = CommonDefine.s_UndecidedString;
+
+                    if (iConstructionCode == BreakConstructionCode) continue;
+                    // 名称取得
+                    getDetailStrings(iConstructionCode, arData, ref Details);
+
+                    BreakConstructionCode = iConstructionCode;
+
+                    // データを工事情報のフォーマットに詰めなおす
+                    ConstructionBaseInfo wrkRec = new ConstructionBaseInfo();
+                    int objCnt = DataRec.Length - DBCnt;
+                    object[] wrkobj = new object[objCnt];
+                    for (int i = 0; i < objCnt; i++)
+                    {
+                        wrkobj[i] = DataRec[i + DBCnt];
+                    }
+                    cbiDB.Reader2Struct(wrkobj, ref wrkRec);
+
                     // 月が変われば1行開ける
                     string breakYM = BreakDate.ToShortDateString();
                     breakYM = breakYM.Substring(0, breakYM.LastIndexOf('/'));
@@ -2070,35 +2279,14 @@
 
                     if (string.Compare(breakYM, DataYm) != 0)
                     {
-                        DataGridViewRow brow = new DataGridViewRow();
-                        brow.CreateCells(dgvCompletionOfConstruction);
-                        list[iLineCnt] = brow;
+                        dgvCompletionOfConstruction.Rows.Add();
                         iLineCnt++;
                     }
 
                     BreakDate = wrkRec.ConstructionCompletionDate;
 
-                    personlist.Clear();
-                    string salesname = CommonDefine.s_UndecidedString;
-                    string constructorname = CommonDefine.s_UndecidedString;
-                    string PersonSQL = string.Format("SELECT * FROM (SELECT C.PERSONNAME FROM PERSONINCHARGEMASTER C WHERE C.PERSONCODE = {0}) A,", wrkRec.SalesPersonCode);
-                    PersonSQL += string.Format("(SELECT D.PERSONNAME FROM PERSONINCHARGEMASTER D WHERE D.PERSONCODE = {0}) B", wrkRec.ConstructionPersonCode);
-                    if (picDB.ExecuteReader(PersonSQL, ref personlist) && personlist.Count != 0)
-                    {
-                        object[] wrkobj = (object[])personlist[0];
-                        // 営業担当名取得
-                        salesname = wrkobj[0].ToString();
-                        // 工事担当名取得
-                        constructorname = wrkobj[1].ToString();
-                    }
-
-                    // 名称取得
-                    getDetailStrings(wrkRec.ConstructionCode, Details);
-
                     // データセット
-                    DataGridViewRow row = new DataGridViewRow();
-                    row.CreateCells(this.dgvCompletionOfConstruction);
-                    row.SetValues(new object[] { wrkRec.ConstructionCode.ToString()
+                    int LineCnt = dgvCompletionOfConstruction.Rows.Add(wrkRec.ConstructionCode.ToString()
                                                 , ino
                                                 , wrkRec.ConstructionPeriod.ToString()
                                                 , Details[0]
@@ -2109,27 +2297,16 @@
                                                 , CommonMotions.cnvDateToUndecidedString(wrkRec.ConstructionStartingDate)
                                                 , CommonMotions.cnvDateToUndecidedString(wrkRec.ConstructionCompletionDate)
                                                 , Details[1] + Details[2] + Details[3]
-                                                , Details[4]});
+                                                , Details[4]);
 
                     // エラー行に色を付ける
+                    DataGridViewRow row = dgvCompletionOfConstruction.Rows[LineCnt];
                     DispErrorSubmittedDateRow(dgvCompletionOfConstruction, row, wrkRec, ChkProc);
-                    list[iLineCnt] = row;
                     iLineCnt++;
 
                     // ProgressBarの値を変更する
                     ProgressCompletionOfConstruction.Value = ino++;
                     ProgressCompletionOfConstruction.Update();
-
-                    // 金額加算
-                    if (wrkRec.ConstructionCompletionDate.Date < BreakPeriodDate.Date)
-                    {
-                        // 前期
-                        Total01 += (long)wrkRec.OrdersDecisionPrice;
-                    }
-                    else
-                    {   // 今期
-                        Total02 += (long)wrkRec.OrdersDecisionPrice;
-                    }
                 }
                 // 行や列を追加したり、セルに値を設定するときは、自動サイズ設定しない。
                 dgvCompletionOfConstruction.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
@@ -2136,9 +2313,6 @@
                 dgvCompletionOfConstruction.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
                 dgvCompletionOfConstruction.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
 
-                // グリッドに表示
-                dgvCompletionOfConstruction.Rows.AddRange(list);
-
                 // ProgressBarの値を変更する
                 ProgressCompletionOfConstruction.Value = ProgressCompletionOfConstruction.Maximum;
                 ProgressCompletionOfConstruction.Update();
@@ -2145,6 +2319,8 @@
                 ProgressCompletionOfConstruction.Visible = false;
 
                 // 金額表示
+                long Total01 = CalcOrdersDecisionPrice((numUDCompletion.Value - 1));
+                long Total02 = CalcOrdersDecisionPrice(numUDCompletion.Value);
                 lblCompTotal01.Text = @"\" + Total01.ToString("#,0") + "-";
                 lblCompTotal02.Text = @"\" + Total02.ToString("#,0") + "-";
 
@@ -2152,8 +2328,8 @@
                 if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement ||
                     CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key)
                 {
-                    lblCompTitile01.Visible = true;
-                    lblCompTitile02.Visible = true;
+                    lblCompTitle01.Visible = true;
+                    lblCompTitle02.Visible = true;
                     lblCompTotal01.Visible = true;
                     lblCompTotal02.Visible = true;
                 }
@@ -2179,121 +2355,13 @@
                 ChkProc = null;
             }
         }
-        #region 旧施工完了表示
-        //private void DispCompletionOfConstruction()
-        //{
-        //    IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
-        //    IOMPersonInCharge picDB = new IOMPersonInCharge();
-        //    try
-        //    {
-        //        dgvCompletionOfConstruction.Rows.Clear();
-        //        // SQL作成
-        //        string strSQL = CreateCompletionOfConstructionSQL();
-        //        ArrayList arData = new ArrayList();
-        //        // 工事基本情報取得
-        //        if (cbiDB.ExecuteReader(strSQL, ref arData))
-        //        {
-        //            ProgressCompletionOfConstruction.Visible = true;
-        //            ProgressCompletionOfConstruction.Minimum = 0;
-        //            ProgressCompletionOfConstruction.Maximum = arData.Count;
-        //            tabPage15.Update();
-        //            //Thread.Sleep(100);
+        #endregion
 
-        //            dgvCompletionOfConstruction.SuspendLayout();
-
-        //            // 1件目年月取得
-        //            DateTime BreakDate = DateTime.Now;
-        //            if (arData.Count != 0)
-        //            {
-        //                object[] objRec0 = (object[])arData[0];
-        //                BreakDate = ClsCommon.cnvDate(objRec0[12].ToString());
-        //            }
-
-        //            // データ表示
-        //            int ino = 1;
-        //            foreach (object[] objwrk in arData)
-        //            {
-        //                // 月が変われば1行開ける
-        //                if (ino != 0)
-        //                {
-        //                    string breakYM =  BreakDate.ToShortDateString();
-        //                    breakYM = breakYM.Substring(0, breakYM.LastIndexOf('/'));
-
-        //                    string DataYm = ClsCommon.cnvDate(objwrk[17].ToString()).ToString();
-        //                    DataYm = DataYm.Substring(0, DataYm.LastIndexOf('/'));
-
-        //                    if (string.Compare(breakYM, DataYm) != 0)
-        //                        dgvCompletionOfConstruction.Rows.Add("", "", "", "", "", "", "", "", "", "", "");
-
-        //                    BreakDate = ClsCommon.cnvDate(objwrk[17].ToString());
-        //                }
-
-        //                // 営業担当名取得
-        //                string strSales = picDB.CreatePrimarykeyString(int.Parse(objwrk[3].ToString()));
-        //                PersonInChargeMaster salesData = new PersonInChargeMaster();
-        //                picDB.SelectAction(strSales, ref salesData);
-        //                string salesname = salesData.PersonName;
-        //                // 工事担当名取得
-        //                string strConstructor = picDB.CreatePrimarykeyString(int.Parse(objwrk[4].ToString()));
-        //                PersonInChargeMaster constructorData = new PersonInChargeMaster();
-        //                string constructorname = ClsCommonDefine.s_UndecidedString;
-        //                if (picDB.SelectAction(strConstructor, ref constructorData)) constructorname = constructorData.PersonName;
-
-        //                dgvCompletionOfConstruction.Rows.Add(objwrk[0].ToString()
-        //                                            , ino
-        //                                            , objwrk[1].ToString()
-        //                                            , objwrk[2].ToString()
-        //                                            , salesname
-        //                                            , constructorname
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[17].ToString()))
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[5].ToString()))
-        //                                            , ClsCommon.cnvDateToUndecidedString(ClsCommon.cnvDate(objwrk[6].ToString()))
-        //                                            , objwrk[7].ToString() + objwrk[8].ToString() + objwrk[9].ToString()
-        //                                            , objwrk[10].ToString()
-        //                                            );
-
-        //                // ProgressBarの値を変更する
-        //                ProgressCompletionOfConstruction.Value = ino++;
-        //                ProgressCompletionOfConstruction.Update();
-        //            }
-        //            // ProgressBarの値を変更する
-        //            ProgressCompletionOfConstruction.Value = ProgressCompletionOfConstruction.Maximum;
-        //            ProgressCompletionOfConstruction.Update();
-        //            ProgressCompletionOfConstruction.Visible = false;
-        //        }
-
-        //        // データが多くなればソートできる
-        //        if (ClsCommonDefine.s_MaxInitLineCount < dgvCompletionOfConstruction.RowCount)
-        //        {
-        //            foreach (DataGridViewColumn wrkCol in dgvCompletionOfConstruction.Columns)
-        //                wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
-        //        }
-        //        else
-        //        {
-        //            // 読込時データカウント取得
-        //            dgvCompletionOfConstruction.RowCount += (ClsCommonDefine.s_MaxInitLineCount - arData.Count);
-        //        }
-
-        //        dgvCompletionOfConstruction.ResumeLayout();
-        //    }
-        //    catch (Exception ex)
-        //    {
-        //        logger.ErrorFormat("システムエラー：{0}：{1}", ClsCommon.GetMethodName(), ex.Message);
-        //    }
-        //    finally
-        //    {
-        //        cbiDB.close();
-        //        cbiDB = null;
-
-        //        picDB.close();
-        //        picDB = null;
-        //    }
-        //}
-        #endregion
+        #region 完了案件一覧表示用データ取得SQL作成
         /// <summary>
         /// 完了案件一覧表示用データ取得SQL作成
         /// </summary>
-        private string CreateCompletionOfConstructionSQL(DateTime StartDate)
+        private string CreateCompletionOfConstructionSQL()
         {
             string strSQL = string.Empty;
             try
@@ -2305,10 +2373,9 @@
 
                 strSQL += CreateListSQL(stat);
 
-                strSQL += string.Format(" And TO_DATE('{0}', 'yyyy/dd/mm') <= ConstructionCompletionDate", StartDate.ToShortDateString());
+                //strSQL += string.Format(" And TO_DATE('{0}', 'yyyy/dd/mm') <= ConstructionCompletionDate", StartDate.ToShortDateString());
+                strSQL += string.Format(" And CONSTRUCTIONPERIOD = {0}", numUDCompletion.Value);
 
-                strSQL += " Order By ConstructionCompletionDate Desc, ConstructionCode Asc, ConstructionStatusFlg Asc";
-
                 return strSQL;
             }
             catch (Exception ex)
@@ -2319,6 +2386,110 @@
         }
         #endregion
 
+        #region 対象期の受注金額計
+        /// <summary>
+        /// 対象期の受注金額計
+        /// </summary>
+        /// <param name="Period"></param>
+        /// <returns></returns>
+        private long CalcOrdersDecisionPrice(decimal Period)
+        {
+            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            try
+            {
+                int[] Status = new int[] {CommonDefine.ProjectsStatus.First(x => x.Value.Equals("施工完了")).Key,
+                                            CommonDefine.ProjectsStatus.First(x => x.Value.Equals("請求準備")).Key,
+                                            CommonDefine.ProjectsStatus.First(x => x.Value.Equals("請求完了")).Key};
+
+                string strSQL = "SELECT SUM(ORDERSDECISIONPRICE) FROM CONSTRUCTIONBASEINFO";
+                strSQL += string.Format(" WHERE CONSTRUCTIONPERIOD = {0}", Period);
+                strSQL += string.Format(" AND CONSTRUCTIONSTATUSFLG IN ({0}, {1}, {2})", Status[0], Status[1], Status[2]);
+                ArrayList arryList = new ArrayList();
+                if (!BaseDB.ExecuteReader(strSQL, ref arryList)) return 0;
+                if (arryList.Count == 0) return 0;
+                object[] getObj = (object[])arryList[0];
+
+                return CommonMotions.cnvLong(getObj[0]);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+            finally
+            {
+                BaseDB.close(); BaseDB = null;
+            }
+        }
+        #endregion
+        #endregion
+
+        #region 期の最大・最少を取得する
+        /// <summary>
+        /// 期の最大・最少を取得する
+        /// </summary>
+        /// <param name="StartDate"></param>
+        /// <returns></returns>
+        private void GetPeriodYear(string strWhere, ref int min, ref int max)
+        {
+            IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
+            try
+            {
+                string strSQL = "SELECT ConstructionPeriod FROM CONSTRUCTIONBASEINFO";
+                strSQL += strWhere;
+                strSQL += " GROUP BY ConstructionPeriod";
+                ArrayList arList = new ArrayList();
+                if (!cbiDB.ExecuteReader(strSQL, ref arList)) return;
+                int[] iNumber = new int[arList.Count];
+                int i = 0;
+                foreach (object[] wrkobj in arList)
+                {
+                    iNumber[i++] = CommonMotions.cnvInt(wrkobj[0].ToString());
+                }
+                min = iNumber.Min();
+                max = iNumber.Max();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                cbiDB.close(); cbiDB = null;
+            }
+        }
+        #endregion
+
+        #region 数字選択ボックス初期営業期セット
+        /// <summary>
+        /// 数字選択ボックス初期営業期セット
+        /// </summary>
+        /// <param name="numUPObject"></param>
+        private void SetInitNumUDData(NumericUpDown numUPObject)
+        {
+            try
+            {
+                m_bInitFlg = true;
+                // 検索年度セット
+                // データにある事業期と現在の事業セット
+                int minval = 0;
+                int maxval = 0;
+                CommonMotions.GetPeriodYear(ref minval, ref maxval);
+                numUPObject.Minimum = minval;
+                numUPObject.Maximum = maxval;
+                numUPObject.Value = CommonMotions.SystemMasterData.BusinessPeriod;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                m_bInitFlg = false;
+            }
+        }
+        #endregion
+
         #region 月毎の件数を取得する
         /// <summary>
         /// 月毎の件数を取得する
@@ -2325,7 +2496,7 @@
         /// </summary>
         /// <param name="StartDate"></param>
         /// <returns></returns>
-        private int GetMonthryCount(DateTime StartDate)
+        private int GetMonthryCount()
         {
             IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
             try
@@ -2338,7 +2509,8 @@
 
                 string strSQL = "SELECT TO_CHAR(ConstructionCompletionDate,'YYYY/MM'), count(*) FROM CONSTRUCTIONBASEINFO";
                 strSQL += CreateListSQL(stat);
-                strSQL += string.Format(" And TO_DATE('{0}', 'yyyy/dd/mm') <= ConstructionCompletionDate", StartDate.ToShortDateString());
+                //strSQL += string.Format(" And TO_DATE('{0}', 'yyyy/dd/mm') <= ConstructionCompletionDate", StartDate.ToShortDateString());
+                strSQL += string.Format(" And CONSTRUCTIONPERIOD = {0}", numUDCompletion.Value);
                 strSQL += " GROUP BY TO_CHAR(ConstructionCompletionDate,'YYYY/MM')";
                 strSQL += " Order By TO_CHAR(ConstructionCompletionDate,'YYYY/MM') Desc";
                 ArrayList arList = new ArrayList();
@@ -2345,6 +2517,7 @@
                 if(!cbiDB.ExecuteReader(strSQL,ref arList)) return 0;
                 iCount = arList.Count;
 
+                if (iCount <= 2) iCount--;
                 return iCount;
             }
             catch (Exception ex)
@@ -2906,7 +3079,7 @@
         /// <summary>
         /// グリッドタイトルへ月日をセットする
         /// </summary>
-        private int SetStaffAssignmentGridTitile()
+        private int SetStaffAssignmentGridTitle()
         {
             try
             {
@@ -3159,20 +3332,35 @@
 
                 // ---------- タイトルセット
                 int DspColCnt = 0;
-                DspColCnt = SetStaffAssignmentGridTitile();
+                DspColCnt = SetStaffAssignmentGridTitle();
                 dgv.Rows[0].ReadOnly = true;
                 dgv.Rows[1].ReadOnly = true;
 
                 // -------------- 工事情報の取得
                 ArrayList arData = new ArrayList();
-                string BaseSQL = "SELECT ConstructionCode, ConstructionPersonCode,";
-                BaseSQL += " TO_CHAR(ConstructionPeriodStart, 'YYYY/MM/DD'),";          // 2:契約工期開始
-                BaseSQL += " TO_CHAR(ConstructionPeriodEnd, 'YYYY/MM/DD'),";            // 3:契約工期完了
-                BaseSQL += " TO_CHAR(OrderDate, 'YYYY/MM/DD'),";                        // 4:受注日
-                BaseSQL += " TO_CHAR(OrderCompletionDate, 'YYYY/MM/DD'),";              // 5:完了予定日
-                BaseSQL += " TO_CHAR(BillingStartDate, 'YYYY/MM/DD'),";                 // 6:請求準備開始日
-                BaseSQL += " TO_CHAR(OrderStartingDate, 'YYYY/MM/DD')";                 // 7:開始予定日
+                //string BaseSQL = "SELECT ConstructionCode, ConstructionPersonCode,";
+                //BaseSQL += " TO_CHAR(ConstructionPeriodStart, 'YYYY/MM/DD'),";          // 2:契約工期開始
+                //BaseSQL += " TO_CHAR(ConstructionPeriodEnd, 'YYYY/MM/DD'),";            // 3:契約工期完了
+                //BaseSQL += " TO_CHAR(OrderDate, 'YYYY/MM/DD'),";                        // 4:受注日
+                //BaseSQL += " TO_CHAR(OrderCompletionDate, 'YYYY/MM/DD'),";              // 5:完了予定日
+                //BaseSQL += " TO_CHAR(BillingStartDate, 'YYYY/MM/DD'),";                 // 6:請求準備開始日
+                //BaseSQL += " TO_CHAR(OrderStartingDate, 'YYYY/MM/DD')";                 // 7:開始予定日
+                //BaseSQL += " FROM ConstructionBaseInfo A, PERSONINCHARGEMASTER B, DEPARTMENTMASTER C";
+                string BaseSQL = "SELECT A1, A2, MIN(A3), MAX(A4), A5, A6, A7, A8, A9, A10, A11, A12 FROM";
+                BaseSQL += " (SELECT A.ConstructionCode A1,";
+                BaseSQL += " A.ConstructionPersonCode A2,";
+                BaseSQL += " TO_CHAR(A.ConstructionPeriodStart, 'YYYY/MM/DD') A3,";
+                BaseSQL += " TO_CHAR(A.ConstructionPeriodEnd, 'YYYY/MM/DD') A4,";
+                BaseSQL += " TO_CHAR(A.OrderDate, 'YYYY/MM/DD') A5,";
+                BaseSQL += " TO_CHAR(A.OrderCompletionDate, 'YYYY/MM/DD') A6,";
+                BaseSQL += " TO_CHAR(A.BillingStartDate, 'YYYY/MM/DD') A7,";
+                BaseSQL += " TO_CHAR(A.OrderStartingDate, 'YYYY/MM/DD') A8,";
+                BaseSQL += " B.EmployeeClassFlg A9,";
+                BaseSQL += " C.DISPLAYORDER A10,";
+                BaseSQL += " B.DISPLAYORDER A11,";
+                BaseSQL += " A.OrderDate A12";
                 BaseSQL += " FROM ConstructionBaseInfo A, PERSONINCHARGEMASTER B, DEPARTMENTMASTER C";
+
                 List<int> stat = new List<int>();
 
                 stat.Add(CommonDefine.ProjectsStatus.First(x => x.Value.Equals("営繕部継続工事")).Key);     // 2
@@ -3187,8 +3375,13 @@
 
                 BaseSQL += " And A.CONSTRUCTIONPERSONCODE = B.PERSONCODE";
                 BaseSQL += " And B.DEPARTMENTCODE = C.DEPARTMENTCODE";
-                BaseSQL += " And C.StaffAssignFlg = 0";
-                BaseSQL += " Order By C.DISPLAYORDER Asc, B.DISPLAYORDER Asc, A.OrderDate Asc";
+                BaseSQL += " And C.StaffAssignFlg = 0) Data";
+                BaseSQL += " GROUP BY A1, A2, A5, A6, A7, A8, A9, A10, A11, A12";
+                BaseSQL += " Order By 9 Asc, 10 Asc, 11 Asc, 12 Asc";
+                //BaseSQL += " And A.CONSTRUCTIONPERSONCODE = B.PERSONCODE";
+                //BaseSQL += " And B.DEPARTMENTCODE = C.DEPARTMENTCODE";
+                //BaseSQL += " And C.StaffAssignFlg = 0";
+                //BaseSQL += " Order By B.EmployeeClassFlg Asc, C.DISPLAYORDER Asc, B.DISPLAYORDER Asc, A.OrderDate Asc";
                 if (!cbDB.ExecuteReader(BaseSQL, ref arData)) return;
                 if (arData.Count == 0) return;
 
@@ -3362,6 +3555,7 @@
             finally
             {
                 cbDB.close(); cbDB = null;
+                cbdDB.close(); cbdDB = null;
                 dmDB.close(); dmDB = null;
                 picDB.close(); picDB = null;
                 hcDB.close(); hcDB = null;
@@ -3682,7 +3876,7 @@
         /// </summary>
         /// <param name="Column"></param>
         /// <returns></returns>
-        private int GetTitileLine0ColumnCount(int Column)
+        private int GetTitleLine0ColumnCount(int Column)
         {
             try
             {
@@ -3696,7 +3890,7 @@
                 }
                 if (dgvStaffAssignment[DspCnt, 0].Value == null)
                 {
-                    Console.WriteLine(string.Format("Titile0:{0} Error", DspCnt));
+                    Console.WriteLine(string.Format("Title0:{0} Error", DspCnt));
                 }
                 return DspCnt;
             }
@@ -3714,7 +3908,7 @@
         /// </summary>
         /// <param name="Column"></param>
         /// <returns></returns>
-        private int GetTitileLine1ColumnCount(int Column)
+        private int GetTitleLine1ColumnCount(int Column)
         {
             try
             {
@@ -3727,7 +3921,7 @@
                 }
                 if (dgvStaffAssignment[DspCnt, 1].Value == null)
                 {
-                    Console.WriteLine(string.Format("Titile1:{0} Error", DspCnt));
+                    Console.WriteLine(string.Format("Title1:{0} Error", DspCnt));
                 }
                 return DspCnt;
             }
@@ -3741,24 +3935,21 @@
         #endregion
 
         #region 売上グラフ
+        #region 売上グラフ表示
         /// <summary>
-        /// 売上グラフ
+        /// 売上グラフ表示
         /// </summary>
         private void DispSalesGraph(bool bInitFlg = true)
         {
             try
             {
+                chartSalesGraph.SuspendLayout();
                 // 初期化
                 chartSalesGraph.Series.Clear();
                 if (bInitFlg)
                 {
                     // データにある事業期と現在の事業セット
-                    int minval = 0;
-                    int maxval = 0;
-                    GetSalesPeriodYear(ref minval, ref maxval);
-                    SalseGraphNum.Minimum = minval;
-                    SalseGraphNum.Maximum = maxval;
-                    SalseGraphNum.Value = CommonMotions.SystemMasterData.BusinessPeriod;
+                    SetPeriodYear();
                 }
                 // データの取得
                 DataSet ds = GetData();
@@ -3818,8 +4009,18 @@
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
+            finally
+            {
+                chartSalesGraph.ResumeLayout();
+            }
         }
+        #endregion
+
+        #region データの設定
+        /// <summary>
         /// データの設定
+        /// </summary>
+        /// <returns></returns>
         private DataSet GetData()
         {
             DataSet ds = new DataSet();
@@ -3882,9 +4083,14 @@
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
+            finally
+            {
+                sgdDB.close(); sgdDB = null;
+            }
 
             return ds;
         }
+        #endregion
 
         #region 期の最大・最少を取得する
         /// <summary>
@@ -3928,218 +4134,35 @@
             }
         }
         #endregion
-        #endregion
 
-        #region 承認申請
+        #region 期の最大・最少をセットする
         /// <summary>
-        /// 承認申請データを取得する
+        /// 期の最大・最少をセットする
         /// </summary>
-        /// <param name="arData"></param>
-        /// <returns></returns>
-        private bool GetDocumentApproval(ref ArrayList arData)
+        private void SetPeriodYear()
         {
-            IOProcessApproval paDB = new IOProcessApproval();
             try
             {
-                string strLimitedSQL = string.Empty;
-                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
-                {
-                    // 一般ユーザーは自分の承認のみ表示する
-                    strLimitedSQL += string.Format(" And A.PersonCode = {0} ", CommonMotions.LoginUserData.PersonCode);
-                }
-                // ----- 工事案件毎に最大の承認を取得する
-                int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("請求完了")).Key;
-                // 完了工事以外の申請中と承認後7日間のデータを対象とする
-                string strSQL = "SELECT A.APPROVALCODE, A.CONSTRUCTIONCODE, A.PETITIONAPPROVALDATE, A.PERSONCODE FROM PROCESSAPPROVAL A, CONSTRUCTIONBASEINFO B";
-                strSQL += string.Format(" WHERE (SEQNO = 1 AND ApprovalStatus != {0})", (int)CommonDefine.ApprovalStatus.Approval);
-                //strSQL += string.Format(" AND (A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE AND B.CONSTRUCTIONSTATUSFLG < {0})", iStatus);
-                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
-                strSQL += " UNION SELECT A.APPROVALCODE, A.CONSTRUCTIONCODE, A.PETITIONAPPROVALDATE, A.PERSONCODE FROM  PROCESSAPPROVAL A, CONSTRUCTIONBASEINFO B";
-                strSQL += string.Format(" WHERE (SEQNO = 1 AND ApprovalStatus = {0} AND TRUNC(A.UPDATEDATE) >= (TRUNC(SYSDATE) - 7))", (int)CommonDefine.ApprovalStatus.Approval);
-                strSQL += string.Format(" AND (A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE AND B.CONSTRUCTIONSTATUSFLG < {0})",iStatus);
-                strSQL += " ORDER BY APPROVALCODE DESC, PETITIONAPPROVALDATE DESC, PERSONCODE ASC";
-                if (!paDB.ExecuteReader(strSQL, ref arData)) return false;
-
-                if (arData.Count == 0) return false;
-
-                return true;
+                bGraphNotDrow = true;
+                // データにある事業期と現在の事業セット
+                int minval = 0;
+                int maxval = 0;
+                GetSalesPeriodYear(ref minval, ref maxval);
+                SalseGraphNum.Minimum = minval;
+                SalseGraphNum.Maximum = maxval;
+                SalseGraphNum.Value = CommonMotions.SystemMasterData.BusinessPeriod;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
             }
             finally
             {
-                paDB.close(); paDB = null;
+                bGraphNotDrow = false;
             }
         }
-        /// <summary>
-        /// 書類承認表示処理
-        /// </summary>
-        private void DispDocumentApproval()
-        {
-            IOProcessApproval paDB = new IOProcessApproval();
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
-            try
-            {
-                DataGridView dgv = dgvDocumentApproval;
-                dgv.Rows.Clear();
-
-                // ----- 工事案件毎に最大の承認を取得する
-                ArrayList arData = new ArrayList();
-                if (!GetDocumentApproval(ref arData)) return;
-
-                ProgressDApproval.Visible = true;
-                ProgressDApproval.Minimum = 0;
-                ProgressDApproval.Maximum = arData.Count;
-                tabPage21.Update();
-
-                // 行を作成する
-                DataGridViewRow[] list = new DataGridViewRow[arData.Count];
-                // データ表示
-                int ino = 1;
-                int iLineCnt = 0;
-                int BreakCode = 0;
-                foreach (object[] objwrk in arData)
-                {
-                    int iConstructionCode = CommonMotions.cnvInt(objwrk[1].ToString());
-                    int iApprovalCode = CommonMotions.cnvInt(objwrk[0].ToString());
-                    string strSQL = paDB.CreatePrimarykeyString(iConstructionCode, iApprovalCode);
-                    strSQL += " And SEQNO = 1";
-                    ProcessApproval pRec = new ProcessApproval();
-                    if (!paDB.SelectAction(strSQL, ref pRec)) continue;
-
-                    // 名称取得
-                    List<string> Details = new List<string>();
-                    getDetailStrings(pRec.ConstructionCode, Details);
-
-                    // 申請者名取得
-                    string strPerson = picDB.CreatePrimarykeyString(pRec.PersonCode);
-                    PersonInChargeMaster PersonData = new PersonInChargeMaster();
-                    picDB.SelectAction(strPerson, ref PersonData);
-
-                    string strLimitDate = string.Empty;
-                    if (pRec.ApprovalLimitDates != DateTime.MinValue)
-                    {
-                        strLimitDate = pRec.ApprovalLimitDates.ToShortDateString();
-                    }
-
-                    // 処理月で空行を入れる
-                    if (ino == 1)
-                    {
-                        BreakCode = iApprovalCode;
-                    }
-                    if (BreakCode != iApprovalCode)
-                    {
-                        dgv.Rows.Add(1);
-                        BreakCode = iApprovalCode;
-                    }
-
-                    // データセット
-                    int CurRowCnt = dgv.Rows.Add(pRec.ConstructionCode,
-                                                    pRec.ApprovalCode,
-                                                    ino,
-                                                    Details[0],
-                                                    ClsExcute.AppovalList[iApprovalCode],
-                                                    PersonData.PersonName,
-                                                    pRec.PetitionApprovalDate.ToShortDateString(),
-                                                    strLimitDate);
-
-                    // 承認種別に種別名に色を付ける
-                    dgv.Rows[CurRowCnt].Cells[(int)DocumentApprovalGridCount.ApprovalName].Style.BackColor = ClsExcute.ApprovalTypeColorList[iApprovalCode];
-
-                    // 対象部署取得
-                    int DepartmentCode = ClsApprovalPermission.GetFromConstructionAndApprovalTheDepartment(iConstructionCode, iApprovalCode);
-                    // 承認者取得
-                    strSQL = "select A.APPROVALPERSON, A.DISPLAYORDER, B.PERSONNAME, C.DEPARTMENTSTRING, B.DISPLAYSTRING";
-                    strSQL += " from APPROVALMASTER A, PERSONINCHARGEMASTER B, DEPARTMENTMASTER C";
-                    strSQL += string.Format(" Where (A.APPROVALCODE = {0} And A.DEPARTMENTCODE = {1})", iApprovalCode, DepartmentCode);
-                    strSQL += " And A.APPROVALPERSON = B.PERSONCODE And B.DEPARTMENTCODE = C.DEPARTMENTCODE";
-                    strSQL += " Order By A.DISPLAYORDER Desc";
-                    // SQL実行
-                    ArrayList AuthorizerData = new ArrayList();
-                    if (!paDB.ExecuteReader(strSQL, ref AuthorizerData)) continue;
-
-                    // データセット
-                    for (int i = 0; i < AuthorizerData.Count; i++)
-                    {
-                        //if (3 < i) break;           // ********** 表示が4件までしか対応していないため（将来的には承認者全部表示）
-                        // 承認者が列カウントを超えた場合
-                        if ((dgvDocumentApproval.ColumnCount - 1) < ((int)DocumentApprovalGridCount.ApprovalPerson1 + i))
-                        {
-                            // 列を作成する
-                            DataGridViewTextBoxColumn NewColumn = new DataGridViewTextBoxColumn();
-                            // 名前とヘッダーを設定する
-                            NewColumn.Name = string.Format("ApprovalPerson{0}", i);
-                            NewColumn.HeaderText = string.Format("承認者", (i + 1));
-                            // 列の幅
-                            NewColumn.Width = dgvDocumentApproval.Columns[((int)DocumentApprovalGridCount.ApprovalPerson1)].Width;
-                            // 列のアライメントセット
-                            NewColumn.DefaultCellStyle = dgvDocumentApproval.Columns[((int)DocumentApprovalGridCount.ApprovalPerson1)].DefaultCellStyle;
-
-                            // 列を追加する
-                            dgvDocumentApproval.Columns.Add(NewColumn);
-                        }
-
-                        object[] objAuthorizer = (object[])AuthorizerData[i];
-                        strSQL = paDB.CreatePrimarykeyString(iConstructionCode, iApprovalCode);
-                        strSQL += string.Format(" And PersonCode = {0} And SeqNo != 1", objAuthorizer[0].ToString());
-                        ProcessApproval pAppRec = new ProcessApproval();
-                        if (!paDB.SelectAction(strSQL, ref pAppRec))
-                        {
-                            pAppRec.ApprovalStatus = 4;
-                        }
-                        else
-                        {
-                            strPerson = picDB.CreatePrimarykeyString(pAppRec.PersonCode);
-                            PersonInChargeMaster APersonData = new PersonInChargeMaster();
-                            if (!picDB.SelectAction(strPerson, ref APersonData)) continue;
-                        }
-                        DataGridViewRow CurRowPo = dgvDocumentApproval.Rows[CurRowCnt];
-                        DataGridViewCell CurCell = null;
-                        CurCell = CurRowPo.Cells[(int)DocumentApprovalGridCount.ApprovalPerson1 + i];
-
-                        CurCell.Value = objAuthorizer[2].ToString();
-                        CurCell.Style.BackColor = CommonDefine.ApprovalBackColorStatusColor[pAppRec.ApprovalStatus];
-                        CurCell.Style.ForeColor = CommonDefine.ApprovalForeColorStatusColor[pAppRec.ApprovalStatus];
-                        
-                    }
-                    iLineCnt++;
-
-                    // ProgressBarの値を変更する
-                    ProgressDApproval.Value = ino++;
-                    ProgressDApproval.Update();
-                }
-
-                dgv.ResumeLayout();
-
-                // ProgressBarの値を変更する
-                ProgressDApproval.Value = ProgressDApproval.Maximum;
-                ProgressDApproval.Update();
-                ProgressDApproval.Visible = false;
-
-                if (CommonDefine.s_MaxInitLineCount > arData.Count)
-                    // 読込時データカウント取得
-                    dgv.RowCount += (CommonDefine.s_MaxInitLineCount - arData.Count);
-                // データが多くなればソートできる
-                foreach (DataGridViewColumn wrkCol in dgv.Columns)
-                    wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
-
-                // グリッドソート実行
-                GridSortExcute(dgv);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                picDB.close(); picDB = null;
-                paDB.close(); paDB = null;
-            }
-        }
         #endregion
+        #endregion
 
         #region 初期時サブフォームハンドルリスト作成
         /// <summary>
@@ -4184,40 +4207,52 @@
 
                 for (int i = 0; i < AllTabCount; i++) m_Alldgv[i] = null;
                 for (int i = 0; i < AllTabCount; i++) m_GridWidthSize[i] = -1;
-                    
+
+                int TabPoint = 0;
                 // 1:秘書からの連絡
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.BusinessMessage] = dgvBusinessMessage.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.BusinessMessage] = dgvBusinessMessage;
+                TabPoint = (int)FrmMenuTabNameEnum.BusinessMessage - 1;
+                m_GridWidthSize[TabPoint] = dgvBusinessMessage.Width;
+                m_Alldgv[TabPoint] = dgvBusinessMessage;
                 // 2:社内掲示板
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.MessageBoard] = dgvMessageBoard.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.MessageBoard] = dgvMessageBoard;
+                TabPoint = (int)FrmMenuTabNameEnum.MessageBoard - 1;
+                m_GridWidthSize[TabPoint] = dgvMessageBoard.Width;
+                m_Alldgv[TabPoint] = dgvMessageBoard;
                 // 3:承認一覧
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.DocumentApproval] = dgvDocumentApproval.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.DocumentApproval] = dgvDocumentApproval;
+                TabPoint = (int)FrmMenuTabNameEnum.DocumentApproval - 1;
+                m_GridWidthSize[TabPoint] = dgvApproval.Width;
+                m_Alldgv[TabPoint] = dgvApproval;
                 // 4:工事案件
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.SalesInProjects] = dgvSalesInProjects.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.SalesInProjects] = dgvSalesInProjects;
+                TabPoint = (int)FrmMenuTabNameEnum.SalesInProjects - 1;
+                m_GridWidthSize[TabPoint] = dgvSalesInProjects.Width;
+                m_Alldgv[TabPoint] = dgvSalesInProjects;
                 // 5:入札案件
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.Tenders] = dgvTenders.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.Tenders] = dgvTenders;
+                TabPoint = (int)FrmMenuTabNameEnum.Tenders - 1;
+                m_GridWidthSize[TabPoint] = dgvTenders.Width;
+                m_Alldgv[TabPoint] = dgvTenders;
                 // 6:予算取り案件
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.BudgetUpProjects] = dgvBudgetUp.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.BudgetUpProjects] = dgvBudgetUp;
+                TabPoint = (int)FrmMenuTabNameEnum.BudgetUpProjects - 1;
+                m_GridWidthSize[TabPoint] = dgvBudgetUp.Width;
+                m_Alldgv[TabPoint] = dgvBudgetUp;
                 // 7:受注案件
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.ConstructionProjects] = dgvConstructionProjects.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.ConstructionProjects] = dgvConstructionProjects;
+                TabPoint = (int)FrmMenuTabNameEnum.ConstructionProjects - 1;
+                m_GridWidthSize[TabPoint] = dgvConstructionProjects.Width;
+                m_Alldgv[TabPoint] = dgvConstructionProjects;
                 // 8:非受注工事
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.NonOrders] = dgvNonOrders.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.NonOrders] = dgvNonOrders;
+                TabPoint = (int)FrmMenuTabNameEnum.NonOrders - 1;
+                m_GridWidthSize[TabPoint] = dgvNonOrders.Width;
+                m_Alldgv[TabPoint] = dgvNonOrders;
                 // 9:完了工事
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.CompletionOfConstruction] = dgvCompletionOfConstruction.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.CompletionOfConstruction] = dgvCompletionOfConstruction;
+                TabPoint = (int)FrmMenuTabNameEnum.CompletionOfConstruction - 1;
+                m_GridWidthSize[TabPoint] = dgvCompletionOfConstruction.Width;
+                m_Alldgv[TabPoint] = dgvCompletionOfConstruction;
                 // 10:行動予定
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.ActionSchedule] = dgvActionSchedule.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.ActionSchedule] = dgvActionSchedule;
+                TabPoint = (int)FrmMenuTabNameEnum.ActionSchedule - 1;
+                m_GridWidthSize[TabPoint] = dgvActionSchedule.Width;
+                m_Alldgv[TabPoint] = dgvActionSchedule;
                 // 11:人員配置
-                m_GridWidthSize[(int)FrmMenuTabNameEnum.StaffAssignment] = dgvStaffAssignment.Width;
-                m_Alldgv[(int)FrmMenuTabNameEnum.StaffAssignment] = dgvStaffAssignment;
+                TabPoint = (int)FrmMenuTabNameEnum.StaffAssignment - 1;
+                m_GridWidthSize[TabPoint] = dgvStaffAssignment.Width;
+                m_Alldgv[TabPoint] = dgvStaffAssignment;
                 // ----- 以下はグリッド無・未定
                 // 12:売上グラフ
                 //SalesGraph,
@@ -4252,6 +4287,7 @@
                     if (dgv == null) continue;
                     if (MaxCelCount < dgv.ColumnCount) MaxCelCount = dgv.ColumnCount;
                 }
+
                 m_CellSize = new int[AllTabCount, MaxCelCount];
                 // 初期値-1セット
                 for (int iy = 0; iy < m_CellSize.GetLength(0); iy++)
Index: trunk/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 6)
@@ -120,6 +120,8 @@
     <Compile Include="Common\Process\ClsExcute.cs" />
     <Compile Include="Common\CommonDefine.cs" />
     <Compile Include="Common\Office\UsedWord.cs" />
+    <Compile Include="DataModel\ConstructionLink.cs" />
+    <Compile Include="DataModel\OrdersPriceData.cs" />
     <Compile Include="DataModel\DailyData.cs" />
     <Compile Include="DataModel\ProceedingsDataDetail.cs" />
     <Compile Include="DataModel\ProceedingsDataAttendee.cs" />
@@ -144,6 +146,26 @@
     <Compile Include="DataModel\SubContractorJobCategory.cs" />
     <Compile Include="DataModel\SubContractorJobILink.cs" />
     <Compile Include="DataModel\SuppliersMaster.cs" />
+    <Compile Include="DB\IOAccess\IOConstructionLink.cs" />
+    <Compile Include="DB\IOAccess\IOOrdersPriceData.cs" />
+    <Compile Include="Forms\DataEntry\ConstructionBaseInfo\DataChange.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\DataEntry\ConstructionLedger\FrmSelectPerson.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\DataEntry\ConstructionLedger\FrmSelectPerson.Designer.cs">
+      <DependentUpon>FrmSelectPerson.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Forms\DataEntry\ConstructionPersonList\FrmConstructionPersonList.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\DataEntry\ConstructionPersonList\FrmConstructionPersonList.designer.cs">
+      <DependentUpon>FrmConstructionPersonList.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Forms\DataEntry\ConstructionPersonList\FrmConstructionPersonListAuxiliary.cs">
+      <SubType>Form</SubType>
+    </Compile>
     <Compile Include="Forms\DataEntry\PurchaseOrderEntry\PurchaseOrderInputPage.cs" />
     <Compile Include="DataModel\PurchaseOrderDetail.cs" />
     <Compile Include="DataModel\PurchaseOrder.cs" />
@@ -329,12 +351,6 @@
     <Compile Include="Forms\DataEntry\ConstructionBudget\FrmConstructionBudgetAuxiliary.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Forms\DataEntry\ConstructionLedger\FrmRowAddChoice.cs">
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="Forms\DataEntry\ConstructionLedger\FrmRowAddChoice.Designer.cs">
-      <DependentUpon>FrmRowAddChoice.cs</DependentUpon>
-    </Compile>
     <Compile Include="Forms\DataEntry\DRWork\FrmDRWorkAuxiliary.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -392,6 +408,18 @@
     <Compile Include="Forms\Master\Suppliers\FrmSuppliers.designer.cs">
       <DependentUpon>FrmSuppliers.cs</DependentUpon>
     </Compile>
+    <Compile Include="Forms\SubForms\FrmNumberOfWorkers.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\SubForms\FrmNumberOfWorkers.Designer.cs">
+      <DependentUpon>FrmNumberOfWorkers.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Forms\SubForms\FrmValueOfOrder.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\SubForms\FrmValueOfOrder.Designer.cs">
+      <DependentUpon>FrmValueOfOrder.cs</DependentUpon>
+    </Compile>
     <Compile Include="Forms\SubForms\FrmConstructionDiag.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -864,6 +892,12 @@
     <EmbeddedResource Include="Forms\CustomControls\DataGridViewEX.resx">
       <DependentUpon>DataGridViewEX.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="Forms\DataEntry\ConstructionLedger\FrmSelectPerson.resx">
+      <DependentUpon>FrmSelectPerson.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Forms\DataEntry\ConstructionPersonList\FrmConstructionPersonList.resx">
+      <DependentUpon>FrmConstructionPersonList.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Forms\DataEntry\DailyReport\FrmDailyReport.resx">
       <DependentUpon>FrmDailyReport.cs</DependentUpon>
     </EmbeddedResource>
@@ -882,9 +916,6 @@
     <EmbeddedResource Include="Forms\DataEntry\ConstructionBaseInfo\FrmConstructionBaseInfo.resx">
       <DependentUpon>FrmConstructionBaseInfo.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="Forms\DataEntry\ConstructionLedger\FrmRowAddChoice.resx">
-      <DependentUpon>FrmRowAddChoice.cs</DependentUpon>
-    </EmbeddedResource>
     <EmbeddedResource Include="Forms\DataEntry\DRWork\FrmDRWork.resx">
       <DependentUpon>FrmDRWork.cs</DependentUpon>
     </EmbeddedResource>
@@ -906,6 +937,12 @@
     <EmbeddedResource Include="Forms\Master\Suppliers\FrmSuppliers.resx">
       <DependentUpon>FrmSuppliers.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="Forms\SubForms\FrmNumberOfWorkers.resx">
+      <DependentUpon>FrmNumberOfWorkers.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Forms\SubForms\FrmValueOfOrder.resx">
+      <DependentUpon>FrmValueOfOrder.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Forms\SubForms\FrmConstructionDiag.resx">
       <DependentUpon>FrmConstructionDiag.cs</DependentUpon>
     </EmbeddedResource>
@@ -1118,6 +1155,7 @@
   </ItemGroup>
   <ItemGroup>
     <Folder Include="DB\SqlServerCompact\" />
+    <Folder Include="Forms\DataEntry\ConstrAdd\" />
     <Folder Include="Utility\" />
   </ItemGroup>
   <ItemGroup>
Index: trunk/src/ProcessManagement/ProcessManagement/app.config
===================================================================
--- trunk/src/ProcessManagement/ProcessManagement/app.config	(revision 5)
+++ trunk/src/ProcessManagement/ProcessManagement/app.config	(revision 6)
@@ -29,7 +29,9 @@
         <!--<dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) "/>-->
         <!--<dataSource alias="Current" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=H-YOU001)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE))) "/>-->
         <dataSource alias="HyouServer" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.203)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE))) "/>
-        <dataSource alias="XE" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE))) "/>
+        <!--<dataSource alias="XE" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE))) "/>-->
+        <!--<dataSource alias="HyouServer" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=203.137.92.122)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE))) "/>-->
+        <dataSource alias="XE" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=203.137.92.122)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE))) "/>
       </dataSources>
     </version>
   </oracle.manageddataaccess.client>
Index: trunk/src/ProcessManagement/ProcessManagement.v12.suo
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
