Index: branches/src/DataCheckExcute/DataCheckExcute/Common/Process/ClsSystemOnceExecute.cs
===================================================================
--- branches/src/DataCheckExcute/DataCheckExcute/Common/Process/ClsSystemOnceExecute.cs	(revision 363)
+++ branches/src/DataCheckExcute/DataCheckExcute/Common/Process/ClsSystemOnceExecute.cs	(revision 364)
@@ -293,6 +293,8 @@
         /// </summary>
         private bool MakeSecretaryMassageData(IOMessageBoardData mbdDB,
                                         IOMessageBoardTerget mbtDB,
+                                        IOMessageBrowsingHistory mbhDB,
+                                        IORecordKey RecDB,
                                         IOConstructionBaseInfoDetail cbiDB,
                                         MaterialRecordInfo wrkRec, TermMaster CheckRec, DateTime CriteriaDate)
         {
@@ -360,7 +362,7 @@
                 WriteData.MessageFlag = (int)MessageBoardData.MessageFlgDef.Secretary;
 
                 // 掲示板へメッセージを載せる
-                if (!ClsMessageBoradAccess.CreateMessage(mbdDB, mbtDB, WriteData, WriteDetail)) return false;
+                if (!ClsMessageBoradAccess.CreateMessage(mbdDB, mbtDB, mbhDB, RecDB, WriteData, WriteDetail)) return false;
 
                 return true;
             }
@@ -383,6 +385,8 @@
             IOConstructionBaseInfoDetail cbiDDB = new IOConstructionBaseInfoDetail();
             IOMessageBoardData mbdDB = new IOMessageBoardData();
             IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
+            IOMessageBrowsingHistory mbhDB = new IOMessageBrowsingHistory();
+            IORecordKey RecDB = new IORecordKey();
 
             StringBuilder strSQL = new StringBuilder();
 
@@ -392,6 +396,8 @@
                 cbiDDB.connect(); cbiDDB.beginTran();
                 mbdDB.connect(); mbdDB.beginTran();
                 mbtDB.connect(); mbtDB.beginTran();
+                mbhDB.connect(); mbhDB.beginTran();
+                RecDB.connect(); RecDB.beginTran();
 
                 bool procflg = true;
 
@@ -414,7 +420,7 @@
                         MaterualStatusCheck(wrkRec, ref term);
 
                         // メッセージ作成 掲示板にメッセージを載せる処理
-                        if (!MakeSecretaryMassageData(mbdDB, mbtDB, cbiDDB, wrkRec, term, StartDate))
+                        if (!MakeSecretaryMassageData(mbdDB, mbtDB, mbhDB, RecDB, cbiDDB, wrkRec, term, StartDate))
                         {
                             procflg = false;
                             break;
@@ -427,6 +433,8 @@
                         cbiDDB.commit();
                         mbdDB.commit();
                         mbtDB.commit();
+                        mbhDB.commit();
+                        RecDB.commit();
                     }
                     else
                     {
@@ -434,6 +442,8 @@
                         cbiDDB.rollback();
                         mbdDB.rollback();
                         mbtDB.rollback();
+                        mbhDB.rollback();
+                        RecDB.rollback();
                     }
 
                     return procflg;
@@ -450,6 +460,8 @@
                 cbiDDB.close(); cbiDDB = null;
                 mbdDB.close(); mbdDB = null;
                 mbtDB.close(); mbtDB = null;
+                mbhDB.close(); mbhDB = null;
+                RecDB.close(); RecDB = null;
             }
             return true;
         }
@@ -512,6 +524,8 @@
             IOConstructionBaseInfoDetail cbiDDB = new IOConstructionBaseInfoDetail();
             IOMessageBoardData mbdDB = new IOMessageBoardData();
             IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
+            IOMessageBrowsingHistory mbhDB = new IOMessageBrowsingHistory();
+            IORecordKey RecDB = new IORecordKey();
             try
             {
                 // チェック項目取得
@@ -544,6 +558,8 @@
                 cbiDDB.connect(); cbiDDB.beginTran();
                 mbdDB.connect(); mbdDB.beginTran();
                 mbtDB.connect(); mbtDB.beginTran();
+                mbhDB.connect(); mbhDB.beginTran();
+                RecDB.connect(); RecDB.beginTran();
 
                 bool procflg = true;
                 ConstructionBaseInfo wrkBaseRec = new ConstructionBaseInfo();
@@ -583,7 +599,7 @@
                         foreach (TermMaster CurTerm in term)
                         {
                             // メッセージ作成
-                            if (!MakeMassageData(mbdDB, mbtDB, cbiDDB, wrkBaseRec, CurTerm, CriteriaDate))
+                            if (!MakeMassageData(mbdDB, mbtDB, mbhDB, RecDB, cbiDDB, wrkBaseRec, CurTerm, CriteriaDate))
                             {   // エラー時に抜ける
                                 procflg = false;
                                 break;
@@ -600,6 +616,8 @@
                     cbiDDB.rollback();
                     mbdDB.rollback();
                     mbtDB.rollback();
+                    mbhDB.rollback();
+                    RecDB.rollback();
                 }
 
                 return procflg;
@@ -615,11 +633,15 @@
                 cbiDDB.commit();
                 mbdDB.commit();
                 mbtDB.commit();
+                mbhDB.commit();
+                RecDB.commit();
 
                 cbiDB.close(); cbiDB = null;
                 cbiDDB.close(); cbiDDB = null;
                 mbdDB.close(); mbdDB = null;
                 mbtDB.close(); mbtDB = null;
+                mbhDB.close(); mbhDB = null;
+                RecDB.close(); RecDB = null;
             }
         }
         #endregion
@@ -817,6 +839,8 @@
         /// </summary>
         private bool MakeMassageData(IOMessageBoardData mbdDB,
                                         IOMessageBoardTerget mbtDB,
+                                        IOMessageBrowsingHistory mbhDB,
+                                        IORecordKey RecDB,
                                         IOConstructionBaseInfoDetail cbiDB,
                                         ConstructionBaseInfo wrkRec, TermMaster CheckRec, DateTime CriteriaDate)
         {
@@ -893,7 +917,7 @@
                 WriteData.MessageFlag = (int)MessageBoardData.MessageFlgDef.Secretary;
 
                 // 掲示板へメッセージを載せる
-                if (!ClsMessageBoradAccess.CreateMessage(mbdDB, mbtDB, WriteData, WriteDetail)) return false;
+                if (!ClsMessageBoradAccess.CreateMessage(mbdDB, mbtDB, mbhDB, RecDB, WriteData, WriteDetail)) return false;
 
                 return true;
             }
Index: branches/src/DataCheckExcute/DataCheckExcute/DataCheckExcute.csproj
===================================================================
--- branches/src/DataCheckExcute/DataCheckExcute/DataCheckExcute.csproj	(revision 363)
+++ branches/src/DataCheckExcute/DataCheckExcute/DataCheckExcute.csproj	(revision 364)
@@ -349,6 +349,9 @@
     <Compile Include="..\..\ProcessManagement\ProcessManagement\DataModel\PurchaseOrderDetail.cs">
       <Link>DataModel\PurchaseOrderDetail.cs</Link>
     </Compile>
+    <Compile Include="..\..\ProcessManagement\ProcessManagement\DataModel\RecordKey.cs">
+      <Link>DataModel\RecordKey.cs</Link>
+    </Compile>
     <Compile Include="..\..\ProcessManagement\ProcessManagement\DataModel\RequestData.cs">
       <Link>DataModel\RequestData.cs</Link>
     </Compile>
@@ -718,6 +721,9 @@
     <Compile Include="..\..\ProcessManagement\ProcessManagement\DB\IOAccess\IOPurchaseOrderDetail.cs">
       <Link>DB\IOAccess\IOPurchaseOrderDetail.cs</Link>
     </Compile>
+    <Compile Include="..\..\ProcessManagement\ProcessManagement\DB\IOAccess\IORecordKey.cs">
+      <Link>DB\IOAccess\IORecordKey.cs</Link>
+    </Compile>
     <Compile Include="..\..\ProcessManagement\ProcessManagement\DB\IOAccess\IORequestData.cs">
       <Link>DB\IOAccess\IORequestData.cs</Link>
     </Compile>
Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 364)
@@ -14,7 +14,7 @@
         /// <summary>
         /// 本体バージョン
         /// </summary>
-        public static int s_SystemVersion = 216;
+        public static int s_SystemVersion = 217;
 
         /// <summary>
         /// コピー・環境バージョン
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsMessageBoradAccess.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsMessageBoradAccess.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsMessageBoradAccess.cs	(revision 364)
@@ -36,22 +36,29 @@
         /// <returns></returns>
         public static bool CreateMessage(MessageBoardData WriteData, List<MessageBoardTerget> WriteDetail)
         {
-            IOMessageBoardData mbdDB = new IOMessageBoardData();
-            IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
+            IOMessageBoardData DataDB = new IOMessageBoardData();
+            IOMessageBoardTerget TergetDB = new IOMessageBoardTerget();
+            IOMessageBrowsingHistory HistoryDB = new IOMessageBrowsingHistory();
+            IORecordKey RecordDB = new IORecordKey();
             try
             {
-                mbdDB.connect(); mbdDB.beginTran();
-                mbtDB.connect(); mbtDB.beginTran();
+                DataDB.connect(); DataDB.beginTran();
+                TergetDB.connect(); TergetDB.beginTran();
+                HistoryDB.connect(); HistoryDB.beginTran();
+                RecordDB.connect(); RecordDB.beginTran();
 
                 // キーコードセット
-                WriteData.RecordNumber = mbdDB.SelectMaxMessageBoardDataKeyCount("", false) + 1;
+                WriteData.RecordNumber = IOMessageBoardData.GetNewRecordNumber(DataDB, TergetDB, HistoryDB, RecordDB
+                                                                        , (int)RecordKey.KeyNoDef.MessageKey, false);
 
                 // データ登録
-                if (!mbdDB.OneRecInsertAction(WriteData, false))
+                if (!DataDB.OneRecInsertAction(WriteData, false))
                 {
                     logger.ErrorFormat("掲示板メッセージ：登録に失敗しました。");
-                    mbdDB.rollback();
-                    mbtDB.rollback();
+                    DataDB.rollback();
+                    TergetDB.rollback();
+                    HistoryDB.rollback();
+                    RecordDB.rollback();
                     return false;
                 }
 
@@ -63,16 +70,20 @@
                     wrk.SeqNum = icnt++;
                 }
                 // データ登録
-                if (!mbtDB.InsertAction(WriteDetail, false))
+                if (!TergetDB.InsertAction(WriteDetail, false))
                 {
                     logger.ErrorFormat("掲示板対象者テーブル：登録に失敗しました。");
-                    mbdDB.rollback();
-                    mbtDB.rollback();
+                    DataDB.rollback();
+                    TergetDB.rollback();
+                    HistoryDB.rollback();
+                    RecordDB.rollback();
                     return false;
                 }
 
-                mbdDB.commit();
-                mbtDB.commit();
+                DataDB.commit();
+                TergetDB.commit();
+                HistoryDB.commit();
+                RecordDB.commit();
 
                 return true;
             }
@@ -83,8 +94,10 @@
             }
             finally
             {
-                mbdDB.close(); mbdDB = null;
-                mbtDB.close(); mbtDB = null;
+                DataDB.close(); DataDB = null;
+                TergetDB.close(); TergetDB = null;
+                HistoryDB.close(); HistoryDB = null;
+                RecordDB.close(); RecordDB = null;
             }
         }
         #endregion
@@ -94,20 +107,19 @@
         /// 掲示板データ登録(一括処理用)
         /// </summary>
         /// <returns></returns>
-        public static bool CreateMessage(IOMessageBoardData mbdDB, IOMessageBoardTerget mbtDB, MessageBoardData WriteData, List<MessageBoardTerget> WriteDetail)
+        public static bool CreateMessage(IOMessageBoardData mbdDB,
+                                        IOMessageBoardTerget mbtDB,
+                                        IOMessageBrowsingHistory HistroyDB,
+                                        IORecordKey RecordDB,
+                                        MessageBoardData WriteData,
+                                        List<MessageBoardTerget> WriteDetail)
         {
-            DBCommonMotions dbCom = new DBCommonMotions();
             try
             {
                 // キーコードセット
-                WriteData.RecordNumber = mbdDB.SelectMaxMessageBoardDataKeyCount("", false) + 1;
+                WriteData.RecordNumber = IOMessageBoardData.GetNewRecordNumber(mbdDB, mbtDB, HistroyDB, RecordDB,
+                                                                                (int)RecordKey.KeyNoDef.MessageKey, false);
 
-                dbCom.connect();
-                // 最大桁数をこえたら1に戻す
-                int DataLen = dbCom.GetTableColumnLength("MessageBoardData", "RecordNumber", false);
-                int DataMax = CommonMotions.CreateMaxNumeric(DataLen);
-                if (WriteData.RecordNumber >= DataMax) WriteData.RecordNumber = 1;
-
                 // データ登録
                 if (!mbdDB.OneRecInsertAction(WriteData, false))
                 {
@@ -136,10 +148,6 @@
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
                 return false;
             }
-            finally
-            {
-                dbCom.close(); dbCom = null;
-            }
         }
         #endregion
 
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs	(revision 364)
@@ -302,6 +302,8 @@
         /// </summary>
         private bool MakeSecretaryMassageData(IOMessageBoardData mbdDB,
                                         IOMessageBoardTerget mbtDB,
+                                        IOMessageBrowsingHistory mbhDB ,
+                                        IORecordKey RecDB,
                                         IOConstructionBaseInfoDetail cbiDB,
                                         MaterialRecordInfo wrkRec, TermMaster CheckRec, DateTime CriteriaDate)
         {
@@ -369,7 +371,7 @@
                 WriteData.MessageFlag = (int)MessageBoardData.MessageFlgDef.Secretary;
 
                 // 掲示板へメッセージを載せる
-                if (!ClsMessageBoradAccess.CreateMessage(mbdDB, mbtDB, WriteData, WriteDetail)) return false;
+                if (!ClsMessageBoradAccess.CreateMessage(mbdDB, mbtDB, mbhDB, RecDB, WriteData, WriteDetail)) return false;
 
                 return true;
             }
@@ -392,6 +394,8 @@
             IOConstructionBaseInfoDetail cbiDDB = new IOConstructionBaseInfoDetail();
             IOMessageBoardData mbdDB = new IOMessageBoardData();
             IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
+            IOMessageBrowsingHistory mbhDB = new IOMessageBrowsingHistory();
+            IORecordKey RecDB = new IORecordKey();
 
             StringBuilder strSQL = new StringBuilder();
 
@@ -401,6 +405,8 @@
                 cbiDDB.connect(); cbiDDB.beginTran();
                 mbdDB.connect(); mbdDB.beginTran();
                 mbtDB.connect(); mbtDB.beginTran();
+                mbhDB.connect(); mbhDB.beginTran();
+                RecDB.connect(); RecDB.beginTran();
 
                 bool procflg = true;
 
@@ -423,7 +429,7 @@
                         MaterualStatusCheck(wrkRec, ref term);
 
                         // メッセージ作成 掲示板にメッセージを載せる処理
-                        if (!MakeSecretaryMassageData(mbdDB, mbtDB, cbiDDB, wrkRec, term, StartDate))
+                        if (!MakeSecretaryMassageData(mbdDB, mbtDB, mbhDB, RecDB, cbiDDB, wrkRec, term, StartDate))
                         {
                             procflg = false;
                             break;
@@ -436,6 +442,8 @@
                         cbiDDB.commit();
                         mbdDB.commit();
                         mbtDB.commit();
+                        mbhDB.commit();
+                        RecDB.commit();
                     }
                     else
                     {
@@ -443,6 +451,8 @@
                         cbiDDB.rollback();
                         mbdDB.rollback();
                         mbtDB.rollback();
+                        mbhDB.rollback();
+                        RecDB.rollback();
                     }
 
                     return procflg;
@@ -459,6 +469,8 @@
                 cbiDDB.close(); cbiDDB = null;
                 mbdDB.close(); mbdDB = null;
                 mbtDB.close(); mbtDB = null;
+                mbhDB.close(); mbhDB = null;
+                RecDB.close(); RecDB = null;
             }
             return true;
         }
@@ -521,6 +533,8 @@
             IOConstructionBaseInfoDetail cbiDDB = new IOConstructionBaseInfoDetail();
             IOMessageBoardData mbdDB = new IOMessageBoardData();
             IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
+            IOMessageBrowsingHistory mbhDB = new IOMessageBrowsingHistory();
+            IORecordKey RecDB = new IORecordKey();
             try
             {
                 // マスタ取得エラーは処理しない
@@ -553,6 +567,8 @@
                 cbiDDB.connect(); cbiDDB.beginTran();
                 mbdDB.connect(); mbdDB.beginTran();
                 mbtDB.connect(); mbtDB.beginTran();
+                mbhDB.connect(); mbhDB.beginTran();
+                RecDB.connect(); RecDB.beginTran();
 
                 bool procflg = true;
                 ConstructionBaseInfo wrkBaseRec = new ConstructionBaseInfo();
@@ -592,7 +608,7 @@
                         foreach (TermMaster CurTerm in term)
                         {
                             // メッセージ作成
-                            if (!MakeMassageData(mbdDB, mbtDB, cbiDDB, wrkBaseRec, CurTerm, CriteriaDate))
+                            if (!MakeMassageData(mbdDB, mbtDB, mbhDB, RecDB, cbiDDB, wrkBaseRec, CurTerm, CriteriaDate))
                             {   // エラー時に抜ける
                                 procflg = false;
                                 break;
@@ -609,6 +625,8 @@
                     cbiDDB.rollback();
                     mbdDB.rollback();
                     mbtDB.rollback();
+                    mbhDB.rollback();
+                    RecDB.rollback();
                 }
 
                 return procflg;
@@ -624,11 +642,15 @@
                 cbiDDB.commit();
                 mbdDB.commit();
                 mbtDB.commit();
+                mbhDB.commit();
+                RecDB.commit();
 
                 cbiDB.close(); cbiDB = null;
                 cbiDDB.close(); cbiDDB = null;
                 mbdDB.close(); mbdDB = null;
                 mbtDB.close(); mbtDB = null;
+                mbhDB.close(); mbhDB = null;
+                RecDB.close(); RecDB = null;
             }
         }
         #endregion
@@ -826,6 +848,8 @@
         /// </summary>
         private bool MakeMassageData(IOMessageBoardData mbdDB,
                                         IOMessageBoardTerget mbtDB,
+                                        IOMessageBrowsingHistory mbhDB,
+                                        IORecordKey RecDB,
                                         IOConstructionBaseInfoDetail cbiDB,
                                         ConstructionBaseInfo wrkRec, TermMaster CheckRec, DateTime CriteriaDate)
         {
@@ -902,7 +926,7 @@
                 WriteData.MessageFlag = (int)MessageBoardData.MessageFlgDef.Secretary;
 
                 // 掲示板へメッセージを載せる
-                if (!ClsMessageBoradAccess.CreateMessage(mbdDB, mbtDB, WriteData, WriteDetail)) return false;
+                if (!ClsMessageBoradAccess.CreateMessage(mbdDB, mbtDB, mbhDB, RecDB, WriteData, WriteDetail)) return false;
 
                 return true;
             }
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardData.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardData.cs	(revision 364)
@@ -481,38 +481,55 @@
         /// <summary>
         /// レコード番号の最大値を取得する
         /// </summary>
-        /// <param name="AddSQLString"></param>
-        /// <param name="bConnect"></param>
-        /// <returns></returns>
-        public int SelectMaxMessageBoardDataKeyCount(string AddSQLString, bool bConnect = true)
+        public static int GetNewRecordNumber(IOMessageBoardData DataDB,
+                                            IOMessageBoardTerget TergetDB,
+                                            IOMessageBrowsingHistory HistroyDB,
+                                            IORecordKey RecordDB,
+                                            int nKeyNo, bool bConnect = true)
         {
             // インターフェース
             StringBuilder strcmd = new StringBuilder();
-            ArrayList arData = new ArrayList();
-            int iRet = 0;
             try
             {
-                // SQL作成
-                strcmd.AppendFormat("SELECT IFNULL(MAX(RecordNumber), 0) FROM MessageBoardData{0}", AddSQLString);
+                // 最大レコード番号取得
+                strcmd.Append("Select (IFNULL(RecordNumber, 0) + 1) As RecNo");
+                strcmd.Append(" From Recordkey");
+                strcmd.AppendFormat(" Where KeyNo = {0}", nKeyNo);
+                ArrayList arData = new ArrayList();
+                if (!RecordDB.ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return 0;
 
-                // SQL実行
-                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return iRet;
+                // レコード番号取得
+                object[] objwrk = (object[])arData[0];
+                int nRecNo = CommonMotions.cnvInt(objwrk[0]);
+                // MAXを越えれば1にする
+                if (nRecNo > RecordKey.MaxRecCountDef[nKeyNo]) nRecNo = 1;
 
-                // データセット
-                foreach (object[] objwrk in arData)
-                {
-                    if (objwrk[0].ToString().Equals(""))
-                        iRet = 0;
-                    else
-                        iRet = int.Parse(objwrk[0].ToString());
-                }
+                // 番号更新
+                strcmd.Clear();
+                strcmd.Append("UPDATE Recordkey");
+                strcmd.AppendFormat(" Set RecordNumber = {0}", nRecNo);
+                strcmd.AppendFormat(" Where KeyNo = {0}", nKeyNo);
+                if (!RecordDB.ExecuteNonQuery(strcmd.ToString(), bConnect)) return 0;
+
+                // データ存在確認
+                strcmd.Clear();
+                strcmd.Append("Select * From MessageBoardData");
+                strcmd.AppendFormat(" Where RecordNumber = {0}", nRecNo);
+                arData.Clear();
+                if (!DataDB.ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return 0;
+                // 無ければそのまま
+                if (arData.Count < 1) return nRecNo;
+
+                // あれば削除する
+                DelAllMessageData(DataDB, TergetDB, HistroyDB, nRecNo, bConnect);
+
+                return nRecNo;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return 0;
             }
-
-            return iRet;
         }
         #endregion
 
@@ -523,7 +540,7 @@
         /// <param name="AddSQLString"></param>
         /// <param name="bConnect"></param>
         /// <returns></returns>
-        public int SelectMaxMessageBoardDataBranchKeyCount(int RecordNumber, bool bConnect = true)
+        public int GetMaxBranchNumber(int RecordNumber, bool bConnect = true)
         {
             // インターフェース
             StringBuilder strcmd = new StringBuilder();
@@ -555,5 +572,31 @@
             return iRet;
         }
         #endregion
+
+        #region メッセージデータ一括削除
+        /// <summary>
+        /// メッセージデータ一括削除
+        /// </summary>
+        /// <returns></returns>
+        public static void DelAllMessageData(IOMessageBoardData DataDB,
+                                            IOMessageBoardTerget TergetDB,
+                                            IOMessageBrowsingHistory HistoryDB
+                                            , int KeyNumber, bool bConnect)
+        {
+            try
+            {
+                StringBuilder strcmd = new StringBuilder();
+                strcmd.AppendFormat(" Where RecordNumber = {0}", KeyNumber);
+
+                DataDB.DeleteAction(strcmd.ToString(), bConnect);
+                TergetDB.DeleteAction(strcmd.ToString(), bConnect);
+                HistoryDB.DeleteAction(strcmd.ToString(), bConnect);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(2), ex.Message);
+            }
+        }
+        #endregion
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardDataTerget.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardDataTerget.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBoardDataTerget.cs	(revision 364)
@@ -419,7 +419,7 @@
         /// <param name="AddSQLString"></param>
         /// <param name="bConnect"></param>
         /// <returns></returns>
-        public int SelectMaxMessageBoardTergetKeyCount(string AddSQLString, bool bConnect = true)
+        public int GetMaxRecordNumber(string AddSQLString, bool bConnect = true)
         {
             // インターフェース
             StringBuilder strcmd = new StringBuilder();
@@ -450,84 +450,5 @@
             return iRet;
         }
         #endregion
-
-        #region 最大値を取得する(BranchNumber)
-        /// <summary>
-        /// 最大値を取得する(BranchNumber)
-        /// </summary>
-        /// <param name="AddSQLString"></param>
-        /// <param name="bConnect"></param>
-        /// <returns></returns>
-        public int SelectMaxMessageBoardTergetBranchKeyCount(int RecordNumber, bool bConnect = true)
-        {
-            // インターフェース
-            StringBuilder strcmd = new StringBuilder();
-            ArrayList arData = new ArrayList();
-            int iRet = 0;
-            try
-            {
-                // SQL作成
-                strcmd.Append("SELECT IFNULL(MAX(BranchNumber), 0) FROM MessageBoardTerget");
-                strcmd.AppendFormat(" Where RecordNumber = {0}", RecordNumber);
-
-                // SQL実行
-                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return iRet;
-
-                // データセット
-                foreach (object[] objwrk in arData)
-                {
-                    if (objwrk[0].ToString().Equals(""))
-                        iRet = 0;
-                    else
-                        iRet = int.Parse(objwrk[0].ToString());
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
-            }
-
-            return iRet;
-        }
-        #endregion
-
-        #region 最大値を取得する(SeqNum)
-        /// <summary>
-        /// 最大値を取得する(SeqNum)
-        /// </summary>
-        /// <param name="AddSQLString"></param>
-        /// <param name="bConnect"></param>
-        /// <returns></returns>
-        public int SelectMaxMessageBoardTergetBranchKeyCount(int RecordNumber, int BranchNumber, bool bConnect = true)
-        {
-            // インターフェース
-            StringBuilder strcmd = new StringBuilder();
-            ArrayList arData = new ArrayList();
-            int iRet = 0;
-            try
-            {
-                // SQL作成
-                strcmd.AppendFormat("SELECT IFNULL(MAX(SeqNum), 0) FROM MessageBoardTerget{0}", CreatePrimarykeyString(RecordNumber, BranchNumber));
-
-                // SQL実行
-                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return iRet;
-
-                // データセット
-                foreach (object[] objwrk in arData)
-                {
-                    if (objwrk[0].ToString().Equals(""))
-                        iRet = 0;
-                    else
-                        iRet = int.Parse(objwrk[0].ToString());
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
-            }
-
-            return iRet;
-        }
-        #endregion
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBrowsingHistory.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBrowsingHistory.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMessageBrowsingHistory.cs	(revision 364)
@@ -16,7 +16,7 @@
 namespace ProcessManagement.DB.IOAccess
 {
     /// <summary>
-    /// 掲示板データアクセスクラス
+    /// 掲示板履歴データアクセスクラス
     /// </summary>
     public class IOMessageBrowsingHistory : MySqlProcess
     {
@@ -381,7 +381,7 @@
         /// <param name="AddSQLString"></param>
         /// <param name="bConnect"></param>
         /// <returns></returns>
-        public int SelectMaxSeqNoCount(string AddSQLString, bool bConnect = true)
+        public int GetMaxSeqNo(string AddSQLString, bool bConnect = true)
         {
             // インターフェース
             StringBuilder strcmd = new StringBuilder();
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORecordKey.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORecordKey.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORecordKey.cs	(revision 364)
@@ -0,0 +1,471 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Collections;
+
+using log4net;
+using MySql.Data.MySqlClient;           // Data Provider for MySql
+
+using ProcessManagement.DB.MySql;
+
+using ProcessManagement.DB.Core;
+using ProcessManagement.DataModel;
+
+using ProcessManagement.Common;
+
+namespace ProcessManagement.DB.IOAccess
+{
+    /// <summary>
+    /// レコード番号管理データアクセスクラス
+    /// </summary>
+    public class IORecordKey : MySqlProcess
+    {
+        #region 定義部
+        /// <summary>
+        /// log4netログを使用する
+        /// </summary>
+        private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+        /// <summary>
+        /// レコード番号管理データフィールド並び
+        /// </summary>
+        public enum TableColumn
+        {
+            KeyNo = 0,
+            RecordNumber,
+            EntryDate,
+            UpdateDate,
+        }
+        #endregion
+
+        #region コンストラクタ
+        /// <summary>
+        /// コンストラクタ
+        /// </summary>
+        /// <param name="ConnectionString"></param>
+        public IORecordKey()
+            : base(DBCommon.Instance.DBConnectString)
+        {
+        }
+
+        #endregion
+
+        #region レコード番号管理データ検索SQL作成
+        /// <summary>
+        /// レコード番号管理データ検索SQL作成
+        /// </summary>
+        /// <param name="AddSQLString">検索条件SQL文字列</param>
+        /// <param name="data">レコード番号管理データデータ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        private string CreateSelectSQL()
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.Append("SELECT ");
+
+                bool bColFirst = true;
+                string strWork = string.Empty;
+                foreach (var gender in Enum.GetValues(typeof(TableColumn)))
+                {
+                    strWork = gender.ToString();
+                    if (!bColFirst) strcmd.Append(",");
+                    if (strWork.Equals("EntryDate") || strWork.Equals("UpdateDate"))
+                    {
+                        strcmd.AppendFormat(" DATE_FORMAT({0}, '%Y/%m/%d %H:%i:%s')", strWork);
+                    }
+                    else
+                    {
+                        strcmd.AppendFormat(" {0}", strWork);
+                    }
+                    bColFirst = false;
+                }
+
+                strcmd.Append(" FROM RecordKey");
+
+                return strcmd.ToString();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return string.Empty;
+            }
+        }
+        #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<RecordKey> data, bool bConnect = true)
+        {
+            // インターフェース
+            StringBuilder strcmd = new StringBuilder();
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                // SQL作成
+                strcmd.Append(CreateSelectSQL());
+                strcmd.Append(AddSQLString);
+
+                // SQL実行
+                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    RecordKey work = new RecordKey();
+                    Reader2Struct(objwrk, ref work);
+                    data.Add(work);
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region レコード番号管理データ1件検索
+        /// <summary>
+        /// レコード番号管理データ1件検索
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool SelectAction(string AddSQLString, ref RecordKey data, bool bConnect = true)
+        {
+            // インターフェース
+            StringBuilder strcmd = new StringBuilder();
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                // SQL作成
+                strcmd.Append(CreateSelectSQL());
+                strcmd.Append(AddSQLString);
+
+                // SQL実行
+                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
+                if (arData.Count == 0) return false;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    RecordKey work = new RecordKey();
+                    Reader2Struct(objwrk, ref data);
+                    break;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region レコード番号管理データ複数件追加
+        /// <summary>
+        /// レコード番号管理データ複数件追加
+        /// </summary>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool InsertAction(List<RecordKey> data, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                bool bColFirst = true;
+                strcmd.Append("INSERT INTO RecordKey");
+
+                strcmd.Append(" (");
+
+                foreach (var gender in Enum.GetValues(typeof(TableColumn)))
+                {
+                    if (!bColFirst) strcmd.Append(", ");
+                    strcmd.Append(gender.ToString());
+                    bColFirst = false;
+                }
+                strcmd.Append(") VALUES");
+
+                bool bDataFirst = true;
+                foreach (RecordKey work in data)
+                {
+                    if (bDataFirst) strcmd.Append(" (");
+                    else strcmd.Append(", (");
+
+                    strcmd.AppendFormat("{0}", work.KeyNo);
+                    strcmd.AppendFormat(",{0}", work.RecordNumber);
+
+                    strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.EntryDate);
+                    strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.UpdateDate);
+                    strcmd.Append(")");
+
+                    bDataFirst = false;
+                }
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region レコード番号管理データ１件追加
+        /// <summary>
+        /// レコード番号管理データ１件追加
+        /// </summary>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool InsertAction(RecordKey data, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                bool bColFirst = true;
+                strcmd.Append("INSERT INTO RecordKey");
+                strcmd.Append(" (");
+                foreach (var gender in Enum.GetValues(typeof(TableColumn)))
+                {
+                    if (!bColFirst) strcmd.Append(", ");
+                    strcmd.Append(gender.ToString());
+                    bColFirst = false;
+                }
+                strcmd.Append(") VALUES (");
+
+                strcmd.AppendFormat("{0}", data.KeyNo);
+                strcmd.AppendFormat(",{0}", data.RecordNumber);
+
+                strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", data.EntryDate);
+                strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", data.UpdateDate);
+                strcmd.Append(")");
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region レコード番号管理データ更新
+        /// <summary>
+        /// レコード番号管理データ更新
+        /// </summary>
+        /// <param name="AddSQLString">更新条件SQL文字列</param>
+        /// <param name="data">レコード番号管理データデータ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool UpdateAction(string AddSQLString, RecordKey data, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+
+                strcmd.Append("UPDATE RecordKey");
+
+                strcmd.Append(" SET");
+
+                strcmd.AppendFormat("KeyNo = {0}", data.KeyNo);
+                strcmd.AppendFormat(", RecordNumber = {0}", data.RecordNumber);
+
+                strcmd.Append(", UpdateDate = NOW()");
+                strcmd.Append(AddSQLString);
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                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)
+        {
+            // インターフェース
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.AppendFormat("{0}{1}", "DELETE FROM RecordKey", AddSQLString);
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 1項目更新処理
+        /// <summary>
+        /// 1項目の更新を行う
+        /// </summary>
+        /// <param name="PrimaryCode"></param>
+        /// <param name="FeildNo"></param>
+        /// <param name="value"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool UpdateFeild(int PrimaryCode, int FeildNo, object value, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.Append("UPDATE RecordKey");
+
+                strcmd.Append(" SET");
+                switch (FeildNo)
+                {
+                    case (int)TableColumn.KeyNo:
+                        strcmd.AppendFormat(" KeyNo = {0}", ((int)value).ToString());
+                        break;
+                    case (int)TableColumn.RecordNumber:
+                        strcmd.AppendFormat(" RecordNumber = {0}", ((int)value).ToString());
+                        break;
+                }
+
+                strcmd.Append(", UpdateDate = NOW()");
+                strcmd.Append(CreatePrimarykeyString(PrimaryCode));
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region MySQLDataReaderより構造体へセットする
+        /// <summary>
+        /// MySQLDataReaderより構造体へセットする
+        /// </summary>
+        /// <param name="reader">MySQLDataReader</param>
+        /// <param name="wrk">構造体</param>
+        public void Reader2Struct(object[] objwrk, ref RecordKey wrk)
+        {
+            try
+            {
+                // データ取得
+                wrk.KeyNo = int.Parse(objwrk[(int)TableColumn.KeyNo].ToString());
+                wrk.RecordNumber = int.Parse(objwrk[(int)TableColumn.RecordNumber].ToString());
+
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.EntryDate].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UpdateDate].ToString());
+            }
+            catch (MySqlException myex)
+            {
+                logger.ErrorFormat("ＭｙＳＱＬエラー：{0}：{1}", CommonMotions.GetMethodName(), myex.Message);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+
+        #endregion
+
+        #region 主キー検索の文字列を返す
+        /// <summary>
+        /// 主キー検索の文字列を返す
+        /// </summary>
+        /// <param name="UnitKey"></param>
+        /// <returns>Where文字列</returns>
+        public string CreatePrimarykeyString(int KeyNo)
+        {
+            StringBuilder strWork = new StringBuilder();
+            try
+            {
+                strWork.AppendFormat(" Where KeyNo = {0}", KeyNo);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strWork.ToString());
+            }
+
+            return strWork.ToString();
+        }
+        #endregion
+
+        #region レコード番号の最大値を取得する
+        /// <summary>
+        /// レコード番号の最大値を取得する
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public long SelectMaxMessageBoardDataKeyCount(int KeyNo, bool bConnect = true)
+        {
+            int iRet = 0;
+            IORecordKey keyDB = new IORecordKey();
+            try
+            {
+                // インターフェース
+                StringBuilder strcmd = new StringBuilder();
+                ArrayList arData = new ArrayList();
+                // SQL作成
+                strcmd.Append("SELECT IFNULL(RecordNumber, 0) FROM RecordKey");
+                strcmd.AppendFormat("Where KeyNo = {0}", KeyNo);
+
+                // SQL実行
+                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return iRet;
+
+                // データセット
+                object[] objwrk = (object[])arData[0];
+                iRet = int.Parse(objwrk[0].ToString());
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(2), ex.Message);
+            }
+            finally
+            {
+                keyDB.close(); keyDB = null;
+            }
+
+            return iRet;
+        }
+        #endregion
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/RecordKey.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/RecordKey.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/RecordKey.cs	(revision 364)
@@ -0,0 +1,94 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProcessManagement.DataModel
+{
+    public class RecordKey
+    {
+        #region 定数
+
+        #region 工事基本情報：結合工事フラグ
+        /// <summary>
+        /// 工事基本情報：結合工事フラグ
+        /// </summary>
+        public enum KeyNoDef
+        {
+            /// <summary>
+            /// 1:結合無通常データ
+            /// </summary>
+            MessageKey = 1,
+        }
+        #endregion
+
+        #region 最大値定義
+        /// <summary>
+        /// 最大値定義
+        /// </summary>
+        public static long[] MaxRecCountDef = new long[] { 0, 999999 };
+        #endregion
+
+        #endregion
+
+        #region メンバ変数
+
+        /// <summary>
+        /// キーコード
+        /// </summary>
+        private int m_KeyNo = 0;
+        /// <summary>
+        /// レコード番号
+        /// </summary>
+        private int m_RecordNumber = 0;
+        /// <summary>
+        /// 登録日付
+        /// </summary>
+        private DateTime m_EntryDate = DateTime.Now;
+        /// <summary>
+        /// 更新日付
+        /// </summary>
+        private DateTime m_UpdateDate = DateTime.Now;
+
+        #endregion
+
+        #region コンストラクタ
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        /// キーコード
+        /// </summary>
+        public int KeyNo
+        {
+            get { return m_KeyNo; }
+            set { m_KeyNo = value; }
+        }
+        /// <summary>
+        /// レコード番号
+        /// </summary>
+        public int RecordNumber
+        {
+            get { return m_RecordNumber; }
+            set { m_RecordNumber = 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: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs	(revision 364)
@@ -1438,6 +1438,9 @@
                 SetcmbConstructionTypeCombBox();            // �H�����
                 SetcmbTransferConstructionCombBox();        // �H�����p
 
+                // �����\��
+                InitDataLoad();
+
                 // �R���{�{�b�N�X�C�x���g�Z�b�g
                 SetcmbConstYearEvent(true);
                 SetCmbDepartmentEvent(true);
@@ -1446,9 +1449,6 @@
                 SetcmbConstrTypeEvent(true);
                 SetcmbTransConstrEvent(true);
 
-                // �����\��
-                InitDataLoad();
-
                 // ���b�N����
                 LockTheFieldOnTheRadioButton();
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 364)
@@ -1061,26 +1061,29 @@
                 // �\���E���F�E�������t�̃Z�b�g
                 SetLabelDates();
 
+                SetCmbDepartmentEvent(true);
                 // �c�ƒS�������̃Z�b�g������
-                comboBoxEX1.SelectedValue = worklist[0].SalesDepCode;
-                cmbSalesPerson.SelectedValue = worklist[0].SalesPersonCode;
+                if (worklist[0].SalesDepCode > 0) comboBoxEX1.SelectedValue = worklist[0].SalesDepCode;
+                if (worklist[0].SalesPersonCode > 0) cmbSalesPerson.SelectedValue = worklist[0].SalesPersonCode;
 
                 // �c�ƕ��S�������̃Z�b�g������
-                comboBoxEX5.SelectedValue = worklist[0].SalesSubDepCode;
-                cmbSalesSubPerson.SelectedValue = worklist[0].SalesSubPersonCode;
+                if (worklist[0].SalesSubDepCode > 0) comboBoxEX5.SelectedValue = worklist[0].SalesSubDepCode;
+                if (worklist[0].SalesSubPersonCode > 0) cmbSalesSubPerson.SelectedValue = worklist[0].SalesSubPersonCode;
 
                 // �H���S�������̃Z�b�g������
-                comboBoxEX2.SelectedValue = worklist[0].ConstrDepCode;
-                cmbConstrPerson.SelectedValue = worklist[0].ConstructionPersonCode;
+                if (worklist[0].ConstrDepCode > 0) comboBoxEX2.SelectedValue = worklist[0].ConstrDepCode;
+                if (worklist[0].ConstructionPersonCode > 0) cmbConstrPerson.SelectedValue = worklist[0].ConstructionPersonCode;
 
                 // �H�����S�������̃Z�b�g������
-                comboBoxEX3.SelectedValue = worklist[0].ConstrSubDepCode;
-                cmbConstrSubPerson.SelectedValue = worklist[0].ConstrSubPersonCode;
+                if (worklist[0].ConstrSubDepCode > 0) comboBoxEX3.SelectedValue = worklist[0].ConstrSubDepCode;
+                if (worklist[0].ConstrSubPersonCode > 0) cmbConstrSubPerson.SelectedValue = worklist[0].ConstrSubPersonCode;
 
                 // �w���������̃Z�b�g������
-                comboBoxEX4.SelectedValue = worklist[0].ConstrInstrDepCode;
-                cmbConstrInst.SelectedValue = worklist[0].ConstructionInstructor;
+                if (worklist[0].ConstrInstrDepCode > 0) comboBoxEX4.SelectedValue = worklist[0].ConstrInstrDepCode;
+                if (worklist[0].ConstructionInstructor > 0) cmbConstrInst.SelectedValue = worklist[0].ConstructionInstructor;
+                SetCmbDepartmentEvent(false);
 
+
                 ((ComboBox)m_DspCtrl[(int)DspCnt.OrderersDivision]).SelectedValue = worklist[0].OrderersDivision;                                           // �����ҋ敪
                 // �����҃R���{�X�V
                 SetcmbOrderers();
@@ -3865,7 +3868,10 @@
 
             IOMessageBoardData mbdDB = new IOMessageBoardData();                        // �f���f�[�^
             IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();                    // �f���Ώێ҃e�[�u��
+            IOMessageBrowsingHistory mbhDB = new IOMessageBrowsingHistory();            // �f�������f�[�^
 
+            IORecordKey RecDB = new IORecordKey();                                      // ���R�[�h�ԍ��Ǘ�
+
             FrmConstructionLedger frm = new FrmConstructionLedger();                    // �H���ڍב䒠����
             try
             {
@@ -3912,7 +3918,7 @@
                             ApprovalDB, PersonDB,
                             BudgetDB, BudgetDDB,
                             LedgerDB, LedgerDDB, LedgerEDB,
-                            mbdDB, mbtDB);
+                            mbdDB, mbtDB, mbhDB, RecDB);
 
                 // �f�[�^�o�^
                 if (!ConstructionBaseInfoDataEntry(cbiDB, cpdDB))
@@ -3923,7 +3929,7 @@
                                         ApprovalDB, PersonDB,
                                         BudgetDB, BudgetDDB,
                                         LedgerDB, LedgerDDB, LedgerEDB,
-                                        mbdDB, mbtDB);
+                                        mbdDB, mbtDB, mbhDB, RecDB);
 
                     return false;
                 }
@@ -3935,7 +3941,7 @@
                                         ApprovalDB, PersonDB,
                                         BudgetDB, BudgetDDB,
                                         LedgerDB, LedgerDDB, LedgerEDB,
-                                        mbdDB, mbtDB);
+                                        mbdDB, mbtDB, mbhDB, RecDB);
 
                     return false;
                 }
@@ -3951,7 +3957,7 @@
                                         ApprovalDB, PersonDB,
                                         BudgetDB, BudgetDDB,
                                         LedgerDB, LedgerDDB, LedgerEDB,
-                                        mbdDB, mbtDB);
+                                        mbdDB, mbtDB, mbhDB, RecDB);
 
                     return false;
                 }
@@ -3969,7 +3975,7 @@
                                         ApprovalDB, PersonDB,
                                         BudgetDB, BudgetDDB,
                                         LedgerDB, LedgerDDB, LedgerEDB,
-                                        mbdDB, mbtDB);
+                                        mbdDB, mbtDB, mbhDB, RecDB);
 
                     return false;
                 }
@@ -3985,7 +3991,7 @@
                                             ApprovalDB, PersonDB,
                                             BudgetDB, BudgetDDB,
                                             LedgerDB, LedgerDDB, LedgerEDB,
-                                            mbdDB, mbtDB);
+                                            mbdDB, mbtDB, mbhDB, RecDB);
 
                         return false;
                     }
@@ -4001,7 +4007,7 @@
                                         ApprovalDB, PersonDB,
                                         BudgetDB, BudgetDDB,
                                         LedgerDB, LedgerDDB, LedgerEDB,
-                                        mbdDB, mbtDB);
+                                        mbdDB, mbtDB, mbhDB, RecDB);
 
                     return false;
                 }
@@ -4015,7 +4021,7 @@
                                         ApprovalDB, PersonDB,
                                         BudgetDB, BudgetDDB,
                                         LedgerDB, LedgerDDB, LedgerEDB,
-                                        mbdDB, mbtDB);
+                                        mbdDB, mbtDB, mbhDB, RecDB);
 
                     return false;
                 }
@@ -4023,7 +4029,7 @@
                 // �ڊǂ��������Ă����ꍇ
                 if (m_TransferMesageFlg)
                 {
-                    if (!MessageBoardEntry(mbdDB, mbtDB))
+                    if (!MessageBoardEntry(mbdDB, mbtDB, mbhDB, RecDB))
                     {
                         MessageBox.Show("�����ڊǁF�X�V�G���[�ł��B", "�X�V�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
                         RollBackCommitProc(true,
@@ -4031,7 +4037,7 @@
                                             ApprovalDB, PersonDB,
                                             BudgetDB, BudgetDDB,
                                             LedgerDB, LedgerDDB, LedgerEDB,
-                                            mbdDB, mbtDB);
+                                            mbdDB, mbtDB, mbhDB, RecDB);
                         return false;
                     }
                 }
@@ -4039,7 +4045,7 @@
                 // ���p�S���Ґݒ肪�������Ă����ꍇ
                 if (m_Transfer2MesageFlg)
                 {
-                    if (!MessageBoardEntry2(mbdDB, mbtDB))
+                    if (!MessageBoardEntry2(mbdDB, mbtDB, mbhDB, RecDB))
                     {
                         MessageBox.Show("�S���҈��p�F�X�V�G���[�ł��B", "�X�V�G���[", MessageBoxButtons.OK, MessageBoxIcon.Error);
                         RollBackCommitProc(true,
@@ -4047,7 +4053,7 @@
                                             ApprovalDB, PersonDB,
                                             BudgetDB, BudgetDDB,
                                             LedgerDB, LedgerDDB, LedgerEDB,
-                                            mbdDB, mbtDB);
+                                            mbdDB, mbtDB, mbhDB, RecDB);
                         return false;
                     }
                 }
@@ -4058,7 +4064,7 @@
                                     ApprovalDB, PersonDB,
                                     BudgetDB, BudgetDDB,
                                     LedgerDB, LedgerDDB, LedgerEDB,
-                                    mbdDB, mbtDB);
+                                    mbdDB, mbtDB, mbhDB, RecDB);
 
                 // �H���R�[�h�̃Z�b�g
                 frm.ConstructionCode = ProcConstrCode;
@@ -4101,7 +4107,10 @@
 
                 mbdDB.close(); mbdDB = null;
                 mbtDB.close(); mbtDB = null;
+                mbhDB.close(); mbhDB = null;
+                RecDB.close(); RecDB = null;
 
+
                 frm.Dispose(); frm = null;
             }
         }
@@ -4123,7 +4132,10 @@
                                 IOConstructionLedgerDetail LedgerDDB,   // �H���ڍב䒠���׃f�[�^
                                 IOConstructionLedgerExcute LedgerEDB,   // �H���ڍב䒠�x�����f�[�^
                                 IOMessageBoardData mbdDB,               // �f���f�[�^
-                                IOMessageBoardTerget mbtDB)             // �f���Ώێ҃e�[�u��
+                                IOMessageBoardTerget mbtDB,             // �f���Ώێ҃e�[�u��
+                                IOMessageBrowsingHistory mbhDB,         // �f�������f�[�^
+                                IORecordKey RecDB                       // ���R�[�h�ԍ��Ǘ��f�[�^
+                                )
         {
             try
             {
@@ -4144,6 +4156,9 @@
 
                 mbdDB.connect(); mbdDB.beginTran();
                 mbtDB.connect(); mbtDB.beginTran();
+                mbhDB.connect(); mbhDB.beginTran();
+
+                RecDB.connect(); RecDB.beginTran();
             }
             catch (System.Exception ex)
             {
@@ -4169,7 +4184,9 @@
                                         IOConstructionLedgerDetail LedgerDDB,   // �H���ڍב䒠���׃f�[�^
                                         IOConstructionLedgerExcute LedgerEDB,   // �H���ڍב䒠�x�����f�[�^
                                         IOMessageBoardData mbdDB,               // �f���f�[�^
-                                        IOMessageBoardTerget mbtDB              // �f���Ώێ҃e�[�u��
+                                        IOMessageBoardTerget mbtDB,             // �f���Ώێ҃e�[�u��
+                                        IOMessageBrowsingHistory mbhDB,         // �f�������f�[�^
+                                        IORecordKey RecDB                       // ���R�[�h�ԍ��Ǘ��f�[�^
                                         )
         {
             try
@@ -4189,6 +4206,8 @@
                     LedgerEDB.rollback();
                     mbdDB.rollback();
                     mbtDB.rollback();
+                    mbhDB.rollback();
+                    RecDB.rollback();
                 }
 
                 // DB�o�^
@@ -4205,6 +4224,8 @@
                 LedgerEDB.commit();
                 mbdDB.commit();
                 mbtDB.commit();
+                mbhDB.commit();
+                RecDB.commit();
             }
             catch (System.Exception ex)
             {
@@ -4279,7 +4300,10 @@
         /// �������p�f���f�[�^�o�^
         /// </summary>
         /// <returns></returns>
-        private bool MessageBoardEntry(IOMessageBoardData mbdDB, IOMessageBoardTerget mbtDB)
+        private bool MessageBoardEntry(IOMessageBoardData mbdDB,
+                                        IOMessageBoardTerget mbtDB,
+                                        IOMessageBrowsingHistory mbhDB,
+                                        IORecordKey RecDB)
         {
             try
             {
@@ -4290,7 +4314,8 @@
                 MessageBoardData data = new MessageBoardData();
 
                 // �L�[�R�[�h�Z�b�g
-                data.RecordNumber = mbdDB.SelectMaxMessageBoardDataKeyCount("", false) + 1;
+                data.RecordNumber = IOMessageBoardData.GetNewRecordNumber(mbdDB, mbtDB, mbhDB, RecDB,
+                                                                            (int)RecordKey.KeyNoDef.MessageKey, false);
                 data.BranchNumber = 0;
                 string strWhere = mbdDB.CreatePrimarykeyString(data.RecordNumber, data.BranchNumber);
 
@@ -4371,8 +4396,10 @@
         /// ���p�S���Ҋ����f���f�[�^�o�^
         /// </summary>
         /// <returns></returns>
-        private bool MessageBoardEntry2(IOMessageBoardData mbdDB
-                                        , IOMessageBoardTerget mbtDB)
+        private bool MessageBoardEntry2(IOMessageBoardData mbdDB,
+                                        IOMessageBoardTerget mbtDB,
+                                        IOMessageBrowsingHistory mbhDB,
+                                        IORecordKey RecDB)
         {
             // �f�[�^�Z�b�g���Ɉ��p���ȊO�͏������Ȃ�
             if (rdbStatusHikitugiFlg.Checked) return true;
@@ -4385,7 +4412,8 @@
                 MessageBoardData data = new MessageBoardData();
 
                 // �L�[�R�[�h�Z�b�g
-                data.RecordNumber = mbdDB.SelectMaxMessageBoardDataKeyCount("", false) + 1;
+                data.RecordNumber = IOMessageBoardData.GetNewRecordNumber(mbdDB, mbtDB, mbhDB, RecDB,
+                                                                            (int)RecordKey.KeyNoDef.MessageKey, false);
                 data.BranchNumber = 0;
                 string strWhere = mbdDB.CreatePrimarykeyString(data.RecordNumber, data.BranchNumber);
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.cs	(revision 364)
@@ -536,8 +536,15 @@
         private int m_GetTitileParametar = 0;
         #endregion
 
+        #region ����R���e�L�X�g���j���[�ϐ�
+        /// <summary>
+        /// ����R���e�L�X�g���j���[
+        /// </summary>
+        private ContextMenuStrip m_ExecMenuStrip = new ContextMenuStrip();
         #endregion
 
+        #endregion
+
         #region �v���p�e�B
         /// <summary>
         /// �H���ԍ�
@@ -704,6 +711,9 @@
                     return;
                 }
 
+                // ���׃O���b�h�s�R���e�L�X�g���j���[�쐬
+                SetExecMenuStrip();
+
                 // �H���Č��̏��F��Ԃ��m�F����
                 m_ApprovalFlg = ApprovalCheck();
 
@@ -1143,6 +1153,22 @@
         }
         #endregion
 
+        #region ���׃O���b�hCellMouseClick
+        /// <summary>
+        /// ���׃O���b�hCellMouseClick
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvAllDisplay_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
+        {
+            //�E�N���b�N�̂Ƃ��̂�
+            if (e.Button != MouseButtons.Right) return;
+
+            // �E�N���b�N�R���e�L�X�g���j���[�\��
+            dgvMaster_ContextMenu(sender, e);
+        }
+        #endregion
+
         #region �s�ǉ��{�^��
         /// <summary>
         /// �s�ǉ��{�^������
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.designer.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudget.designer.cs	(revision 364)
@@ -43,14 +43,14 @@
             this.btnDataEntry = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
             this.panel1 = new System.Windows.Forms.Panel();
+            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.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.lblLabel06 = new System.Windows.Forms.Label();
             this.label23 = new System.Windows.Forms.Label();
             this.pnlGroup2 = new System.Windows.Forms.Panel();
@@ -118,8 +118,8 @@
             this.btnOtherProc = new System.Windows.Forms.Button();
             this.btnChangeExpenses = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
+            this.pnlApproval.SuspendLayout();
             this.pnlApprovalButton.SuspendLayout();
-            this.pnlApproval.SuspendLayout();
             this.pnlGroup2.SuspendLayout();
             this.pnlGroup1.SuspendLayout();
             this.panel2.SuspendLayout();
@@ -220,57 +220,6 @@
             this.panel1.Size = new System.Drawing.Size(1330, 160);
             this.panel1.TabIndex = 0;
             // 
-            // 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(1057, 0);
-            this.pnlApprovalButton.Name = "pnlApprovalButton";
-            this.pnlApprovalButton.Size = new System.Drawing.Size(262, 34);
-            this.pnlApprovalButton.TabIndex = 49;
-            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);
-            // 
             // pnlApproval
             // 
             this.pnlApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -326,6 +275,57 @@
             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(1057, 0);
+            this.pnlApprovalButton.Name = "pnlApprovalButton";
+            this.pnlApprovalButton.Size = new System.Drawing.Size(262, 34);
+            this.pnlApprovalButton.TabIndex = 49;
+            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);
+            // 
             // lblLabel06
             // 
             this.lblLabel06.BackColor = System.Drawing.Color.White;
@@ -876,6 +876,7 @@
             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);
+            this.dgvAllDisplay.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvAllDisplay_CellMouseClick);
             this.dgvAllDisplay.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.dgvAllDisplay_CellPainting);
             this.dgvAllDisplay.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
             this.dgvAllDisplay.SelectionChanged += new System.EventHandler(this.dgvAllDisplay_SelectionChanged);
@@ -1170,8 +1171,8 @@
             this.SizeChanged += new System.EventHandler(this.FrmConstructionBudget_SizeChanged);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
+            this.pnlApproval.ResumeLayout(false);
             this.pnlApprovalButton.ResumeLayout(false);
-            this.pnlApproval.ResumeLayout(false);
             this.pnlGroup2.ResumeLayout(false);
             this.pnlGroup2.PerformLayout();
             this.pnlGroup1.ResumeLayout(false);
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs	(revision 364)
@@ -4952,5 +4952,251 @@
             }
         }
         #endregion
+
+        #region コンテキストメニュー定義
+        /// <summary>
+        /// コンテキストメニュー定義
+        /// </summary>
+        private enum ConMenuNo
+        {
+            /// <summary>
+            /// コピー
+            /// </summary>
+            ExecCopy = 0,
+            /// <summary>
+            /// 貼り付け
+            /// </summary>
+            ExecPaste,
+            /// <summary>
+            /// １行削除
+            /// </summary>
+            ExecOnceDel,
+            /// <summary>
+            /// 1行挿入
+            /// </summary>
+            ExecOnceInsert,
+            /// <summary>
+            /// 1行追加
+            /// </summary>
+            ExecOnceAdd,
+        }
+        string[] ContextM = new string[] { "コピー", "貼り付け", "１行削除", "１行挿入", "１行追加" };
+        #endregion
+        #region 明細グリッド行コンテキストメニュー作成
+        /// <summary>
+        /// 明細グリッド行コンテキストメニュー作成
+        /// </summary>
+        private void SetExecMenuStrip()
+        {
+            try
+            {
+                // 承認されていれば処理しない
+                if (ApprovalCheck()) return;
+
+                m_ExecMenuStrip.Items.Clear();
+                int nLoopCnt = Enum.GetNames(typeof(ConMenuNo)).Length;
+                for (int i = 0; i < nLoopCnt; i++)
+                {
+                    //イベントの登録
+                    EventHandler handle = null;
+                    switch (i)
+                    {
+                        case (int)ConMenuNo.ExecCopy:
+                            handle = GridRowCopyExecute;
+                            break;
+                        case (int)ConMenuNo.ExecPaste:
+                            handle = GridRowPasteExecute;
+                            break;
+                        case (int)ConMenuNo.ExecOnceDel:
+                            handle = GridRowRemoveExecute;
+                            break;
+                        case (int)ConMenuNo.ExecOnceInsert:
+                            handle = GridRowInsertExecute;
+                            break;
+                        case (int)ConMenuNo.ExecOnceAdd:
+                            handle = GridRowAddExecute;
+                            break;
+                    }
+                    // 区切り線
+                    if (i > 0) m_ExecMenuStrip.Items.Add("-");
+                    // 行のセット
+                    m_ExecMenuStrip.Items.Add(new ToolStripMenuItem(ContextM[i], null, handle));
+                }
+                // コンテキストメニューをセットする
+                //dgvMaster.ContextMenuStrip = m_ExecMenuStrip;
+            }
+            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 dgvMaster_ContextMenu(object sender, DataGridViewCellMouseEventArgs e)
+        {
+            try
+            {
+                // メニューが無ければ処理しない
+                if (m_ExecMenuStrip.Items.Count < 1) return;
+                
+                // グリッド取得
+                DataGridViewEX dgv = dgvAllDisplay;
+                int idx = dgv.CurrentCell.RowIndex;
+
+                // 最終行は追加有
+                int nLastRow = (int)ConMenuNo.ExecOnceAdd * 2;
+                if (idx == (dgv.RowCount - 1))
+                {
+                    m_ExecMenuStrip.Items[nLastRow].Enabled = true;
+                }
+                else
+                {
+                    m_ExecMenuStrip.Items[nLastRow].Enabled = false;
+                }
+                //コンテキストメニューを表示する
+                m_ExecMenuStrip.Show();
+                //マウスカーソルの位置を画面座標で取得
+                Point p = Control.MousePosition;
+                m_ExecMenuStrip.Top = p.Y;
+                m_ExecMenuStrip.Left = p.X;
+            }
+            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 GridRowCopyExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                DataGridViewEX dgv = dgvAllDisplay;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッドコピー処理
+                dgv.RowCopyAction();
+            }
+            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 GridRowPasteExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                DataGridViewEX dgv = dgvAllDisplay;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド貼り付け処理
+                dgv.RowPasteAction(true);
+
+                // 変更フラグON
+                m_bChengeAns = true;
+            }
+            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 GridRowRemoveExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                DataGridViewEX dgv = dgvAllDisplay;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド非表示
+                dgv.CurrentRow.Visible = false;
+
+                // 変更フラグON
+                m_bChengeAns = true;
+            }
+            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 GridRowInsertExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                DataGridViewEX dgv = dgvAllDisplay;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド挿入処理
+                dgv.RowInsertAction();
+            }
+            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 GridRowAddExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                DataGridViewEX dgv = dgvAllDisplay;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド追加処理
+                dgv.RowAddAction();
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.cs	(revision 364)
@@ -380,8 +380,16 @@
         /// �l�������X�g���
         /// </summary>
         private FrmNumberOfWorkers m_frmNumberOfWorkers = null;
+
+        #region ����R���e�L�X�g���j���[�ϐ�
+        /// <summary>
+        /// ����R���e�L�X�g���j���[
+        /// </summary>
+        private ContextMenuStrip m_ExecMenuStrip = new ContextMenuStrip();
         #endregion
 
+        #endregion
+
         #region �v���p�e�B
         /// <summary>
         /// �S���҃R�[�h
@@ -566,6 +574,9 @@
                 //�R���g���[���I�u�W�F�N�g�擾
                 SetDisplayObject();
 
+                // ���׃O���b�h�s�R���e�L�X�g���j���[�쐬
+                SetExecMenuStrip();
+
                 // �\���N���A
                 ClearDisplay();
 
@@ -610,6 +621,22 @@
         }
         #endregion
 
+        #region ���׃O���b�hCellMouseClick
+        /// <summary>
+        /// ���׃O���b�hCellMouseClick
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvEntryData_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
+        {
+            //�E�N���b�N�̂Ƃ��̂�
+            if (e.Button != MouseButtons.Right) return;
+
+            // �E�N���b�N�R���e�L�X�g���j���[�\��
+            dgvMaster_ContextMenu(sender, e);
+        }
+        #endregion
+
         #region Window���T�C�Y�ύX
         /// <summary>
         /// Window���T�C�Y�ύX���ꂽ
@@ -1513,5 +1540,13 @@
             ExecSubConJob();
         }
         #endregion
+
+        private void FrmDRConstruction_Shown(object sender, EventArgs e)
+        {
+            foreach(DataGridView CurDgv in m_DgvArray)
+            {
+                CurDgv.Width = 1290;
+            }
+        }
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.designer.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.designer.cs	(revision 364)
@@ -28,27 +28,27 @@
         /// </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 dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = 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();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = 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 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();
+            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();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = 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();
@@ -91,18 +91,9 @@
             this.label41 = new System.Windows.Forms.Label();
             this.label42 = new System.Windows.Forms.Label();
             this.label46 = new System.Windows.Forms.Label();
-            this.dataGridViewEX4 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
-            this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.label43 = new System.Windows.Forms.Label();
             this.label44 = new System.Windows.Forms.Label();
             this.label45 = new System.Windows.Forms.Label();
-            this.dataGridViewEX3 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
-            this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.label32 = new System.Windows.Forms.Label();
             this.label33 = new System.Windows.Forms.Label();
             this.label34 = new System.Windows.Forms.Label();
@@ -110,13 +101,6 @@
             this.label36 = new System.Windows.Forms.Label();
             this.label37 = new System.Windows.Forms.Label();
             this.label38 = new System.Windows.Forms.Label();
-            this.dataGridViewEX2 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
-            this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.label27 = new System.Windows.Forms.Label();
             this.label31 = new System.Windows.Forms.Label();
             this.label30 = new System.Windows.Forms.Label();
@@ -126,15 +110,6 @@
             this.label25 = new System.Windows.Forms.Label();
             this.label24 = new System.Windows.Forms.Label();
             this.label23 = new System.Windows.Forms.Label();
-            this.dataGridViewEX1 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
-            this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.lblGrid1Total3 = new System.Windows.Forms.Label();
             this.lblGrid1Total2 = new System.Windows.Forms.Label();
             this.lblGrid1Total1 = new System.Windows.Forms.Label();
@@ -145,6 +120,41 @@
             this.label12 = new System.Windows.Forms.Label();
             this.label7 = new System.Windows.Forms.Label();
             this.lblCellTotal = new System.Windows.Forms.Label();
+            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.btnPrint = new System.Windows.Forms.Button();
+            this.PrintProgress = new System.Windows.Forms.ProgressBar();
+            this.btnCancel = new System.Windows.Forms.Button();
+            this.btnFirst = new System.Windows.Forms.Button();
+            this.btnFinal = new System.Windows.Forms.Button();
+            this.dataGridViewEX4 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewEX3 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewEX2 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewEX1 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dgvAllDisplay = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -156,27 +166,17 @@
             this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            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.btnPrint = new System.Windows.Forms.Button();
-            this.PrintProgress = new System.Windows.Forms.ProgressBar();
-            this.btnCancel = new System.Windows.Forms.Button();
-            this.btnFirst = new System.Windows.Forms.Button();
-            this.btnFinal = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
             this.pnlApproval.SuspendLayout();
             this.pnlApprovalButton.SuspendLayout();
             this.pnlBase.SuspendLayout();
             this.panel3.SuspendLayout();
+            this.panel2.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX4)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX3)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX2)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).BeginInit();
-            this.panel2.SuspendLayout();
             this.SuspendLayout();
             // 
             // label1
@@ -755,87 +755,6 @@
             this.label46.Text = "現　　場　　巡　　回";
             this.label46.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // dataGridViewEX4
-            // 
-            this.dataGridViewEX4.AllowUserToAddRows = false;
-            this.dataGridViewEX4.AllowUserToDeleteRows = false;
-            this.dataGridViewEX4.AllowUserToResizeColumns = false;
-            this.dataGridViewEX4.AllowUserToResizeRows = false;
-            this.dataGridViewEX4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.dataGridViewEX4.BackgroundColor = System.Drawing.Color.White;
-            this.dataGridViewEX4.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.dataGridViewEX4.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22;
-            this.dataGridViewEX4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            this.dataGridViewEX4.ColumnHeadersVisible = false;
-            this.dataGridViewEX4.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.dataGridViewTextBoxColumn18,
-            this.dataGridViewTextBoxColumn19,
-            this.Column9,
-            this.dataGridViewTextBoxColumn20});
-            this.dataGridViewEX4.Location = new System.Drawing.Point(6, 890);
-            this.dataGridViewEX4.Name = "dataGridViewEX4";
-            this.dataGridViewEX4.RowHeadersVisible = false;
-            this.dataGridViewEX4.RowHeadersWidth = 20;
-            this.dataGridViewEX4.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dataGridViewEX4.RowTemplate.Height = 20;
-            this.dataGridViewEX4.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dataGridViewEX4.Size = new System.Drawing.Size(1290, 243);
-            this.dataGridViewEX4.TabIndex = 67;
-            this.dataGridViewEX4.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
-            this.dataGridViewEX4.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.dataGridViewEX4_CellPainting);
-            this.dataGridViewEX4.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
-            this.dataGridViewEX4.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
-            this.dataGridViewEX4.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
-            this.dataGridViewEX4.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
-            this.dataGridViewEX4.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
-            // 
-            // dataGridViewTextBoxColumn18
-            // 
-            dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn18.DefaultCellStyle = dataGridViewCellStyle23;
-            this.dataGridViewTextBoxColumn18.Frozen = true;
-            this.dataGridViewTextBoxColumn18.HeaderText = "№";
-            this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
-            this.dataGridViewTextBoxColumn18.ReadOnly = true;
-            this.dataGridViewTextBoxColumn18.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn18.Width = 46;
-            // 
-            // dataGridViewTextBoxColumn19
-            // 
-            dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn19.DefaultCellStyle = dataGridViewCellStyle24;
-            this.dataGridViewTextBoxColumn19.HeaderText = "時間帯固定";
-            this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
-            this.dataGridViewTextBoxColumn19.ReadOnly = true;
-            this.dataGridViewTextBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
-            // Column9
-            // 
-            dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column9.DefaultCellStyle = dataGridViewCellStyle25;
-            this.Column9.HeaderText = "時間帯";
-            this.Column9.Name = "Column9";
-            this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
-            // dataGridViewTextBoxColumn20
-            // 
-            this.dataGridViewTextBoxColumn20.HeaderText = "巡　　回　　状　　況";
-            this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
-            this.dataGridViewTextBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn20.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn20.Width = 1024;
-            // 
             // label43
             // 
             this.label43.BackColor = System.Drawing.Color.White;
@@ -873,75 +792,6 @@
             this.label45.Text = "協力業者打合せ議事録";
             this.label45.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // dataGridViewEX3
-            // 
-            this.dataGridViewEX3.AllowUserToAddRows = false;
-            this.dataGridViewEX3.AllowUserToDeleteRows = false;
-            this.dataGridViewEX3.AllowUserToResizeColumns = false;
-            this.dataGridViewEX3.AllowUserToResizeRows = false;
-            this.dataGridViewEX3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.dataGridViewEX3.BackgroundColor = System.Drawing.Color.White;
-            this.dataGridViewEX3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle26.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dataGridViewEX3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26;
-            this.dataGridViewEX3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            this.dataGridViewEX3.ColumnHeadersVisible = false;
-            this.dataGridViewEX3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.dataGridViewTextBoxColumn15,
-            this.dataGridViewTextBoxColumn16,
-            this.dataGridViewTextBoxColumn17});
-            this.dataGridViewEX3.Location = new System.Drawing.Point(6, 720);
-            this.dataGridViewEX3.Name = "dataGridViewEX3";
-            this.dataGridViewEX3.RowHeadersVisible = false;
-            this.dataGridViewEX3.RowHeadersWidth = 20;
-            this.dataGridViewEX3.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dataGridViewEX3.RowTemplate.Height = 20;
-            this.dataGridViewEX3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dataGridViewEX3.Size = new System.Drawing.Size(1290, 103);
-            this.dataGridViewEX3.TabIndex = 59;
-            this.dataGridViewEX3.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick);
-            this.dataGridViewEX3.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
-            this.dataGridViewEX3.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
-            this.dataGridViewEX3.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
-            this.dataGridViewEX3.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
-            this.dataGridViewEX3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
-            this.dataGridViewEX3.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
-            // 
-            // dataGridViewTextBoxColumn15
-            // 
-            dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn15.DefaultCellStyle = dataGridViewCellStyle27;
-            this.dataGridViewTextBoxColumn15.Frozen = true;
-            this.dataGridViewTextBoxColumn15.HeaderText = "№";
-            this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
-            this.dataGridViewTextBoxColumn15.ReadOnly = true;
-            this.dataGridViewTextBoxColumn15.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn15.Width = 46;
-            // 
-            // dataGridViewTextBoxColumn16
-            // 
-            this.dataGridViewTextBoxColumn16.HeaderText = "出席者";
-            this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
-            this.dataGridViewTextBoxColumn16.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn16.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn16.Width = 400;
-            // 
-            // dataGridViewTextBoxColumn17
-            // 
-            this.dataGridViewTextBoxColumn17.HeaderText = "内　　容　　及　　び　　指　　示　　事　　項";
-            this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
-            this.dataGridViewTextBoxColumn17.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn17.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn17.Width = 824;
-            // 
             // label32
             // 
             this.label32.BackColor = System.Drawing.Color.White;
@@ -1027,104 +877,6 @@
             this.label38.Text = "主要資材納品状況";
             this.label38.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // dataGridViewEX2
-            // 
-            this.dataGridViewEX2.AllowUserToAddRows = false;
-            this.dataGridViewEX2.AllowUserToDeleteRows = false;
-            this.dataGridViewEX2.AllowUserToResizeColumns = false;
-            this.dataGridViewEX2.AllowUserToResizeRows = false;
-            this.dataGridViewEX2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.dataGridViewEX2.BackgroundColor = System.Drawing.Color.White;
-            this.dataGridViewEX2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle28.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dataGridViewEX2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle28;
-            this.dataGridViewEX2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            this.dataGridViewEX2.ColumnHeadersVisible = false;
-            this.dataGridViewEX2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.dataGridViewTextBoxColumn9,
-            this.dataGridViewTextBoxColumn10,
-            this.dataGridViewTextBoxColumn11,
-            this.dataGridViewTextBoxColumn12,
-            this.dataGridViewTextBoxColumn13,
-            this.dataGridViewTextBoxColumn14});
-            this.dataGridViewEX2.Location = new System.Drawing.Point(5, 550);
-            this.dataGridViewEX2.Name = "dataGridViewEX2";
-            this.dataGridViewEX2.RowHeadersVisible = false;
-            this.dataGridViewEX2.RowHeadersWidth = 20;
-            this.dataGridViewEX2.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dataGridViewEX2.RowTemplate.Height = 20;
-            this.dataGridViewEX2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dataGridViewEX2.Size = new System.Drawing.Size(1290, 103);
-            this.dataGridViewEX2.TabIndex = 51;
-            this.dataGridViewEX2.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick);
-            this.dataGridViewEX2.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
-            this.dataGridViewEX2.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
-            this.dataGridViewEX2.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
-            this.dataGridViewEX2.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
-            this.dataGridViewEX2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
-            this.dataGridViewEX2.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
-            // 
-            // dataGridViewTextBoxColumn9
-            // 
-            dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle29;
-            this.dataGridViewTextBoxColumn9.Frozen = true;
-            this.dataGridViewTextBoxColumn9.HeaderText = "№";
-            this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
-            this.dataGridViewTextBoxColumn9.ReadOnly = true;
-            this.dataGridViewTextBoxColumn9.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn9.Width = 46;
-            // 
-            // dataGridViewTextBoxColumn10
-            // 
-            this.dataGridViewTextBoxColumn10.HeaderText = "資材名";
-            this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
-            this.dataGridViewTextBoxColumn10.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn10.Width = 400;
-            // 
-            // dataGridViewTextBoxColumn11
-            // 
-            dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn11.DefaultCellStyle = dataGridViewCellStyle30;
-            this.dataGridViewTextBoxColumn11.HeaderText = "数量";
-            this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
-            this.dataGridViewTextBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn11.Width = 140;
-            // 
-            // dataGridViewTextBoxColumn12
-            // 
-            this.dataGridViewTextBoxColumn12.HeaderText = "制作会社";
-            this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
-            this.dataGridViewTextBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn12.Width = 200;
-            // 
-            // dataGridViewTextBoxColumn13
-            // 
-            this.dataGridViewTextBoxColumn13.HeaderText = "納入業者";
-            this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
-            this.dataGridViewTextBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn13.Width = 200;
-            // 
-            // dataGridViewTextBoxColumn14
-            // 
-            this.dataGridViewTextBoxColumn14.HeaderText = "品質管理事項";
-            this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
-            this.dataGridViewTextBoxColumn14.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn14.Width = 284;
-            // 
             // label27
             // 
             this.label27.BackColor = System.Drawing.Color.White;
@@ -1234,127 +986,6 @@
             this.label23.Text = "車両系建設機械使用状況";
             this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // dataGridViewEX1
-            // 
-            this.dataGridViewEX1.AllowUserToAddRows = false;
-            this.dataGridViewEX1.AllowUserToDeleteRows = false;
-            this.dataGridViewEX1.AllowUserToResizeColumns = false;
-            this.dataGridViewEX1.AllowUserToResizeRows = false;
-            this.dataGridViewEX1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.dataGridViewEX1.BackgroundColor = System.Drawing.Color.White;
-            this.dataGridViewEX1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle31.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dataGridViewEX1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle31;
-            this.dataGridViewEX1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            this.dataGridViewEX1.ColumnHeadersVisible = false;
-            this.dataGridViewEX1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.dataGridViewTextBoxColumn1,
-            this.dataGridViewTextBoxColumn2,
-            this.dataGridViewTextBoxColumn3,
-            this.dataGridViewTextBoxColumn4,
-            this.dataGridViewTextBoxColumn5,
-            this.dataGridViewTextBoxColumn6,
-            this.dataGridViewTextBoxColumn7,
-            this.dataGridViewTextBoxColumn8});
-            this.dataGridViewEX1.Location = new System.Drawing.Point(3, 380);
-            this.dataGridViewEX1.Name = "dataGridViewEX1";
-            this.dataGridViewEX1.RowHeadersVisible = false;
-            this.dataGridViewEX1.RowHeadersWidth = 20;
-            this.dataGridViewEX1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dataGridViewEX1.RowTemplate.Height = 20;
-            this.dataGridViewEX1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dataGridViewEX1.Size = new System.Drawing.Size(1290, 103);
-            this.dataGridViewEX1.TabIndex = 45;
-            this.dataGridViewEX1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick);
-            this.dataGridViewEX1.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
-            this.dataGridViewEX1.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
-            this.dataGridViewEX1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
-            this.dataGridViewEX1.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
-            this.dataGridViewEX1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
-            this.dataGridViewEX1.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
-            // 
-            // dataGridViewTextBoxColumn1
-            // 
-            dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle32;
-            this.dataGridViewTextBoxColumn1.Frozen = true;
-            this.dataGridViewTextBoxColumn1.HeaderText = "№";
-            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
-            this.dataGridViewTextBoxColumn1.ReadOnly = true;
-            this.dataGridViewTextBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn1.Width = 46;
-            // 
-            // dataGridViewTextBoxColumn2
-            // 
-            this.dataGridViewTextBoxColumn2.HeaderText = "機　　種";
-            this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
-            this.dataGridViewTextBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn2.Width = 400;
-            // 
-            // dataGridViewTextBoxColumn3
-            // 
-            this.dataGridViewTextBoxColumn3.HeaderText = "性　　能";
-            this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
-            this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn3.Width = 140;
-            // 
-            // dataGridViewTextBoxColumn4
-            // 
-            this.dataGridViewTextBoxColumn4.HeaderText = "所有会社";
-            this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
-            this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn4.Width = 200;
-            // 
-            // dataGridViewTextBoxColumn5
-            // 
-            this.dataGridViewTextBoxColumn5.HeaderText = "当日運転者";
-            this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
-            this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn5.Width = 200;
-            // 
-            // dataGridViewTextBoxColumn6
-            // 
-            dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle33;
-            this.dataGridViewTextBoxColumn6.HeaderText = "開始";
-            this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
-            this.dataGridViewTextBoxColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn6.Width = 128;
-            // 
-            // dataGridViewTextBoxColumn7
-            // 
-            dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle34;
-            this.dataGridViewTextBoxColumn7.HeaderText = "";
-            this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
-            this.dataGridViewTextBoxColumn7.ReadOnly = true;
-            this.dataGridViewTextBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn7.Width = 28;
-            // 
-            // dataGridViewTextBoxColumn8
-            // 
-            dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle35;
-            this.dataGridViewTextBoxColumn8.HeaderText = "終了";
-            this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
-            this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.dataGridViewTextBoxColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.dataGridViewTextBoxColumn8.Width = 128;
-            // 
             // lblGrid1Total3
             // 
             this.lblGrid1Total3.BackColor = System.Drawing.Color.White;
@@ -1468,160 +1099,11 @@
             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, 32562);
+            this.lblCellTotal.Location = new System.Drawing.Point(100, 32572);
             this.lblCellTotal.Name = "lblCellTotal";
             this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
             this.lblCellTotal.TabIndex = 36;
             // 
-            // dgvAllDisplay
-            // 
-            this.dgvAllDisplay.AllowUserToAddRows = false;
-            this.dgvAllDisplay.AllowUserToDeleteRows = false;
-            this.dgvAllDisplay.AllowUserToResizeColumns = false;
-            this.dgvAllDisplay.AllowUserToResizeRows = false;
-            this.dgvAllDisplay.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.dgvAllDisplay.BackgroundColor = System.Drawing.Color.White;
-            this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle36.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle36;
-            this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            this.dgvAllDisplay.ColumnHeadersVisible = false;
-            this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.Column1,
-            this.Column10,
-            this.Column2,
-            this.Column11,
-            this.Column3,
-            this.Column4,
-            this.Column5,
-            this.Column6,
-            this.Column7,
-            this.Column8});
-            this.dgvAllDisplay.Location = new System.Drawing.Point(6, 50);
-            this.dgvAllDisplay.Name = "dgvAllDisplay";
-            this.dgvAllDisplay.RowHeadersVisible = false;
-            this.dgvAllDisplay.RowHeadersWidth = 20;
-            this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dgvAllDisplay.RowTemplate.Height = 20;
-            this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dgvAllDisplay.Size = new System.Drawing.Size(1290, 243);
-            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);
-            this.dgvAllDisplay.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
-            this.dgvAllDisplay.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
-            this.dgvAllDisplay.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
-            this.dgvAllDisplay.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
-            this.dgvAllDisplay.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
-            // 
-            // Column1
-            // 
-            dataGridViewCellStyle37.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle37;
-            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 = 46;
-            // 
-            // Column10
-            // 
-            this.Column10.Frozen = true;
-            this.Column10.HeaderText = "職種コード";
-            this.Column10.Name = "Column10";
-            this.Column10.ReadOnly = true;
-            this.Column10.Visible = false;
-            this.Column10.Width = 5;
-            // 
-            // Column2
-            // 
-            dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column2.DefaultCellStyle = dataGridViewCellStyle38;
-            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;
-            // 
-            // Column11
-            // 
-            this.Column11.Frozen = true;
-            this.Column11.HeaderText = "業者コード";
-            this.Column11.Name = "Column11";
-            this.Column11.ReadOnly = true;
-            this.Column11.Visible = false;
-            this.Column11.Width = 5;
-            // 
-            // Column3
-            // 
-            dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle39;
-            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;
-            // 
-            // Column4
-            // 
-            dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column4.DefaultCellStyle = dataGridViewCellStyle40;
-            this.Column4.HeaderText = "当日";
-            this.Column4.Name = "Column4";
-            this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column4.Width = 68;
-            // 
-            // Column5
-            // 
-            dataGridViewCellStyle41.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle41;
-            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 = 68;
-            // 
-            // Column6
-            // 
-            this.Column6.HeaderText = "当日";
-            this.Column6.Name = "Column6";
-            this.Column6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column6.Width = 310;
-            // 
-            // Column7
-            // 
-            this.Column7.HeaderText = "翌日";
-            this.Column7.Name = "Column7";
-            this.Column7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column7.Width = 310;
-            // 
-            // Column8
-            // 
-            dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column8.DefaultCellStyle = dataGridViewCellStyle42;
-            this.Column8.HeaderText = "人員";
-            this.Column8.Name = "Column8";
-            this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column8.Width = 68;
-            // 
             // btnNext
             // 
             this.btnNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
@@ -1753,6 +1235,538 @@
             this.btnFinal.UseVisualStyleBackColor = false;
             this.btnFinal.Click += new System.EventHandler(this.btnFinal_Click);
             // 
+            // dataGridViewEX4
+            // 
+            this.dataGridViewEX4.AllowUserToAddRows = false;
+            this.dataGridViewEX4.AllowUserToDeleteRows = false;
+            this.dataGridViewEX4.AllowUserToResizeColumns = false;
+            this.dataGridViewEX4.AllowUserToResizeRows = false;
+            this.dataGridViewEX4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.dataGridViewEX4.BackgroundColor = System.Drawing.Color.White;
+            this.dataGridViewEX4.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.dataGridViewEX4.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+            this.dataGridViewEX4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dataGridViewEX4.ColumnHeadersVisible = false;
+            this.dataGridViewEX4.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.dataGridViewTextBoxColumn18,
+            this.dataGridViewTextBoxColumn19,
+            this.Column9,
+            this.dataGridViewTextBoxColumn20});
+            this.dataGridViewEX4.Location = new System.Drawing.Point(6, 890);
+            this.dataGridViewEX4.Name = "dataGridViewEX4";
+            this.dataGridViewEX4.RowHeadersVisible = false;
+            this.dataGridViewEX4.RowHeadersWidth = 20;
+            this.dataGridViewEX4.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dataGridViewEX4.RowTemplate.Height = 20;
+            this.dataGridViewEX4.ScrollBars = System.Windows.Forms.ScrollBars.None;
+            this.dataGridViewEX4.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dataGridViewEX4.Size = new System.Drawing.Size(1290, 243);
+            this.dataGridViewEX4.TabIndex = 67;
+            this.dataGridViewEX4.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
+            this.dataGridViewEX4.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.dataGridViewEX4_CellPainting);
+            this.dataGridViewEX4.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
+            this.dataGridViewEX4.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
+            this.dataGridViewEX4.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
+            this.dataGridViewEX4.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
+            this.dataGridViewEX4.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
+            // 
+            // dataGridViewTextBoxColumn18
+            // 
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn18.DefaultCellStyle = dataGridViewCellStyle2;
+            this.dataGridViewTextBoxColumn18.Frozen = true;
+            this.dataGridViewTextBoxColumn18.HeaderText = "№";
+            this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
+            this.dataGridViewTextBoxColumn18.ReadOnly = true;
+            this.dataGridViewTextBoxColumn18.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn18.Width = 46;
+            // 
+            // dataGridViewTextBoxColumn19
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn19.DefaultCellStyle = dataGridViewCellStyle3;
+            this.dataGridViewTextBoxColumn19.HeaderText = "時間帯固定";
+            this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
+            this.dataGridViewTextBoxColumn19.ReadOnly = true;
+            this.dataGridViewTextBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column9
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column9.DefaultCellStyle = dataGridViewCellStyle4;
+            this.Column9.HeaderText = "時間帯";
+            this.Column9.Name = "Column9";
+            this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // dataGridViewTextBoxColumn20
+            // 
+            this.dataGridViewTextBoxColumn20.HeaderText = "巡　　回　　状　　況";
+            this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
+            this.dataGridViewTextBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn20.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn20.Width = 1024;
+            // 
+            // dataGridViewEX3
+            // 
+            this.dataGridViewEX3.AllowUserToAddRows = false;
+            this.dataGridViewEX3.AllowUserToDeleteRows = false;
+            this.dataGridViewEX3.AllowUserToResizeColumns = false;
+            this.dataGridViewEX3.AllowUserToResizeRows = false;
+            this.dataGridViewEX3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.dataGridViewEX3.BackgroundColor = System.Drawing.Color.White;
+            this.dataGridViewEX3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            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.dataGridViewEX3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
+            this.dataGridViewEX3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dataGridViewEX3.ColumnHeadersVisible = false;
+            this.dataGridViewEX3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.dataGridViewTextBoxColumn15,
+            this.dataGridViewTextBoxColumn16,
+            this.dataGridViewTextBoxColumn17});
+            this.dataGridViewEX3.Location = new System.Drawing.Point(6, 720);
+            this.dataGridViewEX3.Name = "dataGridViewEX3";
+            this.dataGridViewEX3.RowHeadersVisible = false;
+            this.dataGridViewEX3.RowHeadersWidth = 20;
+            this.dataGridViewEX3.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dataGridViewEX3.RowTemplate.Height = 20;
+            this.dataGridViewEX3.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
+            this.dataGridViewEX3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dataGridViewEX3.Size = new System.Drawing.Size(1290, 103);
+            this.dataGridViewEX3.TabIndex = 59;
+            this.dataGridViewEX3.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick);
+            this.dataGridViewEX3.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
+            this.dataGridViewEX3.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvEntryData_CellMouseClick);
+            this.dataGridViewEX3.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
+            this.dataGridViewEX3.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
+            this.dataGridViewEX3.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
+            this.dataGridViewEX3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
+            this.dataGridViewEX3.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
+            // 
+            // dataGridViewTextBoxColumn15
+            // 
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn15.DefaultCellStyle = dataGridViewCellStyle6;
+            this.dataGridViewTextBoxColumn15.Frozen = true;
+            this.dataGridViewTextBoxColumn15.HeaderText = "№";
+            this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
+            this.dataGridViewTextBoxColumn15.ReadOnly = true;
+            this.dataGridViewTextBoxColumn15.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn15.Width = 46;
+            // 
+            // dataGridViewTextBoxColumn16
+            // 
+            this.dataGridViewTextBoxColumn16.HeaderText = "出席者";
+            this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
+            this.dataGridViewTextBoxColumn16.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn16.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn16.Width = 400;
+            // 
+            // dataGridViewTextBoxColumn17
+            // 
+            this.dataGridViewTextBoxColumn17.HeaderText = "内　　容　　及　　び　　指　　示　　事　　項";
+            this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
+            this.dataGridViewTextBoxColumn17.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn17.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn17.Width = 824;
+            // 
+            // dataGridViewEX2
+            // 
+            this.dataGridViewEX2.AllowUserToAddRows = false;
+            this.dataGridViewEX2.AllowUserToDeleteRows = false;
+            this.dataGridViewEX2.AllowUserToResizeColumns = false;
+            this.dataGridViewEX2.AllowUserToResizeRows = false;
+            this.dataGridViewEX2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.dataGridViewEX2.BackgroundColor = System.Drawing.Color.White;
+            this.dataGridViewEX2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle7.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dataGridViewEX2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
+            this.dataGridViewEX2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dataGridViewEX2.ColumnHeadersVisible = false;
+            this.dataGridViewEX2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.dataGridViewTextBoxColumn9,
+            this.dataGridViewTextBoxColumn10,
+            this.dataGridViewTextBoxColumn11,
+            this.dataGridViewTextBoxColumn12,
+            this.dataGridViewTextBoxColumn13,
+            this.dataGridViewTextBoxColumn14});
+            this.dataGridViewEX2.Location = new System.Drawing.Point(5, 550);
+            this.dataGridViewEX2.Name = "dataGridViewEX2";
+            this.dataGridViewEX2.RowHeadersVisible = false;
+            this.dataGridViewEX2.RowHeadersWidth = 20;
+            this.dataGridViewEX2.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dataGridViewEX2.RowTemplate.Height = 20;
+            this.dataGridViewEX2.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
+            this.dataGridViewEX2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dataGridViewEX2.Size = new System.Drawing.Size(1290, 103);
+            this.dataGridViewEX2.TabIndex = 51;
+            this.dataGridViewEX2.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick);
+            this.dataGridViewEX2.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
+            this.dataGridViewEX2.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvEntryData_CellMouseClick);
+            this.dataGridViewEX2.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
+            this.dataGridViewEX2.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
+            this.dataGridViewEX2.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
+            this.dataGridViewEX2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
+            this.dataGridViewEX2.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
+            // 
+            // dataGridViewTextBoxColumn9
+            // 
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle8;
+            this.dataGridViewTextBoxColumn9.Frozen = true;
+            this.dataGridViewTextBoxColumn9.HeaderText = "№";
+            this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
+            this.dataGridViewTextBoxColumn9.ReadOnly = true;
+            this.dataGridViewTextBoxColumn9.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn9.Width = 46;
+            // 
+            // dataGridViewTextBoxColumn10
+            // 
+            this.dataGridViewTextBoxColumn10.HeaderText = "資材名";
+            this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
+            this.dataGridViewTextBoxColumn10.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn10.Width = 400;
+            // 
+            // dataGridViewTextBoxColumn11
+            // 
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn11.DefaultCellStyle = dataGridViewCellStyle9;
+            this.dataGridViewTextBoxColumn11.HeaderText = "数量";
+            this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
+            this.dataGridViewTextBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn11.Width = 140;
+            // 
+            // dataGridViewTextBoxColumn12
+            // 
+            this.dataGridViewTextBoxColumn12.HeaderText = "制作会社";
+            this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
+            this.dataGridViewTextBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn12.Width = 200;
+            // 
+            // dataGridViewTextBoxColumn13
+            // 
+            this.dataGridViewTextBoxColumn13.HeaderText = "納入業者";
+            this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
+            this.dataGridViewTextBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn13.Width = 200;
+            // 
+            // dataGridViewTextBoxColumn14
+            // 
+            this.dataGridViewTextBoxColumn14.HeaderText = "品質管理事項";
+            this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
+            this.dataGridViewTextBoxColumn14.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn14.Width = 284;
+            // 
+            // dataGridViewEX1
+            // 
+            this.dataGridViewEX1.AllowUserToAddRows = false;
+            this.dataGridViewEX1.AllowUserToDeleteRows = false;
+            this.dataGridViewEX1.AllowUserToResizeColumns = false;
+            this.dataGridViewEX1.AllowUserToResizeRows = false;
+            this.dataGridViewEX1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.dataGridViewEX1.BackgroundColor = System.Drawing.Color.White;
+            this.dataGridViewEX1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle10.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dataGridViewEX1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
+            this.dataGridViewEX1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dataGridViewEX1.ColumnHeadersVisible = false;
+            this.dataGridViewEX1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.dataGridViewTextBoxColumn1,
+            this.dataGridViewTextBoxColumn2,
+            this.dataGridViewTextBoxColumn3,
+            this.dataGridViewTextBoxColumn4,
+            this.dataGridViewTextBoxColumn5,
+            this.dataGridViewTextBoxColumn6,
+            this.dataGridViewTextBoxColumn7,
+            this.dataGridViewTextBoxColumn8});
+            this.dataGridViewEX1.Location = new System.Drawing.Point(3, 380);
+            this.dataGridViewEX1.Name = "dataGridViewEX1";
+            this.dataGridViewEX1.RowHeadersVisible = false;
+            this.dataGridViewEX1.RowHeadersWidth = 20;
+            this.dataGridViewEX1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dataGridViewEX1.RowTemplate.Height = 20;
+            this.dataGridViewEX1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
+            this.dataGridViewEX1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dataGridViewEX1.Size = new System.Drawing.Size(1290, 103);
+            this.dataGridViewEX1.TabIndex = 45;
+            this.dataGridViewEX1.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick);
+            this.dataGridViewEX1.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
+            this.dataGridViewEX1.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvEntryData_CellMouseClick);
+            this.dataGridViewEX1.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
+            this.dataGridViewEX1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
+            this.dataGridViewEX1.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
+            this.dataGridViewEX1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
+            this.dataGridViewEX1.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
+            // 
+            // dataGridViewTextBoxColumn1
+            // 
+            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle11;
+            this.dataGridViewTextBoxColumn1.Frozen = true;
+            this.dataGridViewTextBoxColumn1.HeaderText = "№";
+            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+            this.dataGridViewTextBoxColumn1.ReadOnly = true;
+            this.dataGridViewTextBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn1.Width = 46;
+            // 
+            // dataGridViewTextBoxColumn2
+            // 
+            this.dataGridViewTextBoxColumn2.HeaderText = "機　　種";
+            this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+            this.dataGridViewTextBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn2.Width = 400;
+            // 
+            // dataGridViewTextBoxColumn3
+            // 
+            this.dataGridViewTextBoxColumn3.HeaderText = "性　　能";
+            this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+            this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn3.Width = 140;
+            // 
+            // dataGridViewTextBoxColumn4
+            // 
+            this.dataGridViewTextBoxColumn4.HeaderText = "所有会社";
+            this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+            this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn4.Width = 200;
+            // 
+            // dataGridViewTextBoxColumn5
+            // 
+            this.dataGridViewTextBoxColumn5.HeaderText = "当日運転者";
+            this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
+            this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn5.Width = 200;
+            // 
+            // dataGridViewTextBoxColumn6
+            // 
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle12;
+            this.dataGridViewTextBoxColumn6.HeaderText = "開始";
+            this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
+            this.dataGridViewTextBoxColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn6.Width = 128;
+            // 
+            // dataGridViewTextBoxColumn7
+            // 
+            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle13;
+            this.dataGridViewTextBoxColumn7.HeaderText = "";
+            this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
+            this.dataGridViewTextBoxColumn7.ReadOnly = true;
+            this.dataGridViewTextBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn7.Width = 28;
+            // 
+            // dataGridViewTextBoxColumn8
+            // 
+            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle14;
+            this.dataGridViewTextBoxColumn8.HeaderText = "終了";
+            this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
+            this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.dataGridViewTextBoxColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.dataGridViewTextBoxColumn8.Width = 128;
+            // 
+            // dgvAllDisplay
+            // 
+            this.dgvAllDisplay.AllowUserToAddRows = false;
+            this.dgvAllDisplay.AllowUserToDeleteRows = false;
+            this.dgvAllDisplay.AllowUserToResizeColumns = false;
+            this.dgvAllDisplay.AllowUserToResizeRows = false;
+            this.dgvAllDisplay.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.dgvAllDisplay.BackgroundColor = System.Drawing.Color.White;
+            this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle15.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15;
+            this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgvAllDisplay.ColumnHeadersVisible = false;
+            this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1,
+            this.Column10,
+            this.Column2,
+            this.Column11,
+            this.Column3,
+            this.Column4,
+            this.Column5,
+            this.Column6,
+            this.Column7,
+            this.Column8});
+            this.dgvAllDisplay.Location = new System.Drawing.Point(7, 50);
+            this.dgvAllDisplay.Name = "dgvAllDisplay";
+            this.dgvAllDisplay.RowHeadersVisible = false;
+            this.dgvAllDisplay.RowHeadersWidth = 20;
+            this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dgvAllDisplay.RowTemplate.Height = 20;
+            this.dgvAllDisplay.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
+            this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dgvAllDisplay.Size = new System.Drawing.Size(1290, 243);
+            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);
+            this.dgvAllDisplay.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvEntryData_CellMouseClick);
+            this.dgvAllDisplay.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValidated);
+            this.dgvAllDisplay.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellValueChanged);
+            this.dgvAllDisplay.Enter += new System.EventHandler(this.dgvAllDisplay_Enter);
+            this.dgvAllDisplay.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvAllDisplay_KeyDown);
+            this.dgvAllDisplay.Leave += new System.EventHandler(this.dgvAllDisplay_Leave);
+            // 
+            // Column1
+            // 
+            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle16;
+            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 = 46;
+            // 
+            // Column10
+            // 
+            this.Column10.Frozen = true;
+            this.Column10.HeaderText = "職種コード";
+            this.Column10.Name = "Column10";
+            this.Column10.ReadOnly = true;
+            this.Column10.Visible = false;
+            this.Column10.Width = 5;
+            // 
+            // Column2
+            // 
+            dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle17;
+            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;
+            // 
+            // Column11
+            // 
+            this.Column11.Frozen = true;
+            this.Column11.HeaderText = "業者コード";
+            this.Column11.Name = "Column11";
+            this.Column11.ReadOnly = true;
+            this.Column11.Visible = false;
+            this.Column11.Width = 5;
+            // 
+            // Column3
+            // 
+            dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle18;
+            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;
+            // 
+            // Column4
+            // 
+            dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column4.DefaultCellStyle = dataGridViewCellStyle19;
+            this.Column4.Frozen = true;
+            this.Column4.HeaderText = "当日";
+            this.Column4.Name = "Column4";
+            this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column4.Width = 68;
+            // 
+            // Column5
+            // 
+            dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle20;
+            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 = 68;
+            // 
+            // Column6
+            // 
+            this.Column6.Frozen = true;
+            this.Column6.HeaderText = "当日";
+            this.Column6.Name = "Column6";
+            this.Column6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column6.Width = 310;
+            // 
+            // Column7
+            // 
+            this.Column7.Frozen = true;
+            this.Column7.HeaderText = "翌日";
+            this.Column7.Name = "Column7";
+            this.Column7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column7.Width = 310;
+            // 
+            // Column8
+            // 
+            dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column8.DefaultCellStyle = dataGridViewCellStyle21;
+            this.Column8.Frozen = true;
+            this.Column8.HeaderText = "人員";
+            this.Column8.Name = "Column8";
+            this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column8.Width = 68;
+            // 
             // FrmDRConstruction
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -1784,6 +1798,7 @@
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmDRConstruction_FormClosing);
             this.Load += new System.EventHandler(this.FrmDRConstruction_Load);
+            this.Shown += new System.EventHandler(this.FrmDRConstruction_Shown);
             this.SizeChanged += new System.EventHandler(this.FrmDRConstruction_SizeChanged);
             this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmDRConstruction_KeyDown);
             this.panel1.ResumeLayout(false);
@@ -1793,12 +1808,12 @@
             this.pnlBase.ResumeLayout(false);
             this.pnlBase.PerformLayout();
             this.panel3.ResumeLayout(false);
+            this.panel2.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX4)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX3)).EndInit();
             ((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);
 
         }
@@ -1902,6 +1917,16 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20;
+        private System.Windows.Forms.Panel panel2;
+        private System.Windows.Forms.Button btnWorkingList;
+        private System.Windows.Forms.Button btnPrint;
+        private System.Windows.Forms.ProgressBar PrintProgress;
+        private System.Windows.Forms.Button btnCancel;
+        private System.Windows.Forms.Button btnFirst;
+        private System.Windows.Forms.Button btnFinal;
+        private System.Windows.Forms.Button btnSubJob;
+        private System.Windows.Forms.Panel panel3;
+        private System.Windows.Forms.Label label20;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
@@ -1912,15 +1937,5 @@
         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;
-        private System.Windows.Forms.Button btnPrint;
-        private System.Windows.Forms.ProgressBar PrintProgress;
-        private System.Windows.Forms.Button btnCancel;
-        private System.Windows.Forms.Button btnFirst;
-        private System.Windows.Forms.Button btnFinal;
-        private System.Windows.Forms.Button btnSubJob;
-        private System.Windows.Forms.Panel panel3;
-        private System.Windows.Forms.Label label20;
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs	(revision 364)
@@ -3385,6 +3385,263 @@
         }
         #endregion
 
+        #region コンテキストメニュー定義
+        /// <summary>
+        /// コンテキストメニュー定義
+        /// </summary>
+        private enum ConMenuNo
+        {
+            /// <summary>
+            /// コピー
+            /// </summary>
+            ExecCopy = 0,
+            /// <summary>
+            /// 貼り付け
+            /// </summary>
+            ExecPaste,
+            /// <summary>
+            /// １行削除
+            /// </summary>
+            ExecOnceDel,
+            /// <summary>
+            /// 1行挿入
+            /// </summary>
+            ExecOnceInsert,
+            /// <summary>
+            /// 1行追加
+            /// </summary>
+            ExecOnceAdd,
+        }
+        string[] ContextM = new string[] { "コピー", "貼り付け", "１行削除", "１行挿入", "１行追加" };
+        #endregion
+        #region 明細グリッド行コンテキストメニュー作成
+        /// <summary>
+        /// 明細グリッド行コンテキストメニュー作成
+        /// </summary>
+        private void SetExecMenuStrip()
+        {
+            try
+            {
+                m_ExecMenuStrip.Items.Clear();
+                int nLoopCnt = Enum.GetNames(typeof(ConMenuNo)).Length;
+                for (int i = 0; i < nLoopCnt; i++)
+                {
+                    //イベントの登録
+                    EventHandler handle = null;
+                    switch (i)
+                    {
+                        case (int)ConMenuNo.ExecCopy:
+                            handle = GridRowCopyExecute;
+                            break;
+                        case (int)ConMenuNo.ExecPaste:
+                            handle = GridRowPasteExecute;
+                            break;
+                        case (int)ConMenuNo.ExecOnceDel:
+                            handle = GridRowRemoveExecute;
+                            break;
+                        case (int)ConMenuNo.ExecOnceInsert:
+                            handle = GridRowInsertExecute;
+                            break;
+                        case (int)ConMenuNo.ExecOnceAdd:
+                            handle = GridRowAddExecute;
+                            break;
+                    }
+                    // 区切り線
+                    if (i > 0) m_ExecMenuStrip.Items.Add("-");
+                    // 行のセット
+                    m_ExecMenuStrip.Items.Add(new ToolStripMenuItem(ContextM[i], null, handle));
+                }
+                // コンテキストメニューをセットする
+                //dgvMaster.ContextMenuStrip = m_ExecMenuStrip;
+            }
+            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 dgvMaster_ContextMenu(object sender, DataGridViewCellMouseEventArgs e)
+        {
+            try
+            {
+                // メニューが無ければ処理しない
+                if (m_ExecMenuStrip.Items.Count < 1) return;
+
+                // グリッド取得
+                DataGridViewEX dgv = (DataGridViewEX)sender;
+                int idx = dgv.CurrentCell.RowIndex;
+
+                // 最終行は追加有
+                int nLastRow = (int)ConMenuNo.ExecOnceAdd * 2;
+                if (idx == (dgv.RowCount - 1))
+                {
+                    m_ExecMenuStrip.Items[nLastRow].Enabled = true;
+                }
+                else
+                {
+                    m_ExecMenuStrip.Items[nLastRow].Enabled = false;
+                }
+                //コンテキストメニューを表示する
+                m_ExecMenuStrip.Show();
+                //マウスカーソルの位置を画面座標で取得
+                Point p = Control.MousePosition;
+                m_ExecMenuStrip.Top = p.Y;
+                m_ExecMenuStrip.Left = p.X;
+            }
+            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 GridRowCopyExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                if (!ActiveControl.GetType().Equals(typeof(DataGridViewEX))) return;
+                DataGridViewEX dgv = (DataGridViewEX)ActiveControl;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッドコピー処理
+                dgv.RowCopyAction();
+            }
+            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 GridRowPasteExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                if (!ActiveControl.GetType().Equals(typeof(DataGridViewEX))) return;
+                DataGridViewEX dgv = (DataGridViewEX)ActiveControl;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド貼り付け処理
+                dgv.RowPasteAction(true);
+
+                // 変更フラグON
+                m_bChengeAns = true;
+            }
+            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 GridRowRemoveExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                if (!ActiveControl.GetType().Equals(typeof(DataGridViewEX))) return;
+                DataGridViewEX dgv = (DataGridViewEX)ActiveControl;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド非表示
+                dgv.CurrentRow.Visible = false;
+
+                // 番号を振りなおす
+                GridReNumber(dgv);
+
+                // 変更フラグON
+                m_bChengeAns = true;
+            }
+            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 GridRowInsertExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                if (!ActiveControl.GetType().Equals(typeof(DataGridViewEX))) return;
+                DataGridViewEX dgv = (DataGridViewEX)ActiveControl;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド挿入処理
+                dgv.RowInsertAction();
+
+                // 番号を振りなおす
+                GridReNumber(dgv);
+            }
+            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 GridRowAddExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                if (!ActiveControl.GetType().Equals(typeof(DataGridViewEX))) return;
+                DataGridViewEX dgv = (DataGridViewEX)ActiveControl;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド追加処理
+                dgv.RowAddAction();
+
+                // 番号を振りなおす
+                GridReNumber(dgv);
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         // -------------------- 印刷処理
         #region 印刷時ボタン制御
         /// <summary>
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostAux.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostAux.cs	(revision 364)
@@ -26,6 +26,35 @@
 {
     partial class FrmDepCost
     {
+        #region �R���e�L�X�g���j���[��`
+        /// <summary>
+        /// �R���e�L�X�g���j���[��`
+        /// </summary>
+        private enum ConMenuNo
+        {
+            /// <summary>
+            /// �R�s�[
+            /// </summary>
+            ExecCopy = 0,
+            /// <summary>
+            /// �\��t��
+            /// </summary>
+            ExecPaste,
+            /// <summary>
+            /// �P�s�폜
+            /// </summary>
+            ExecOnceDel,
+            /// <summary>
+            /// 1�s�}��
+            /// </summary>
+            ExecOnceInsert,
+            /// <summary>
+            /// 1�s�ǉ�
+            /// </summary>
+            ExecOnceAdd,
+        }
+        string[] ContextM = new string[] { "�R�s�[", "�\��t��", "�P�s�폜", "�P�s�}��", "�P�s�ǉ�" };
+        #endregion
         #region ���׃O���b�h�s�R���e�L�X�g���j���[�쐬
         /// <summary>
         /// ���׃O���b�h�s�R���e�L�X�g���j���[�쐬
@@ -35,32 +64,26 @@
             try
             {
                 m_ExecMenuStrip.Items.Clear();
-
-                for (int i = 0; i < 5; i++)
+                int nLoopCnt = Enum.GetNames(typeof(ConMenuNo)).Length;
+                for (int i = 0; i < nLoopCnt; i++)
                 {
                     //�C�x���g�̓o�^
-                    string strExecName = string.Empty;
                     EventHandler handle = null;
                     switch (i)
                     {
-                        case 0:
-                            strExecName = "�R�s�[";
+                        case (int)ConMenuNo.ExecCopy:
                             handle = GridRowCopyExecute;
                             break;
-                        case 1:
-                            strExecName = "�\��t��";
+                        case (int)ConMenuNo.ExecPaste:
                             handle = GridRowPasteExecute;
                             break;
-                        case 2:
-                            strExecName = "�P�s�폜";
+                        case (int)ConMenuNo.ExecOnceDel:
                             handle = GridRowRemoveExecute;
                             break;
-                        case 3:
-                            strExecName = "�P�s�}��";
+                        case (int)ConMenuNo.ExecOnceInsert:
                             handle = GridRowInsertExecute;
                             break;
-                        case 4:
-                            strExecName = "�P�s�ǉ�";
+                        case (int)ConMenuNo.ExecOnceAdd:
                             handle = GridRowAddExecute;
                             break;
                     }
@@ -67,7 +90,7 @@
                     // ��؂��
                     if (i > 0) m_ExecMenuStrip.Items.Add("-");
                     // �s�̃Z�b�g
-                    m_ExecMenuStrip.Items.Add(new ToolStripMenuItem(strExecName, null, handle));
+                    m_ExecMenuStrip.Items.Add(new ToolStripMenuItem(ContextM[i], null, handle));
                 }
                 // �R���e�L�X�g���j���[���Z�b�g����
                 //dgvMaster.ContextMenuStrip = m_ExecMenuStrip;
@@ -1885,13 +1908,14 @@
                 int idx = dgv.CurrentCell.RowIndex;
 
                 // �ŏI�s�͒ǉ��L
-                if(idx == (dgv.RowCount - 1))
+                int nLastRow = (int)ConMenuNo.ExecOnceAdd * 2;
+                if (idx == (dgv.RowCount - 1))
                 {
-                    m_ExecMenuStrip.Items[8].Enabled = true;
+                    m_ExecMenuStrip.Items[nLastRow].Enabled = true;
                 }
                 else
                 {
-                    m_ExecMenuStrip.Items[8].Enabled = false;
+                    m_ExecMenuStrip.Items[nLastRow].Enabled = false;
                 }
                 //�R���e�L�X�g���j���[��\������
                 m_ExecMenuStrip.Show();
@@ -1921,7 +1945,7 @@
                 if (dgv.CurrentRow == null) return;
 
                 // ���׃O���b�h�R�s�[����
-                dgvMaster.RowCopyAction();
+                dgv.RowCopyAction();
             }
             catch (System.Exception ex)
             {
@@ -1944,7 +1968,10 @@
                 if (dgv.CurrentRow == null) return;
 
                 // ���׃O���b�h�\��t������
-                dgvMaster.RowPasteAction(true);
+                dgv.RowPasteAction(true);
+
+                // �ύX�t���OON
+                m_bChengeAns = true;
             }
             catch (System.Exception ex)
             {
@@ -1976,6 +2003,9 @@
 
                 // ���׃O���b�h��\��
                 dgv.CurrentRow.Visible = false;
+
+                // �ύX�t���OON
+                m_bChengeAns = true;
             }
             catch (System.Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs	(revision 364)
@@ -350,7 +350,15 @@
         /// ���s�_�C�A���O�I��l
         /// </summary>
         private DialogResult m_PrintresRet = DialogResult.Cancel;
+
+        #region ����R���e�L�X�g���j���[�ϐ�
+        /// <summary>
+        /// ����R���e�L�X�g���j���[
+        /// </summary>
+        private ContextMenuStrip m_ExecMenuStrip = new ContextMenuStrip();
         #endregion
+        
+        #endregion
 
         #region �v���p�e�B
         /// <summary>
@@ -1221,6 +1229,9 @@
             // �Ǘ��}�X�^�擾
             //CommonMotions.SetSystemMaster();
 
+            // ���׃O���b�h�s�R���e�L�X�g���j���[�쐬
+            SetExecMenuStrip();
+
             //�R���g���[���I�u�W�F�N�g�擾
             SetDisplayObject();
 
@@ -1316,7 +1327,22 @@
                 // �ύX�t���OON
                 m_bChengeAns = true;
             }
+        }
+        #endregion
 
+        #region ���׃O���b�hCellMouseClick
+        /// <summary>
+        /// ���׃O���b�hCellMouseClick
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgvEntryData_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
+        {
+            //�E�N���b�N�̂Ƃ��̂�
+            if (e.Button != MouseButtons.Right) return;
+
+            // �E�N���b�N�R���e�L�X�g���j���[�\��
+            dgvMaster_ContextMenu(sender, e);
         }
         #endregion
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs	(revision 364)
@@ -817,6 +817,7 @@
             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);
+            this.dgvEntryData.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvEntryData_CellMouseClick);
             this.dgvEntryData.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEntryData_CellValidated);
             this.dgvEntryData.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEntryData_CellValueChanged);
             this.dgvEntryData.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvEntryData_Scroll);
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs	(revision 364)
@@ -266,6 +266,7 @@
                 newpage.EntryDGV.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEntryData_CellClick);
                 newpage.EntryDGV.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEntryData_CellDoubleClick);
                 newpage.EntryDGV.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEntryData_CellEnter);
+                newpage.EntryDGV.CellMouseClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvEntryData_CellMouseClick);
                 newpage.EntryDGV.CellValidated += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvEntryData_CellValidated);
                 newpage.EntryDGV.CellValueChanged += new DataGridViewCellEventHandler(this.dgvEntryData_CellValueChanged);
                 newpage.EntryDGV.CurrentCellChanged += new System.EventHandler(this.dgvEntryData_CurrentCellChanged);
@@ -6069,5 +6070,291 @@
             }
         }
         #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, CommonDefine.s_Default_OrderNo, 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 ConMenuNo
+        {
+            /// <summary>
+            /// コピー
+            /// </summary>
+            ExecCopy = 0,
+            /// <summary>
+            /// 貼り付け
+            /// </summary>
+            ExecPaste,
+            /// <summary>
+            /// １行削除
+            /// </summary>
+            ExecOnceDel,
+            /// <summary>
+            /// 1行挿入
+            /// </summary>
+            ExecOnceInsert,
+            /// <summary>
+            /// 1行追加
+            /// </summary>
+            ExecOnceAdd,
+        }
+        string[] ContextM = new string[] { "コピー", "貼り付け", "１行削除", "１行挿入", "１行追加" };
+        #endregion
+        #region 明細グリッド行コンテキストメニュー作成
+        /// <summary>
+        /// 明細グリッド行コンテキストメニュー作成
+        /// </summary>
+        private void SetExecMenuStrip()
+        {
+            try
+            {
+                // 承認されていれば処理しない
+                if (ApprovalCheck()) return;
+
+                m_ExecMenuStrip.Items.Clear();
+                int nLoopCnt = Enum.GetNames(typeof(ConMenuNo)).Length;
+                for (int i = 0; i < nLoopCnt; i++)
+                {
+                    //イベントの登録
+                    EventHandler handle = null;
+                    switch (i)
+                    {
+                        case (int)ConMenuNo.ExecCopy:
+                            handle = GridRowCopyExecute;
+                            break;
+                        case (int)ConMenuNo.ExecPaste:
+                            handle = GridRowPasteExecute;
+                            break;
+                        case (int)ConMenuNo.ExecOnceDel:
+                            handle = GridRowRemoveExecute;
+                            break;
+                        case (int)ConMenuNo.ExecOnceInsert:
+                            handle = GridRowInsertExecute;
+                            break;
+                        case (int)ConMenuNo.ExecOnceAdd:
+                            handle = GridRowAddExecute;
+                            break;
+                    }
+                    // 区切り線
+                    if (i > 0) m_ExecMenuStrip.Items.Add("-");
+                    // 行のセット
+                    m_ExecMenuStrip.Items.Add(new ToolStripMenuItem(ContextM[i], null, handle));
+                }
+                // コンテキストメニューをセットする
+                //dgvMaster.ContextMenuStrip = m_ExecMenuStrip;
+            }
+            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 dgvMaster_ContextMenu(object sender, DataGridViewCellMouseEventArgs e)
+        {
+            try
+            {
+                // メニューが無ければ処理しない
+                if (m_ExecMenuStrip.Items.Count < 1) return;
+
+                // グリッド取得
+                int TabCnt = TabCollections.SelectedIndex;
+                DataGridViewEX dgv = m_EntryPage[TabCnt].EntryDGV;
+                int idx = dgv.CurrentCell.RowIndex;
+
+                // 最終行は追加有
+                int nLastRow = (int)ConMenuNo.ExecOnceAdd * 2;
+                if (idx == (dgv.RowCount - 1))
+                {
+                    m_ExecMenuStrip.Items[nLastRow].Enabled = true;
+                }
+                else
+                {
+                    m_ExecMenuStrip.Items[nLastRow].Enabled = false;
+                }
+                //コンテキストメニューを表示する
+                m_ExecMenuStrip.Show();
+                //マウスカーソルの位置を画面座標で取得
+                Point p = Control.MousePosition;
+                m_ExecMenuStrip.Top = p.Y;
+                m_ExecMenuStrip.Left = p.X;
+            }
+            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 GridRowCopyExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                int TabCnt = TabCollections.SelectedIndex;
+                DataGridViewEX dgv = m_EntryPage[TabCnt].EntryDGV;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッドコピー処理
+                dgv.RowCopyAction();
+            }
+            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 GridRowPasteExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                int TabCnt = TabCollections.SelectedIndex;
+                DataGridViewEX dgv = m_EntryPage[TabCnt].EntryDGV;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド貼り付け処理
+                dgv.RowPasteAction(true);
+
+                // 変更フラグON
+                m_bChengeAns = true;
+            }
+            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 GridRowRemoveExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                int TabCnt = TabCollections.SelectedIndex;
+                DataGridViewEX dgv = m_EntryPage[TabCnt].EntryDGV;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド非表示
+                dgv.CurrentRow.Visible = false;
+
+                // 変更フラグON
+                m_bChengeAns = true;
+            }
+            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 GridRowInsertExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                int TabCnt = TabCollections.SelectedIndex;
+                DataGridViewEX dgv = m_EntryPage[TabCnt].EntryDGV;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド挿入処理
+                dgv.RowInsertAction();
+            }
+            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 GridRowAddExecute(object sender, EventArgs e)
+        {
+            try
+            {
+                // グリッド取得
+                int TabCnt = TabCollections.SelectedIndex;
+                DataGridViewEX dgv = m_EntryPage[TabCnt].EntryDGV;
+                if (dgv.CurrentRow == null) return;
+
+                // 明細グリッド追加処理
+                dgv.RowAddAction();
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReserveEntry/FrmMateResEntAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReserveEntry/FrmMateResEntAux.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReserveEntry/FrmMateResEntAux.cs	(revision 364)
@@ -693,7 +693,7 @@
                 sql.AppendFormat(" where Cmi.CONSTRUCTIONCODE = {0} ", ConstructionCode);
                 sql.AppendLine(" And Mri.CONSTRUCTIONCODE = Cmi.CONSTRUCTIONCODE");
                 sql.AppendLine(" And Mri.MATERIALITEMCODE = Cmi.MATERIALITEMCODE");
-                sql.AppendLine(" And Mri.PROCESSDATE = Cmi.PROCESSDATE");
+                sql.AppendLine(" And DATE(Mri.PROCESSDATE) = DATE(Cmi.PROCESSDATE)");
                 sql.AppendFormat(" And Mri.RECKIND = {0} ", (int)MaterialRecordInfo.RecKindDef.Rental);
 
                 // データ取得
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReturnEntry/FrmMateRetEntAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReturnEntry/FrmMateRetEntAux.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/MaterialReturnEntry/FrmMateRetEntAux.cs	(revision 364)
@@ -547,7 +547,7 @@
                 sql.AppendFormat(" where Cmi.ConstructionCode = {0} ", ConstructionCode);
                 sql.AppendLine(" And Mri.CONSTRUCTIONCODE = Cmi.CONSTRUCTIONCODE");
                 sql.AppendLine(" And Mri.MATERIALITEMCODE = Cmi.MATERIALITEMCODE");
-                sql.AppendLine(" And DATE(Mri.ENTRYDATE) = DATE(Cmi.PROCESSDATE)");
+                sql.AppendLine(" And DATE(Mri.PROCESSDATE) = DATE(Cmi.PROCESSDATE)");
                 sql.AppendFormat(" And Mri.RECKIND = {0}", (int)MaterialRecordInfo.RecKindDef.Rental);
 
                 sql.AppendLine(" order by");
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmEntryDeposit.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmEntryDeposit.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmEntryDeposit.cs	(revision 364)
@@ -855,7 +855,7 @@
                 MessageBoardData data = new MessageBoardData();
 
                 // キーコードセット
-                data.RecordNumber = mbtDB.SelectMaxMessageBoardTergetKeyCount("", false) + 1;
+                data.RecordNumber = mbtDB.GetMaxRecordNumber("", false) + 1;
                 data.BranchNumber = 0;
                 string strWhere = mbdDB.CreatePrimarykeyString(data.RecordNumber, data.BranchNumber);
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardReader.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardReader.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardReader.cs	(revision 364)
@@ -573,7 +573,7 @@
                 MesHisRec.RecordNumber = m_RecordNumber;                            // レコード番号
                 MesHisRec.BranchNumber = m_BranchNumber;                            // レコード枝番
                 string strInsertSQL = MesHisDB.CreatePrimarykeyString(m_RecordNumber, m_BranchNumber);
-                MesHisRec.SeqNum = MesHisDB.SelectMaxSeqNoCount(strInsertSQL) + 1;        // 順番
+                MesHisRec.SeqNum = MesHisDB.GetMaxSeqNo(strInsertSQL) + 1;        // 順番
                 MesHisRec.BrowsingCode = CommonMotions.LoginUserData.PersonCode;    // 閲覧者コード
                 MesHisRec.BrowsingDate = DateTime.Now;                              // 閲覧日付
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.cs	(revision 364)
@@ -614,26 +614,28 @@
         /// <returns></returns>
         private bool MessageBoardEntry()
         {
-            IOMessageBoardData mbdDB = new IOMessageBoardData();
-            IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
+            IOMessageBoardData DataDB = new IOMessageBoardData();
+            IOMessageBoardTerget TergetDB = new IOMessageBoardTerget();
+            IOMessageBrowsingHistory HistoryDB = new IOMessageBrowsingHistory();
+            IORecordKey RecordDB = new IORecordKey();
             try
             {
-                mbdDB.connect();
-                mbdDB.beginTran();
+                DataDB.connect(); DataDB.beginTran();
+                TergetDB.connect(); TergetDB.beginTran();
+                HistoryDB.connect(); HistoryDB.beginTran();
+                RecordDB.connect(); RecordDB.beginTran();
 
-                mbtDB.connect();
-                mbtDB.beginTran();
-
                 MessageBoardData work = new MessageBoardData();
 
                 // メッセージの状態でキーを作成する
                 if (lblMode.Text == s_ModeString[0])
                 {   // 新規メッセージの時
-                    m_RecordNumber = mbdDB.SelectMaxMessageBoardDataKeyCount("", false) + 1;
+                    m_RecordNumber = IOMessageBoardData.GetNewRecordNumber(DataDB, TergetDB, HistoryDB, RecordDB
+                                                                        , (int)RecordKey.KeyNoDef.MessageKey, false);
                 }
                 else if (lblMode.Text == s_ModeString[2])
                 {   // 返信：新規
-                    m_BranchNumber = mbdDB.SelectMaxMessageBoardDataBranchKeyCount(m_RecordNumber, false) + 1;
+                    m_BranchNumber = DataDB.GetMaxBranchNumber(m_RecordNumber, false) + 1;
                 }
                 // キーコードセット
                 work.RecordNumber = m_RecordNumber;
@@ -640,8 +642,8 @@
                 work.BranchNumber = m_BranchNumber;
 
                 List<MessageBoardData> data = new List<MessageBoardData>();
-                string strWhere = mbdDB.CreatePrimarykeyString(work.RecordNumber, work.BranchNumber);
-                if (!mbdDB.SelectAction(strWhere, ref data, false))
+                string strWhere = DataDB.CreatePrimarykeyString(work.RecordNumber, work.BranchNumber);
+                if (!DataDB.SelectAction(strWhere, ref data, false))
                 {
                     MessageBox.Show("登録確認に失敗しました。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
                     return false;
@@ -661,11 +663,13 @@
                     data.Clear();
                     data.Add(work);
                     // データ登録
-                    if (!mbdDB.InsertAction(data, false))
+                    if (!DataDB.InsertAction(data, false))
                     {
                         MessageBox.Show("登録に失敗しました。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                        mbdDB.rollback();
-                        mbtDB.rollback();
+                        DataDB.rollback();
+                        TergetDB.rollback();
+                        HistoryDB.rollback();
+                        RecordDB.rollback();
                         return false;
                     }
                 }
@@ -673,17 +677,24 @@
                 {
                     // データがある場合
                     // データ更新
-                    if (!mbdDB.UpdateAction(strWhere, work, false))
+                    if (!DataDB.UpdateAction(strWhere, work, false))
                     {
                         MessageBox.Show("メッセージ登録に失敗しました。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                        mbdDB.rollback();
-                        mbtDB.rollback();
+                        DataDB.rollback();
+                        TergetDB.rollback();
+                        HistoryDB.rollback();
+                        RecordDB.rollback();
                         return false;
                     }
                 }
 
-                string strMBT = mbtDB.CreatePrimarykeyString(work.RecordNumber, work.BranchNumber);
-                mbtDB.DeleteAction(strMBT, false);
+                if (lblMode.Text != s_ModeString[0])
+                {   // 新規メッセージ以外の時
+                    StringBuilder strMBT = new StringBuilder();
+                    strMBT.AppendFormat(TergetDB.CreatePrimarykeyString(m_RecordNumber, m_BranchNumber));
+                    TergetDB.DeleteAction(strMBT.ToString(), false);
+                }
+                
                 // 対象者書込み
                 List<MessageBoardTerget> terList = new List<MessageBoardTerget>();
                 int icnt = 0;
@@ -701,16 +712,20 @@
                     terList.Add(wrkTer);
                 }
                 // データ登録
-                if (!mbtDB.InsertAction(terList, false))
+                if (!TergetDB.InsertAction(terList, false))
                 {
                     MessageBox.Show("対象者登録に失敗しました。", "登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                    mbdDB.rollback();
-                    mbtDB.rollback();
+                    DataDB.rollback();
+                    TergetDB.rollback();
+                    HistoryDB.rollback();
+                    RecordDB.rollback();
                     return false;
                 }
 
-                mbdDB.commit();
-                mbtDB.commit();
+                DataDB.commit();
+                TergetDB.commit();
+                HistoryDB.commit();
+                RecordDB.commit();
 
                 return true;
             }
@@ -721,8 +736,10 @@
             }
             finally
             {
-                mbdDB.close(); mbdDB = null;
-                mbtDB.close(); mbtDB = null;
+                DataDB.close(); DataDB = null;
+                TergetDB.close(); TergetDB = null;
+                HistoryDB.close(); HistoryDB = null;
+                RecordDB.close(); RecordDB = null;
             }
         }
         #endregion
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmTyingConstrDiag.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmTyingConstrDiag.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmTyingConstrDiag.cs	(revision 364)
@@ -330,9 +330,9 @@
                 else if (BaseList.Count == 1)
                 {
                     // 1件しかない場合は一覧を表示しない
-                    object[] Onece = (object[])BaseList[0];
+                    object[] Once = (object[])BaseList[0];
                     // 工事番号取得
-                    m_ConstructionCode = CommonMotions.cnvInt(Onece[0]);
+                    m_ConstructionCode = CommonMotions.cnvInt(Once[0]);
                     m_EndButton = DialogResult.OK;
                     this.Close();
                     return;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 364)
@@ -2508,21 +2508,11 @@
                 }
                 strSQL.Append(" AND B.RECORDNUMBER = A.RECORDNUMBER");
                 strSQL.Append(" AND B.BRANCHNUMBER = A.BRANCHNUMBER");
-                if (exeflg == (int)TabNameEnum.MessageBoard)
-                {
-                    strSQL.Append(" Order By");
-                    strSQL.Append(" A.RecordNumber Desc");
-                    strSQL.Append(", A.BranchNumber Asc");
-                    strSQL.Append(", B.SeqNum ASC");
 
-                }
-                else
-                {   // 掲示板データ
-                    strSQL.Append(" Order By");
-                    strSQL.Append(" A.WritingDate Desc");
-                    strSQL.Append(", A.MessageTitile Asc");
-                    strSQL.Append(", B.SeqNum ASC");
-                }
+                strSQL.Append(" Order By");
+                strSQL.Append(" A.WritingDate Desc");
+                strSQL.Append(", A.MessageTitile Asc");
+                strSQL.Append(", B.SeqNum ASC");
             }
             catch (Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 364)
@@ -153,6 +153,7 @@
     <Compile Include="DataModel\CostDataOfDepartment.cs" />
     <Compile Include="DataModel\DepartmentCostData.cs" />
     <Compile Include="DataModel\BudgetSumCode.cs" />
+    <Compile Include="DataModel\RecordKey.cs" />
     <Compile Include="DataModel\PersonExpensesCost.cs" />
     <Compile Include="DataModel\SalaryClass.cs" />
     <Compile Include="DataModel\GridCellStyleMember.cs" />
@@ -279,6 +280,7 @@
     <Compile Include="DB\IOAccess\IOSubConstrJobItemRegist.cs" />
     <Compile Include="DB\IOAccess\IOSubConstrJobLinkRegist.cs" />
     <Compile Include="DB\IOAccess\IOSubConstrRegist.cs" />
+    <Compile Include="DB\IOAccess\IORecordKey.cs" />
     <Compile Include="DB\IOAccess\IOTranceportDailyData.cs" />
     <Compile Include="DB\MySql\MySqlProcess.cs" />
     <Compile Include="Forms\DataEntry\ApprovalPerson\FrmApprovalPerson.cs">
Index: branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 363)
+++ branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 364)
@@ -32,7 +32,7 @@
 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を 
 // 既定値にすることができます:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.1.216")]
-[assembly: AssemblyFileVersion("1.0.1.216")]
+[assembly: AssemblyVersion("1.0.1.217")]
+[assembly: AssemblyFileVersion("1.0.1.217")]
 // Log4netを使用する
 [assembly: log4net.Config.XmlConfigurator(ConfigFile = @"log4net.config", Watch = true)]
\ No newline at end of file
