Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 270)
@@ -14,7 +14,7 @@
         /// <summary>
         /// æœ¬ä½“ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³
         /// </summary>
-        public static int s_SystemVersion = 80;
+        public static int s_SystemVersion = 81;
 
         /// <summary>
         /// ã‚³ãƒ”ãƒ¼ãƒ»ç’°å¢ƒãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs	(revision 270)
@@ -1009,9 +1009,9 @@
         }
         #endregion
 
-        #region å·¥äº‹è©³ç´°å�°å¸³æ”¯æ‰•ã�„ãƒ‡ãƒ¼ã‚¿ä¸€æ‹¬ç™»éŒ²
+        #region å·¥äº‹è©³ç´°å�°å¸³æ”¯æ‰•ã�„ãƒ‡ãƒ¼ã‚¿ä¸€æ‹¬ç™»éŒ²ï¼ˆæ‰‹é–“ãƒ»æ¥­è€…æ”¯æ‰•ç”¨ï¼‰
         /// <summary>
-        /// å·¥äº‹è©³ç´°å�°å¸³æ”¯æ‰•ã�„ãƒ‡ãƒ¼ã‚¿ä¸€æ‹¬ç™»éŒ²
+        /// å·¥äº‹è©³ç´°å�°å¸³æ”¯æ‰•ã�„ãƒ‡ãƒ¼ã‚¿ä¸€æ‹¬ç™»éŒ²ï¼ˆæ‰‹é–“ãƒ»æ¥­è€…æ”¯æ‰•ç”¨ï¼‰
         /// </summary>
         /// <param name="EntryList"></param>
         /// <returns></returns>
@@ -1026,19 +1026,31 @@
                 bool bExists = true;
                 bool bRet = true;
                 List<int> ConstrCodeList = new List<int>();
+                List<ConstructionLedgerExcute> ExecList = new List<ConstructionLedgerExcute>();
+                int nLineCount = 0;
 
                 foreach (ConstructionLedgerExcute CurRec in EntryList)
                 {
                     strSQL.Clear();
+
+                    // å·¥äº‹ç•ªå�·ã�Œ0ã�®å ´å�ˆã�¯å‡¦ç�†ã�—ã�ªã�„
+                    if (CurRec.ConstructionCode == 0) continue;
+                    // ã‚°ãƒ«ãƒ¼ãƒ—ç•ªå�·ã�Œ0ã�®å ´å�ˆã�¯å‡¦ç�†ã�—ã�ªã�„
+                    if (CurRec.GroupCount == 0) continue;
+                    // è¡Œãƒ»åˆ—ç•ªå�·ã�Œ0ã�®å ´å�ˆã�¯å‡¦ç�†ã�—ã�ªã�„
+                    if (CurRec.LineCount == 0 && CurRec.ColumnCount == 0) continue;
+
                     // ã‚­ãƒ¼ä½œæˆ�
                     strSQL.AppendFormat(ExecDB.CreatePrimarykeyString(CurRec.ConstructionCode,
                                                                         CurRec.GroupCount,
                                                                         CurRec.LineCount,
                                                                         CurRec.ColumnCount));
-
-                    List<ConstructionLedgerExcute> ExecList = new List<ConstructionLedgerExcute>();
+                    ExecList.Clear();
                     if (!ExecDB.SelectAction(strSQL.ToString(), ref ExecList, false)) continue;
-                    if (ExecList.Count == 0) bExists = false;
+                    if (ExecList.Count > 0)
+                        bExists = true;
+                    else
+                        bExists = false;
 
                     if (bExists)
                     {   // ãƒ‡ãƒ¼ã‚¿å­˜åœ¨æ™‚ã�¯æ”¯æ‰•é‡‘é¡�æ›´æ–°
@@ -1051,26 +1063,26 @@
                                             false))
                         {
                             bRet = false;
-                            ExecDB.rollback();
                             break;
                         }
                     }
                     else
-                    {   // ãƒ‡ãƒ¼ã‚¿æœªä½œæˆ�ã�®å ´å�ˆã�¯æ–½å·¥è²»ã�®æœ€å¤§è¡Œç•ªå�·ã�§æ–°è¦�ãƒ‡ãƒ¼ã‚¿ä½œæˆ�
-                        strSQL.Clear();
-                        strSQL.Append("SELECT MAX(LINECOUNT) FROM CONSTRUCTIONLEDGEREXCUTE");
-                        strSQL.AppendFormat(" WHERE CONSTRUCTIONCODE = {0}", CurRec.ConstructionCode);
-                        strSQL.AppendFormat(" AND GROUPCOUNT = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
-
-                        ArrayList CountData = new ArrayList();
-                        ExecDB.ExecuteReader(strSQL.ToString(), ref CountData, false);
-
-                        object[] objRec = (object[])CountData[0];
-                        CurRec.LineCount = CommonMotions.cnvInt(objRec[0]) + 1;
+                    {
+                        // è¡Œç•ªå�·ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã�ªã�„å ´å�ˆã�¯æ–°è¦�ã�«å�–å¾—ã�™ã‚‹
+                        if (CurRec.LineCount == 0)
+                        {
+                            nLineCount = 0;
+                            if (GetNewLineNo(ExecDB, CurRec, ref nLineCount))
+                            {
+                                bRet = false;
+                                break;
+                            }
+                            CurRec.LineCount = nLineCount;
+                        }
+                        // æ–°è¦�ä½œæˆ�
                         if (!ExecDB.InsertAction(CurRec, false))
                         {
                             bRet = false;
-                            ExecDB.rollback();
                             break;
                         }
                     }
@@ -1091,6 +1103,12 @@
                         ConstrCodeList.Add(CurRec.ConstructionCode);
                     }
                 }
+                // ãƒ«ãƒ¼ãƒ—å¾Œã‚¨ãƒ©ãƒ¼ã�Œã�‚ã‚Œã�°å‡¦ç�†çµ‚äº†
+                if (!bRet)
+                {
+                    ExecDB.rollback();
+                    return bRet;
+                }
 
                 // å�°å¸³å†�è¨ˆç®—
                 if (!LedgerRecalculate(ExecDB, ConstrCodeList))
@@ -1104,6 +1122,7 @@
             catch (System.Exception ex)
             {
                 logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+                ExecDB.rollback();
                 return false;
             }
             finally
@@ -1113,6 +1132,55 @@
             }
         }
         #endregion
+
+        #region å·¥äº‹å�°å¸³ã‚ˆã‚Šæ–°è¦�ã�®è¡Œç•ªå�·ã‚’å�–å¾—ã�™ã‚‹
+        /// <summary>
+        /// å·¥äº‹å�°å¸³ã‚ˆã‚Šæ–°è¦�ã�®è¡Œç•ªå�·ã‚’å�–å¾—ã�™ã‚‹
+        /// </summary>
+        private static bool GetNewLineNo(IOConstructionLedgerExcute ExecDB, ConstructionLedgerExcute CurRec, ref int nLineCount)
+        {
+            try
+            {
+                StringBuilder strSQL = new StringBuilder();
+                ArrayList CountData = new ArrayList();
+
+                // è¡Œç•ªå�·ã�Œ0ã�®å ´å�ˆã�¯æ–½å·¥è²»ã�®æœ€å¤§è¡Œç•ªå�·ã�§æ–°è¦�ãƒ‡ãƒ¼ã‚¿ä½œæˆ�
+                strSQL.Clear();
+                strSQL.Append("SELECT MAX(LINECOUNT) FROM CONSTRUCTIONLEDGERDETAIL");
+                strSQL.AppendFormat(" WHERE CONSTRUCTIONCODE = {0}", CurRec.ConstructionCode);
+                strSQL.AppendFormat(" AND GROUPCOUNT = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
+                strSQL.AppendFormat(" AND FLUCTUATIONFLG = {0}", (int)ConstructionLedgerDetail.FlucFlgDef.Normal);
+
+                CountData.Clear();
+                if (!ExecDB.ExecuteReader(strSQL.ToString(), ref CountData, false)) return false;
+
+                object[] objRec = (object[])CountData[0];
+                nLineCount = CommonMotions.cnvInt(objRec[0]) + 1;
+
+                // ----- å�–å¾—è¡Œä»¥ä¸‹ã‚’1è¡Œä¸‹ã�’ã‚‹
+                // å·¥äº‹è©³ç´°å�°å¸³æ˜Žç´°ãƒ‡ãƒ¼ã‚¿
+                strSQL.Clear();
+                strSQL.Append("UPDATE CONSTRUCTIONLEDGERDETAIL SET LineCount = (LineCount + 1)");
+                strSQL.AppendFormat(" WHERE CONSTRUCTIONCODE = {0}", CurRec.ConstructionCode);
+                strSQL.AppendFormat(" AND LineCount >= {0}", nLineCount);
+                if (!ExecDB.ExecuteNonQuery(strSQL.ToString(), false)) return false;
+
+                // å·¥äº‹è©³ç´°å�°å¸³å®Ÿè¡Œãƒ‡ãƒ¼ã‚¿
+                strSQL.Clear();
+                strSQL.Append("UPDATE CONSTRUCTIONLEDGEREXCUTE SET LineCount = (LineCount + 1)");
+                strSQL.AppendFormat(" WHERE CONSTRUCTIONCODE = {0}", CurRec.ConstructionCode);
+                strSQL.AppendFormat(" AND LineCount >= {0}", nLineCount);
+                if (!ExecDB.ExecuteNonQuery(strSQL.ToString(), false)) return false;
+
+                return true;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
         // â†‘â†‘ ** ----- ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ã‚§ãƒ¼ã‚¹ ----- **
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSecurityPermission.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSecurityPermission.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSecurityPermission.cs	(revision 270)
@@ -61,11 +61,11 @@
             public SecRangeType m_SecRange { get; set; }                        // ä¿�è­·åŒºåˆ†
             public bool CanEditDeposit
             {
-                get { return m_GeneralAffairsFlg == 1; }
+                get { return m_GeneralAffairsFlg == (int)SecurityMaster.GeneAffDef.GeneralDep; }
             }
             public bool CanEditDepositDetail
             {
-                get { return m_GeneralAffairsFlg == 0; }
+                get { return m_GeneralAffairsFlg == (int)SecurityMaster.GeneAffDef.OtherDep; }
             }
         }
         #endregion
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOAttendanceDailyData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOAttendanceDailyData.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOAttendanceDailyData.cs	(revision 270)
@@ -50,14 +50,26 @@
             /// </summary>
             ActionResult,
             /// <summary>
-            /// æ®‹æ¥­æ™‚é–“
+            /// é–‹å§‹æ™‚é–“
             /// </summary>
-            OvertimeHours,
+            StartTime,
             /// <summary>
+            /// çµ‚äº†æ™‚é–“
+            /// </summary>
+            CompTime,
+            /// <summary>
+            /// æ—¥ç¨¼åƒ�å�ˆè¨ˆæ™‚é–“
+            /// </summary>
+            DayTimes,
+            /// <summary>
             /// ã‚³ãƒ¡ãƒ³ãƒˆ
             /// </summary>
             WorkingComment,
             /// <summary>
+            /// å¤œé–“ä½œæ¥­ãƒ•ãƒ©ã‚°
+            /// </summary>
+            NightFlg,
+            /// <summary>
             /// ç™»éŒ²å¹´æœˆæ—¥
             /// </summary>
             EntryDate,
@@ -93,8 +105,11 @@
             strcmd.Append(" ,DATE_FORMAT(AttendanceDate, '%Y/%m/%d')");         // æ—¥å ±ä½œæˆ�æ—¥
             strcmd.Append(" ,SeqNo");                                           // æ˜Žç´°è¡Œç•ªå�·
             strcmd.Append(" ,ActionResult");                                    // è¡Œå‹•å®Ÿç¸¾
-            strcmd.Append(" ,OvertimeHours");                                   // æ®‹æ¥­æ™‚é–“
+            strcmd.Append(" ,DATE_FORMAT(StartTime, '%Y/%m/%d %H:%i:%s')");     // é–‹å§‹æ™‚é–“
+            strcmd.Append(" ,DATE_FORMAT(CompTime, '%Y/%m/%d %H:%i:%s')");      // çµ‚äº†æ™‚é–“
+            strcmd.Append(" ,DayTimes");                                        // æ—¥ç¨¼åƒ�å�ˆè¨ˆæ™‚é–“
             strcmd.Append(" ,WorkingComment");                                  // ã‚³ãƒ¡ãƒ³ãƒˆ
+            strcmd.Append(" ,NightFlg");                                        // å¤œé–“ä½œæ¥­ãƒ•ãƒ©ã‚°
             strcmd.Append(", DATE_FORMAT(EntryDate, '%Y/%m/%d %H:%i:%s')");     // ç™»éŒ²å¹´æœˆæ—¥
             strcmd.Append(", DATE_FORMAT(UpdateDate, '%Y/%m/%d %H:%i:%s')");    // æ›´æ–°å¹´æœˆæ—¥
             strcmd.Append(" FROM AttendanceDailyData");
@@ -192,13 +207,16 @@
                 }
                 strcmd.Append(") VALUES (");
 
-                strcmd.AppendFormat("  {0}", work.PersonCode);                      // æ‹…å½“è€…ã‚³ãƒ¼ãƒ‰
+                strcmd.AppendFormat("  {0}", work.PersonCode);                          // æ‹…å½“è€…ã‚³ãƒ¼ãƒ‰
                 strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d')"
                                             , work.AttendanceDate.ToShortDateString()); // æ—¥å ±ä½œæˆ�æ—¥
-                strcmd.AppendFormat(", {0}", work.SeqNo);                           // æ˜Žç´°è¡Œç•ªå�·
-                strcmd.AppendFormat(",'{0}'", work.ActionResult);                   // è¡Œå‹•å®Ÿç¸¾
-                strcmd.AppendFormat(", {0}", work.OvertimeHours);                   // æ®‹æ¥­æ™‚é–“
-                strcmd.AppendFormat(",'{0}'", work.WorkingComment);                 // ã‚³ãƒ¡ãƒ³ãƒˆ
+                strcmd.AppendFormat(", {0}", work.SeqNo);                               // æ˜Žç´°è¡Œç•ªå�·
+                strcmd.AppendFormat(",'{0}'", work.ActionResult);                       // è¡Œå‹•å®Ÿç¸¾
+                strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.StartTime);    // é–‹å§‹æ™‚é–“
+                strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.CompTime);     // çµ‚äº†æ™‚é–“
+                strcmd.AppendFormat(", {0}", work.DayTimes);                            // æ—¥ç¨¼åƒ�å�ˆè¨ˆæ™‚é–“
+                strcmd.AppendFormat(",'{0}'", work.WorkingComment);                     // ã‚³ãƒ¡ãƒ³ãƒˆ
+                strcmd.AppendFormat(", {0}", work.NightFlg);                            // å¤œé–“ä½œæ¥­ãƒ•ãƒ©ã‚°
 
                 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);
@@ -239,13 +257,16 @@
                     if (bDataFirst) strcmd.Append(" (");
                     else strcmd.Append(", (");
 
-                    strcmd.AppendFormat("  {0}", work.PersonCode);                      // æ‹…å½“è€…ã‚³ãƒ¼ãƒ‰
+                    strcmd.AppendFormat("  {0}", work.PersonCode);                                      // æ‹…å½“è€…ã‚³ãƒ¼ãƒ‰
                     strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d')"
-                                                , work.AttendanceDate.ToShortDateString()); // æ—¥å ±ä½œæˆ�æ—¥
-                    strcmd.AppendFormat(", {0}", work.SeqNo);                           // æ˜Žç´°è¡Œç•ªå�·
-                    strcmd.AppendFormat(",'{0}'", work.ActionResult);                   // è¡Œå‹•å®Ÿç¸¾
-                    strcmd.AppendFormat(", {0}", work.OvertimeHours);                   // æ®‹æ¥­æ™‚é–“
-                    strcmd.AppendFormat(",'{0}'", work.WorkingComment);                 // ã‚³ãƒ¡ãƒ³ãƒˆ
+                                                , work.AttendanceDate.ToShortDateString());             // æ—¥å ±ä½œæˆ�æ—¥
+                    strcmd.AppendFormat(", {0}", work.SeqNo);                                           // æ˜Žç´°è¡Œç•ªå�·
+                    strcmd.AppendFormat(",'{0}'", work.ActionResult);                                   // è¡Œå‹•å®Ÿç¸¾
+                    strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.StartTime);    // é–‹å§‹æ™‚é–“
+                    strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.CompTime);     // çµ‚äº†æ™‚é–“
+                    strcmd.AppendFormat(", {0}", work.DayTimes);                                        // æ—¥ç¨¼åƒ�å�ˆè¨ˆæ™‚é–“
+                    strcmd.AppendFormat(",'{0}'", work.WorkingComment);                                 // ã‚³ãƒ¡ãƒ³ãƒˆ
+                    strcmd.AppendFormat(", {0}", work.NightFlg);                                        // å¤œé–“ä½œæ¥­ãƒ•ãƒ©ã‚°
 
                     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);
@@ -285,11 +306,16 @@
 
                 strcmd.AppendFormat(" PersonCode = {0}", data.PersonCode);                  // æ‹…å½“è€…ã‚³ãƒ¼ãƒ‰
                 strcmd.AppendFormat(",AttendanceDate = STR_TO_DATE('{0}','%Y/%m/%d')"
-                                        , data.AttendanceDate.ToShortDateString());             // æ—¥å ±ä½œæˆ�æ—¥
+                                        , data.AttendanceDate.ToShortDateString());         // æ—¥å ±ä½œæˆ�æ—¥
                 strcmd.AppendFormat(",SeqNo =  {0} ", data.SeqNo);                          // æ˜Žç´°è¡Œç•ªå�·
                 strcmd.AppendFormat(",ActionResult = '{0}'", data.ActionResult);            // è¡Œå‹•å®Ÿç¸¾
-                strcmd.AppendFormat(",OvertimeHours = {0}", data.OvertimeHours);            // æ®‹æ¥­æ™‚é–“
+                strcmd.AppendFormat(",StartTime = STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')"
+                                        , data.StartTime);                                  // é–‹å§‹æ™‚é–“
+                strcmd.AppendFormat(",CompTime = STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')"
+                                        , data.CompTime);                                   // çµ‚äº†æ™‚é–“
+                strcmd.AppendFormat(",DayTimes = {0}", data.DayTimes);                      // æ—¥ç¨¼åƒ�å�ˆè¨ˆæ™‚é–“
                 strcmd.AppendFormat(",WorkingComment = '{0}'", data.WorkingComment);        // ã‚³ãƒ¡ãƒ³ãƒˆ
+                strcmd.AppendFormat(",NightFlg = {0}", data.NightFlg);                      // å¤œé–“ä½œæ¥­ãƒ•ãƒ©ã‚°
 
                 strcmd.Append(", UpdateDate = NOW()");
                 strcmd.Append(AddSQLString);
@@ -364,12 +390,21 @@
                     case (int)TableColumn.ActionResult:
                         strcmd.AppendFormat(" ActionResult = '{0}'", value.ToString());
                         break;
-                    case (int)TableColumn.OvertimeHours:
-                        strcmd.AppendFormat(" OvertimeHours = {0}", (double)value);
+                    case (int)TableColumn.StartTime:
+                        strcmd.AppendFormat(" StartTime = STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", ((DateTime)value).ToString());
                         break;
+                    case (int)TableColumn.CompTime:
+                        strcmd.AppendFormat(" CompTime = STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", ((DateTime)value).ToString());
+                        break;
+                    case (int)TableColumn.DayTimes:
+                        strcmd.AppendFormat(" DayTimes = {0}", (double)value);
+                        break;
                     case (int)TableColumn.WorkingComment:
                         strcmd.AppendFormat(" WorkingComment = '{0}'", CommonMotions.cnvString(value));
                         break;
+                    case (int)TableColumn.NightFlg:
+                        strcmd.AppendFormat(" NightFlg = {0}", (int)value);
+                        break;
                 }
 
                 strcmd.Append(", UpdateDate = NOW()");
@@ -402,8 +437,11 @@
                 wrk.AttendanceDate = DateTime.Parse(objwrk[(int)TableColumn.AttendanceDate].ToString());     // æ—¥å ±ä½œæˆ�æ—¥
                 wrk.SeqNo = int.Parse(objwrk[(int)TableColumn.SeqNo].ToString());                            // æ˜Žç´°è¡Œç•ªå�·
                 wrk.ActionResult = objwrk[(int)TableColumn.ActionResult].ToString();                         // è¡Œå‹•å®Ÿç¸¾
-                wrk.OvertimeHours = CommonMotions.cnvDouble(objwrk[(int)TableColumn.OvertimeHours]);         // æ®‹æ¥­æ™‚é–“
+                wrk.StartTime = DateTime.Parse(objwrk[(int)TableColumn.StartTime].ToString());
+                wrk.CompTime = DateTime.Parse(objwrk[(int)TableColumn.CompTime].ToString());
+                wrk.DayTimes = CommonMotions.cnvDouble(objwrk[(int)TableColumn.DayTimes]);
                 wrk.WorkingComment = objwrk[(int)TableColumn.WorkingComment].ToString();                     // å½“æ—¥ä½œæ¥­å†…å®¹
+                wrk.NightFlg = int.Parse(objwrk[(int)TableColumn.NightFlg].ToString());
                 
                 wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.EntryDate].ToString());
                 wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UpdateDate].ToString());
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBillingDataDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBillingDataDetail.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBillingDataDetail.cs	(revision 270)
@@ -38,6 +38,8 @@
             SeqNo,
             LineCount,
             ConstructionCode,
+            ConstructionRowCnt,
+            ConstructionColCnt,
             FieldName,
             BillPrice,
             HighwPrice,
@@ -61,7 +63,7 @@
 
         #endregion
 
-        #region ãƒ‘ãƒ–ãƒªãƒƒã‚¯ãƒ¡ã‚½ãƒƒãƒ‰
+        #region æ¤œç´¢
         /// <summary>
         /// æ¤œç´¢
         /// </summary>
@@ -79,7 +81,20 @@
             {
                 // SQLä½œæˆ�ï¼ˆDateTimeåž‹ã�Œå¤‰æ�›ã�§ã��ã�ªã�„ã�®ã�§Charã�«å¤‰æ�›ã�—ã�¦ã�Šã��ï¼‰
                 strcmd.Append("SELECT");
-                strcmd.Append(" CompanyCode,TargetDate,SeqNo,LineCount,ConstructionCode,FieldName,BillPrice,HighwPrice,HardwPrice,IndsWasteTax,Note");
+                strcmd.Append(" CompanyCode");
+                strcmd.Append(", TargetDate");
+                strcmd.Append(", SeqNo");
+                strcmd.Append(", LineCount");
+                strcmd.Append(", ConstructionCode");
+                strcmd.Append(", ConstructionRowCnt");
+                strcmd.Append(", ConstructionColCnt");
+                strcmd.Append(", FieldName");
+                strcmd.Append(", BillPrice");
+                strcmd.Append(", HighwPrice");
+                strcmd.Append(", HardwPrice");
+                strcmd.Append(", IndsWasteTax");
+                strcmd.Append(", Note");
+
                 strcmd.Append(" ,DATE_FORMAT(EntryDate, '%Y/%m/%d %H:%i:%s')");
                 strcmd.Append(" ,DATE_FORMAT(UpdateDate, '%Y/%m/%d %H:%i:%s')");
                 strcmd.Append(" FROM BillingDataDetail");
@@ -105,7 +120,9 @@
             }
 
         }
+        #endregion
 
+        #region æ–°è¦�ç™»éŒ²
         /// <summary>
         /// æ–°è¦�ç™»éŒ²
         /// </summary>
@@ -122,7 +139,15 @@
                 {
                     strcmd.Append("INSERT INTO BillingDataDetail");
 
-                    strcmd.Append(" VALUES (");
+                    strcmd.Append("(");
+                    bool bFirst = true;
+                    foreach (var gender in Enum.GetValues(typeof(NameColumn)))
+                    {
+                        if (!bFirst) strcmd.Append(" ,");
+                        strcmd.Append(gender.ToString());
+                        bFirst = false;
+                    }
+                    strcmd.Append(") VALUES (");
 
                     strcmd.AppendFormat("  {0}", work.CompanyCode.ToString());
                     strcmd.AppendFormat(", {0}", work.TargetDate.ToString());
@@ -129,6 +154,8 @@
                     strcmd.AppendFormat(", {0}", work.SeqNo.ToString());
                     strcmd.AppendFormat(", {0}", work.LineCount.ToString());
                     strcmd.AppendFormat(", {0}", work.ConstructionCode.ToString());
+                    strcmd.AppendFormat(", {0}", work.ConstructionRowCnt.ToString());
+                    strcmd.AppendFormat(", {0}", work.ConstructionColCnt.ToString());
                     strcmd.AppendFormat(", '{0}'", work.FieldName.ToString());
                     strcmd.AppendFormat(", {0}", work.BillPrice.ToString());
                     strcmd.AppendFormat(", {0}", work.HighwPrice.ToString());
@@ -150,7 +177,9 @@
                 return false;
             }
         }
+        #endregion
 
+        #region æ›´æ–°ç™»éŒ²
         /// <summary>
         /// æ›´æ–°ç™»éŒ²
         /// </summary>
@@ -168,13 +197,15 @@
 
                 strcmd.Append(" SET");
 
-                strcmd.AppendFormat(" ConstructionCode = {0}", data.ConstructionCode.ToString());
-                strcmd.AppendFormat(",FieldName = '{0}'", data.FieldName);
-                strcmd.AppendFormat(",BillPrice = {0}", data.BillPrice.ToString());
-                strcmd.AppendFormat(",HighwPrice = {0}", data.HighwPrice.ToString());
-                strcmd.AppendFormat(",HardwPrice = {0}", data.HardwPrice.ToString());
-                strcmd.AppendFormat(",IndsWasteTax = {0}", data.IndsWasteTax.ToString());
-                strcmd.AppendFormat(",Note = '{0}'", data.Note);
+                strcmd.AppendFormat("  ConstructionCode = {0}", data.ConstructionCode.ToString());
+                strcmd.AppendFormat(", ConstructionRowCnt = {0}", data.ConstructionRowCnt.ToString());
+                strcmd.AppendFormat(", ConstructionColCnt = {0}", data.ConstructionColCnt.ToString());
+                strcmd.AppendFormat(", FieldName = '{0}'", data.FieldName);
+                strcmd.AppendFormat(", BillPrice = {0}", data.BillPrice.ToString());
+                strcmd.AppendFormat(", HighwPrice = {0}", data.HighwPrice.ToString());
+                strcmd.AppendFormat(", HardwPrice = {0}", data.HardwPrice.ToString());
+                strcmd.AppendFormat(", IndsWasteTax = {0}", data.IndsWasteTax.ToString());
+                strcmd.AppendFormat(", Note = '{0}'", data.Note);
 
                 strcmd.Append(", UpdateDate = NOW()");
                 strcmd.Append(AddSQLString);
@@ -189,7 +220,9 @@
                 return false;
             }
         }
+        #endregion
 
+        #region å‰Šé™¤
         /// <summary>
         /// å‰Šé™¤
         /// </summary>
@@ -214,7 +247,9 @@
                 return false;
             }
         }
+        #endregion
 
+        #region æ§‹é€ ä½“è¨­å®š
         /// <summary>
         /// æ§‹é€ ä½“è¨­å®š
         /// </summary>
@@ -230,6 +265,8 @@
                 wrk.SeqNo = int.Parse(objwrk[(int)NameColumn.SeqNo].ToString());
                 wrk.LineCount= int.Parse(objwrk[(int)NameColumn.LineCount].ToString());
                 wrk.ConstructionCode = long.Parse(objwrk[(int)NameColumn.ConstructionCode].ToString());
+                wrk.ConstructionRowCnt = int.Parse(objwrk[(int)NameColumn.ConstructionRowCnt].ToString());
+                wrk.ConstructionColCnt = int.Parse(objwrk[(int)NameColumn.ConstructionColCnt].ToString());
                 wrk.FieldName = objwrk[(int)NameColumn.FieldName].ToString();
                 wrk.BillPrice=long.Parse(objwrk[(int)NameColumn.BillPrice].ToString());
                 wrk.HighwPrice=long.Parse(objwrk[(int)NameColumn.HighwPrice].ToString());
@@ -249,18 +286,26 @@
                 logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼šï¼š{0}ï¼š{1}ï¼š{2}", CommonMotions.GetMethodName(), ex.Message);
             }
         }
-
-
         #endregion
 
-        #region ãƒ‘ãƒ–ãƒªãƒƒã‚¯ãƒ¡ã‚½ãƒƒãƒ‰ï¼ˆç‰¹æ®Šå‡¦ç�†ï¼‰
-
+        #region ãƒ—ãƒ©ã‚¤ãƒžãƒªã‚­ãƒ¼æ–‡å­—åˆ—ä½œæˆ�
+        /// <summary>
+        /// ãƒ—ãƒ©ã‚¤ãƒžãƒªã‚­ãƒ¼æ–‡å­—åˆ—ä½œæˆ�
+        /// </summary>
+        /// <param name="CompanyCode"></param>
+        /// <param name="TargetDate"></param>
+        /// <param name="SeqNo"></param>
+        /// <param name="LineCount"></param>
+        /// <returns></returns>
         public string CreatePrimarykeyString(int CompanyCode, int TargetDate,int SeqNo, int LineCount)
         {
             StringBuilder strWork = new StringBuilder();
             try
             {
-                strWork.AppendFormat(" Where CompanyCode = {0} and TargetDate = {1} and SeqNo = {2} and LineCount = {3}", CompanyCode, TargetDate, SeqNo, LineCount);
+                strWork.AppendFormat(" Where CompanyCode = {0}", CompanyCode);
+                strWork.AppendFormat(" And TargetDate = {0}", TargetDate);
+                strWork.AppendFormat(" And SeqNo = {0}", SeqNo);
+                strWork.AppendFormat(" And LineCount = {0}", LineCount);
 
             }
             catch (Exception ex)
@@ -270,8 +315,9 @@
 
             return strWork.ToString();
         }
+        #endregion
 
-
+        #region è¡Œãƒ­ãƒƒã‚¯
         /// <summary>
         /// è¡Œãƒ­ãƒƒã‚¯
         /// </summary>
@@ -287,8 +333,12 @@
 
             try
             {
-                strcmd.AppendFormat("select * from BillingDataDetail where CompanyCode = {0} and TargetDate = {1} and SeqNo = {2} and LineCount = {3} for update;",
-                                        CompanyCode, TargetDate, SeqNo, LineCount);
+                strcmd.Append("Select * From BillingDataDetail");
+                strcmd.AppendFormat(" Where CompanyCode = {0}", CompanyCode);
+                strcmd.AppendFormat(" And TargetDate = {0}", TargetDate);
+                strcmd.AppendFormat(" And SeqNo = {0}", SeqNo);
+                strcmd.AppendFormat(" And LineCount = {0}", LineCount);
+                strcmd.Append(" For update;");
 
                 // SQLå®Ÿè¡Œ
                 if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
@@ -303,7 +353,6 @@
 
 
         }
-
         #endregion
 
     }
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfo.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBaseInfo.cs	(revision 270)
@@ -899,12 +899,17 @@
                 // SQLå®Ÿè¡Œ
                 if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
 
-                //strcmd.Append("UPDATE ConstructionBaseInfo SET EntryDate = TO_DATE(TO_CHAR(sysdate,'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')");
-                //strcmd.Append(", UpdateDate = TO_DATE(TO_CHAR(sysdate,'%Y/%m/%d %H:%i:%s'),'%Y/%m/%d %H:%i:%s')");
-                //strcmd.Append( CreatePrimarykeyString(FromCode);
+                strcmd.Clear();
+                strcmd.Append("UPDATE ConstructionBaseInfo");
+                strcmd.Append(" SET");
+                strcmd.AppendFormat(" TyingFlg = {0}", (int)ConstructionBaseInfo.TyingFlgDef.Standard);
+                strcmd.AppendFormat(", JoinFlg = {0}", (int)ConstructionBaseInfo.JoinFlgDef.Standard);
+                strcmd.AppendFormat(", ConstructionPeriodStart2 = STR_TO_DATE('{0}', '%Y/%m/%d %H:%i:%s')", DateTime.MinValue.ToString());
+                strcmd.AppendFormat(", ConstructionPeriodEnd2 = STR_TO_DATE('{0}', '%Y/%m/%d %H:%i:%s')", DateTime.MinValue.ToString());
+                strcmd.Append(CreatePrimarykeyString(ToCode));
 
-                //// SQLå®Ÿè¡Œ
-                //if (!ExecuteNonQuery(strcmd, bConnect)) return false;
+                // SQLå®Ÿè¡Œ
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
 
                 return true;
             }
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudget.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudget.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOConstructionBudget.cs	(revision 270)
@@ -61,6 +61,7 @@
             I_SalaryFlg,                // æŒ‡å°Žå“¡çµ¦ä¸ŽæŒ¯åˆ†åŒºåˆ†
             I_SalaryDays,               // æŒ‡å°Žå“¡æŒ¯åˆ†æ—¥æ•°
 
+            OrdersDecisionPrice,        // ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
             EntryDate,
             UpdateDate,
         }
@@ -112,6 +113,7 @@
             strcmd.Append(" ,A_SalaryDays");                                // å‰¯æ‹…å½“è€…æŒ¯åˆ†æ—¥æ•°
             strcmd.Append(" ,I_SalaryFlg");                                 // æŒ‡å°Žå“¡çµ¦ä¸ŽæŒ¯åˆ†åŒºåˆ†
             strcmd.Append(" ,I_SalaryDays");                                // æŒ‡å°Žå“¡æŒ¯åˆ†æ—¥æ•°
+            strcmd.Append(" ,OrdersDecisionPrice");                         // ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
 
             strcmd.Append(", DATE_FORMAT(EntryDate, '%Y/%m/%d %H:%i:%s')");
             strcmd.Append(", DATE_FORMAT(UpdateDate, '%Y/%m/%d %H:%i:%s')");
@@ -241,7 +243,7 @@
                 strcmd.AppendFormat(", {0}", work.InstructorCosts);                 // å·¥äº‹æŒ‡å°Žå“¡çµ¦ä¸Ž
                 
                 strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d')",
-                                        work.CreateDate.ToShortDateString());           // ä½œæˆ�æ—¥
+                                        work.CreateDate.ToShortDateString());       // ä½œæˆ�æ—¥
                 strcmd.AppendFormat(", {0}", work.ConstructionTimes);               // å·¥æœŸï¼ˆå�˜ä½�ãƒ»æœˆï¼‰
                 strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d')",
                                         work.ConstructionStart.ToShortDateString());    // å¥‘ç´„å·¥æœŸé–‹å§‹
@@ -255,6 +257,7 @@
                 strcmd.AppendFormat(", {0}", work.A_SalaryDays);                    // å‰¯æ‹…å½“è€…æŒ¯åˆ†æ—¥æ•°
                 strcmd.AppendFormat(", {0}", work.I_SalaryFlg);                     // æŒ‡å°Žå“¡çµ¦ä¸ŽæŒ¯åˆ†åŒºåˆ†
                 strcmd.AppendFormat(", {0}", work.I_SalaryDays);                    // æŒ‡å°Žå“¡æŒ¯åˆ†æ—¥æ•°
+                strcmd.AppendFormat(", {0}", work.OrdersDecisionPrice);             // ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
 
                 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);
@@ -329,6 +332,7 @@
                     strcmd.AppendFormat(", {0}", work.A_SalaryDays);                    // å‰¯æ‹…å½“è€…æŒ¯åˆ†æ—¥æ•°
                     strcmd.AppendFormat(", {0}", work.I_SalaryFlg);                     // æŒ‡å°Žå“¡çµ¦ä¸ŽæŒ¯åˆ†åŒºåˆ†
                     strcmd.AppendFormat(", {0}", work.I_SalaryDays);                    // æŒ‡å°Žå“¡æŒ¯åˆ†æ—¥æ•°
+                    strcmd.AppendFormat(", {0}", work.OrdersDecisionPrice);             // ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
 
                     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);
@@ -380,7 +384,7 @@
                 strcmd.AppendFormat(", InstructorName = '{0}'", data.InstructorName);               // å·¥äº‹æŒ‡å°Žå“¡å��
                 strcmd.AppendFormat(", InstructorCosts = {0}", data.InstructorCosts);               // å·¥äº‹æŒ‡å°Žå“¡çµ¦ä¸Ž
                 strcmd.AppendFormat(", CreateDate = STR_TO_DATE('{0}','%Y/%m/%d')",
-                                                        data.CreateDate.ToShortDateString());           // ä½œæˆ�æ—¥
+                                                        data.CreateDate.ToShortDateString());       // ä½œæˆ�æ—¥
                 strcmd.AppendFormat(", ConstructionTimes = {0}", data.ConstructionTimes);           // å·¥æœŸï¼ˆå�˜ä½�ãƒ»æœˆï¼‰
                 strcmd.AppendFormat(", ConstructionStart = STR_TO_DATE('{0}','%Y/%m/%d')",
                                                         data.ConstructionStart.ToShortDateString());    // å¥‘ç´„å·¥æœŸé–‹å§‹
@@ -395,6 +399,7 @@
                 strcmd.AppendFormat(", A_SalaryDays = {0}", data.A_SalaryDays);                     // å‰¯æ‹…å½“è€…æŒ¯åˆ†æ—¥æ•°
                 strcmd.AppendFormat(", I_SalaryFlg = {0}", data.I_SalaryFlg);                       // æŒ‡å°Žå“¡çµ¦ä¸ŽæŒ¯åˆ†åŒºåˆ†
                 strcmd.AppendFormat(", I_SalaryDays = {0}", data.I_SalaryDays);                     // æŒ‡å°Žå“¡æŒ¯åˆ†æ—¥æ•°
+                strcmd.AppendFormat(", OrdersDecisionPrice = {0}", data.OrdersDecisionPrice);       // ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
 
                 strcmd.Append(", UpdateDate = NOW()");
                 strcmd.Append(AddSQLString);
@@ -516,6 +521,10 @@
                     case (int)TableColumn.I_SalaryDays:         // æŒ‡å°Žå“¡æŒ¯åˆ†æ—¥æ•°
                         strcmd.AppendFormat(" I_SalaryDays = {0}", ((int)value).ToString());
                         break;
+                    case (int)TableColumn.OrdersDecisionPrice:  // ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
+                        strcmd.AppendFormat(", OrdersDecisionPrice = {0}", ((double)value).ToString());
+                        break;
+
                 }
 
                 strcmd.Append(", UpdateDate = NOW()");
@@ -570,6 +579,8 @@
                 wrk.I_SalaryFlg = int.Parse(objwrk[(int)TableColumn.I_SalaryFlg].ToString());                  // æŒ‡å°Žå“¡çµ¦ä¸ŽæŒ¯åˆ†åŒºåˆ†
                 wrk.I_SalaryDays = int.Parse(objwrk[(int)TableColumn.I_SalaryDays].ToString());                // æŒ‡å°Žå“¡æŒ¯åˆ†æ—¥æ•°
 
+                wrk.OrdersDecisionPrice = double.Parse(objwrk[(int)TableColumn.OrdersDecisionPrice].ToString());    // ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
+
                 wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.EntryDate].ToString());
                 wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UpdateDate].ToString());
             }
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPaymentDataDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPaymentDataDetail.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPaymentDataDetail.cs	(revision 270)
@@ -160,14 +160,7 @@
                     strcmd.AppendFormat(", {0}", work.HardwPrice.ToString());
                     strcmd.AppendFormat(", {0}", work.IndsWasteTax.ToString());
                     strcmd.AppendFormat(", {0}", work.CnstrPrice.ToString());
-                    if ((work.CnstrPriceExist == -1) || (work.ApprovalPersonCode == 0))
-                    {
-                        strcmd.Append(", null");
-                    }
-                    else
-                    {
-                        strcmd.AppendFormat(", {0}", work.CnstrPriceExist.ToString());
-                    }
+                    strcmd.AppendFormat(", {0}", work.CnstrPriceExist.ToString());
                     strcmd.AppendFormat(", {0}", work.ApprovalPersonCode.ToString());
                     strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d')", work.ApprovalDate.ToShortDateString());
                     strcmd.AppendFormat(", {0}", work.ApprovalEndFlg.ToString());
@@ -214,14 +207,7 @@
                 strcmd.AppendFormat(",HardwPrice = {0}", data.HardwPrice.ToString());
                 strcmd.AppendFormat(",IndsWasteTax = {0}", data.IndsWasteTax.ToString());
                 strcmd.AppendFormat(",CnstrPrice = {0}", data.CnstrPrice.ToString());
-                if ((data.CnstrPriceExist == -1) || (data.ApprovalPersonCode == 0))
-                {
-                    strcmd.Append(",CnstrPriceExist = null");
-                }
-                else
-                {
-                    strcmd.AppendFormat(",CnstrPriceExist = {0}", data.CnstrPriceExist.ToString());
-                }
+                strcmd.AppendFormat(",CnstrPriceExist = {0}", data.CnstrPriceExist.ToString());
                 strcmd.AppendFormat(",ApprovalPersonCode = {0}", data.ApprovalPersonCode.ToString());
                 strcmd.AppendFormat(",ApprovalDate = STR_TO_DATE('{0}','%Y/%m/%d')", data.ApprovalDate.ToShortDateString());
                 strcmd.AppendFormat(",ApprovalEndFlg = {0}", data.ApprovalEndFlg.ToString());
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/AttendanceDailyData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/AttendanceDailyData.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/AttendanceDailyData.cs	(revision 270)
@@ -28,14 +28,26 @@
         /// </summary>
         private string      m_ActionResult = string.Empty;
         /// <summary>
-        /// æ®‹æ¥­æ™‚é–“
+        /// é–‹å§‹æ™‚é–“
         /// </summary>
-        private double      m_OvertimeHours = 0;
+        private DateTime    m_StartTime = DateTime.Now;
         /// <summary>
+        /// çµ‚äº†æ™‚é–“
+        /// </summary>
+        private DateTime    m_CompTime = DateTime.Now;
+        /// <summary>
+        /// æ—¥ç¨¼åƒ�å�ˆè¨ˆæ™‚é–“
+        /// </summary>
+        private double      m_DayTimes = 0;
+        /// <summary>
         /// ã‚³ãƒ¡ãƒ³ãƒˆ
         /// </summary>
         private string      m_WorkingComment = string.Empty;
         /// <summary>
+        /// å¤œé–“ä½œæ¥­ãƒ•ãƒ©ã‚°
+        /// </summary>
+        private int         m_NightFlg = 0;
+        /// <summary>
         /// ç™»éŒ²å¹´æœˆæ—¥
         /// </summary>
         private DateTime    m_EntryDate = DateTime.Now;
@@ -79,14 +91,30 @@
             set { m_ActionResult = value; }
         }
         /// <summary>
-        /// æ®‹æ¥­æ™‚é–“
+        /// é–‹å§‹æ™‚é–“
         /// </summary>
-        public double OvertimeHours
+        public DateTime StartTime
         {
-            get { return m_OvertimeHours; }
-            set { m_OvertimeHours = value; }
+            get { return m_StartTime; }
+            set { m_StartTime = value; }
         }
         /// <summary>
+        /// çµ‚äº†æ™‚é–“
+        /// </summary>
+        public DateTime CompTime
+        {
+            get { return m_CompTime; }
+            set { m_CompTime = value; }
+        }
+        /// <summary>
+        /// æ—¥ç¨¼åƒ�å�ˆè¨ˆæ™‚é–“
+        /// </summary>
+        public double DayTimes
+        {
+            get { return m_DayTimes; }
+            set { m_DayTimes = value; }
+        }
+        /// <summary>
         /// ä½œæ¥­ã‚³ãƒ¡ãƒ³ãƒˆ
         /// </summary>
         public string WorkingComment
@@ -95,6 +123,14 @@
             set { m_WorkingComment = value; }
         }
         /// <summary>
+        /// å¤œé–“ä½œæ¥­ãƒ•ãƒ©ã‚°
+        /// </summary>
+        public int NightFlg
+        {
+            get { return m_NightFlg; }
+            set { m_NightFlg = value; }
+        }
+        /// <summary>
         /// ç™»éŒ²å¹´æœˆæ—¥
         /// </summary>
         public DateTime EntryDate
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/BillingDataDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/BillingDataDetail.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/BillingDataDetail.cs	(revision 270)
@@ -9,19 +9,66 @@
     public class BillingDataDetail
     {
         #region ãƒ¡ãƒ³ãƒ�å¤‰æ•°
-        private int m_CompanyCode = 0;                 // å�”åŠ›ä¼šç¤¾ã‚³ãƒ¼ãƒ‰
-        private int m_TargetDate = 0;                   // å¯¾è±¡å¹´æœˆ
-        private int m_SeqNo = 0;                        // é€£ç•ª
-        private int m_LineCount = 0;          // è¡Œç•ªå�·    
-        private long m_ConstructionCode = 0;   // å·¥äº‹ç•ªå�·
-        private string m_FieldName = "";          // ç�¾å ´å��
-        private long m_BillPrice = 0;                  // è«‹æ±‚é‡‘é¡�
-        private long m_HighwPrice = 0;         // é«˜é€Ÿä»£     
-        private long m_HardwPrice = 0;         // é‡‘ç‰©ä»£     
-        private long m_IndsWasteTax = 0;       // ç”£å»ƒç¨Ž       
-        private string m_Note = "";             // å‚™è€ƒ
-        private DateTime m_EntryDate = DateTime.Now;    // ç™»éŒ²æ—¥ä»˜
-        private DateTime m_UpdateDate = DateTime.Now;   // æ›´æ–°æ—¥ä»˜
+        /// <summary>
+        /// å�”åŠ›ä¼šç¤¾ã‚³ãƒ¼ãƒ‰
+        /// </summary>
+        private int m_CompanyCode = 0;
+        /// <summary>
+        /// å¯¾è±¡å¹´æœˆ
+        /// </summary>
+        private int m_TargetDate = 0;
+        /// <summary>
+        /// é€£ç•ª
+        /// </summary>
+        private int m_SeqNo = 0;
+        /// <summary>
+        /// è¡Œç•ªå�·
+        /// </summary>
+        private int m_LineCount = 0;
+        /// <summary>
+        /// å·¥äº‹ç•ªå�·
+        /// </summary>
+        private long m_ConstructionCode = 0;
+        /// <summary>
+        /// è¡Œç•ªå�·
+        /// </summary>
+        private int m_ConstructionRowCnt = 0;
+        /// <summary>
+        /// åˆ—ç•ªå�·
+        /// </summary>
+        private int m_ConstructionColCnt = 0;
+        /// <summary>
+        /// ç�¾å ´å��
+        /// </summary>
+        private string m_FieldName = "";
+        /// <summary>
+        /// è«‹æ±‚é‡‘é¡�
+        /// </summary>
+        private long m_BillPrice = 0;
+        /// <summary>
+        // é«˜é€Ÿä»£
+        /// </summary>
+        private long m_HighwPrice = 0;
+        /// <summary>
+        /// é‡‘ç‰©ä»£
+        /// </summary>
+        private long m_HardwPrice = 0;
+        /// <summary>
+        /// ç”£å»ƒç¨Ž
+        /// </summary>
+        private long m_IndsWasteTax = 0;
+        /// <summary>
+        /// å‚™è€ƒ
+        /// </summary>
+        private string m_Note = "";
+        /// <summary>
+        /// ç™»éŒ²æ—¥ä»˜
+        /// </summary>
+        private DateTime m_EntryDate = DateTime.Now;
+        /// <summary>
+        /// æ›´æ–°æ—¥ä»˜
+        /// </summary>
+        private DateTime m_UpdateDate = DateTime.Now;
         #endregion
 
         #region ã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿
@@ -72,6 +119,22 @@
             set { m_ConstructionCode = value; }
         }
         /// <summary>
+        /// è¡Œç•ªå�·
+        /// </summary>
+        public int ConstructionRowCnt
+        {
+            get { return m_ConstructionRowCnt; }
+            set { m_ConstructionRowCnt = value; }
+        }
+        /// <summary>
+        /// åˆ—ç•ªå�·
+        /// </summary>
+        public int ConstructionColCnt
+        {
+            get { return m_ConstructionColCnt; }
+            set { m_ConstructionColCnt = value; }
+        }
+        /// <summary>
         /// ç�¾å ´å��
         /// </summary>
         public string FieldName
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBudget.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBudget.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/ConstructionBudget.cs	(revision 270)
@@ -10,6 +10,7 @@
     /// </summary>
     public class ConstructionBudget
     {
+
         #region ãƒ¡ãƒ³ãƒ�å¤‰æ•°
 
         private int         m_ConstructionCode = 0;	                    // å·¥äº‹ã‚³ãƒ¼ãƒ‰
@@ -41,6 +42,8 @@
         private int         m_I_SalaryFlg = 0;                          // æŒ‡å°Žå“¡çµ¦ä¸ŽæŒ¯åˆ†åŒºåˆ†
         private int         m_I_SalaryDays = 0;                         // æŒ‡å°Žå“¡æŒ¯åˆ†æ—¥æ•°
 
+        private double      m_OrdersDecisionPrice = 0;	                // ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
+
         private DateTime    m_EntryDate = DateTime.Now;                 // ç™»éŒ²æ—¥ä»˜
         private DateTime    m_UpdateDate = DateTime.Now;                // æ›´æ–°æ—¥ä»˜
         #endregion
@@ -220,8 +223,15 @@
             get { return m_I_SalaryDays; }
             set { m_I_SalaryDays = value; }
         }
-
         /// <summary>
+        /// ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
+        /// </summary>
+        public double OrdersDecisionPrice
+        {
+            get { return m_OrdersDecisionPrice; }
+            set { m_OrdersDecisionPrice = value; }
+        }
+        /// <summary>
         /// ç™»éŒ²æ—¥ä»˜
         /// </summary>
         public DateTime EntryDate
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/PaymentDataDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/PaymentDataDetail.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/PaymentDataDetail.cs	(revision 270)
@@ -21,7 +21,7 @@
         private long        m_HardwPrice = 0;               // é‡‘ç‰©ä»£     
         private long        m_IndsWasteTax = 0;             // ç”£å»ƒç¨Ž       
         private long        m_CnstrPrice = 0;               // å�”åŠ›é‡‘
-        private int         m_CnstrPriceExist =0;           // å�”åŠ›é‡‘æœ‰ç„¡
+        private int         m_CnstrPriceExist = -1;         // å�”åŠ›é‡‘æœ‰ç„¡
         private int         m_ApprovalPersonCode = 0;       // æ‰¿èª�æ‹…å½“è€…ã‚³ãƒ¼ãƒ‰
         private DateTime    m_ApprovalDate = DateTime.Now;  // æ‹…å½“è€…æ‰¿èª�æ—¥ä»˜
         private int         m_ApprovalEndFlg = 0;           // æ‰¿èª�å®Œäº†ãƒ•ãƒ©ã‚°
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/SecurityMaster.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/SecurityMaster.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/SecurityMaster.cs	(revision 270)
@@ -20,11 +20,11 @@
         public enum GeneAffDef
         {
             /// <summary>
-            /// ç·�å‹™ä»¥å¤–
+            /// ç·�å‹™ä»¥å¤–:0
             /// </summary>
             OtherDep = 0,
             /// <summary>
-            /// ç·�å‹™æ¥­å‹™å¯¾è±¡
+            /// ç·�å‹™æ¥­å‹™å¯¾è±¡:1
             /// </summary>
             GeneralDep,
         }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs	(revision 270)
@@ -935,6 +935,11 @@
                     }
                     else
                     {
+                        if (PaIWork.CompanyCode == 0
+                            || PaIWork.TargetDate == 0
+                            || PaIWork.SeqNo == 0
+                            || PaIWork.LineCount == 0) continue;
+
                         // æ¥­è€…è«‹æ±‚æ˜Žç´°ãƒ‡ãƒ¼ã‚¿æ›´æ–°
                         if (!PaymentDataDetailUpdate(PayDetailDB, PaIWork))
                         {
@@ -947,13 +952,6 @@
                         nBSeqNo = PaIWork.SeqNo;
                         nBLineCount = PaIWork.LineCount;
                     }
-
-                    // æ”¯æ‰•æ‰¿èª�æƒ…å ±ãƒ‡ãƒ¼ã‚¿ä½œæˆ�
-                    if (!PaymentApprovalInfoCreate(PayAppDB, PaIWork))
-                    {
-                        bSuccess = false;
-                        break;
-                    }
                 }
                 if (!bSuccess)
                 {
@@ -1007,30 +1005,6 @@
         }
         #endregion
 
-        #region ç”³è«‹æ™‚ï¼šæ”¯æ‰•æ‰¿èª�æƒ…å ±ãƒ‡ãƒ¼ã‚¿ä½œæˆ�
-        /// <summary>
-        /// ç”³è«‹æ™‚ï¼šæ”¯æ‰•æ‰¿èª�æƒ…å ±ãƒ‡ãƒ¼ã‚¿ä½œæˆ�
-        /// </summary>
-        /// <returns></returns>
-        private bool PaymentApprovalInfoCreate(IOPaymentApprovalInfo PayAppDB,
-                                                PaymentApprovalInfo PaIWork)
-        {
-            try
-            {
-                // æ—¥ä»˜ã‚’åˆ�æœŸå€¤ã�«ã�™ã‚‹
-                PaIWork.ApprovalDate = new DateTime(2001, 1, 1);
-                if (!PayAppDB.InsertAction(PaIWork, false)) return false;
-
-                return true;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-        #endregion
-
         #region æ”¯æ‰•æ‰¿èª�æƒ…å ±ãƒ‡ãƒ¼ã‚¿æ›´æ–°å‡¦ç�†
         /// <summary>
         /// æ”¯æ‰•æ‰¿èª�æƒ…å ±ãƒ‡ãƒ¼ã‚¿æ›´æ–°å‡¦ç�†
@@ -1151,16 +1125,17 @@
             {
                 StringBuilder strSQL = new StringBuilder();
                 strSQL.Append("Select");
-                strSQL.Append(" B.COMPANYCODE");
-                strSQL.Append(", B.TARGETDATE");
-                strSQL.Append(", B.SEQNO");
-                strSQL.Append(", B.LINECOUNT");
-                strSQL.Append(", B.APPROVALNO");
-                strSQL.Append(", B.APPROVALPERSON");
-                strSQL.Append(", B.APPROVALPERSONNAME");
-                strSQL.Append(", B.APPROVALAUTHORITY");
-                strSQL.Append(", DATE_FORMAT(B.APPROVALDATE, '%Y/%m/%d')");
+                strSQL.Append(" A.COMPANYCODE");
+                strSQL.Append(", A.TARGETDATE");
+                strSQL.Append(", A.SEQNO");
+                strSQL.Append(", A.LINECOUNT");
+                strSQL.Append(", D.DisplayOrder");
+                strSQL.Append(", D.ApprovalPerson");
+                strSQL.Append(", E.PersonName");
+                strSQL.Append(", ifnull(B.ApprovalAuthority, D.ApprovalAuthority)");
+                strSQL.Append(", ifnull(DATE_FORMAT(B.APPROVALDATE, '%Y/%m/%d'), DATE(NOW()))");
                 strSQL.Append(" From personapproval As C");
+                strSQL.Append(" LEFT JOIN personinchargemaster As F ON F.PersonCode = C.PersonCode");
                 strSQL.Append(", paymentdatadetail As A");
                 strSQL.Append(" LEFT JOIN paymentapprovalinfo As B");
                 strSQL.Append(" ON B.COMPANYCODE = A.COMPANYCODE");
@@ -1168,6 +1143,9 @@
                 strSQL.Append(" And B.SEQNO = A.SEQNO");
                 strSQL.Append(" And B.LINECOUNT = A.LINECOUNT");
                 strSQL.AppendFormat(" And B.APPROVALPERSON = {0}", CommonMotions.LoginUserData.PersonCode);
+                strSQL.Append(", approvalmaster As D");
+                strSQL.Append(" LEFT JOIN personinchargemaster As E ON E.PersonCode = D.ApprovalPerson");
+
                 strSQL.Append(" Where");
                 strSQL.AppendFormat(" C.PersonCode = {0}", m_PersonCode);
                 strSQL.AppendFormat(" And C.ApprovalCode = {0}", m_ApprovalCode);
@@ -1177,6 +1155,10 @@
                 strSQL.Append(" And A.APPROVALPERSONCODE = C.PersonCode");
                 strSQL.Append(" And DATE(A.APPROVALDATE) = DATE(C.EntryDate)");
                 strSQL.Append(" And A.APPROVALENDFLG = 1");
+                strSQL.AppendFormat(" And D.ApprovalCode = {0}", m_ApprovalCode);
+                strSQL.Append(" And D.DepartmentCode = F.DepartmentCode");
+                strSQL.AppendFormat(" And D.ApprovalPerson = {0}", CommonMotions.LoginUserData.PersonCode);
+
                 ArrayList DataList = new ArrayList();
                 if (!InfoDB.ExecuteReader(strSQL.ToString(), ref DataList)) return;
                 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 270)
@@ -842,47 +842,51 @@
         /// </summary>
         /// <param name="AllCount"></param>
         /// <param name="PrintCount"></param>
-        private void GetPrintCount(IOPurchaseOrder OrderDB, int ParentCode, int SourceCode, ref int AllCount, ref int PrintCount)
+        private bool GetPrintCount(IOPurchaseOrder OrderDB, int ParentCode, int SourceCode)
         {
             try
             {
-                PrintCount = 0;
                 StringBuilder strSQL = new StringBuilder();
-                strSQL.Append("SELECT * FROM");
-                strSQL.Append(" (SELECT COUNT(*) FROM");
-                strSQL.Append(" (SELECT * FROM CONSTRUCTIONLEDGERDETAIL A2");
-                strSQL.AppendFormat(" WHERE A2.CONSTRUCTIONCODE = {0}) A1", ParentCode);
-                strSQL.AppendFormat(" WHERE A1.SOURCECODE = {0}", SourceCode);
+                
+                strSQL.Append("SELECT");
+                strSQL.Append(" A1.PURCHASEORDERFLG,");
+                strSQL.Append(" A1.CONSTRUCTIONCODE,");
+                strSQL.Append(" A1.SOURCECODE,");
+                strSQL.Append(" A1.GROUPCOUNT,");
+                strSQL.Append(" A1.COMPANYCODE,");
+                strSQL.Append(" A1.EXECUTIONAMOUNT");
+
+                strSQL.Append(" FROM");
+                strSQL.Append(" CONSTRUCTIONLEDGERDETAIL AS A1");
+                strSQL.Append(" WHERE");
+                strSQL.AppendFormat(" A1.CONSTRUCTIONCODE = {0}", ParentCode);
+                strSQL.AppendFormat(" And A1.SOURCECODE = {0}", SourceCode);
                 strSQL.AppendFormat(" AND A1.GROUPCOUNT = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
-                strSQL.AppendFormat(" AND A1.PURCHASEORDERFLG <> {0} AND A1.COMPANYCODE > 0", (int)ConstructionLedgerDetail.PurOrderFlgDef.NotMakingData);
-
+                strSQL.Append(" AND A1.COMPANYCODE > 0");
                 strSQL.Append(" GROUP BY A1.COMPANYCODE");
-                strSQL.AppendFormat(" HAVING SUM(A1.EXECUTIONAMOUNT) >= {0}) A,", CommonDefine.s_PrintOutPrice);
+                strSQL.AppendFormat(" HAVING SUM(A1.EXECUTIONAMOUNT) >= {0}", CommonDefine.s_PrintOutPrice);
 
-                strSQL.Append(" (SELECT COUNT(*) FROM PURCHASEORDER B1");
-                if (ParentCode == SourceCode)
+                ArrayList arList = new ArrayList();
+                if (!OrderDB.ExecuteReader(strSQL.ToString(), ref arList)) return false;
+                if (arList.Count == 0) return false;
+
+                bool bRet = true;
+                foreach (object[] objRec in arList)
                 {
-                    strSQL.AppendFormat(" WHERE B1.CONSTRUCTIONCODE = {0}", ParentCode);
+                    // –¢�ì�¬‚ª‚ ‚ê‚Î�I—¹
+                    if (CommonMotions.cnvInt(objRec[0])
+                        == (int)ConstructionLedgerDetail.PurOrderFlgDef.NoCreate)
+                    {
+                        bRet = false;
+                        break;
+                    }
                 }
-                else
-                {
-                    strSQL.AppendFormat(" WHERE B1.CONSTRUCTIONCODE = {0}", SourceCode);
-                }
-                strSQL.AppendFormat(" AND DATE(B1.PRINTOUTDATE) != STR_TO_DATE('{0}', '%Y/%m/%d')) B", DateTime.MinValue.ToShortDateString());
-
-                ArrayList arList = new ArrayList();
-                if (!OrderDB.ExecuteReader(strSQL.ToString(), ref arList)) return;
-                if (arList.Count == 0) return;
-
-                //if (SourceCode == 2016027801) Debug.WriteLine("");
-
-                object[] objRec = (object[])arList[0];
-                AllCount = arList.Count;
-                PrintCount = CommonMotions.cnvInt(objRec[1]);
+                return bRet;
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
             }
         }
         #endregion
@@ -927,10 +931,7 @@
                         case (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint:
                             // ’�•¶�‘“ü—Í�E’�•¶�‘ˆó�ü‚Íƒtƒ‰ƒO‚ðŽg‚¤
                             ParentCode = ClsProcessExist.GetParentConstrCode(ConstrCode);
-                            int AllCount = 0;
-                            int PrintCount = 0;
-                            GetPrintCount(OrderDB, ParentCode, ConstrCode, ref AllCount, ref PrintCount);
-                            if ((AllCount == 0) || (AllCount != 0 && AllCount <= PrintCount)) FlgString = "�Ï";
+                            if(GetPrintCount(OrderDB, ParentCode, ConstrCode)) FlgString = "�Ï";
 
                             if (m_ExecuteFlg == (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint)
                             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/DataChange.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/DataChange.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/DataChange.cs	(revision 270)
@@ -177,7 +177,7 @@
                 // �HŽ–�î•ñ�ì�¬
                 if (!frm.RecordCopyTypeA(m_ConstructionCode, NewCode, BaseDB, DetailDB))
                 {
-                    MessageBox.Show("�HŽ–‘�Œ¸Šî–{�ãƒf�[ƒ^‚ª�ì�¬‚Å‚«‚Ü‚¹‚ñ�B", "ƒf�[ƒ^�ì�¬ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    MessageBox.Show("�HŽ–‘�Œ¸Šî–{�î•ñƒf�[ƒ^‚ª�ì�¬‚Å‚«‚Ü‚¹‚ñ�B", "ƒf�[ƒ^�ì�¬ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
                     LinkDB.rollback();
                     BaseDB.rollback();
                     DetailDB.rollback();
@@ -382,10 +382,8 @@
                 int ConstrPeriod = CommonMotions.cnvInt(m_DspCtrl[(int)DspCnt.ConstructionPeriod].Text);
 
                 strSQL = "SELECT A.CONSTRUCTIONCODE,";
-                //strSQL += " CASE A.ConstructionPeriodStart2 WHEN TO_DATE('0001/01/01') THEN A.ConstructionPeriodStart ELSE A.ConstructionPeriodStart2 END StDate,";
-                strSQL += " CASE A.ConstructionPeriodStart2 WHEN STR_TO_DATE('0001/01/01','%Y/%m/%d') THEN A.ConstructionPeriodStart ELSE A.ConstructionPeriodStart2 END StDate,";
-                //strSQL += " CASE A.ConstructionPeriodEnd2 WHEN TO_DATE('0001/01/01') THEN A.ConstructionPeriodEnd ELSE A.ConstructionPeriodEnd2 END EdDate,";
-                strSQL += " CASE A.ConstructionPeriodEnd2 WHEN STR_TO_DATE('0001/01/01','%Y/%m/%d') THEN A.ConstructionPeriodEnd ELSE A.ConstructionPeriodEnd2 END EdDate,";
+                strSQL += " CASE DATE(A.ConstructionPeriodStart2) WHEN DATE('0001/01/01') THEN A.ConstructionPeriodStart ELSE A.ConstructionPeriodStart2 END StDate,";
+                strSQL += " CASE DATE(A.ConstructionPeriodEnd2) WHEN DATE('0001/01/01') THEN A.ConstructionPeriodEnd ELSE A.ConstructionPeriodEnd2 END EdDate,";
                 strSQL += " B.PERSONCODE B1, B.SEALPRINTNAME B2, B.MONTHLYSALARY B3,";
                 strSQL += " C.PERSONCODE C1, C.SEALPRINTNAME C2, C.MONTHLYSALARY C3,";
                 strSQL += " D.PERSONCODE D1, D.SEALPRINTNAME D2, D.MONTHLYSALARY D3,";
@@ -1186,10 +1184,15 @@
                 // ‰Ò“­“ú�”Žæ“¾
                 int workingCount = ClsCalendar.CalcPassedDaysCount(StartDate, EndDate);
                 // Žx•¥‚¢‹‹—^ŒvŽZ
-                CommonMotions.CalcPayValueData(MonthryCost, TotalOrdersPrice, workingCount, ref ExecutionAmount, ref AmountConfigRate, bSalaryCorrection);
+                CommonMotions.CalcPayValueData(MonthryCost,
+                                                TotalOrdersPrice,
+                                                workingCount,
+                                                ref ExecutionAmount,
+                                                ref AmountConfigRate,
+                                                bSalaryCorrection);
 
                 // ----- �V’S“–ŽÒ‚Ì�HŽ–—\ŽZ�‘–¾�×ƒf�[ƒ^�ì�¬
-                //ClearConstructionLedgerDetailRec(ref DetailRec);
+                ClearConstructionLedgerDetailRec(ref DetailRec);
                 DetailRec.ConstructionCode = ProcConstrCode;                                // �HŽ–”Ô�†
                 DetailRec.GroupCount = GroupCode;                                           // ƒOƒ‹�[ƒv”Ô�†
                 DetailRec.LineCount = 0;                                                    // �s”Ô�†
@@ -1200,13 +1203,17 @@
                 DetailRec.SecondString = string.Empty;                                      // �HŽ–“à—e
                 DetailRec.CompanyType = (int)CommonDefine.CodeDataType.Person;              // ‹¦—Í‰ïŽÐƒR�[ƒhƒ^ƒCƒv
                 DetailRec.CompanyCode = ConstructorCode;                                    // ‹¦—Í‰ïŽÐƒR�[ƒh
-                //DetailRec.ExecutionAmount = ExecutionAmount;                                // ŽÀ�s‹àŠz
-                //DetailRec.AmountConfigRate = AmountConfigRate;                              // ‹àŠz�\�¬—¦
+                //DetailRec.ExecutionAmount = ExecutionAmount;                              // ŽÀ�s‹àŠz
+                //DetailRec.AmountConfigRate = AmountConfigRate;                            // ‹àŠz�\�¬—¦
+                DetailRec.ExecutionAmount = 0;                                              // ŽÀ�s‹àŠz
+                DetailRec.AmountConfigRate = 0;                                             // ‹àŠz�\�¬—¦
 
                 DetailRec.SalaryFlg = (int)CommonDefine.SalaryDevision.All;                 // ‹‹—^�U•ª‹æ•ª
                 DetailRec.SalaryDays = workingCount;                                        // ‹‹—^�U•ª“ú�”
                 DetailRec.OperatingFlg = (int)ConstructionLedgerDetail.SalOpeKindDef.Oparateing;    // ’S“–’†ƒtƒ‰ƒO
 
+                DetailRec.SalaryOnRegist = MonthryCost;                                     // “o˜^ŽžŒŽŠz‹‹—^
+
                 // ƒf�[ƒ^’Ç‰Á
                 if (!LedgerDDB.InsertAction(DetailRec, false)) return false;
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs	(revision 270)
@@ -985,9 +985,9 @@
         }
         #endregion
 
-        #region ƒf�[ƒ^“o˜^ƒ{ƒ^ƒ“‰Ÿ‰º
+        #region “o˜^ƒ{ƒ^ƒ“ƒNƒŠƒbƒN
         /// <summary>
-        /// ƒf�[ƒ^“o˜^ƒ{ƒ^ƒ“‰Ÿ‰º
+        /// “o˜^ƒ{ƒ^ƒ“ƒNƒŠƒbƒN
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBudget/FrmConstructionBudgetAuxiliary.cs	(revision 270)
@@ -490,6 +490,13 @@
 
                 // å�—æ³¨é‡‘é¡�
                 int OrdersPrice = (int)m_ConstructionBaseInfo.OrdersDecisionPrice;
+                // æ‰¿èª�æ¸ˆã�¿ã�¯å·¥äº‹äºˆç®—ãƒ‡ãƒ¼ã‚¿ã�‹ã‚‰è¡¨ç¤ºã�™ã‚‹
+                if (ClsApprovalPermission.CheckProcessApproval(m_ConstructionCode,
+                                                                (int)ClsExcute.ApprovalListNo.ConstructionBudgetApproval,
+                                                                1))
+                {
+                    if (cbRec.OrdersDecisionPrice != 0) OrdersPrice = (int)cbRec.OrdersDecisionPrice;
+                }
                 m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text = @"\" + OrdersPrice.ToString("#,0");
 
                 // ----- å·¥äº‹ç¨®åˆ¥ãƒžã‚¹ã‚¿å�–å¾—
@@ -3881,6 +3888,9 @@
                     return false;
                 }
 
+                // ç¨ŽæŠœå�—æ³¨æ±ºå®šé‡‘é¡�
+                work.OrdersDecisionPrice = CommonMotions.cnvDouble(m_DspLabelCtrl[(int)DspLblCtrlName.OrdersPrice].Text);
+
                 // ç©�ç®—äºˆç®—æ›¸ãƒ‡ãƒ¼ã‚¿ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
                 if (workList.Count == 0)
                 {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs	(revision 270)
@@ -556,6 +556,11 @@
         private ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo();
 
         /// <summary>
+        /// ŠY“–�HŽ–’S“–ŽÒ
+        /// </summary>
+        private PersonInChargeMaster m_PersonInChargeMaster = new PersonInChargeMaster();
+
+        /// <summary>
         /// �³”FŽÒƒŠƒXƒgƒnƒ“ƒhƒ‹
         /// </summary>
         private FrmApprovalAuthorizerList m_frmAuthorizerList = null;
@@ -1227,7 +1232,7 @@
             // �¿‹��ˆ—�˜AŒg
             if (m_BillingProc) BillingLinkOutPut();
 
-                switch (e.ColumnIndex)
+            switch (e.ColumnIndex)
             {
                 // ----- ‹¦—Í‰ïŽÐ–¼ƒZƒ‹
                 case (int)GridColumn.CompanyName:
@@ -1242,10 +1247,15 @@
                             // ‹¦—Í‰ïŽÐ‘I‘ð
                             ShowSubConstructorDiag();
                             break;
-                        case (int)DataGroup.PurchaseCosts:
-                            // ----- �w“ü•i
-                            // Žd“ü�æ‘I‘ð
-                            ShowSuppliersDiag();
+
+                        case (int)DataGroup.TransportationCosts:    // ----- 3:Œð’Ê”ï�i’Ê�s—¿�E“dŽÔ‘ã�j
+                        case (int)DataGroup.PurchaseCosts:          // ----- 4:�w“ü•i
+                        case (int)DataGroup.VehicleLeaseFee:        // ----- 5:ŽÔ—¼ƒŠ�[ƒX‘ã
+                        case (int)DataGroup.ParkingCosts:           // ----- 6:’“ŽÔ�ê�EŽ‘�Þ’u‚«�ê
+                        case (int)DataGroup.RoomChargeCosts:        // ----- 7:�h”‘”ï
+                        case (int)DataGroup.DisposeCosts:           // ----- 8:�ˆ•ª”ï“™
+                            EventArgs eWork = new EventArgs();
+                            ProcessExecute_TAndPCosts(sender, eWork);
                             break;
                         default:
                             break;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs	(revision 270)
@@ -58,11 +58,17 @@
         private bool GetBaseInfoData()
         {
             IOConstructionBaseInfo cbDB = new IOConstructionBaseInfo();
+            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                string strSQL = cbDB.CreatePrimarykeyString(m_ConstructionCode);
-                if (!cbDB.SelectAction(strSQL, ref m_ConstructionBaseInfo)) return false;
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(cbDB.CreatePrimarykeyString(m_ConstructionCode));
+                if (!cbDB.SelectAction(strSQL.ToString(), ref m_ConstructionBaseInfo)) return false;
 
+                strSQL.Clear();
+                strSQL.Append(PersonDB.CreatePrimarykeyString(m_ConstructionBaseInfo.ConstructionPersonCode));
+                if (!PersonDB.SelectAction(strSQL.ToString(), ref m_PersonInChargeMaster)) return false;
+
                 return true;
             }
             catch (Exception ex)
@@ -73,6 +79,7 @@
             finally
             {
                 cbDB.close(); cbDB = null;
+                PersonDB.close(); PersonDB = null;
             }
         }
         #endregion
@@ -2162,6 +2169,7 @@
                 RowData[(int)GridColumn.EstimatePrice] = EstimateValue.ToString("#,0");
                 RowData[(int)GridColumn.ExecPrice] = ExecValue.ToString("#,0");
                 RowData[(int)GridColumn.Percent] = CalculattionPercent((double)ExecValue).ToString("0.00");
+                RowData[(int)GridColumn.IndependentFlg] = "1";
                 RowData[(int)GridColumn.SourceCode] = m_ConstructionCode;
 
                 // è¡Œã‚»ãƒƒãƒˆ
@@ -2394,6 +2402,7 @@
                 RowData[(int)GridColumn.FixFlg] = "*";
                 RowData[(int)GridColumn.GroupCount] = (int)DataGroup.CurrentProfit;
                 RowData[(int)GridColumn.ItemName] = s_GroupTitle[(int)DataGroup.CurrentProfit];
+                RowData[(int)GridColumn.IndependentFlg] = "1";
                 RowData[(int)GridColumn.SourceCode] = m_ConstructionCode;
 
                 // å�ˆè¨ˆæ¬„ä½�ç½®å�–å¾—
@@ -4911,41 +4920,6 @@
         }
         #endregion
 
-        #region ä»•å…¥å…ˆé�¸æŠžãƒ€ã‚¤ã‚¢ãƒ­ã‚°è¡¨ç¤º
-        /// <summary>
-        /// ä»•å…¥å…ˆé�¸æŠžãƒ€ã‚¤ã‚¢ãƒ­ã‚°è¡¨ç¤º
-        /// </summary>
-        private void ShowSuppliersDiag()
-        {
-            FrmSuppliersDiag frm = new FrmSuppliersDiag();
-            try
-            {
-                DataGridView dgv = dgvAllDisplay;
-
-                frm.ConstructionCode = m_ConstructionCode;
-                //frm.ShowInTaskbar = false;
-                frm.ShowDialog();
-                if (frm.EndButton == System.Windows.Forms.DialogResult.OK)
-                {
-                    SuppliersMaster selRec = frm.SelectData;
-                    dgv.CurrentRow.Cells[(int)GridColumn.CompanyType].Value = (int)CommonDefine.CodeDataType.Subconstractor;
-                    dgv.CurrentRow.Cells[(int)GridColumn.CompanyCode].Value = selRec.SuppliersCode;
-                    dgv.CurrentRow.Cells[(int)GridColumn.CompanyName].Value = selRec.SuppliersName1 + " " + selRec.SuppliersName2;
-                    m_bChengeAns = true;
-                }
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                frm.Dispose();
-                frm = null;
-            }
-        }
-        #endregion
-
         #region å�‚ç…§ãƒ¢ãƒ¼ãƒ‰ã�®è¨­å®š
         /// <summary>
         /// å�‚ç…§ãƒ¢ãƒ¼ãƒ‰ã�«ã�—ã�¦å�„ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ã�¸ãƒ­ãƒƒã‚¯ã‚’ã�‹ã�‘ã‚‹
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/ProcessControl.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/ProcessControl.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/ProcessControl.cs	(revision 270)
@@ -840,7 +840,11 @@
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
                 frm.ConstructionCode = m_ConstructionCode;
-                frm.PersonCode = CommonMotions.LoginUserData.PersonCode;
+
+                frm.InitSetFlag = true;
+                frm.DepartmentCode = m_PersonInChargeMaster.DepartmentCode;
+                frm.PersonCode = m_ConstructionBaseInfo.ConstructionPersonCode;
+
                 frm.EditLock = m_EditLock;
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs	(revision 270)
@@ -172,13 +172,6 @@
                                                              "’S“–ŽÒ‹‹—^�·Šz"};
         #endregion
 
-        #region Ž©ƒvƒ�ƒZƒX‚Ì”Ô�†
-        /// <summary>
-        /// Ž©ƒvƒ�ƒZƒX‚Ì”Ô�†
-        /// </summary>
-        private static int s_CurrentProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedgerList;
-        #endregion
-
         #region ƒRƒ“ƒgƒ��[ƒ‹ƒCƒxƒ“ƒg’è‹`
         /// <summary>
         /// ƒRƒ“ƒgƒ��[ƒ‹ƒCƒxƒ“ƒg’è‹`
@@ -279,6 +272,42 @@
         private bool m_NextProcFlg = false;
         #endregion
 
+        /// <summary>
+        /// �HŽ–ƒR�[ƒh
+        /// </summary>
+        private int m_ConstructionCode = 0;
+
+        /// <summary>
+        /// ƒtƒB�[ƒ‹ƒh’l•Ï‰»ƒtƒ‰ƒO
+        /// </summary>
+        private bool m_bChengeAns = false;
+
+        // *-----* ‹¤’Ê�ˆ—��Ý’è *-----*
+        /// <summary>
+        /// ŒÄ�oŒ³�I—¹ƒtƒ‰ƒO
+        /// </summary>
+        private bool m_ParentEnd = false;
+        // *-----* ‹¤’Ê�ˆ—��Ý’è *-----*
+
+        /// <summary>
+        /// �I—¹ƒ{ƒ^ƒ“‰Ÿ‰ºƒtƒ‰ƒO
+        /// </summary>
+        private bool m_CloseingProcessOn = true;
+
+        /// <summary>
+        /// ƒAƒNƒZƒX�§ŒÀƒtƒ‰ƒO
+        /// </summary>
+        private bool m_EditLock = false;
+
+        /// <summary>
+        /// ŠY“–�HŽ–Šî–{�î•ñ
+        /// </summary>
+        private ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo();
+
+        /// <summary>
+        /// ŠY“–�HŽ–’S“–ŽÒ
+        /// </summary>
+        private PersonInChargeMaster m_PersonInChargeMaster = new PersonInChargeMaster();
         #endregion
 
         #region ƒvƒ�ƒpƒeƒB
@@ -370,6 +399,34 @@
         }
         #endregion
 
+        /// <summary>
+        /// ƒAƒNƒZƒX�§ŒÀƒtƒ‰ƒO
+        /// </summary>
+        public bool EditLock
+        {
+            get { return m_EditLock; }
+            set { m_EditLock = value; }
+        }
+
+        // *-----* ‹¤’Ê�ˆ—��Ý’è *-----*
+        /// <summary>
+        /// ŒÄ�oŒ³�I—¹ƒtƒ‰ƒO
+        /// </summary>
+        public bool ParentEnd
+        {
+            get { return m_ParentEnd; }
+            set { m_ParentEnd = value; }
+        }
+        // *-----* ‹¤’Ê�ˆ—��Ý’è *-----*
+
+        /// <summary>
+        /// �I—¹ƒ{ƒ^ƒ“‰Ÿ‰ºƒtƒ‰ƒO
+        /// </summary>
+        public bool CloseingProcessOn
+        {
+            get { return m_CloseingProcessOn; }
+            set { m_CloseingProcessOn = value; }
+        }
         #endregion
 
         #region ƒRƒ“ƒXƒgƒ‰ƒNƒ^
@@ -429,23 +486,6 @@
         }
         #endregion
 
-        #region ‘I‘ðƒ{ƒ^ƒ“
-        /// <summary>
-        /// �HŽ–‘I‘ðƒ{ƒ^ƒ“‰Ÿ‰º
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnDataSelect_Click(object sender, EventArgs e)
-        {
-            // ƒf�[ƒ^‚ª‚È‚¢�ê�‡‚Í”²‚¯‚é
-            if (dgvMaster.RowCount == 0) return;
-            if (CommonMotions.chkCellBlank(dgvMaster.CurrentRow.Cells[(int)DispColumn.SelectionName].Value)) return;
-
-            // Še�ˆ—�‹N“®
-            SubProcessExecute(CommonMotions.cnvIntFromStringCode(dgvMaster.CurrentRow.Cells[(int)DispColumn.SelectionCode].Value.ToString(), "-"));
-        }
-        #endregion
-
         #region ‘ä’ �ó‹µŠm”Fƒ{ƒ^ƒ“‰Ÿ‰º
         /// <summary>
         /// ‘ä’ �ó‹µŠm”Fƒ{ƒ^ƒ“‰Ÿ‰º
@@ -506,8 +546,13 @@
 
             // ƒf�[ƒ^‚ª‚È‚¢�ê�‡‚Í”²‚¯‚é
             if (dgv.RowCount == 0) return;
+
+            // Œð’Ê”ï�s‚Í“ü—Í‰æ–Ê‚ð•\Ž¦‚·‚é
+            if (NextOtherCostExecute()) return;
+            
             if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.SelectionCode].Value)) return;
             if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.SelectionName].Value)) return;
+
             // –¾�×�sˆÈŠO‚Í�ˆ—�‚µ‚È‚¢
             string strCode = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.SelectionCode].Value);
             if (CommonMotions.cnvInt(strCode.Replace("-", "")) == 0) return;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.designer.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.designer.cs	(revision 270)
@@ -106,6 +106,7 @@
             this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.btnLedgerStatus = new System.Windows.Forms.Button();
+            this.btnOtherProc = new System.Windows.Forms.Button();
             this.groupBox1.SuspendLayout();
             this.pnlPayroll.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit();
@@ -925,6 +926,19 @@
             this.btnLedgerStatus.UseVisualStyleBackColor = false;
             this.btnLedgerStatus.Click += new System.EventHandler(this.btnLedgerStatus_Click);
             // 
+            // btnOtherProc
+            // 
+            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
+            this.btnOtherProc.Location = new System.Drawing.Point(5, 619);
+            this.btnOtherProc.Name = "btnOtherProc";
+            this.btnOtherProc.Size = new System.Drawing.Size(160, 30);
+            this.btnOtherProc.TabIndex = 96;
+            this.btnOtherProc.TabStop = false;
+            this.btnOtherProc.Text = "ä»–ã�®ç”»é�¢ã�¸";
+            this.btnOtherProc.UseVisualStyleBackColor = false;
+            this.btnOtherProc.Visible = false;
+            // 
             // FrmLedgerStatus
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -932,6 +946,8 @@
             this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
             this.BackColor = System.Drawing.Color.Black;
             this.ClientSize = new System.Drawing.Size(1340, 657);
+            this.Controls.Add(this.ProgressBar);
+            this.Controls.Add(this.btnOtherProc);
             this.Controls.Add(this.btnLedgerStatus);
             this.Controls.Add(this.lblCellTotal);
             this.Controls.Add(this.dgvMaster);
@@ -938,7 +954,6 @@
             this.Controls.Add(this.groupBox1);
             this.Controls.Add(this.label1);
             this.Controls.Add(this.btnEnd);
-            this.Controls.Add(this.ProgressBar);
             this.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
             this.KeyPreview = true;
@@ -1022,5 +1037,6 @@
         private System.Windows.Forms.Label label10;
         private System.Windows.Forms.Button btnLedgerStatus;
         private System.Windows.Forms.Label label18;
+        private System.Windows.Forms.Button btnOtherProc;
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 270)
@@ -206,43 +206,44 @@
         }
         #endregion
 
-        #region �I—¹Žž�ˆ—�
+        #region Œð’Ê”ï�E�w“ü”ï“ü—Í
         /// <summary>
-        /// �I—¹ŽžƒTƒuƒtƒH�[ƒ€ƒNƒ��[ƒY
+        /// Œð’Ê”ï�E�w“ü”ï“ü—Í
         /// </summary>
-        private void TerminatingProcess()
+        private bool NextOtherCostExecute()
         {
             try
             {
-                // ƒtƒH�[ƒ€‚ªClose‚³‚ê‚Ä‚¢‚È‚¯‚ê‚ÎƒNƒ��[ƒY‚·‚é
-                for (int i = 0; i < ClsExcute.SubFormHandleList.Length; i++)
-                {
-                    PreserveSubFormHandle Handle = ClsExcute.SubFormHandleList[i];
+                DataGridView dgv = dgvMaster;
+                DataGridViewRow CurRow = dgv.CurrentRow;
 
-                    // Ž©•ª‚ª‹N“®‚µ‚½‚à‚ÌˆÈŠO‚Í�ˆ—�‚µ‚È‚¢
-                    if (Handle.ProcessNo != s_CurrentProcessNo) continue;
+                // ’S“–ŽÒ‘I‘ð–³‚Í�ˆ—�‚µ‚È‚¢
+                if (cmbConstructionPerson.Text.Length == 0) return false;
 
-                    // Ž©•ª‚Í�ˆ—�‚µ‚È‚¢
-                    if (i == s_CurrentProcessNo)
+                // –¼�Ì‚æ‚èŒo”ï‚È‚Ì‚©‚ð”»’è‚·‚é
+                bool bExec = false;
+                string OtherCostName = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.SelectionName].Value);
+                for (int i = 1; i < CostDataOfPerson.DataNoStrArrary.Length; i++)
+                {
+                    if (OtherCostName.Equals(CostDataOfPerson.DataNoStrArrary[i]))
                     {
-                        ClsExcute.SubFormHandleList[i].SubFormHandle = null;
-                        ClsExcute.SubFormHandleList[i].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
-                        continue;
+                        bExec = true;
+                        break;
                     }
+                }
+                if (!bExec) return false;
 
-                    // ‹N“®‚³‚ê‚Ä–³‚¯‚ê‚Î�ˆ—�‚µ‚È‚¢
-                    if (Handle.SubFormHandle == null) continue;
+                // Œð’Ê”ï�E�w“ü”ï“ü—Í
+                object sender = new object();
+                EventArgs eWork = new EventArgs();
+                ProcessExecute_TAndPCosts(sender, eWork);
 
-                    // ‰æ–ÊƒNƒ��[ƒY
-                    Handle.SubFormHandle.Close();
-                    if (Handle.SubFormHandle != null) Handle.SubFormHandle.Dispose();
-                    ClsExcute.SubFormHandleList[i].SubFormHandle = null;
-
-                }
+                return true;
             }
-            catch (System.Exception ex)
+            catch (Exception ex)
             {
                 logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
             }
         }
         #endregion
@@ -1849,5 +1850,17 @@
         }
         #endregion
 
+        private bool DataEntryProcess()
+        {
+            try
+            {
+                return true;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/ProcessControl.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/ProcessControl.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/ProcessControl.cs	(revision 270)
@@ -0,0 +1,1278 @@
+ï»¿using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using System.Collections;
+using System.Linq;
+using System.Diagnostics;
+
+using log4net;
+using log4net.Appender;
+using log4net.Repository.Hierarchy;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.DB.Core;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+using ProcessManagement.Forms.SubForms;
+using ProcessManagement.Forms.Master;
+
+namespace ProcessManagement.Forms.DataEntry
+{
+    partial class FrmLedgerStatus
+    {
+        #region è‡ªãƒ—ãƒ­ã‚»ã‚¹ã�®ç•ªå�·
+        /// <summary>
+        /// è‡ªãƒ—ãƒ­ã‚»ã‚¹ã�®ç•ªå�·ã‚’æŒ�ã�¤
+        /// </summary>
+        private static int s_CurrentProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedger;
+ 		#endregion
+
+        #region ãƒ—ãƒ­ã‚»ã‚¹ã‚³ãƒ³ãƒ†ã‚­ã‚¹ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼å¤‰æ•°
+        /// <summary>
+        /// ãƒ—ãƒ­ã‚»ã‚¹ã‚³ãƒ³ãƒ†ã‚­ã‚¹ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼
+        /// </summary>
+        private ContextMenuStrip m_ProcessContextMenuStrip;
+        #endregion
+
+        #region åˆ¥ãƒ—ãƒ­ã‚»ã‚¹ç§»å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä½œæˆ�
+        /// <summary>
+        /// åˆ¥ãƒ—ãƒ­ã‚»ã‚¹ç§»å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä½œæˆ�
+        /// </summary>
+        private void CreateProcessContextMenu(bool bSubForm)
+        {
+            try
+            {
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä¸€è¦§ã‚’ä½œæˆ�ã�™ã‚‹
+                m_ProcessContextMenuStrip = new ContextMenuStrip();
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�®ã‚»ãƒƒãƒˆ
+                UpDateProcessContextMenu(bSubForm);
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region åˆ¥ãƒ—ãƒ­ã‚»ã‚¹ç§»å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼æ›´æ–°
+        /// <summary>
+        /// åˆ¥ãƒ—ãƒ­ã‚»ã‚¹ç§»å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼æ›´æ–°
+        /// </summary>
+        private void UpDateProcessContextMenu(bool bSubForm = false)
+        {
+            try
+            {
+                // èµ·å‹•ãƒ—ãƒ­ã‚»ã‚¹ã�®ä¸€æ¡ˆã‚’ä½œæˆ�ã�™ã‚‹
+                List<KeyValuePair<int, string>> ProcList = new List<KeyValuePair<int, string>>();
+                // å·¥äº‹ç•ªå�·ã‚»ãƒƒãƒˆ
+                ClsProcessExist.ConstructionCode = m_ConstructionCode;
+                // ãƒªã‚¹ãƒˆå�–å¾—
+                ClsProcessExist.GetProcessList(ref ProcList, s_CurrentProcessNo);
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä¸€è¦§ã‚’ä½œæˆ�ã�™ã‚‹
+                m_ProcessContextMenuStrip.Items.Clear();
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ‡ãƒ¼ã‚¿ã�®ã‚»ãƒƒãƒˆ
+                int icnt = 0;
+                foreach (KeyValuePair<int, string> CurRec in ProcList)
+                {
+                    // è‡ªãƒ—ãƒ­ã‚»ã‚¹ã�¯å‡¦ç�†ã�—ã�ªã�„
+                    if (CurRec.Key == s_CurrentProcessNo) continue;
+                    //ã‚¤ãƒ™ãƒ³ãƒˆã�®ç™»éŒ²
+                    EventHandler handle = null;
+                    switch (CurRec.Key)
+                    {
+                        case (int)ClsExcute.ProcessExecuteNo.MainMenu:                  //  0:ãƒ¡ãƒ‹ãƒ¥ãƒ¼
+                            handle = ProcessExecute_MainMenu;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo:      //  2:å·¥äº‹æƒ…å ±å…¥åŠ›
+                            handle = ProcessExecute_ConstructionBaseInfo;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.EstimateInput:             //  3:ç©�ç®—è¦‹ç©�å…¥åŠ›
+                            handle = ProcessExecute_EstimateInput;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.EstimatePrint:             //  4:ç©�ç®—è¦‹ç©�æ›¸å�°åˆ·
+                            handle = ProcessExecute_EstimatePrint;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.EstimateBudget:            //  5:ç©�ç®—äºˆç®—æ›¸å…¥åŠ›
+                            handle = ProcessExecute_EstimateBudget;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.ConstructionBudget:        //  6:å·¥äº‹äºˆç®—æ›¸å…¥åŠ›
+                            handle = ProcessExecute_ConstructionBudget;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList:      //  8:å·¥äº‹æ¡ˆä»¶ã‚³ãƒ”ãƒ¼æ©Ÿèƒ½
+                            handle = ProcessExecute_ConstructionCopyList;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry:        //  9:æ³¨æ–‡æ›¸å…¥åŠ›
+                            handle = ProcessExecute_PurchaseOrderEntry;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint:        // 10:æ³¨æ–‡æ›¸å�°åˆ·
+                            handle = ProcessExecute_PurchaseOrderPrint;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.ConstructionLedger:        // 12:å·¥äº‹è©³ç´°å�°å¸³
+                            handle = ProcessExecute_ConstructionLedger;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.TAndPCosts:                // 13:äº¤é€šè²»å�Šã�³è³¼å…¥å“�å…¥åŠ›
+                            handle = ProcessExecute_TAndPCosts;
+                            break;
+                    }
+                    // èµ·å‹•é–¢æ•°ã�®ã‚»ãƒƒãƒˆã�Œç„¡ã�‘ã‚Œã�°å‡¦ç�†ã�—ã�ªã�„
+                    if (handle == null) continue;
+
+                    // åŒºåˆ‡ã‚Šç·š
+                    if (icnt != 0) m_ProcessContextMenuStrip.Items.Add("-");
+                    // è¡Œã�®ã‚»ãƒƒãƒˆ
+                    ToolStripMenuItem tsmItem = new ToolStripMenuItem(CurRec.Value, null, handle);
+                    m_ProcessContextMenuStrip.Items.Add(tsmItem);
+                    icnt++;
+                }
+                // ã‚³ãƒ³ãƒ†ã‚­ã‚¹ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚»ãƒƒãƒˆ
+                btnOtherProc.ContextMenuStrip = m_ProcessContextMenuStrip;
+                m_ProcessContextMenuStrip.Show(btnOtherProc, new Point(0, 0));
+                m_ProcessContextMenuStrip.Close();
+
+            }
+            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 btnOtherProc_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                // ãƒœã‚¿ãƒ³ã�®çœŸä¸Šã�«ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚’è¡¨ç¤ºã�™ã‚‹
+                int h = m_ProcessContextMenuStrip.Height * -1;
+                m_ProcessContextMenuStrip.Show(btnOtherProc, new Point(0, h));
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region çµ‚äº†æ™‚å‡¦ç�†
+        /// <summary>
+        /// çµ‚äº†æ™‚ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚¯ãƒ­ãƒ¼ã‚º
+        /// </summary>
+        private void TerminatingProcess()
+        {
+            try
+            {
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�ŒCloseã�•ã‚Œã�¦ã�„ã�ªã�‘ã‚Œã�°ã‚¯ãƒ­ãƒ¼ã‚ºã�™ã‚‹
+                for (int i = 0; i < ClsExcute.SubFormHandleList.Length; i++)
+                {
+                    PreserveSubFormHandle Handle = ClsExcute.SubFormHandleList[i];
+
+                    // è‡ªåˆ†ã�Œèµ·å‹•ã�—ã�Ÿã‚‚ã�®ä»¥å¤–ã�¯å‡¦ç�†ã�—ã�ªã�„
+                    if (Handle.ProcessNo != s_CurrentProcessNo) continue;
+
+                    // è‡ªåˆ†ã�¯å‡¦ç�†ã�—ã�ªã�„
+                    if (i == s_CurrentProcessNo)
+                    {
+                        ClsExcute.SubFormHandleList[i].SubFormHandle = null;
+                        ClsExcute.SubFormHandleList[i].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+                        continue;
+                    }
+
+                    // èµ·å‹•ã�•ã‚Œã�¦ç„¡ã�‘ã‚Œã�°å‡¦ç�†ã�—ã�ªã�„
+                    if (Handle.SubFormHandle == null) continue;
+
+                    // ç”»é�¢ã‚¯ãƒ­ãƒ¼ã‚º
+                    Handle.SubFormHandle.Close();
+                    if (Handle.SubFormHandle != null) Handle.SubFormHandle.Dispose();
+                    ClsExcute.SubFormHandleList[i].SubFormHandle = null;
+                }
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region æ¬¡ã�®èµ·å‹•ã�Œç”³è«‹ç”»é�¢ã�‹ã�©ã�†ã�‹ã�®åˆ¤å®š
+        /// <summary>
+        /// æ¬¡ã�®èµ·å‹•ã�Œç”³è«‹ç”»é�¢ã�‹ã�©ã�†ã�‹ã�®åˆ¤å®š
+        /// </summary>
+        /// <returns></returns>
+        private bool judgmentApprovalScreen()
+        {
+            try
+            {
+                // ãƒ—ãƒ­ã‚»ã‚¹èµ·å‹•ãƒ†ãƒ¼ãƒ–ãƒ«ã�«ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯true
+                int NextProcess = ClsExcute.ProcControlPara[ClsExcute.GetNowProcessPoint()].ProcNo;
+                if (NextProcess == (int)ClsExcute.SubFormExecuteNo.ApprovalScreen) return true;
+
+                return false;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region    // ---------- ä»–ãƒ—ãƒ­ã‚»ã‚¹èµ·å‹•ãƒ�ãƒ³ãƒ‰ãƒ©ç¾¤ã€€START
+        #region ä¸€æ°—ã�«ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹
+        /// <summary>
+        /// ä¸€æ°—ã�«ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_MainMenu(object sender, EventArgs e)
+        {
+            try
+            {
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // èµ·å‹•ãƒ†ãƒ¼ãƒ–ãƒ«ã‚’ã‚¯ãƒªã‚¢ã�™ã‚‹
+                ClsExcute.ClearProcess();
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ãƒ•ãƒ©ã‚°ONã€€
+                m_ParentEnd = true;
+
+                // çµ‚äº†å‡¦ç�†OFF
+                m_CloseingProcessOn = false;
+
+                // è‡ªãƒ•ã‚©ãƒ¼ãƒ çµ‚äº†
+                this.Close();
+            }
+            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 ProcessExecute_ConstructionBaseInfo(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmConstructionBaseInfo frm = (FrmConstructionBaseInfo)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.ParentAdd = true;
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // å·¥äº‹æƒ…å ±å…¥åŠ›èµ·å‹•
+                frm = new FrmConstructionBaseInfo();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmConstructionBaseInfoClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region ç©�ç®—è¦‹ç©�æ›¸å…¥åŠ›
+        /// <summary>
+        /// ç©�ç®—è¦‹ç©�æ›¸å…¥åŠ›
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_EstimateInput(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // ç©�ç®—è¦‹ç©�æ›¸å…¥åŠ›èµ·å‹•
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region ç©�ç®—è¦‹ç©�æ›¸å�°åˆ·
+        /// <summary>
+        /// ç©�ç®—è¦‹ç©�æ›¸å�°åˆ·
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // ç©�ç®—è¦‹ç©�æ›¸å�°åˆ·èµ·å‹•
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region ç©�ç®—äºˆç®—æ›¸å…¥åŠ›
+        /// <summary>
+        /// ç©�ç®—äºˆç®—æ›¸å…¥åŠ›
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_EstimateBudget(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateBudget;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmEstimateBudget frm = (FrmEstimateBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.EstimateBudget;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // ç©�ç®—äºˆç®—æ›¸å…¥åŠ›èµ·å‹•
+                frm = new FrmEstimateBudget();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateBudgetClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region å·¥äº‹äºˆç®—æ›¸å…¥åŠ›
+        /// <summary>
+        /// å·¥äº‹äºˆç®—æ›¸å…¥åŠ›
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_ConstructionBudget(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBudget;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmConstructionBudget frm = (FrmConstructionBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.ConstructionBudget;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // å·¥äº‹äºˆç®—æ›¸å…¥åŠ›èµ·å‹•
+                frm = new FrmConstructionBudget();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmConstructionBudgetClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region å·¥äº‹æ¡ˆä»¶ã‚³ãƒ”ãƒ¼æ©Ÿèƒ½
+        /// <summary>
+        /// å·¥äº‹æ¡ˆä»¶ã‚³ãƒ”ãƒ¼æ©Ÿèƒ½
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_ConstructionCopyList(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmNewOrContinueCopy frm = (FrmNewOrContinueCopy)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.ParentAdd = true;
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // å·¥äº‹æ¡ˆä»¶ã‚³ãƒ”ãƒ¼èµ·å‹•
+                frm = new FrmNewOrContinueCopy();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmNewOrContinueCopyClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region æ³¨æ–‡æ›¸å…¥åŠ›
+        /// <summary>
+        /// æ³¨æ–‡æ›¸å…¥åŠ›
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_PurchaseOrderEntry(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmPurchaseOrderEntry frm = (FrmPurchaseOrderEntry)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.ParentAdd = true;
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // æ³¨æ–‡æ›¸å…¥åŠ›èµ·å‹•
+                frm = new FrmPurchaseOrderEntry();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmPurchaseOrderEntryClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region æ³¨æ–‡æ›¸å�°åˆ·
+        /// <summary>
+        /// æ³¨æ–‡æ›¸å�°åˆ·
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_PurchaseOrderPrint(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmPurchaseOrderPrint frm = (FrmPurchaseOrderPrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.ParentAdd = true;
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // æ³¨æ–‡æ›¸å�°åˆ·èµ·å‹•
+                frm = new FrmPurchaseOrderPrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmPurchaseOrderPrintClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region å·¥äº‹è©³ç´°å�°å¸³
+        /// <summary>
+        /// å·¥äº‹è©³ç´°å�°å¸³
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_ConstructionLedger(object sender, EventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedger;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmConstructionLedger frm = (FrmConstructionLedger)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å·¥äº‹è©³ç´°å�°å¸³å…¥åŠ›èµ·å‹•
+                frm = new FrmConstructionLedger();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmConstructionLedgerClosed);
+                frm.Show();
+            }
+            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 ProcessExecute_TAndPCosts(object sender, EventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.TAndPCosts;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmTAndPCosts frm = (FrmTAndPCosts)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // äº¤é€šè²»å�Šã�³è³¼å…¥å“�ç­‰å…¥åŠ›èµ·å‹•
+                frm = new FrmTAndPCosts();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+
+                frm.InitSetFlag = true;
+                frm.DepartmentCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
+                frm.PersonCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
+
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmTAndPCostsClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #endregion // ---------- ä»–ãƒ—ãƒ­ã‚»ã‚¹èµ·å‹•ãƒ�ãƒ³ãƒ‰ãƒ©ç¾¤ã€€END
+
+        #region    // ---------- ä»–ãƒ—ãƒ­ã‚»ã‚¹çµ‚äº†ãƒ�ãƒ³ãƒ‰ãƒ©ç¾¤ã€€START
+        #region å·¥äº‹æƒ…å ±å…¥åŠ›ã�®ã‚¯ãƒ­ãƒ¼ã‚ºã‚’å�–å¾—ã�™ã‚‹
+        /// <summary>
+        /// å·¥äº‹æƒ…å ±å…¥åŠ›ã�®ã‚¯ãƒ­ãƒ¼ã‚ºã‚’å�–å¾—ã�™ã‚‹
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmConstructionBaseInfoClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
+                FrmConstructionBaseInfo frm = (FrmConstructionBaseInfo)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+                bool DataChange = frm.DataChenge;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    this.Activate();
+                    // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´ã�Œã�‚ã‚‹å ´å�ˆã�¯å†�è¡¨ç¤º
+                    if (DataChange) InitDataLoad();
+                }
+            }
+            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 FrmEstimateInputClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯è¦ªã‚‚çµ‚ã‚�ã‚‰ã�›ã‚‹
+                    if (judgmentApprovalScreen()) m_ParentEnd = true;
+
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmEstimatePrintClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+                
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmEstimateBudgetClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateBudget;
+                FrmEstimateBudget frm = (FrmEstimateBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯è¦ªã‚‚çµ‚ã‚�ã‚‰ã�›ã‚‹
+                    if (judgmentApprovalScreen()) m_ParentEnd = true;
+
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmConstructionBudgetClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBudget;
+                FrmConstructionBudget frm = (FrmConstructionBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯è¦ªã‚‚çµ‚ã‚�ã‚‰ã�›ã‚‹
+                    if (judgmentApprovalScreen()) m_ParentEnd = true;
+
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmNewOrContinueCopyClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList;
+                // ãƒ—ãƒ­ã‚»ã‚¹ç•ªå�·ã�Œé�•ã�†ã�®ã�§æ³¨æ„�ï¼�ï¼�
+                FrmNewOrContinueCopy frm = (FrmNewOrContinueCopy)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+
+                // æˆ»ã‚Šå€¤å�–å¾—
+                int ConstructionCode = frm.ConstructionCode;
+                bool bNowConstruction = frm.NewConstruction;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                int NowPoint = ClsExcute.GetNowProcessPoint();
+                // ç�¾åœ¨è¨­å®šå€¤ã‚¯ãƒªã‚¢
+                ClsExcute.ClearExecParameter(NowPoint);
+                // å·¥äº‹ç•ªå�·å¤‰æ›´
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(ConstructionCode);
+                // ã‚³ãƒ”ãƒ¼ä½œæˆ�ãƒ‡ãƒ¼ã‚¿ãƒ•ãƒ©ã‚°ã‚»ãƒƒãƒˆ
+                ClsExcute.ProcControlPara[NowPoint].BoolExecParameter.Add(true);
+
+                //this.Activate();
+
+                // çµ‚äº†å‡¦ç�†ãƒ•ãƒ©ã‚°Off
+                m_CloseingProcessOn = false;
+
+                this.Close();
+            }
+            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 FrmPurchaseOrderEntryClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
+                FrmPurchaseOrderEntry frm = (FrmPurchaseOrderEntry)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯è¦ªã‚‚çµ‚ã‚�ã‚‰ã�›ã‚‹
+                    if (judgmentApprovalScreen()) m_ParentEnd = true;
+
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmPurchaseOrderPrintClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint;
+                FrmPurchaseOrderEntry frm = (FrmPurchaseOrderEntry)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmConstructionLedgerClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedger;
+                FrmConstructionLedger frm = (FrmConstructionLedger)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmTAndPCostsClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.TAndPCosts;
+                FrmTAndPCosts frm = (FrmTAndPCosts)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #endregion // ---------- ä»–ãƒ—ãƒ­ã‚»ã‚¹çµ‚äº†ãƒ�ãƒ³ãƒ‰ãƒ©ç¾¤ã€€END
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmNewOrContinueCopy.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmNewOrContinueCopy.Designer.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmNewOrContinueCopy.Designer.cs	(revision 270)
@@ -46,9 +46,9 @@
             this.label8 = new System.Windows.Forms.Label();
             this.radioButton2 = new System.Windows.Forms.RadioButton();
             this.panel2 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
             this.label6 = new System.Windows.Forms.Label();
             this.radioButton1 = new System.Windows.Forms.RadioButton();
-            this.label1 = new System.Windows.Forms.Label();
             this.label9 = new System.Windows.Forms.Label();
             this.label7 = new System.Windows.Forms.Label();
             this.groupBox1 = new System.Windows.Forms.GroupBox();
@@ -149,7 +149,7 @@
             this.label18.Name = "label18";
             this.label18.Size = new System.Drawing.Size(574, 38);
             this.label18.TabIndex = 33;
-            this.label18.Text = "æ—¢å­˜å·¥äº‹ã‚’ã‚³ãƒ”ãƒ¼ã�—ã�¦ä½œæˆ�ã€€ã€€ã€€ã€�åˆ¥å·¥äº‹ã�¨ã�—ã�¦æ–°è¦�ã�«ä½œæˆ�ã�•ã‚Œã�¾ã�™ã€‘\r\nâ€»ä½œæˆ�ä¸­ã�®å·¥äº‹ã‚’æ–°è¦�ã�®å·¥äº‹ã�¨ã�—ã�¦ç§»è¡Œã�™ã‚‹å ´å�ˆã�«ä½¿ç”¨";
+            this.label18.Text = "æ—¢å­˜å·¥äº‹ã‚’ã‚³ãƒ”ãƒ¼ã�—ã�¦ä½œæˆ�ã€€ã€€ã€€ã€�åˆ¥å·¥äº‹ã�¨ã�—ã�¦æ–°è¦�ã�«ä½œæˆ�ã�•ã‚Œã�¾ã�™ã€‘\r\nâ€»ä½œæˆ�ä¸­ã�®å·¥äº‹ã‚’æ–°è¦�ã�®å·¥äº‹ã�¨ã�—ã�¦ç§»è¡Œã�™ã‚‹å ´å�ˆã�«ä½¿ç”¨ã�—ã�¾ã�™";
             // 
             // label17
             // 
@@ -281,6 +281,19 @@
             this.panel2.Size = new System.Drawing.Size(780, 95);
             this.panel2.TabIndex = 31;
             // 
+            // label1
+            // 
+            this.label1.BackColor = System.Drawing.Color.White;
+            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.label1.Font = new System.Drawing.Font("Century", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.label1.Location = new System.Drawing.Point(600, 3);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(174, 24);
+            this.label1.TabIndex = 26;
+            this.label1.Text = "22229999-01";
+            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // label6
             // 
             this.label6.AutoSize = true;
@@ -306,19 +319,6 @@
             this.radioButton1.UseVisualStyleBackColor = true;
             this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
             // 
-            // label1
-            // 
-            this.label1.BackColor = System.Drawing.Color.White;
-            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.label1.Font = new System.Drawing.Font("Century", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.label1.Location = new System.Drawing.Point(600, 3);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(174, 24);
-            this.label1.TabIndex = 26;
-            this.label1.Text = "22229999-01";
-            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // label9
             // 
             this.label9.Anchor = System.Windows.Forms.AnchorStyles.Left;
@@ -596,7 +596,7 @@
             this.ShowIcon = false;
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.Text = "å®Ÿã€€è¡Œã€€ç¢ºã€€èª�";
-            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmNewOrContinueCopy_FormClosed);
+            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmNewOrContinueCopy_FormClosing);
             this.Load += new System.EventHandler(this.FrmCostStructureDiag_Load);
             this.panel1.ResumeLayout(false);
             this.groupBox2.ResumeLayout(false);
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmNewOrContinueCopy.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmNewOrContinueCopy.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmNewOrContinueCopy.cs	(revision 270)
@@ -102,14 +102,6 @@
         }
         #endregion
 
-        #region ãƒ•ã‚©ãƒ¼ãƒ ã‚¯ãƒ­ãƒ¼ã‚º
-        private void FrmNewOrContinueCopy_FormClosed(object sender, FormClosedEventArgs e)
-        {
-            if (m_EndButton == DialogResult.None) m_EndButton = DialogResult.Cancel;
-
-        }
-        #endregion
-        
         #region ã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿
         /// <summary>
         /// ãƒ•ã‚©ãƒ¼ãƒ åˆ�æœŸåŒ–
@@ -119,7 +111,21 @@
             InitializeComponent();
         }
         #endregion
-        
+
+        #region ãƒ‡ã‚¹ãƒˆãƒ©ã‚¯ã‚¿
+        ~FrmNewOrContinueCopy()
+        {
+            try
+            {
+                GC.Collect();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region ãƒ•ã‚©ãƒ¼ãƒ ãƒ­ãƒ¼ãƒ‰
         /// <summary>
         /// ãƒ•ã‚©ãƒ¼ãƒ ãƒ­ãƒ¼ãƒ‰
@@ -144,6 +150,18 @@
             InitDataLoad();
         }
         #endregion
+
+        #region ãƒ•ã‚©ãƒ¼ãƒ ã‚¯ãƒ­ãƒ¼ã‚º
+        /// <summary>
+        /// ãƒ•ã‚©ãƒ¼ãƒ ã‚¯ãƒ­ãƒ¼ã‚º
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmNewOrContinueCopy_FormClosing(object sender, FormClosingEventArgs e)
+        {
+            if (m_EndButton == DialogResult.None) m_EndButton = DialogResult.Cancel;
+        }
+        #endregion
         
         #region ã‚­ãƒ£ãƒ³ã‚»ãƒ«ãƒœã‚¿ãƒ³
         /// <summary>
@@ -203,8 +221,7 @@
                         DispCtrlCnt = (i - (int)Dispcount.radioButton1) + (int)Dispcount.ConstructionCode1;
                         continue;
                     }
-                    RadioButton rdbwork = (RadioButton)m_dispControl[i];
-                    rdbwork.Checked = false;
+                    ((RadioButton)m_dispControl[i]).Checked = false;
                 }
 
                 if (radioButton1.Checked)
@@ -232,9 +249,9 @@
                 for (int i = (int)Dispcount.ConstructionCode1; i <= (int)Dispcount.ConstructionCode4; i++)
                 {
                     if (i == DispCtrlCnt)
-                        m_dispControl[(int)Dispcount.ConstructionCode1].Visible = true;
+                        m_dispControl[i].Visible = true;
                     else
-                        m_dispControl[(int)Dispcount.ConstructionCode1].Visible = false;
+                        m_dispControl[i].Visible = false;
                 }
 
                 // å·¥äº‹ç•ªå�·ã�®è¡¨ç¤º
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWork.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWork.Designer.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWork.Designer.cs	(revision 270)
@@ -31,10 +31,6 @@
         private void InitializeComponent()
         {
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
@@ -45,6 +41,10 @@
             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 dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
             this.label1 = new System.Windows.Forms.Label();
             this.btnLineDel = new System.Windows.Forms.Button();
             this.btnLineAdd = new System.Windows.Forms.Button();
@@ -52,8 +52,11 @@
             this.btnDataEntry = new System.Windows.Forms.Button();
             this.btnEnd = new System.Windows.Forms.Button();
             this.panel3 = new System.Windows.Forms.Panel();
+            this.cmbDepartment = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.label2 = new System.Windows.Forms.Label();
+            this.cmbConstructionPerson = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.label3 = new System.Windows.Forms.Label();
+            this.comboBox1 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
             this.label6 = new System.Windows.Forms.Label();
             this.pnlApproval = new System.Windows.Forms.Panel();
             this.lblApprovalCount = new System.Windows.Forms.Label();
@@ -77,6 +80,7 @@
             this.label5 = new System.Windows.Forms.Label();
             this.label4 = new System.Windows.Forms.Label();
             this.label15 = new System.Windows.Forms.Label();
+            this.dgvAllDisplay = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.tabPage2 = new System.Windows.Forms.TabPage();
             this.label45 = new System.Windows.Forms.Label();
             this.label31 = new System.Windows.Forms.Label();
@@ -164,15 +168,6 @@
             this.label24 = new System.Windows.Forms.Label();
             this.label25 = new System.Windows.Forms.Label();
             this.label55 = new System.Windows.Forms.Label();
-            this.panel2 = new System.Windows.Forms.Panel();
-            this.btnWorkingList = new System.Windows.Forms.Button();
-            this.dgvAllDisplay = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
-            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dgvTransport02 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -195,19 +190,26 @@
             this.Column11 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
             this.Column12 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
             this.dataGridViewCheckBoxColumn7 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.cmbDepartment = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
-            this.cmbConstructionPerson = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
-            this.comboBox1 = new ProcessManagement.Forms.CustomControls.ComboBoxEX();
+            this.panel2 = new System.Windows.Forms.Panel();
+            this.btnWorkingList = new System.Windows.Forms.Button();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.panel3.SuspendLayout();
             this.pnlApproval.SuspendLayout();
             this.pnlApprovalButton.SuspendLayout();
             this.tabControl1.SuspendLayout();
             this.tabPage1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).BeginInit();
             this.tabPage2.SuspendLayout();
-            this.panel2.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvTransport02)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvTransport01)).BeginInit();
+            this.panel2.SuspendLayout();
             this.SuspendLayout();
             // 
             // label1
@@ -311,6 +313,20 @@
             this.panel3.Size = new System.Drawing.Size(1330, 44);
             this.panel3.TabIndex = 104;
             // 
+            // cmbDepartment
+            // 
+            this.cmbDepartment.BackColor = System.Drawing.Color.White;
+            this.cmbDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbDepartment.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 15.75F, System.Drawing.FontStyle.Bold);
+            this.cmbDepartment.FormattingEnabled = true;
+            this.cmbDepartment.Location = new System.Drawing.Point(437, 4);
+            this.cmbDepartment.Name = "cmbDepartment";
+            this.cmbDepartment.Size = new System.Drawing.Size(260, 29);
+            this.cmbDepartment.TabIndex = 123;
+            this.cmbDepartment.TextChanged += new System.EventHandler(this.cmbDepartment_TextChanged);
+            this.cmbDepartment.Enter += new System.EventHandler(this.cmbDepartment_Enter);
+            // 
             // label2
             // 
             this.label2.BackColor = System.Drawing.Color.SandyBrown;
@@ -324,6 +340,20 @@
             this.label2.Text = "æ‹…å½“éƒ¨ç½²";
             this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // cmbConstructionPerson
+            // 
+            this.cmbConstructionPerson.BackColor = System.Drawing.Color.White;
+            this.cmbConstructionPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbConstructionPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cmbConstructionPerson.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.cmbConstructionPerson.FormattingEnabled = true;
+            this.cmbConstructionPerson.Location = new System.Drawing.Point(841, 4);
+            this.cmbConstructionPerson.Name = "cmbConstructionPerson";
+            this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 29);
+            this.cmbConstructionPerson.TabIndex = 124;
+            this.cmbConstructionPerson.TextChanged += new System.EventHandler(this.cmbConstructionPerson_TextChanged);
+            this.cmbConstructionPerson.Enter += new System.EventHandler(this.cmbConstructionPerson_Enter);
+            // 
             // label3
             // 
             this.label3.BackColor = System.Drawing.Color.SandyBrown;
@@ -337,6 +367,19 @@
             this.label3.Text = "æ‹…ã€€å½“ã€€è€…";
             this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // comboBox1
+            // 
+            this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.comboBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.comboBox1.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.comboBox1.FormattingEnabled = true;
+            this.comboBox1.Location = new System.Drawing.Point(133, 4);
+            this.comboBox1.Name = "comboBox1";
+            this.comboBox1.Size = new System.Drawing.Size(160, 29);
+            this.comboBox1.TabIndex = 114;
+            this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
+            this.comboBox1.Enter += new System.EventHandler(this.comboBox1_Enter);
+            // 
             // label6
             // 
             this.label6.BackColor = System.Drawing.Color.SandyBrown;
@@ -639,6 +682,50 @@
             this.label15.Text = "å‡ºå‹¤æ—¥æ•°";
             this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // 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.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+            this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgvAllDisplay.ColumnHeadersHeight = 24;
+            this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1,
+            this.Column4,
+            this.Column3,
+            this.Column2,
+            this.Column5,
+            this.Column8,
+            this.Column7,
+            this.Column6});
+            this.dgvAllDisplay.Location = new System.Drawing.Point(8, 39);
+            this.dgvAllDisplay.Name = "dgvAllDisplay";
+            this.dgvAllDisplay.RowHeadersVisible = false;
+            this.dgvAllDisplay.RowHeadersWidth = 20;
+            this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dgvAllDisplay.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.dgvAllDisplay.RowTemplate.DefaultCellStyle.ForeColor = System.Drawing.Color.Black;
+            this.dgvAllDisplay.RowTemplate.Height = 24;
+            this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dgvAllDisplay.Size = new System.Drawing.Size(1310, 458);
+            this.dgvAllDisplay.TabIndex = 37;
+            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);
+            // 
             // tabPage2
             // 
             this.tabPage2.BackColor = System.Drawing.Color.Black;
@@ -1787,137 +1874,6 @@
             this.label55.Text = "å�ˆã€€ã€€è¨ˆ";
             this.label55.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // panel2
-            // 
-            this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.panel2.BackColor = System.Drawing.Color.LemonChiffon;
-            this.panel2.Controls.Add(this.btnWorkingList);
-            this.panel2.Location = new System.Drawing.Point(1102, 3);
-            this.panel2.Name = "panel2";
-            this.panel2.Size = new System.Drawing.Size(237, 34);
-            this.panel2.TabIndex = 106;
-            // 
-            // btnWorkingList
-            // 
-            this.btnWorkingList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnWorkingList.BackColor = System.Drawing.Color.DarkOrange;
-            this.btnWorkingList.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnWorkingList.ForeColor = System.Drawing.Color.Black;
-            this.btnWorkingList.Location = new System.Drawing.Point(4, 4);
-            this.btnWorkingList.Name = "btnWorkingList";
-            this.btnWorkingList.Size = new System.Drawing.Size(230, 26);
-            this.btnWorkingList.TabIndex = 12;
-            this.btnWorkingList.Text = "ä½œæˆ�çŠ¶æ…‹ã‚’è¡¨ç¤ºã�™ã‚‹";
-            this.btnWorkingList.UseVisualStyleBackColor = false;
-            this.btnWorkingList.Click += new System.EventHandler(this.btnWorkingList_Click);
-            // 
-            // 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.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
-            this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle1.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
-            this.dgvAllDisplay.ColumnHeadersHeight = 24;
-            this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.Column1,
-            this.Column4,
-            this.Column3,
-            this.Column2,
-            this.Column7,
-            this.Column6});
-            this.dgvAllDisplay.Location = new System.Drawing.Point(8, 39);
-            this.dgvAllDisplay.Name = "dgvAllDisplay";
-            this.dgvAllDisplay.RowHeadersVisible = false;
-            this.dgvAllDisplay.RowHeadersWidth = 20;
-            this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dgvAllDisplay.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.dgvAllDisplay.RowTemplate.DefaultCellStyle.ForeColor = System.Drawing.Color.Black;
-            this.dgvAllDisplay.RowTemplate.Height = 24;
-            this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dgvAllDisplay.Size = new System.Drawing.Size(1310, 458);
-            this.dgvAllDisplay.TabIndex = 37;
-            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);
-            // 
-            // Column1
-            // 
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
-            this.Column1.Frozen = true;
-            this.Column1.HeaderText = "æ—¥ä»˜";
-            this.Column1.Name = "Column1";
-            this.Column1.ReadOnly = true;
-            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column1.Width = 70;
-            // 
-            // Column4
-            // 
-            this.Column4.Frozen = true;
-            this.Column4.HeaderText = "å†…éƒ¨æ—¥ä»˜";
-            this.Column4.Name = "Column4";
-            this.Column4.ReadOnly = true;
-            this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column4.Visible = false;
-            this.Column4.Width = 5;
-            // 
-            // Column3
-            // 
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle3;
-            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 = 80;
-            // 
-            // Column2
-            // 
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            this.Column2.DefaultCellStyle = dataGridViewCellStyle4;
-            this.Column2.Frozen = true;
-            this.Column2.HeaderText = "è¡Œã€€ã€€å…ˆ";
-            this.Column2.Name = "Column2";
-            this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column2.Width = 540;
-            // 
-            // Column7
-            // 
-            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.Column7.DefaultCellStyle = dataGridViewCellStyle5;
-            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;
-            // 
-            // 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 = 500;
-            // 
             // dgvTransport02
             // 
             this.dgvTransport02.AllowUserToAddRows = false;
@@ -2208,47 +2164,111 @@
             this.dataGridViewCheckBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.dataGridViewCheckBoxColumn7.Width = 60;
             // 
-            // cmbDepartment
+            // panel2
             // 
-            this.cmbDepartment.BackColor = System.Drawing.Color.White;
-            this.cmbDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbDepartment.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 15.75F, System.Drawing.FontStyle.Bold);
-            this.cmbDepartment.FormattingEnabled = true;
-            this.cmbDepartment.Location = new System.Drawing.Point(437, 4);
-            this.cmbDepartment.Name = "cmbDepartment";
-            this.cmbDepartment.Size = new System.Drawing.Size(260, 29);
-            this.cmbDepartment.TabIndex = 123;
-            this.cmbDepartment.TextChanged += new System.EventHandler(this.cmbDepartment_TextChanged);
-            this.cmbDepartment.Enter += new System.EventHandler(this.cmbDepartment_Enter);
+            this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.panel2.BackColor = System.Drawing.Color.LemonChiffon;
+            this.panel2.Controls.Add(this.btnWorkingList);
+            this.panel2.Location = new System.Drawing.Point(1102, 3);
+            this.panel2.Name = "panel2";
+            this.panel2.Size = new System.Drawing.Size(237, 34);
+            this.panel2.TabIndex = 106;
             // 
-            // cmbConstructionPerson
+            // btnWorkingList
             // 
-            this.cmbConstructionPerson.BackColor = System.Drawing.Color.White;
-            this.cmbConstructionPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbConstructionPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbConstructionPerson.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.cmbConstructionPerson.FormattingEnabled = true;
-            this.cmbConstructionPerson.Location = new System.Drawing.Point(841, 4);
-            this.cmbConstructionPerson.Name = "cmbConstructionPerson";
-            this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 29);
-            this.cmbConstructionPerson.TabIndex = 124;
-            this.cmbConstructionPerson.TextChanged += new System.EventHandler(this.cmbConstructionPerson_TextChanged);
-            this.cmbConstructionPerson.Enter += new System.EventHandler(this.cmbConstructionPerson_Enter);
+            this.btnWorkingList.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnWorkingList.BackColor = System.Drawing.Color.DarkOrange;
+            this.btnWorkingList.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnWorkingList.ForeColor = System.Drawing.Color.Black;
+            this.btnWorkingList.Location = new System.Drawing.Point(4, 4);
+            this.btnWorkingList.Name = "btnWorkingList";
+            this.btnWorkingList.Size = new System.Drawing.Size(230, 26);
+            this.btnWorkingList.TabIndex = 12;
+            this.btnWorkingList.Text = "ä½œæˆ�çŠ¶æ…‹ã‚’è¡¨ç¤ºã�™ã‚‹";
+            this.btnWorkingList.UseVisualStyleBackColor = false;
+            this.btnWorkingList.Click += new System.EventHandler(this.btnWorkingList_Click);
             // 
-            // comboBox1
+            // Column1
             // 
-            this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.comboBox1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.comboBox1.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.comboBox1.FormattingEnabled = true;
-            this.comboBox1.Location = new System.Drawing.Point(133, 4);
-            this.comboBox1.Name = "comboBox1";
-            this.comboBox1.Size = new System.Drawing.Size(160, 29);
-            this.comboBox1.TabIndex = 114;
-            this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
-            this.comboBox1.Enter += new System.EventHandler(this.comboBox1_Enter);
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
+            this.Column1.Frozen = true;
+            this.Column1.HeaderText = "æ—¥ä»˜";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column1.Width = 70;
             // 
+            // Column4
+            // 
+            this.Column4.Frozen = true;
+            this.Column4.HeaderText = "å†…éƒ¨æ—¥ä»˜";
+            this.Column4.Name = "Column4";
+            this.Column4.ReadOnly = true;
+            this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column4.Visible = false;
+            this.Column4.Width = 5;
+            // 
+            // Column3
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle3;
+            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 = 80;
+            // 
+            // Column2
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle4;
+            this.Column2.Frozen = true;
+            this.Column2.HeaderText = "è¡Œã€€ã€€å…ˆ";
+            this.Column2.Name = "Column2";
+            this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column2.Width = 540;
+            // 
+            // Column5
+            // 
+            this.Column5.Frozen = true;
+            this.Column5.HeaderText = "é–‹å§‹æ™‚é–“";
+            this.Column5.Name = "Column5";
+            this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column8
+            // 
+            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;
+            // 
+            // Column7
+            // 
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column7.DefaultCellStyle = dataGridViewCellStyle5;
+            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;
+            // 
+            // 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 = 300;
+            // 
             // FrmDRWork
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -2278,11 +2298,11 @@
             this.pnlApprovalButton.ResumeLayout(false);
             this.tabControl1.ResumeLayout(false);
             this.tabPage1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).EndInit();
             this.tabPage2.ResumeLayout(false);
-            this.panel2.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvTransport02)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvTransport01)).EndInit();
+            this.panel2.ResumeLayout(false);
             this.ResumeLayout(false);
 
         }
@@ -2440,6 +2460,8 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
     }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWork.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWork.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWork.cs	(revision 270)
@@ -49,6 +49,8 @@
             AttendanceDate,
             WeekString,
             ActionResult,
+            StartTime,
+            Comptime,
             OverTimes,
             Comment,
         }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWork.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWork.resx	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWork.resx	(revision 270)
@@ -129,6 +129,12 @@
   <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWorkAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWorkAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWorkAuxiliary.cs	(revision 270)
@@ -229,22 +229,31 @@
                 m_DspControl[(int)DspCtrlName.ConstructionDayTo].Text = m_LastDays.ToString("00");
 
                 // æŒ‡å®šæ—¥ã�®ç¿Œæ—¥ã‚ˆã‚ŠæŒ‡å®šæ—¥æ•°åˆ†ã�®æ—¥ä»˜ã‚’å�–å¾—ã�™ã‚‹
-                string strSQL = "SELECT";
-                strSQL += " t1.d, DATE_FORMAT(C.HOLIDAY, '%Y/%m/%d') HOLIDAY, D.ACTIONRESULT, D.OVERTIMEHOURS, D.WORKINGCOMMENT";
-                strSQL += " FROM";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append("SELECT");
+                strSQL.Append(" t1.d,");
+                strSQL.Append(" DATE_FORMAT(C.HOLIDAY, '%Y/%m/%d') HOLIDAY,");
+                strSQL.Append(" D.ACTIONRESULT,");
+                strSQL.Append(" D.DAYTIMES,");
+                strSQL.Append(" D.WORKINGCOMMENT");
+                strSQL.Append(" FROM");
                 
-                strSQL += " (SELECT A1.years, A2.month, A3.days, CAST(CONCAT(A1.years, '/', A2.month, '/', A3.days) as  DATE) as d";
-                strSQL += " FROM yearmaster as A1, monthmaster as A2, daymaster as A3";
-                strSQL += string.Format(" WHERE A1.years = {0}", WorktDate.Year);
-                strSQL += string.Format(" AND A2.month = {0}", WorktDate.Month);
-                strSQL += " AND CAST(CONCAT(A1.years, '/', A2.month, '/', A3.days) as DATE) IS NOT NULL) t1";
+                strSQL.Append(" (SELECT");
+                strSQL.Append(" A1.years,");
+                strSQL.Append(" A2.month,");
+                strSQL.Append(" A3.days,");
+                strSQL.Append(" CAST(CONCAT(A1.years, '/', A2.month, '/', A3.days) as DATE) as d");
+                strSQL.Append(" FROM yearmaster as A1, monthmaster as A2, daymaster as A3");
+                strSQL.AppendFormat(" WHERE A1.years = {0}", WorktDate.Year);
+                strSQL.AppendFormat(" AND A2.month = {0}", WorktDate.Month);
+                strSQL.Append(" AND CAST(CONCAT(A1.years, '/', A2.month, '/', A3.days) as DATE) IS NOT NULL) t1");
 
-                strSQL += " LEFT JOIN HOLIDAYCALENDERMASTER C ON C.HOLIDAY = t1.d";
-                strSQL += " LEFT JOIN ATTENDANCEDAILYDATA D ON D.PERSONCODE = 20010104 AND D.ATTENDANCEDATE = t1.d";
-                strSQL += " ORDER BY t1.d, D.SEQNO";
+                strSQL.Append(" LEFT JOIN HOLIDAYCALENDERMASTER C ON C.HOLIDAY = t1.d");
+                strSQL.Append(" LEFT JOIN ATTENDANCEDAILYDATA D ON D.PERSONCODE = 20010104 AND D.ATTENDANCEDATE = t1.d");
+                strSQL.Append(" ORDER BY t1.d, D.SEQNO");
 
                 ArrayList arList = new ArrayList();
-                if (!calDB.ExecuteReader(strSQL, ref arList)) return;
+                if (!calDB.ExecuteReader(strSQL.ToString(), ref arList)) return;
                 DateTime DispDate = DateTime.Now;
                 DateTime BreakDate = DateTime.MinValue;
                 string strHoliday = string.Empty;
@@ -291,9 +300,10 @@
                 SetWorkDaysAndOverTimes();
 
                 // ç”³è«‹å�—ä»˜ç•ªå�·å�–å¾—
-                strSQL = AttendDB.CreatePrimarykeyString(PersonCode, WorktDate);
+                strSQL.Clear();
+                strSQL.Append(AttendDB.CreatePrimarykeyString(PersonCode, WorktDate));
                 AttendanceData AttendRec = new AttendanceData();
-                AttendDB.SelectAction(strSQL, ref AttendRec);
+                AttendDB.SelectAction(strSQL.ToString(), ref AttendRec);
                 m_DspControl[(int)DspCtrlName.OrderNo].Text = AttendRec.OrderNo.ToString();
 
                 // ç”³è«‹ãƒ‡ãƒ¼ã‚¿å�–å¾—
@@ -1392,7 +1402,7 @@
                 NewRec.AttendanceDate = AttendanceDate;         // æ—¥å ±ä½œæˆ�æ—¥
                 NewRec.SeqNo = LineCnt;                         // æ˜Žç´°è¡Œç•ªå�·
                 NewRec.ActionResult = ActionResult;             // è¡Œå‹•å®Ÿç¸¾
-                NewRec.OvertimeHours = OverTimes;               // æ®‹æ¥­æ™‚é–“
+                NewRec.DayTimes = OverTimes;               // æ®‹æ¥­æ™‚é–“
                 NewRec.WorkingComment = strComment;             // ã‚³ãƒ¡ãƒ³ãƒˆ
 
                 NewList.Add(NewRec);
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs	(revision 270)
@@ -648,43 +648,63 @@
             IOConstructionLedgerDetail DetailDB = new IOConstructionLedgerDetail();
             try
             {
-                int TargetCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
-                // ã�¾ã�šä½œæˆ�å¯¾è±¡å¤–ã‚’å…ƒã�«ã‚‚ã�©ã�™
-                string strUpdate = string.Format("UPDATE CONSTRUCTIONLEDGERDETAIL SET PURCHASEORDERFLG = {0}", (int)ConstructionLedgerDetail.PurOrderFlgDef.NoCreate);
-                strUpdate += string.Format(" WHERE CONSTRUCTIONCODE = {0}", TargetCode);
-                strUpdate += string.Format(" AND GROUPCOUNT = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
-                strUpdate += string.Format(" AND PURCHASEORDERFLG = {0}", (int)ConstructionLedgerDetail.PurOrderFlgDef.NotMakingData);
-                DetailDB.ExecuteNonQuery(strUpdate);
-
-                // æ¬¡ã�«ä½œæˆ�å¯¾è±¡å¤–ã�«è¨­å®šã�•ã‚Œã�Ÿã‚‚ã�®ã‚’æ›´æ–°ã�™ã‚‹
-                strUpdate = string.Format("UPDATE CONSTRUCTIONLEDGERDETAIL SET PURCHASEORDERFLG = {0}", (int)ConstructionLedgerDetail.PurOrderFlgDef.NotMakingData);
-                strUpdate += string.Format(" WHERE CONSTRUCTIONCODE = {0}", TargetCode);
-                strUpdate += string.Format(" AND GROUPCOUNT = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
-                strUpdate += " AND LINECOUNT IN (";
-                int i = 0;
+                StringBuilder strDispAllData = new StringBuilder();
+                StringBuilder strNotMake = new StringBuilder();
+                bool bFirstAll = true;
+                bool bFirstNotMake = true;
                 int LineCout = 0;
-
-                string strSubUpdate = string.Empty;
                 foreach (DataGridViewRow CurRow in dgvAllDisplay.Rows)
                 {
+                    // è¡Œå�–å¾—
+                    LineCout = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.LineCount].Value);
+
+                    // ----- è¡¨ç¤ºã�—ã�¦ã�„ã‚‹ãƒ‡ãƒ¼ã‚¿ã‚’å…¨ã�¦å¯¾è±¡ã�¨ã�™ã‚‹ãƒ©ã‚¤ãƒ³ã‚’å�–å¾—ã�™ã‚‹
+                    if (!bFirstAll) strDispAllData.Append(",");
+                    strDispAllData.AppendFormat(" {0}", LineCout);
+
+                    bFirstAll = false;
+
+                    // ----- ä½œæˆ�å¯¾è±¡å¤–ãƒ�ã‚§ãƒƒã‚¯ä»¥å¤–ã�¯å‡¦ç�†ã�—ã�ªã�„
                     if (CommonMotions.chkCellBlank(CurRow.Cells[(int)GridColumn.NotCreate].Value)) continue;
                     if (!(bool)CurRow.Cells[(int)GridColumn.NotCreate].Value) continue;
 
-                    LineCout = CommonMotions.cnvInt(CurRow.Cells[(int)GridColumn.LineCount].Value);
+                    if (!bFirstNotMake) strNotMake.Append(",");
+                    strNotMake.AppendFormat(" {0}", LineCout);
 
-                    if (i != 0) strSubUpdate += ",";
-                    strSubUpdate += string.Format(" {0}", LineCout);
-                    i++;
+                    bFirstNotMake = false;
                 }
-                if (strSubUpdate.Length == 0)
+                //if (strNotMake.Length == 0)
+                //{
+                //    MessageBox.Show("ãƒ‡ãƒ¼ã‚¿ã�Œé�¸æŠžã�•ã‚Œã�¦ã�„ã�¾ã�›ã‚“ã€‚", "é�¸æŠžã‚¨ãƒ©ãƒ¼", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                //    return;
+                //}
+
+                int TargetCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
+
+                StringBuilder strUpdate = new StringBuilder();
+                // ã�¾ã�šä½œæˆ�å¯¾è±¡å¤–ã‚’å…ƒã�«ã‚‚ã�©ã�™
+                if (strDispAllData.ToString().Length > 0)
                 {
-                    MessageBox.Show("ãƒ‡ãƒ¼ã‚¿ã�Œé�¸æŠžã�•ã‚Œã�¦ã�„ã�¾ã�›ã‚“ã€‚", "é�¸æŠžã‚¨ãƒ©ãƒ¼", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                    return;
+                    strUpdate.AppendFormat("UPDATE CONSTRUCTIONLEDGERDETAIL SET PURCHASEORDERFLG = {0}", (int)ConstructionLedgerDetail.PurOrderFlgDef.NoCreate);
+                    strUpdate.AppendFormat(" WHERE CONSTRUCTIONCODE = {0}", TargetCode);
+                    strUpdate.AppendFormat(" AND GROUPCOUNT = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
+                    strUpdate.AppendFormat(" AND PURCHASEORDERFLG = {0}", (int)ConstructionLedgerDetail.PurOrderFlgDef.NotMakingData);
+                    strUpdate.AppendFormat(" AND LINECOUNT IN ({0})", strDispAllData.ToString());
+
+                    DetailDB.ExecuteNonQuery(strUpdate.ToString());
                 }
 
-                strUpdate += strSubUpdate;
-                strUpdate += ")";
-                DetailDB.ExecuteNonQuery(strUpdate);
+                // æ¬¡ã�«ä½œæˆ�å¯¾è±¡å¤–ã�«è¨­å®šã�•ã‚Œã�Ÿã‚‚ã�®ã‚’æ›´æ–°ã�™ã‚‹
+                if (strNotMake.ToString().Length > 0)
+                {
+                    strUpdate.Clear();
+                    strUpdate.AppendFormat("UPDATE CONSTRUCTIONLEDGERDETAIL SET PURCHASEORDERFLG = {0}", (int)ConstructionLedgerDetail.PurOrderFlgDef.NotMakingData);
+                    strUpdate.AppendFormat(" WHERE CONSTRUCTIONCODE = {0}", TargetCode);
+                    strUpdate.AppendFormat(" AND GROUPCOUNT = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
+                    strUpdate.AppendFormat(" AND LINECOUNT IN ({0})", strNotMake.ToString());
+
+                    DetailDB.ExecuteNonQuery(strUpdate.ToString());
+                }
             }
             catch (Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs	(revision 270)
@@ -327,7 +327,7 @@
                 strSQL += " And (A.ConstructionCode = A1.ConstructionCode";
                 strSQL += string.Format(" And A1.ApprovalCode = {0}", ApprovalCode);
                 strSQL += string.Format(" And A1.SeqNo = 1 And A1.APPROVALSTATUS = {0})", (int)CommonDefine.ApprovalStatus.Approval);
-                strSQL += " AND (A.CONSTRUCTIONCODE = A2.CONSTRUCTIONCODE AND A2.SEQNO = 1)";
+                strSQL += " AND (A.CONSTRUCTIONCODE = A2.CONSTRUCTIONCODE AND A2.SEQNO = A11.LinkCode)";
 
                 // •”��‚ª‘I‘ð‚³‚ê‚Ä‚¢‚é�ê�‡
                 strSQL += GetDepartmentString();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.cs	(revision 270)
@@ -19,7 +19,7 @@
 using ProcessManagement.Forms.CustomControls;
 using ProcessManagement.Forms.ControlsAction;
 
-//*---------------------------- �¿‹�‚Ü‚Æ‚ß‰æ–Ê --------------------------*
+//*---------------------------- �¿‹�‚Ü‚Æ‚ß‰æ–Ê --------------------------------*
 //  2016/12/20  Ver1.0.0.0      Create Source           
 //
 //
@@ -43,8 +43,9 @@
                                                             ClsExcute.AppovalList[(int)ClsExcute.ApprovalListNo.FeePayment] };
         #endregion
 
+        #region �‡Œv�sƒJƒ‰ƒ€
         /// <summary>
-        /// �‡Œv�s
+        /// �‡Œv�sƒJƒ‰ƒ€
         /// </summary>
         private enum GoukeiRows
         {
@@ -56,12 +57,16 @@
             ‹¦—Í‹à,
             �‡Œv,
         }
+        #endregion
 
+        #region ŽQ�Æƒtƒ‰ƒO
         /// <summary>
         /// ŽQ�Æƒtƒ‰ƒO
         /// </summary>
         private bool m_EditLock = false;
+        #endregion
 
+        #region •\Ž¦ƒJƒ‰ƒ€
         /// <summary>
         /// •\Ž¦ƒJƒ‰ƒ€�idgvCompany�j
         /// </summary>
@@ -101,7 +106,8 @@
             GroupSeqNo,
             LineCount,
             No,
-            SomuSeikyu = (int)DispColumn_Project.SubConstractorName + 1,
+            DetailName = (int)DispColumn_Project.SubConstractorName + 1,
+            SomuSeikyu,
             SomuKosoku,
             SomuKanamono,
             SomuSannhaiZei,
@@ -174,9 +180,11 @@
             Bikou,
             ShohiZeiRitu,
             ConstructionLedgerLineNo,
-            ConstructionLedgerRowNo,
+            ConstructionLedgerColNo,
         }
+        #endregion
 
+        #region •\Ž¦ƒ{ƒ^ƒ“‰Ÿ‰º‚ÅŽæ“¾‚·‚éƒf�[ƒ^�€–Ú
         /// <summary>
         /// •\Ž¦ƒ{ƒ^ƒ“‰Ÿ‰º‚ÅŽæ“¾‚·‚éƒf�[ƒ^�€–Ú
         /// </summary>
@@ -209,16 +217,18 @@
             ApprovalDate,
             ApprovalEndFlg,
             SalesPersonCode,
-            ConstructionPersonCode, /*�HŽ–’S“–ŽÒ*/
+            ConstructionPersonCode,     // �HŽ–’S“–ŽÒ
             ConstrSubPersonCode,
             ConstructionInstructor,
-            DepartmentCode,/*�HŽ–’S“–ŽÒ•”��ƒR�[ƒh*/
-            PurchaseOrderMailingDate,/*’�•¶�‘—X‘—“ú*/
-            PurchaseOrderReturnDate, /*’�•¶�‘•Ô‘—“ú*/
-            PaData, // —\ŽZ�‘
-            ConstructionLedgerLineNo, // �HŽ–�Ú�×‘ä’ �s”Ô�†
-            ConstructionLedgerRowNo,  // �HŽ–�Ú�×‘ä’ —ñ”Ô�†
+            DepartmentCode,             // �HŽ–’S“–ŽÒ•”��ƒR�[ƒh
+            PurchaseOrderMailingDate,   // ’�•¶�‘—X‘—“ú
+            PurchaseOrderReturnDate,    // ’�•¶�‘•Ô‘—“ú
+            PaData,                     // —\ŽZ�‘
+            ConstructionLedgerLineNo,   // �HŽ–�Ú�×‘ä’ �s”Ô�†
+            ConstructionLedgerRowNo,    // �HŽ–�Ú�×‘ä’ —ñ”Ô�†
+            DetailName,                 // –¾�×�s–¼�Ì
         }
+        #endregion
 
         /// <summary>
         /// ‘ä’ ƒnƒ“ƒhƒ‹
@@ -249,6 +259,10 @@
 
         #region •Ï�”
 
+        #region �³”Fƒf�[ƒ^ƒNƒ‰ƒX
+        /// <summary>
+        /// �³”Fƒf�[ƒ^ƒNƒ‰ƒX
+        /// </summary>
         private class ShoninData
         {
             public int Key { get; set; }
@@ -256,6 +270,7 @@
             public int Order { get; set; }
             public int ApprovalAuthority { get; set; }
         }
+        #endregion
 
         /// <summary>
         /// ƒtƒB�[ƒ‹ƒh’l•Ï‰»ƒtƒ‰ƒO
@@ -326,13 +341,18 @@
         /// ’S“–ŽÒ�³”F�î•ñ
         /// </summary>
         PaymentApprovalInfo m_PaInfo = null;
-        #endregion
 
-        #region ˆê——•\Ž¦‘Î�Ûƒtƒ‰ƒO
         /// <summary>
-        /// •\Ž¦‘Î�Ûƒtƒ‰ƒO
+        /// �I—¹ƒ{ƒ^ƒ“‰Ÿ‰ºƒtƒ‰ƒO
         /// </summary>
-        private int m_viewTarget = 0;
+        private bool m_CloseingProcessOn = true;
+
+        // *-----* ‹¤’Ê�ˆ—��Ý’è *-----*
+        /// <summary>
+        /// ŒÄ�oŒ³�I—¹ƒtƒ‰ƒO
+        /// </summary>
+        private bool m_ParentEnd = false;
+        // *-----* ‹¤’Ê�ˆ—��Ý’è *-----*
         #endregion
 
         #region ƒvƒ�ƒpƒeƒB
@@ -387,12 +407,35 @@
         private ClsSecurityPermission.UserInfo m_UserInfo = new ClsSecurityPermission.UserInfo()
         {
             m_Type = CommonDefine.SecurityRankPos.NormalAuthority,
-            m_GeneralAffairsFlg = 0,
+            m_GeneralAffairsFlg = (int)SecurityMaster.GeneAffDef.OtherDep,
             m_SecRange = ClsSecurityPermission.SecRangeType.InCharge
         };
         #endregion
+
+        #region ‹¤’Ê�ˆ—��Ý’è
+        // *-----* ‹¤’Ê�ˆ—��Ý’è *-----*
+        /// <summary>
+        /// ŒÄ�oŒ³�I—¹ƒtƒ‰ƒO
+        /// </summary>
+        public bool ParentEnd
+        {
+            get { return m_ParentEnd; }
+            set { m_ParentEnd = value; }
+        }
+        // *-----* ‹¤’Ê�ˆ—��Ý’è *-----*
         #endregion
 
+        /// <summary>
+        /// �I—¹ƒ{ƒ^ƒ“‰Ÿ‰ºƒtƒ‰ƒO
+        /// </summary>
+        public bool CloseingProcessOn
+        {
+            get { return m_CloseingProcessOn; }
+            set { m_CloseingProcessOn = value; }
+        }
+
+        #endregion
+
         #region ƒRƒ“ƒXƒgƒ‰ƒNƒ^
         public FrmRequestSummaryList()
         {
@@ -414,6 +457,103 @@
         }
         #endregion
 
+        #region ƒtƒH�[ƒ€ƒ��[ƒh
+        /// <summary>
+        /// �‰ŠúƒtƒH�[ƒ€ƒ��[ƒh
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmRequestSummaryList_Load(object sender, EventArgs e)
+        {
+            // ’S“–ŽÒ�³”F�î•ñ‚ÌŽæ“¾
+            if (ClsExcute.ProcControlPara.Count > 0)
+            {
+                int cnt = ClsExcute.ProcControlPara.Count - 1;
+                if ((ClsExcute.ProcControlPara[cnt].ArrayParameter != null)
+                    && (ClsExcute.ProcControlPara[cnt].ArrayParameter.Count > 0))
+                {
+                    ArrayList obj = ClsExcute.ProcControlPara[cnt].ArrayParameter[0];
+                    if ((obj[0] is PaymentApprovalInfo) == true)
+                    {
+                        m_PaInfo = (PaymentApprovalInfo)obj[0];
+                    }
+                    else
+                    {
+                        m_PaInfo = null;
+                    }
+                }
+            }
+
+            // ƒRƒ“ƒ{ƒ{ƒbƒNƒXƒZƒbƒg
+            LoadTargetMonth(ref m_Payday);
+
+            // ƒ†�[ƒUŒ ŒÀ�Ý’è
+            ClsSecurityPermission.SetUserType(m_UserInfo);
+
+            // �‰Šú•\Ž¦
+            InitDataLoad();
+
+            // •\Ž¦ƒXƒ^ƒCƒ‹‚Ì•Ï�X�i‹ÆŽÒ�j
+            InitDisplayStyle(dgvCompany);
+
+            // •\Ž¦ƒXƒ^ƒCƒ‹‚Ì•Ï�X�iŒ»�ê�j
+            InitDisplayStyle(dgvProject);
+
+            // Œ»�ê’S“–ŽÒ‚Ì�ê�‡‚Í�A�‰Šú•\Ž¦‚ÍŒ»�ê’PˆÊ
+            if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.NormalAuthority)
+            {
+                rdbProject.Checked = true;
+                rdbCompany.Checked = false;
+            }
+            // ‘�–±’S“–‚Í�A�‰Šú•\Ž¦‚Í‹ÆŽÒ’PˆÊ
+            if (m_UserInfo.m_GeneralAffairsFlg == (int)SecurityMaster.GeneAffDef.GeneralDep)
+            {
+                rdbProject.Checked = false;
+                rdbCompany.Checked = true;
+            }
+
+            showView();
+            SetColumnID();
+            controlButton();
+
+            // •\Ž¦
+            DispGridData();
+
+            // *-----* �ˆ—�ˆÚ“®ƒ{ƒ^ƒ“�Ý’è *-----*
+            CreateProcessContextMenu();
+            // *-----* �ˆ—�ˆÚ“®ƒ{ƒ^ƒ“�Ý’è *-----*
+
+            // �\�¿�E�³”F•\Ž¦�ˆ—�
+            InitApprovalDisplay();
+
+            // �³”F‰æ–Ê‚Ì�u�³”F‘Î�Ûƒf�[ƒ^‚ðŒ©‚é�v‚©‚ç‚Ì‹N“®Žž‚Í�³”Fƒ{ƒ^ƒ“‚Ì•\Ž¦‚ª‚ ‚é
+            bool bApproval = ClsApprovalPermission.ExceApprovalScreen((int)ClsExcute.SubFormExecuteNo.ApprovalPerson);
+            if (bApproval)
+            {
+                // �³”F‘Î�ÛƒR�[ƒh‚ðŽæ“¾‚·‚é
+                int ApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals(s_MyProcessName[m_Labourkind])).Key;
+                // �HŽ–ˆÄŒ�‚ÌŠÇ—�•”��‚ðŽæ“¾‚·‚é
+                //int DepartmentCode = ClsApprovalPermission.GetFromPersonAndApprovalTheDepartment(m_PersonCode, ApprovalCode, m_CreateDate, m_SeqNo);
+                int DepartmentCode = CommonMotions.LoginUserData.DepartmentCode;
+                // ˆÄŒ�‚É‘Î‚µ‚Ä�\�¿‚ª‚³‚ê‚Ä‚¢‚é‚©‚ðŠm”F‚·‚é
+                bool Pettition = false;
+                if ((m_PaInfo is PaymentApprovalInfo))
+                {
+                    Pettition = ClsApprovalPermission.CheckPersonPetition2(m_PaInfo.ApprovalPerson, ApprovalCode, m_PaInfo.ApprovalDate, (int)CommonDefine.s_Default_OrderNo);
+                }
+                // ƒ�ƒOƒCƒ“ŽÒ‚ª�³”FŽÒ‚©‚ðŠm”F‚·‚é
+                bool Approvaler = ClsApprovalPermission.CheckUserForApprover(ApprovalCode, DepartmentCode);
+                // �\�¿’†‚Åƒ�ƒOƒCƒ“ŽÒ‚ª�³”FŽÒ‚Ì�ê�‡‚Í�³”Fƒ{ƒ^ƒ“‚ð•\Ž¦‚·‚é
+                if (Pettition && Approvaler)
+                {
+                    pnlApprovalButton.Visible = true;
+                }
+            }
+
+            m_initDataLoad = false;
+        }
+        #endregion
+
         #region ƒZƒ‹‚Ì“ü—Í‘O�ˆ—�
         /// <summary>
         /// ƒZƒ‹‚Ì“ü—Í‘O�ˆ—�
@@ -461,9 +601,6 @@
         /// <param name="e"></param>
         private void FrmRequestSummaryList_FormClosing(object sender, FormClosingEventArgs e)
         {
-            // �I—¹ŽžƒTƒuƒtƒH�[ƒ€ƒNƒ��[ƒY
-            TerminatingProcess();
-
             if (m_bChengeAns)
             {
                 if (MessageBox.Show("ƒf�[ƒ^‚É•Ï�X‚ª‚ ‚è‚Ü‚·�A“o˜^‚¹‚¸‚É�I—¹‚µ‚Ä‚æ‚ë‚µ‚¢‚Å‚·‚©�H�B", "�I—¹Šm”F"
@@ -473,6 +610,10 @@
                     return;
                 }
             }
+
+            // �I—¹ŽžƒTƒuƒtƒH�[ƒ€ƒNƒ��[ƒY
+            TerminatingProcess();
+
             // ‘Oƒvƒ�ƒZƒX‚É–ß‚é
             if (m_CloseingProcessOff) ClsExcute.BackProcess();
         }
@@ -522,11 +663,12 @@
                 if (MessageBox.Show("•\Ž¦’†‚Ìƒf�[ƒ^‚ð“o˜^‚µ‚Ü‚·�B", "“o˜^Šm”F", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) return;
 
                 // ƒf�[ƒ^“o˜^
-                if (!DataEntry()) return;
+                if (!DataEntryProcess()) return;
 
                 // ƒf�[ƒ^•\Ž¦
                 if (!DispGridData()) return;
 
+                // �I—¹ƒ�ƒbƒZ�[ƒW•\Ž¦
                 string strProcName = string.Empty;
                 if (m_Labourkind == (int)CommonDefine.LabourKinds.Labor)
                 {
@@ -546,99 +688,6 @@
         }
         #endregion
 
-        #region ƒtƒH�[ƒ€ƒ��[ƒh
-        /// <summary>
-        /// �‰ŠúƒtƒH�[ƒ€ƒ��[ƒh
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmRequestSummaryList_Load(object sender, EventArgs e)
-        {
-            // ’S“–ŽÒ�³”F�î•ñ‚ÌŽæ“¾
-            if (ClsExcute.ProcControlPara.Count > 0)
-            {
-                if (ClsExcute.ProcControlPara.Count > 0)
-                {
-                    if ((ClsExcute.ProcControlPara[ClsExcute.ProcControlPara.Count - 1].ArrayParameter != null)
-                        && (ClsExcute.ProcControlPara[ClsExcute.ProcControlPara.Count - 1].ArrayParameter.Count > 0))
-                    {
-                        ArrayList obj = ClsExcute.ProcControlPara[ClsExcute.ProcControlPara.Count - 1].ArrayParameter[0];
-                        m_PaInfo = (PaymentApprovalInfo)obj[0];
-                        if (m_PaInfo is PaymentApprovalInfo != true)
-                        {
-                            m_PaInfo = null;
-                        }
-                    }
-                }
-            }
-
-            // ƒRƒ“ƒ{ƒ{ƒbƒNƒXƒZƒbƒg
-            LoadTargetMonth(ref m_Payday);
-
-            // ƒ†�[ƒUŒ ŒÀ�Ý’è
-            ClsSecurityPermission.SetUserType(m_UserInfo);
-
-            // �‰Šú•\Ž¦
-            InitDataLoad();
-
-            // •\Ž¦ƒXƒ^ƒCƒ‹‚Ì•Ï�X�i‹ÆŽÒ�j
-            InitDisplayStyle(dgvCompany);
-
-            // •\Ž¦ƒXƒ^ƒCƒ‹‚Ì•Ï�X�iŒ»�ê�j
-            InitDisplayStyle(dgvProject);
-
-            // Œ»�ê’S“–ŽÒ‚Ì�ê�‡‚Í�A�‰Šú•\Ž¦‚ÍŒ»�ê’PˆÊ
-            if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.NormalAuthority)
-            {
-                rdbProject.Checked = true;
-                rdbCompany.Checked = false;
-            }
-            // ‘�–±’S“–‚Í�A�‰Šú•\Ž¦‚Í‹ÆŽÒ’PˆÊ
-            if (m_UserInfo.m_GeneralAffairsFlg == 1)
-            {
-                rdbProject.Checked = false;
-                rdbCompany.Checked = true;
-            }
-            m_viewTarget = rdbCompany.Checked == true ? 0 : 1;
-
-            showView();
-            SetColumnID();
-            controlButton();
-
-            // •\Ž¦
-            DispGridData();
-
-            // �\�¿�E�³”F•\Ž¦�ˆ—�
-            InitApprovalDisplay();
-
-            // �³”F‰æ–Ê‚Ì�u�³”F‘Î�Ûƒf�[ƒ^‚ðŒ©‚é�v‚©‚ç‚Ì‹N“®Žž‚Í�³”Fƒ{ƒ^ƒ“‚Ì•\Ž¦‚ª‚ ‚é
-            bool bApproval = ClsApprovalPermission.ExceApprovalScreen((int)ClsExcute.SubFormExecuteNo.ApprovalPerson);
-            if (bApproval)
-            {
-                // �³”F‘Î�ÛƒR�[ƒh‚ðŽæ“¾‚·‚é
-                int ApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals(s_MyProcessName[m_Labourkind])).Key;
-                // �HŽ–ˆÄŒ�‚ÌŠÇ—�•”��‚ðŽæ“¾‚·‚é
-                //int DepartmentCode = ClsApprovalPermission.GetFromPersonAndApprovalTheDepartment(m_PersonCode, ApprovalCode, m_CreateDate, m_SeqNo);
-                int DepartmentCode = CommonMotions.LoginUserData.DepartmentCode;
-                // ˆÄŒ�‚É‘Î‚µ‚Ä�\�¿‚ª‚³‚ê‚Ä‚¢‚é‚©‚ðŠm”F‚·‚é
-                bool Pettition = false;
-                if ((m_PaInfo is PaymentApprovalInfo))
-                {
-                    Pettition = ClsApprovalPermission.CheckPersonPetition2(m_PaInfo.ApprovalPerson, ApprovalCode, m_PaInfo.ApprovalDate, (int)CommonDefine.s_Default_OrderNo);
-                }
-                // ƒ�ƒOƒCƒ“ŽÒ‚ª�³”FŽÒ‚©‚ðŠm”F‚·‚é
-                bool Approvaler = ClsApprovalPermission.CheckUserForApprover(ApprovalCode, DepartmentCode);
-                // �\�¿’†‚Åƒ�ƒOƒCƒ“ŽÒ‚ª�³”FŽÒ‚Ì�ê�‡‚Í�³”Fƒ{ƒ^ƒ“‚ð•\Ž¦‚·‚é
-                if (Pettition && Approvaler)
-                {
-                    pnlApprovalButton.Visible = true;
-                }
-            }
-
-            m_initDataLoad = false;
-        }
-        #endregion
-
         #region ƒtƒH�[ƒ€KeyDown
         /// <summary>
         /// EntryƒL�[‚Å‚ÌˆÚ“®�ˆ—�
@@ -679,7 +728,6 @@
                 }
             }
 
-            m_viewTarget = rdbCompany.Checked == true ? 0 : 1;
             showView();
             SetColumnID();
             controlButton();
@@ -718,379 +766,6 @@
         }
         #endregion
 
-        #region �³”FŽÒ�Ý’è�i’S“–ŽÒ–¢�³”F‚Ì�ê�‡�j
-        /// <summary>
-        /// �³”FŽÒ�Ý’è�i’S“–ŽÒ–¢�³”F‚Ì�ê�‡�j
-        /// </summary>
-        /// <param name="dgv"></param>
-        /// <param name="iRowIndex"></param>
-        /// <param name="lstDefaultShonin"></param>
-        /// <returns></returns>
-        private bool SetDefaultShonin(DataGridView dgv, int iRowIndex, int DepartmentCode, ref int DataCount, List<ShoninData> lstDefaultShonin = null)
-        {
-            int iShoninColumn = 0;
-
-            try
-            {
-                if (lstDefaultShonin == null)
-                {
-                    lstDefaultShonin = new List<ShoninData>();
-                    // ’S“––¢�³”FŽž‚Ì�³”FŽÒ–¼�ÌŽæ“¾
-                    if (!GetShouninDefault(DepartmentCode, ref lstDefaultShonin)) return false;
-                }
-
-                // ’S“–ŽÒ–¢�³”Fƒf�[ƒ^
-                iShoninColumn = (int)DispColumn.Shonin1Code;
-                foreach (ShoninData work in lstDefaultShonin)
-                {
-                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = work.Key; // �³”FŽÒƒR�[ƒh
-                    dgv.Rows[iRowIndex].Cells[iShoninColumn].Style.ForeColor = Color.Gray;
-                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = work.Value;    // �³”FŽÒ–¼�iˆóŠÓ•\Ž¦–¼�j
-                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = "";       // �³”F“ú•t
-                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = work.ApprovalAuthority; // �³”FŽÒŒ ŒÀ‹æ•ª
-                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = work.Order; // �³”FŽÒ�‡”Ô
-                    DataCount++;
-                }
-
-                return true;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-        #endregion
-
-        #region Žx•¥–¾�×ƒf�[ƒ^Šm”F
-        /// <summary>
-        /// Žx•¥–¾�×ƒf�[ƒ^Šm”F
-        /// </summary>
-        /// <param name="CompanyCode"></param>
-        /// <param name="SeqNo"></param>
-        /// <param name="LineCount"></param>
-        /// <returns></returns>
-        private int CheckPaymentDataDetail(int CompanyCode, int SeqNo, int LineCount)
-        {
-            IOPaymentDataDetail IoPdD;
-            DataGridView dgv;
-            try
-            {
-                IoPdD = new IOPaymentDataDetail();
-                List<PaymentDataDetail> PdDList = new List<PaymentDataDetail>();
-
-                dgv = getShowingView();
-
-
-                string sWhere = IoPdD.CreatePrimarykeyString(CompanyCode, m_Select_TargetDate, SeqNo, LineCount);
-
-                if (!IoPdD.SelectAction(sWhere, ref PdDList))
-                {
-                    MessageBox.Show("ƒf�[ƒ^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½", "Œ»�ê�í�œ", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                    return -1;
-                }
-
-                //�@ƒf�[ƒ^‚ª‘¶�Ý‚µ‚Ä‚¢‚é���HŽ–’S“–ŽÒ“ü—Í—“‚ª“ü—Í‚³‚ê‚Ä‚¢‚é
-                return PdDList.Count;
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return -1;
-            }
-            finally
-            {
-                IoPdD = null;
-            }
-        }
-        #endregion
-
-        #region Žx•¥�³”F�î•ñƒf�[ƒ^‚æ‚è�A�³”FŽÒ‚ðŽæ“¾
-        /// <summary>
-        /// Žx•¥�³”F�î•ñƒf�[ƒ^‚æ‚è�A�³”FŽÒ‚ðŽæ“¾
-        /// </summary>
-        /// <param name="CompanyCode"></param>
-        /// <param name="SeqNo"></param>
-        /// <param name="LineCuont"></param>
-        /// <param name="PaIList"></param>
-        /// <returns></returns>
-        private bool GetShonin(int CompanyCode, int SeqNo, int LineCuont, ref List<PaymentApprovalInfo> PaIList)
-        {
-            PaymentApprovalInfo Pai = new PaymentApprovalInfo();
-            IOPaymentApprovalInfo IoPai = new IOPaymentApprovalInfo();
-            PaIList = new List<PaymentApprovalInfo>();
-            try
-            {
-                StringBuilder sSql = new StringBuilder();
-                sSql.AppendFormat(" where CompanyCode = {0}", CompanyCode);
-                sSql.AppendFormat(" and TargetDate = {0}", m_Select_TargetDate);
-                sSql.AppendFormat(" and SeqNo = {0}", SeqNo);
-                sSql.AppendFormat(" and LineCount = {0}", LineCuont);
-                sSql.Append(" order by ApprovalNo");
-                if (!IoPai.SelectAction(sSql.ToString(), ref PaIList)) return false;
-
-                return true;
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                IoPai = null;
-            }
-        }
-        #endregion
-
-        #region ’S“––¢�³”F‚Ì�³”FŽÒƒŠƒXƒg
-        /// <summary>
-        /// ’S“––¢�³”F‚Ì�³”FŽÒƒŠƒXƒg
-        /// </summary>
-        /// <param name="AmList"></param>
-        /// <returns></returns>
-        private bool GetShouninDefault(int DepartmentCode, ref List<ShoninData> AmList)
-        {
-            IOMApproval IoAm = new IOMApproval();
-            ArrayList arDataAm = new ArrayList();
-            StringBuilder sql = new StringBuilder();
-            AmList = new List<ShoninData>();
-            try
-            {
-                sql.AppendLine("select Am.APPROVALPERSON,Picm.SealPrintName,Am.ApprovalAuthority ");
-                sql.AppendLine("from ApprovalMaster as Am left join PersonInChargeMaster as Picm on Am.APPROVALPERSON = Picm.PERSONCODE ");
-                // ApprovalListNo ‚ÌƒR�[ƒh‚ÅŽæ“¾‚·‚é
-                int iApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals(s_MyProcessName[m_Labourkind])).Key;
-                sql.AppendFormat("where Am.APPROVALCODE = {0} ", iApprovalCode);
-                sql.AppendFormat("and Am.DepartmentCode = {0} ", DepartmentCode);
-                sql.AppendLine("order by Am.SEQNO desc ");
-
-                if (!IoAm.ExecuteReader(sql.ToString(), ref arDataAm)) return false;
-                AmList = new List<ShoninData>();
-                int Order = 1;
-                foreach (object[] work in arDataAm)
-                {
-                    AmList.Add(new ShoninData()
-                    {
-                        Key = CommonMotions.cnvInt(work[0]),
-                        Value = CommonMotions.cnvString(work[1]),
-                        Order = Order,
-                        ApprovalAuthority = CommonMotions.cnvInt(work[2])
-                    });
-                    Order++;
-                }
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                IoAm = null;
-            }
-        }
-        #endregion
-
-        #region ƒf�[ƒ^Žæ“¾Žž�A�‡Œv‹àŠzŽZ�o
-        /// <summary>
-        /// ƒf�[ƒ^Žæ“¾Žž�A�‡Œv‹àŠzŽZ�o
-        /// </summary>
-        /// <param name="dgv">‘Î�ÛƒOƒŠƒbƒh</param>
-        /// <param name="GoukeiCd">�‡Œv’PˆÊ‚ÌƒR�[ƒh</param>
-        private void setGoukei_DataDisp(DataGridView dgv, int GoukeiCd)
-        {
-            int iColIndex = 0;
-
-
-            // •K—v�s’Š�o ˜A”Ô�A�s”Ô�†�¸�‡
-            DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                              && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
-                                                                              && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == GoukeiCd)
-                                                                        .OrderBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
-                                                                        .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
-                                                                        .ToArray();
-            foreach (DataGridViewRow row in Rows)
-            {
-                // ‹¦—Í‹à�Ý’è
-                SetKyoryokukin(dgv, row.Index, m_GoukeiCode_Column);
-
-                // ŽŸ‰ñŒJ‰z
-                dgv[(int)DispColumn.JikaiKurikosi, row.Index].Value = CommonMotions.cnvInt(dgv[(int)DispColumn.SomuSeikyu, row.Index].Value) - (CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSeikyu, row.Index].Value) + CommonMotions.cnvInt(dgv[(int)DispColumn.KojiNebiki, row.Index].Value) + CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSousai, row.Index].Value));
-            }
-
-            ShoukeiSanshutu((int)DispColumn.SomuSeikyu, m_GoukeiCode_Column, GoukeiCd);
-            ShoukeiSanshutu((int)DispColumn.SomuKosoku, m_GoukeiCode_Column, GoukeiCd);
-            ShoukeiSanshutu((int)DispColumn.SomuKanamono, m_GoukeiCode_Column, GoukeiCd);
-            ShoukeiSanshutu((int)DispColumn.SomuSannhaiZei, m_GoukeiCode_Column, GoukeiCd);
-
-            ShoukeiSanshutu((int)DispColumn.KojiSeikyu, m_GoukeiCode_Column, GoukeiCd);
-
-            ShoukeiSanshutu((int)DispColumn.KojiNebiki, m_GoukeiCode_Column, GoukeiCd);
-            ShoukeiSanshutu((int)DispColumn.KojiSousai, m_GoukeiCode_Column, GoukeiCd);
-            ShoukeiSanshutu((int)DispColumn.JikaiKurikosi, m_GoukeiCode_Column, GoukeiCd);
-
-            ShoukeiSanshutu((int)DispColumn.KojiKosoku, m_GoukeiCode_Column, GoukeiCd);
-            ShoukeiSanshutu((int)DispColumn.KojiKanamono, m_GoukeiCode_Column, GoukeiCd);
-            ShoukeiSanshutu((int)DispColumn.KojiSannhaiZei, m_GoukeiCode_Column, GoukeiCd);
-            ShoukeiSanshutu((int)DispColumn.KyoryokuKin, m_GoukeiCode_Column, GoukeiCd);
-
-            // ‘�–±�‡Œv—“
-            iColIndex = (int)DispColumn.SomuKosoku;
-            foreach (GoukeiRows i in Enum.GetValues(typeof(GoukeiRows)))
-            {
-                if (i == GoukeiRows.�¬Œv)
-                    continue;
-                if (i == GoukeiRows.‹¦—Í‹à)
-                    break;
-
-                // —ñ�Ý’è
-                int ColIndex = (int)DispColumn.SomuSeikyu;
-
-                if (i == GoukeiRows.�Á”ï�Å)
-                {
-                    // �sŒŸ�õ
-                    int RowIndex = SearchRowIndex(m_GoukeiCode_Column, GoukeiCd, i);
-                    // �¬Œv�sŒŸ�õ
-                    int ShoukeiRowIndex = SearchRowIndex(m_GoukeiCode_Column, GoukeiCd, GoukeiRows.�¬Œv);
-                    if (ShoukeiRowIndex == -1) return;
-
-                    //�¦Œã‚É‰ïŽÐ�î•ñ‚©‚çŽæ“¾‚³‚ê‚é (Žb’è“I‚É’è�”’l—˜—p)                        �@
-                    //dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value) * CommonMotions.cnvDouble(dgv.CurrentRow.Cells[(int)DispColumn.ShohiZeiRitu].Value);
-                    //dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value) * 0.08);
-                    dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value)
-                                                                            * (CommonMotions.SystemMasterData.ConsumptionTax / 100));
-                }
-                else
-                {
-                    SetSubGoukei(dgv, ColIndex, iColIndex, m_GoukeiCode_Column, GoukeiCd, i);
-                    iColIndex++;
-                }
-
-            }
-
-
-            // �HŽ–�‡Œv—“
-            iColIndex = (int)DispColumn.KojiKosoku;
-            foreach (GoukeiRows i in Enum.GetValues(typeof(GoukeiRows)))
-            {
-                if (i == GoukeiRows.�¬Œv)
-                    continue;
-
-                // —ñ�Ý’è
-                int ColIndex = (int)DispColumn.KojiSeikyu;
-
-                if (i == GoukeiRows.�Á”ï�Å)
-                {
-                    // �sŒŸ�õ
-                    int RowIndex = SearchRowIndex(m_GoukeiCode_Column, GoukeiCd, i);
-                    // �¬Œv�sŒŸ�õ
-                    int ShoukeiRowIndex = SearchRowIndex(m_GoukeiCode_Column, GoukeiCd, GoukeiRows.�¬Œv);
-
-                    if (RowIndex < 0 || ShoukeiRowIndex < 0) return;
-
-                    //�¦Œã‚É‰ïŽÐ�î•ñ‚©‚çŽæ“¾‚³‚ê‚é (Žb’è“I‚É’è�”’l—˜—p)                    �@
-                    //dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value) * CommonMotions.cnvDouble(dgv.CurrentRow.Cells[(int)DispColumn.ShohiZeiRitu].Value);
-                    //dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value) * 0.08);
-                    dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value)
-                                                                            * (CommonMotions.SystemMasterData.ConsumptionTax / 100));
-                }
-                else
-                {
-                    SetSubGoukei(dgv, ColIndex, iColIndex, m_GoukeiCode_Column, GoukeiCd, i);
-                    iColIndex++;
-                }
-
-            }
-
-            // �Å�I�‡Œv
-            setGoukei(m_GoukeiCode_Column, GoukeiCd);
-        }
-        #endregion
-
-        #region �‡Œv�s�ì�¬
-        /// <summary>
-        /// �‡Œv�s�ì�¬
-        /// </summary>
-        /// <param name="dgv">‘Î�ÛƒOƒŠƒbƒh</param>
-        /// <param name="GoukeiCD">�‡Œv’PˆÊƒR�[ƒh</param>
-        /// <param name="DispOrder">‹¦—Í‰ïŽÐ•\Ž¦�‡</param>
-        /// <param name="StartIndex">�s�ì�¬ˆÊ’u</param>
-        private void MakeGoukeiGyo(DataGridView dgv, int GoukeiCD, int DispOrder = 0, int StartIndex = -1)
-        {
-            try
-            {
-                int cnt = 0;
-                if (StartIndex != -1)
-                {
-                    cnt = StartIndex;
-                }
-
-                DataGridViewRow[] list = new DataGridViewRow[(int)GoukeiRows.�‡Œv];
-                foreach (GoukeiRows i in Enum.GetValues(typeof(GoukeiRows)))
-                {
-                    DataGridViewRow row = new DataGridViewRow();
-                    row.CreateCells(dgv);
-
-                    string Money = "";
-                    if (i == GoukeiRows.�¬Œv)
-                    {
-                        Money = "0";
-                    }
-
-                    if (dgvCompany.Visible == true)
-                    {
-                        row.SetValues(new object[] { DispOrder, "", "", DataRowState.Unchanged, 1, (int)i, 0, 0, 0, "", GoukeiCD, "", "", "", Enum.GetName(typeof(GoukeiRows), i), 0, Money, Money, Money, 0, Money, Money, Money, Money, Money, Money, "", 0, -1, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" });
-                    }
-                    else
-                    {
-                        row.SetValues(new object[] { DispOrder, "", "", DataRowState.Unchanged, 1, (int)i, 0, 0, 0, "", GoukeiCD, "", "", "", Enum.GetName(typeof(GoukeiRows), i), 0, Money, Money, Money, 0, Money, Money, Money, Money, Money, Money, "", 0, -1, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" });
-                    }
-                    row.ReadOnly = true;
-                    switch (i)
-                    {
-                        case GoukeiRows.�¬Œv:
-                            //row.DefaultCellStyle.BackColor = Color.Khaki;
-                            row.DefaultCellStyle.BackColor = Color.LightGoldenrodYellow;
-                            break;
-                        case GoukeiRows.�‡Œv:
-                            //row.DefaultCellStyle.BackColor = Color.Yellow;
-                            row.DefaultCellStyle.BackColor = Color.DarkGray;
-                            break;
-                        default:
-                            //row.DefaultCellStyle.BackColor = Color.Aqua;
-                            row.DefaultCellStyle.BackColor = Color.LightGray;
-                            break;
-                    }
-
-                    if (StartIndex != -1)
-                    {
-                        dgv.Rows.Insert(cnt++, row);
-                    }
-                    else
-                    {
-                        list[(int)i - 1] = row;
-                    }
-                }
-
-                if (StartIndex == -1)
-                {
-                    dgv.Rows.AddRange(list);
-                }
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
         #region ‹ÆŽÒ’Ç‰Áƒ{ƒ^ƒ“‰Ÿ‰ºŽž
         /// <summary>
         /// ‹ÆŽÒ’Ç‰Áƒ{ƒ^ƒ“‰Ÿ‰ºŽž
@@ -1131,73 +806,12 @@
         }
         #endregion
 
-        #region ’�•¶�‘—X‘—�E’�•¶�‘•Ô‘—�E—\ŽZ�‘‚Ì’lŽæ“¾
+        #region �s�ó‘Ô‚ÌŽæ“¾
         /// <summary>
-        /// ’�•¶�‘—X‘—�E’�•¶�‘•Ô‘—�E—\ŽZ�‘‚Ì’lŽæ“¾
+        /// �s�ó‘Ô‚ÌŽæ“¾
         /// </summary>
-        /// <param name="IoCbi"></param>
-        /// <param name="ConstructionCode"></param>
-        /// <param name="arData"></param>
+        /// <param name="target"></param>
         /// <returns></returns>
-        private bool GetMarubatu(IOConstructionBaseInfo IoCbi, int ConstructionCode, ref ArrayList arData)
-        {
-            StringBuilder sql = new StringBuilder();
-
-            try
-            {
-                sql.AppendLine("select  ");
-                sql.AppendLine(" case ifnull(Cbi.PurchaseOrderMailingDate,'2001-01-01') when '2001-01-01' then '�~'   ");
-                sql.AppendLine("																	      else '�›'  ");
-                sql.AppendLine(" end as PurchaseOrderMailingDate, /*’�•¶�‘—X‘—“ú*/ ");
-                sql.AppendLine(" case ifnull(Cbi.PurchaseOrderReturnDate,'2001-01-01') when '2001-01-01' then '�~'   ");
-                sql.AppendLine("																	      else '�›'  ");
-                sql.AppendLine(" end as PurchaseOrderReturnDate,  /*’�•¶�‘•Ô‘—“ú*/ ");
-                sql.AppendLine(" case ifnull(Pa.PERSONCODE,0) when 0 then '�~' /* —\ŽZ�‘ */ ");
-                sql.AppendLine("							  else '�›'   ");
-                sql.AppendLine(" end as PaData   ");
-                sql.AppendLine("from ConstructionBaseInfo as Cbi left join (PersonInChargeMaster as Picm2 left join ApprovalMaster as Am on Picm2.DEPARTMENTCODE = Am.DEPARTMENTCODE and Am.ApprovalCode = 3 and ApprovalAuthority = 1)   ");
-                sql.AppendLine("													on Cbi.ConstructionPersonCode = Picm2.PERSONCODE  ");
-                sql.AppendLine("                                 left join ProcessApproval as Pa on Cbi.CONSTRUCTIONCODE = Pa.CONSTRUCTIONCODE and Am.APPROVALPERSON = Pa.PERSONCODE and Pa.SEQNO > 1 and Pa.APPROVALSTATUS = 2 ");
-                sql.AppendFormat("where Cbi.CONSTRUCTIONCODE = {0} ", ConstructionCode);
-                sql.AppendLine("group by Cbi.PurchaseOrderMailingDate, ");
-                sql.AppendLine("Cbi.PurchaseOrderReturnDate, ");
-                sql.AppendLine("Pa.PERSONCODE ");
-
-                // SQLŽÀ�s
-                if (!IoCbi.ExecuteReader(sql.ToString(), ref arData)) return false;
-                if (arData.Count == 0) return false;
-
-
-                return true;
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-
-        #endregion
-
-        #region ‹ÆŽÒ�EŒ»�êŠeƒR�[ƒh‚Æ–¼�Ì‚Ì�s”Ô�†Žæ“¾
-        /// <summary>
-        ///  ‹ÆŽÒ�EŒ»�êŠeƒR�[ƒh‚Æ–¼�Ì‚Ì�s”Ô�†Žæ“¾
-        /// </summary>
-        private void SetColumnID()
-        {
-            m_Company_Column = dgvCompany.Visible == true ? (int)DispColumn_Company.SubConstractorCode : (int)DispColumn_Project.SubConstractorCode;
-            m_Company_DispColumn = dgvCompany.Visible == true ? (int)DispColumn_Company.CompanyCode : (int)DispColumn_Project.CompanyCode;
-            m_CompanyNM_Column = dgvCompany.Visible == true ? (int)DispColumn_Company.SubConstractorName : (int)DispColumn_Project.SubConstractorName;
-
-            m_Genba_Column = dgvCompany.Visible == true ? (int)DispColumn_Company.GengaCode : (int)DispColumn_Project.GengaCode;
-            m_GenbaNM_Column = dgvCompany.Visible == true ? (int)DispColumn_Company.GengaName : (int)DispColumn_Project.GengaName;
-
-            m_GoukeiCode_Column = dgvCompany.Visible == true ? (int)DispColumn_Company.SubConstractorCode : (int)DispColumn_Project.GengaCode;
-        }
-        #endregion
-
-        #region cnvRowState
         private DataRowState cnvRowState(object target)
         {
             DataRowState Result = DataRowState.Detached;
@@ -1217,160 +831,10 @@
         }
         #endregion
 
-        #region �s’Ç‰Á
+        #region ƒOƒŠƒbƒhƒZƒ‹’l•Ï‰»
         /// <summary>
-        /// �V‹K�s’Ç‰Á
+        /// ƒOƒŠƒbƒhƒZƒ‹’l•Ï‰»
         /// </summary>
-        /// <param name="CompanyCode">‹ÆŽÒƒR�[ƒh</param>
-        /// <param name="CompanyName">‹ÆŽÒ–¼</param>
-        /// <param name="GenbaCode">Œ»�êƒR�[ƒh</param>
-        /// <param name="No">No</param>
-        /// <param name="iGroupSeqNo">˜A”Ô</param>
-        /// <param name="iIndex">ƒf�[ƒ^�ì�¬ˆÊ’u</param>
-        /// <param name="GenbaName">Œ»�ê–¼</param>
-        private void MakeNewRow(int CompanyCode, string CompanyName, int GenbaCode, int No, ref int MakeIndex, int iGroupSeqNo = -1, int iIndex = -1, string GenbaName = "")
-        {
-            DataGridView dgv = getShowingView();
-            int iLineCnt = 0;
-            int iGoukeiSeqNo = 0;
-            int iGoukeiCode = m_viewTarget == 0 ? CompanyCode : GenbaCode;
-            try
-            {
-                // �‡Œv—p�s”Ô�†
-                string cell = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == iGoukeiCode
-                                                                        && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                        && cnvRowState(x.Cells[(int)DispColumn.RowState].Value) != DataRowState.Deleted)
-                                                                .Max(x => (string)x.Cells[(int)DispColumn.GoukeiSeqNo].Value.ToString());
-                if (cell == null)
-                {
-                    iGoukeiSeqNo = 1;
-                }
-                else
-                {
-                    iGoukeiSeqNo = CommonMotions.cnvInt(cell) + 1;
-                }
-
-                // ˜A”Ô
-                cell = null;
-                if (iGroupSeqNo == -1)
-                {
-                    cell = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
-                                                                            && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
-                                                                  .Max(x => (string)x.Cells[(int)DispColumn.GroupSeqNo].Value.ToString());
-                    if (cell == null)
-                    {
-                        iGroupSeqNo = 1;
-                    }
-                    else
-                    {
-                        iGroupSeqNo = CommonMotions.cnvInt(cell) + 1;
-                    }
-                }
-
-                // �s”Ô�†
-                string lineCnt = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
-                                                                          && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == iGroupSeqNo
-                                                                          && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
-                                                                 .Max(x => (string)x.Cells[(int)DispColumn.LineCount].Value.ToString());
-                if (lineCnt == null)
-                {
-                    iLineCnt = 1;
-                }
-                else
-                {
-                    iLineCnt = CommonMotions.cnvInt(lineCnt) + 1;
-                }
-
-                if (iIndex == -1)
-                {
-                    iIndex = getNewIndexNo();
-                    dgv.Rows.Add(iIndex
-                                        , CompanyCode.ToString()
-                                        , CompanyName);
-                    MakeIndex = iIndex;
-                }
-                else
-                {
-                    dgv.Rows.Insert(iIndex
-                                        , CompanyCode.ToString()
-                                        , CompanyName);
-                }
-
-
-                dgv.Rows[iIndex].Cells[(int)DispColumn.CompanyDispOrder].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.ApprovalEndFlg].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.UpdateDate].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.RowState].Value = DataRowState.Added;   // ’Ç‰Á
-                dgv.Rows[iIndex].Cells[(int)DispColumn.RowVisible].Value = 1;   // ‰ÂŽ‹
-                dgv.Rows[iIndex].Cells[(int)DispColumn.RowType].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.No].Value = No == 0 ? "" : CommonMotions.cnvString(No);
-                dgv.Rows[iIndex].Cells[(int)DispColumn.GoukeiSeqNo].Value = iGoukeiSeqNo;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.GroupSeqNo].Value = iGroupSeqNo;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.LineCount].Value = iLineCnt;
-
-                dgv.Rows[iIndex].Cells[m_Company_Column].Value = CompanyCode;
-                dgv.Rows[iIndex].Cells[m_Company_DispColumn].Value = CompanyCode;
-                dgv.Rows[iIndex].Cells[m_CompanyNM_Column].Value = CompanyName;
-                dgv.Rows[iIndex].Cells[m_CompanyNM_Column].ToolTipText = CompanyName;
-                dgv.Rows[iIndex].Cells[m_Genba_Column].Value = GenbaCode;
-                dgv.Rows[iIndex].Cells[m_GenbaNM_Column].Value = GenbaName != "" ? GenbaName : "•s–¾";
-
-                dgv.Rows[iIndex].Cells[(int)DispColumn.SomuSeikyu].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.SomuKosoku].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.SomuKanamono].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.SomuSannhaiZei].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiSeikyu].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiNebiki].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiSousai].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.JikaiKurikosi].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiKosoku].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiKanamono].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiSannhaiZei].Value = 0;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.KyoryokuKin].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.KyoryokuKinRitu].Value = 0;// �¦•Ï�X•K—v
-
-                // ˆê’UƒZƒ‹‚Ì’l•Ï�XƒCƒxƒ“ƒg‚ð–³Œø‚É‚·‚é
-                dgv.CellValueChanged -= DataGridView_CellValueChanged;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.KyoryokuUmu].Value = -1;
-                // ƒZƒ‹‚Ì’l•Ï�XƒCƒxƒ“ƒg‚ð—LŒø‚É‚·‚é
-                dgv.CellValueChanged += DataGridView_CellValueChanged;
-
-                dgv.Rows[iIndex].Cells[(int)DispColumn.CyuumonshoTeisyutu].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.CyuumonshoTouchaku].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.YosanSho].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.TantoShoninCode].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.TantoShonin].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.TantoShonin].Style.ForeColor = Color.Gray;
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin1].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin2].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin3].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin4].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin5].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin6].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin7].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin8].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin9].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin10].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.Bikou].Value = "";
-                //dgv.Rows[iIndex].Cells[(int)DispColumn.ShohiZeiRitu].Value = 0;// �¦•Ï�X•K—v
-                dgv.Rows[iIndex].Cells[(int)DispColumn.ConstructionLedgerLineNo].Value = "";
-                dgv.Rows[iIndex].Cells[(int)DispColumn.ConstructionLedgerRowNo].Value = "";
-
-                MakeIndex = iIndex;
-
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
-        #region CellValueChanged
-        /// <summary>
-        /// CellValueChanged
-        /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
         private void DataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
@@ -1378,36 +842,36 @@
             DataGridView dgv = (DataGridView)sender;
 
             if (dgv.CurrentRow == null ||
-                (dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == (int)GoukeiRows.�¬Œv).ToArray().Count() == 0))
+                (dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == (int)GoukeiRows.�¬Œv)
+                                                    .ToArray()
+                                                    .Count() == 0))
                 return;
 
+            // ‹¦—Í‹à—L–³ƒJƒ‰ƒ€ˆÈŠO‚Í�ˆ—�‚µ‚È‚¢
+            if (e.ColumnIndex != (int)DispColumn.KyoryokuUmu) return;
 
             //—ñ‚ÌƒCƒ“ƒfƒbƒNƒX‚ðŠm”F‚·‚é
-            if (e.ColumnIndex == (int)DispColumn.KyoryokuUmu)
+            int Code_Column = 0;
+            if (dgvCompany.Visible == true)
             {
-                int Code_Column = 0;
-                if (dgvCompany.Visible == true)
-                {
-                    Code_Column = (int)DispColumn_Company.SubConstractorCode;
-                }
-                else
-                {
-                    Code_Column = (int)DispColumn_Project.GengaCode;
-                }
+                Code_Column = (int)DispColumn_Company.SubConstractorCode;
+            }
+            else
+            {
+                Code_Column = (int)DispColumn_Project.GengaCode;
+            }
 
-                // ‹¦—Í‹à�Ý’è
-                SetKyoryokukin(dgv, e.RowIndex, Code_Column);
+            // ‹¦—Í‹à�Ý’è
+            SetKyoryokukin(dgv, e.RowIndex, Code_Column);
 
-                // �‡Œv�s
-                setGoukei(Code_Column, CommonMotions.cnvInt(dgv[Code_Column, e.RowIndex].Value));
-
-            }
+            // �‡Œv�s
+            setGoukei(Code_Column, CommonMotions.cnvInt(dgv[Code_Column, e.RowIndex].Value));
         }
         #endregion
 
-        #region CurrentCellDirtyStateChanged
+        #region ƒZƒ‹•Ï�XŒãƒRƒ~ƒbƒg‚³‚ê‚Ä‚¢‚È‚¢�ê�‡ƒRƒ~ƒbƒg‚·‚é
         /// <summary>
-        /// CurrentCellDirtyStateChanged
+        /// ƒZƒ‹•Ï�XŒãƒRƒ~ƒbƒg‚³‚ê‚Ä‚¢‚È‚¢�ê�‡ƒRƒ~ƒbƒg‚·‚é
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
@@ -1425,9 +889,9 @@
         }
         #endregion
 
-        #region CellBeginEdit
+        #region ƒZƒ‹“ü—ÍŠJŽnŽž�ˆ—�
         /// <summary>
-        /// CellBeginEdit
+        /// ƒZƒ‹“ü—ÍŠJŽnŽž�ˆ—�
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
@@ -1454,9 +918,9 @@
         }
         #endregion
 
-        #region CellValidated
+        #region ƒZƒ‹“ü—ÍŠ®—¹Œã�ˆ—�
         /// <summary>
-        /// CellValidated
+        /// ƒZƒ‹“ü—ÍŠ®—¹Œã�ˆ—�
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
@@ -1494,7 +958,10 @@
                     e.ColumnIndex == (int)DispColumn.KojiNebiki ||
                     e.ColumnIndex == (int)DispColumn.KojiSousai)
                 {
-                    dgv[(int)DispColumn.JikaiKurikosi, e.RowIndex].Value = CommonMotions.cnvInt(dgv[(int)DispColumn.SomuSeikyu, e.RowIndex].Value) - (CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSeikyu, e.RowIndex].Value) + CommonMotions.cnvInt(dgv[(int)DispColumn.KojiNebiki, e.RowIndex].Value) + CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSousai, e.RowIndex].Value));
+                    dgv[(int)DispColumn.JikaiKurikosi, e.RowIndex].Value = CommonMotions.cnvInt(dgv[(int)DispColumn.SomuSeikyu, e.RowIndex].Value)
+                                                                        - (CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSeikyu, e.RowIndex].Value)
+                                                                        + CommonMotions.cnvInt(dgv[(int)DispColumn.KojiNebiki, e.RowIndex].Value)
+                                                                        + CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSousai, e.RowIndex].Value));
                 }
 
                 // ‹¦—Í‹à
@@ -1515,7 +982,8 @@
                     if (ShoukeiRowIndex >= 0)
                     {
                         //�¦Œã‚É‰ïŽÐ�î•ñ‚©‚çŽæ“¾‚³‚ê‚é                         �@
-                        //dgv[e.ColumnIndex, ZeiRowIndex].Value = CommonMotions.cnvDouble(dgv.CurrentRow.Cells[e.ColumnIndex].Value) * CommonMotions.cnvDouble(dgv.CurrentRow.Cells[(int)DispColumn.ShohiZeiRitu].Value);
+                        //dgv[e.ColumnIndex, ZeiRowIndex].Value = CommonMotions.cnvDouble(dgv.CurrentRow.Cells[e.ColumnIndex].Value)
+                        //                                        * CommonMotions.cnvDouble(dgv.CurrentRow.Cells[(int)DispColumn.ShohiZeiRitu].Value);
                         //dgv[e.ColumnIndex, ZeiRowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[e.ColumnIndex, ShoukeiRowIndex].Value) * 0.08);
                         dgv[e.ColumnIndex, ZeiRowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[e.ColumnIndex, ShoukeiRowIndex].Value)
                                                                                         * (CommonMotions.SystemMasterData.ConsumptionTax / 100));
@@ -1563,8 +1031,10 @@
                 //    (e.ColumnIndex >= (int)DispColumn.SomuSeikyu && e.ColumnIndex < (int)DispColumn.KojiSeikyu))
                 //{
                 //    int GoukeiSeqNo;
-                //    string cell = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[Code_Column].Value) == CommonMotions.cnvInt(dgv[Code_Column, e.RowIndex].Value) && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
-                //                                                    .Max(x => (string)x.Cells[(int)DispColumn.GoukeiSeqNo].Value.ToString());
+                //string cell = dgv.Rows.Cast<DataGridViewRow>().Where(x => (CommonMotions.cnvInt(x.Cells[Code_Column].Value)
+                //                                                            == CommonMotions.cnvInt(dgv[Code_Column, e.RowIndex].Value))
+                //                                                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
+                //                                                .Max(x => (string)x.Cells[(int)DispColumn.GoukeiSeqNo].Value.ToString());
                 //    if (cell != null)
                 //    {
                 //        GoukeiSeqNo = CommonMotions.cnvInt(cell);
@@ -1589,335 +1059,10 @@
         }
         #endregion
 
-        #region �¬ŒvŽZ�o
+        #region ƒZƒ‹‚ÌƒtƒH�[ƒ}ƒbƒg
         /// <summary>
-        /// �¬ŒvŽZ�o
+        /// ƒZƒ‹‚ÌƒtƒH�[ƒ}ƒbƒg
         /// </summary>
-        /// <param name="TargetColumn"></param>
-        /// <param name="CompanyCode_Column"></param>
-        /// <param name="CompanyCode"></param>
-        private void ShoukeiSanshutu(int TargetColumn, int Code_Column, int Code)
-        {
-            DataGridView dgv = getShowingView();
-
-            try
-            {
-                if (dgv.RowCount <= 1)
-                {
-                    return;
-                }
-                // �¬Œv�sŒŸ�õ
-                int ShoukeiRowIndex = SearchRowIndex(Code_Column, Code, GoukeiRows.�¬Œv);
-                if (ShoukeiRowIndex == -1) return;
-
-                int Shoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[Code_Column].Value) == Code && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                          && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
-                                                                .Sum(y => CommonMotions.cnvInt(y.Cells[(int)TargetColumn].Value));
-
-                dgv[TargetColumn, ShoukeiRowIndex].Value = Shoukei;
-
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
-        #region �‡Œv�s
-        /// <summary>
-        /// �‡Œv�s
-        /// </summary>
-        /// <param name="CompanyCode_Column">‘Î�Û‹ÆŽÒƒR�[ƒh—ñ”Ô�†</param>
-        /// <param name="CompanyCode">‘Î�Û‹ÆŽÒƒR�[ƒh</param>
-        private void setGoukei(int CompanyCode_Column, int CompanyCode)
-        {
-            DataGridView dgv = getShowingView();
-            try
-            {
-                // �Ý’è�sŒŸ�õ
-                int RowIndex = SearchRowIndex(CompanyCode_Column, CompanyCode, GoukeiRows.�‡Œv);
-                if (RowIndex < 0) return;
-
-                int SoumuKei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[CompanyCode_Column].Value) == CompanyCode &&
-                                                                                                                    ((int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�¬Œv ||
-                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�Á”ï�Å ||
-                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�‚‘¬‘ã ||
-                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.‹à•¨‘ã ||
-                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.ŽY”p�Å))
-                                                               .Sum(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.SomuSeikyu].Value));
-                dgv[(int)DispColumn.SomuSeikyu, RowIndex].Value = SoumuKei;
-
-                int KojiKei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[CompanyCode_Column].Value) == CompanyCode &&
-                                                                                                                    ((int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�¬Œv ||
-                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�Á”ï�Å ||
-                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�‚‘¬‘ã ||
-                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.‹à•¨‘ã ||
-                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.ŽY”p�Å))
-                                                               .Sum(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.KojiSeikyu].Value));
-                KojiKei = KojiKei - CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSeikyu, SearchRowIndex(CompanyCode_Column, CompanyCode, GoukeiRows.‹¦—Í‹à)].Value);
-                dgv[(int)DispColumn.KojiSeikyu, RowIndex].Value = KojiKei;
-
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
-        #region ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^—p�‡Œv’lŽæ“¾�@(ƒf�[ƒ^’PˆÊ)
-        /// <summary>
-        /// ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^—p�‡Œv’lŽæ“¾�@(ƒf�[ƒ^’PˆÊ)
-        /// </summary>
-        /// <param name="dgv"></param>
-        /// <param name="CompanyCode">‹¦—Í‰ïŽÐƒR�[ƒh</param>
-        /// <param name="ChargePaymentKind">‘Î�ÛŽx•¥‚¢‹æ•ª�@0�F�¿‹�(‘�–±�j 1�FŽx•¥(�HŽ–’S“–)</param>
-        /// <param name="BpsWork"></param>
-        /// <returns></returns>
-        private bool GetBpsGoukei(DataGridView dgv, int CompanyCode, int ChargePaymentKind, ref BillingPaymentSummary BpsWork)
-        {
-            try
-            {
-                if (ChargePaymentKind == 0)
-                {
-                    // 0�F�¿‹�(‘�–±�j
-                    BpsWork.Payday = CommonMotions.cnvDate(lblPaymentDate.Text);
-                    BpsWork.BillPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.SomuSeikyu);
-                    //BpsWork.ConsumptionTaxRate = 0.08; // �¦‰ïŽÐ�î•ñ‚Ì’l‚ª�Ý’è‚³‚ê‚é‚æ‚¤‚É‚È‚é
-                    BpsWork.ConsumptionTaxRate = CommonMotions.SystemMasterData.ConsumptionTax;
-                    BpsWork.ConsumptionTaxPrice = CommonMotions.cnvRound(CommonMotions.cnvDouble(BpsWork.BillPriceStotal) * BpsWork.ConsumptionTaxRate);
-                    BpsWork.HighwPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.SomuKosoku);
-                    BpsWork.HardwPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.SomuKanamono);
-                    BpsWork.IndsWasteTaxStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.SomuSannhaiZei);
-
-                    //SystemMaster sm = new SystemMaster();
-                    //BpsWork.CnstrPriceRate = (sm.CooperationRate / 100);
-                    BpsWork.CnstrPriceRate = (CommonMotions.SystemMasterData.CooperationRate / 100);
-                    BpsWork.CnstrPriceStotal = 0;
-                    BpsWork.BillingPriceTotal = BpsWork.BillPriceStotal + BpsWork.ConsumptionTaxPrice + BpsWork.HighwPriceStotal + BpsWork.HardwPriceStotal + BpsWork.IndsWasteTaxStotal;
-                }
-                else if (ChargePaymentKind == 1)
-                {
-                    // 1�FŽx•¥(�HŽ–’S“–)
-                    BpsWork.Payday = CommonMotions.cnvDate(lblPaymentDate.Text);
-                    BpsWork.BillPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.KojiSeikyu);
-                    //BpsWork.ConsumptionTaxRate = 0.08; // �¦‰ïŽÐ�î•ñ‚Ì’l‚ª�Ý’è‚³‚ê‚é‚æ‚¤‚É‚È‚é
-                    BpsWork.ConsumptionTaxRate = CommonMotions.SystemMasterData.ConsumptionTax;
-                    BpsWork.ConsumptionTaxPrice = CommonMotions.cnvRound(CommonMotions.cnvDouble(BpsWork.BillPriceStotal) * BpsWork.ConsumptionTaxRate);
-                    BpsWork.HighwPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.KojiKosoku);
-                    BpsWork.HardwPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.KojiKanamono);
-                    BpsWork.IndsWasteTaxStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.KojiSannhaiZei);
-                    //SystemMaster sm = new SystemMaster();
-                    //BpsWork.CnstrPriceRate = (sm.CooperationRate / 100);
-                    //BpsWork.CnstrPriceStotal = CommonMotions.cnvRound(CommonMotions.cnvDouble(BpsWork.BillPriceStotal) * (sm.CooperationRate / 100));
-                    BpsWork.CnstrPriceRate = (CommonMotions.SystemMasterData.CooperationRate / 100);
-                    BpsWork.CnstrPriceStotal = CommonMotions.cnvRound(CommonMotions.cnvDouble(BpsWork.BillPriceStotal) * BpsWork.CnstrPriceRate);
-                    BpsWork.BillingPriceTotal = BpsWork.BillPriceStotal + BpsWork.ConsumptionTaxPrice + BpsWork.HighwPriceStotal + BpsWork.HardwPriceStotal + BpsWork.IndsWasteTaxStotal - BpsWork.CnstrPriceStotal;
-
-                }
-
-                return true;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-        #endregion
-
-        #region “¯‹ÆŽÒ�A“¯˜A”Ô‚Ì�‡Œv’l
-        /// <summary>
-        /// “¯‹ÆŽÒ�A“¯˜A”Ô‚Ì�‡Œv’l
-        /// </summary>
-        /// <param name="dgv"></param>
-        /// <param name="CompanyCode">‹ÆŽÒƒR�[ƒh</param>
-        /// <param name="SeqNo">˜A”Ô</param>
-        /// <param name="TargetColumn">‘Î�Û—ñ</param>
-        /// <returns></returns>
-        private long GetSeqGoukei(DataGridView dgv, int CompanyCode, int SeqNo, DispColumn TargetColumn)
-        {
-            long Result = 0;
-            try
-            {
-
-                Result = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted
-                                                                && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
-                                                                && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == SeqNo)
-                    .Sum(y => CommonMotions.cnvLong(y.Cells[(int)TargetColumn].Value));
-
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            return Result;
-
-        }
-        #endregion
-
-        #region ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^—p�‡Œv’lŽæ“¾�@(—ñ’PˆÊ)
-        /// <summary>
-        /// ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^—p�‡Œv’lŽæ“¾�@(—ñ’PˆÊ)
-        /// </summary>
-        /// <param name="dgv"></param>
-        /// <param name="CompanyCode"></param>
-        /// <param name="TargetColumn"></param>
-        /// <returns></returns>
-        private long GetBpsGoukei(DataGridView dgv, int CompanyCode, DispColumn TargetColumn)
-        {
-            long Result = 0;
-            try
-            {
-
-                Result = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted
-                                                                && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode)
-                    .Sum(y => CommonMotions.cnvLong(y.Cells[(int)TargetColumn].Value));
-
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            return Result;
-
-        }
-        #endregion
-
-        #region ƒTƒu�‡Œv’l�Ý’è
-        /// <summary>
-        /// ƒTƒu�‡Œv’l�Ý’è
-        /// </summary>
-        /// <param name="dgv">‘Î�ÛƒOƒŠƒbƒh</param>
-        /// <param name="ColIndex">‘Î�Û—ñƒCƒ“ƒfƒbƒNƒX</param>
-        /// <param name="Code_Column">�‡Œv‚·‚é’PˆÊ‚Ì—ñ”Ô�†</param>
-        /// <param name="Code">�‡Œv‚·‚é’PˆÊ‚Ì—ñ‚Ì’l</param>
-        /// <param name="SetRow">‘Î�Û�‡Œv�s</param>
-        private void SetSubGoukei(DataGridView dgv, int ColIndex, int GetColIndex, int Code_Column, int Code, GoukeiRows SetRow)
-        {
-            // �sŒŸ�õ
-            int RowIndex = SearchRowIndex(Code_Column, Code, SetRow);
-            // �¬Œv�sŒŸ�õ
-            int GetRowIndex = SearchRowIndex(Code_Column, Code, GoukeiRows.�¬Œv);
-
-            if (RowIndex < 0 || GetRowIndex < 0) return;
-
-            dgv[ColIndex, RowIndex].Value = dgv[GetColIndex, GetRowIndex].Value;
-
-        }
-        #endregion
-
-        #region ‹¦—Í‹à•\Ž¦
-        /// <summary>
-        /// ‹¦—Í‹à•\Ž¦
-        /// </summary>
-        /// <param name="dgv"></param>
-        /// <param name="RowIndex"></param>
-        /// <param name="Code_Column"></param>
-        private void SetKyoryokukin(DataGridView dgv, int RowIndex, int Code_Column)
-        {
-            if (dgv.CurrentRow == null)
-                return;
-
-            if (RowIndex == -1)
-                return;
-
-            // ‹¦—Í‹à—L–³�w�›�x
-            if (CommonMotions.cnvInt(dgv[(int)DispColumn.KyoryokuUmu, RowIndex].Value) == 1)
-            {
-                //�¦Œã‚É‰ïŽÐ�î•ñ‚©‚çŽæ“¾‚³‚ê‚é                         
-                //dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKin].Value = CommonMotions.cnvDouble(dgv.Rows[RowIndex].Cells[(int)DispColumn.KojiSeikyu].Value) * CommonMotions.cnvDouble(dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKinRitu].Value);
-                //SystemMaster sm = new SystemMaster();
-                //dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKin].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv.Rows[RowIndex].Cells[(int)DispColumn.KojiSeikyu].Value) * (sm.CooperationRate/100));�@
-                dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKin].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv.Rows[RowIndex].Cells[(int)DispColumn.KojiSeikyu].Value)
-                                                                                                        * (CommonMotions.SystemMasterData.ConsumptionTax / 100));
-            }
-            else
-            {
-                dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKin].Value = "";
-            }
-
-            // �¬ŒvŽZ�o
-            ShoukeiSanshutu((int)DispColumn.KyoryokuKin, Code_Column, CommonMotions.cnvInt(dgv[Code_Column, RowIndex].Value));
-
-            // �‡Œv’lŽZ�o
-            SetSubGoukei(dgv, (int)DispColumn.KojiSeikyu, (int)DispColumn.KyoryokuKin, Code_Column, CommonMotions.cnvInt(dgv[Code_Column, RowIndex].Value), GoukeiRows.‹¦—Í‹à);
-
-        }
-        #endregion
-
-        #region Žw’è‚µ‚½‹¦—Í‰ïŽÐ�‡‚ÌŽŸ‚Ì‹¦—Í‰ïŽÐ‚ÌƒCƒ“ƒfƒbƒNƒX‚ðŽæ“¾‚µ�A”z’u‚µ‚½‚¢ƒCƒ“ƒfƒbƒNƒX‚ð•Ô‚·
-        /// <summary>
-        /// Žw’è‚µ‚½‹¦—Í‰ïŽÐ�‡‚ÌŽŸ‚Ì‹¦—Í‰ïŽÐ‚ÌƒCƒ“ƒfƒbƒNƒX‚ðŽæ“¾‚µ�A”z’u‚µ‚½‚¢ƒCƒ“ƒfƒbƒNƒX‚ð•Ô‚·
-        /// </summary>
-        /// <param name="InsertDispOrder"></param>
-        /// <returns></returns>
-        private int SearchRowIndex(int InsertDispOrder)
-        {
-            int Result = 0;
-            DataGridView dgv = getShowingView();
-            DataGridViewRow Row;
-
-            Row = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.CompanyDispOrder].Value) > InsertDispOrder
-                                                                           && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0).FirstOrDefault();
-
-
-            Result = Row == null ? -1 : Row.Index;
-            return Result;
-        }
-        #endregion
-
-        #region –Ú“I‚Ì�‡Œv�s‚ÌDataGridView‚ÌIndex‚ð•Ô‚·
-        /// <summary>
-        /// –Ú“I‚Ì�‡Œv�s‚ÌDataGridView‚ÌIndex‚ð•Ô‚·
-        /// </summary>
-        /// <param name="CodeCol">ƒR�[ƒh—ñ”Ô�†</param>
-        /// <param name="Code">ƒR�[ƒh</param>
-        /// <param name="RowType">ŒŸ�õ‘Î�Û�‡Œv�s</param>
-        /// <returns></returns>
-        private int SearchRowIndex(int CodeCol, int Code, GoukeiRows RowType, int SeqNo = 0, int LineCode = 0, DataRowState NotRowState = DataRowState.Unchanged)
-        {
-            DataGridView dgv = getShowingView();
-            int type = (int)RowType;
-            int Result = 0;
-            DataGridViewRow[] Rows = null;
-            try
-            {
-                if (SeqNo == 0 && LineCode == 0)
-                {
-                    Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[CodeCol].Value) == Code
-                                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == type).ToArray();
-                }
-                else if (SeqNo != 0)
-                {
-                    Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)CodeCol].Value) == Code
-                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == SeqNo
-                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.LineCount].Value) == LineCode
-                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1).ToArray();
-                }
-
-
-                Result = Rows.Count() == 0 ? -1 : Rows[0].Index;
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            return Result;
-        }
-        #endregion
-
-        #region DataGridView_CellFormatting
-        /// <summary>
-        /// DataGridView_CellFormatting
-        /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
         private void DataGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
@@ -1959,968 +1104,15 @@
         }
         #endregion
 
-        #region ‰æ–Ê�€–Ú‚Ìƒ`ƒFƒbƒN
+        #region ‹ÆŽÒ�í�œƒ{ƒ^ƒ“
         /// <summary>
-        /// ‰æ–Ê�€–Ú‚Ìƒ`ƒFƒbƒN
+        /// ‹ÆŽÒ�í�œƒ{ƒ^ƒ“
         /// </summary>
-        /// <returns></returns>
-        private bool DispFeildCheck()
-        {
-            bool bRet = true;
-            try
-            {
-                DataGridView dgv = getShowingView();
-
-                // •K—v�s’Š�o ‹ÆŽÒƒR�[ƒh�A˜A”Ô�A�s”Ô�†�¸�‡
-                DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                                    && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
-                                                                         .OrderBy(x => x.Cells[m_Company_Column].Value)
-                                                                         .ThenBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
-                                                                         .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
-                                                                         .ToArray();
-
-                foreach (DataGridViewRow r in Rows)
-                {
-                    CommonMotions.chgBackColor(r.Cells[m_GenbaNM_Column], true);
-                    if (CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value) == 0
-                        &&
-                        ((CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSeikyu].Value) != 0
-                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiNebiki].Value) != 0
-                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSousai].Value) != 0
-                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKosoku].Value) != 0
-                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKanamono].Value) != 0
-                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSannhaiZei].Value) != 0)
-                        //|| CommonMotions.cnvInt(r.Cells[(int)DispColumn.KyoryokuUmu].Value) != -1) ‹¦—Í‹à—L–³‚Íƒ`ƒFƒbƒN‚É“ü‚ê‚È‚¢
-                    || r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray))
-                    {
-                        CommonMotions.chgBackColor(r.Cells[m_GenbaNM_Column], false);
-                        MessageBox.Show("Œ»�ê‚ª‘I‘ð‚³‚ê‚Ä‚¢‚Ü‚¹‚ñ�B", "ƒf�[ƒ^Šm”F", MessageBoxButtons.OK, MessageBoxIcon.Warning);
-                        bRet = false;
-                    }
-
-                }
-
-                return bRet;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-        #endregion
-
-        #region ‹ÆŽÒ�¿‹�–¾�×ƒf�[ƒ^�Å‘å�s”Ô�†Žæ“¾
-        /// <summary>
-        /// ‹ÆŽÒ�¿‹�–¾�×ƒf�[ƒ^‚Ì�Å‘å�s”Ô�†‚ðŽæ“¾‚·‚é
-        /// </summary>
-        /// <param name="AddSQLString"></param>
-        /// <param name="bConnect"></param>
-        /// <returns></returns>
-        public int SelectMaxLineNo(IOBillingDataDetail IoBdD, string AddSQLString, bool bConnect = true)
-        {
-            // ƒCƒ“ƒ^�[ƒtƒF�[ƒX
-            StringBuilder strcmd = new StringBuilder();
-            ArrayList arData = new ArrayList();
-            int iRet = 0;
-            try
-            {
-                // SQL�ì�¬
-                strcmd.AppendFormat("SELECT IFNULL(MAX(LineCount), 0) FROM BillingDataDetail {0}", AddSQLString);
-
-                // SQLŽÀ�s
-                if (!IoBdD.ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return iRet;
-
-                // ƒf�[ƒ^ƒZƒbƒg
-                foreach (object[] objwrk in arData)
-                {
-                    if (objwrk[0].ToString().Equals("null"))
-                        iRet = 0;
-                    else
-                        iRet = int.Parse(objwrk[0].ToString());
-                }
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}�F{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
-            }
-            return iRet;
-        }
-        #endregion
-
-        #region ƒf�[ƒ^“o˜^
-        /// <summary>
-        /// ƒf�[ƒ^“o˜^
-        /// </summary>
-        private bool DataEntry()
-        {
-
-            IOBillingData IoBd = new IOBillingData();
-            IOBillingDataDetail IoBdD = new IOBillingDataDetail();
-            IOPaymentDataDetail IoPdD = new IOPaymentDataDetail();
-            IOPaymentApprovalInfo IoPaI = new IOPaymentApprovalInfo();
-            IOBillingPaymentSummary IoBps = new IOBillingPaymentSummary();
-
-
-            DataGridView dgv = getShowingView();
-
-            List<BillingData> BdList;
-            List<BillingDataDetail> BdDList;
-            List<PaymentDataDetail> PdDList;
-            List<PaymentApprovalInfo> PaIList;
-            List<BillingPaymentSummary> BpsList = new List<BillingPaymentSummary>();
-            List<ConstructionLedgerExcute> CleEntryList = new List<ConstructionLedgerExcute>();
-
-            BillingData BdWork = new BillingData();
-            BillingDataDetail BdDWork;
-            PaymentDataDetail PdDWork;
-            PaymentApprovalInfo PaIWork;
-            BillingPaymentSummary BpsWork = new BillingPaymentSummary();
-
-            int iCompanyCode = 0, iSeqNo = 0, iLineCount = 0, iLineMax = 0;
-            int iTantoShoninCount = 0;
-            bool bBdData = false;
-            bool bDeleteData = false;
-            bool bMakeBpsData = false;
-            bool bDeleteBpsData = false;
-
-            string strBdWhere = "";
-            string strBdDWhere = "";
-            string strPdDWhere = "";
-            string strPaIWhere = "";
-            string strBpsWhere = "";
-
-            try
-            {
-
-                //�@�í�œ‘Î�Û‚Ì‹ÆŽÒƒR�[ƒh�A˜A”Ô‚Ìƒf�[ƒ^‚Ì’†‚Ì‚¢‚¸‚ê‚©‚ª‘¼ŽÒ‚É‚æ‚Á‚Ä•Ï�X‚³‚ê‚Ä‚¢‚é‚©ƒ`ƒFƒbƒN
-                var rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                    && (DataRowState)x.Cells[(int)DispColumn.RowState].Value == DataRowState.Deleted)
-                                                           .GroupBy(c => new
-                                                           {
-                                                               CompanyCode = CommonMotions.cnvInt(c.Cells[m_Company_Column].Value),
-                                                               SeqNo = CommonMotions.cnvInt(c.Cells[(int)DispColumn.GroupSeqNo].Value)
-                                                           })
-                                                           .ToArray();
-
-                BdDList = new List<BillingDataDetail>();
-                if (rows.Count() != 0)
-                {
-                    foreach (var r in rows)
-                    {
-                        string strWhere = string.Format(" Where CompanyCode = {0}", r.Key.CompanyCode);
-                        strWhere = string.Format(" and TargetDate = {0}", m_Select_TargetDate);
-                        strWhere = string.Format(" and SeqNo = {0}", r.Key.SeqNo);
-                        strWhere = " order by CompanyCode, SeqNo, LineCount";
-                        if (!IoBdD.SelectAction(strWhere, ref BdDList))
-                        {
-                            MessageBox.Show("“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B", "“o˜^ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                            return false;
-                        }
-                        if (BdDList.Count != 0)
-                        {
-                            foreach (BillingDataDetail listRow in BdDList)
-                            {
-                                DataGridViewRow[] checkRow = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                    && (DataRowState)x.Cells[(int)DispColumn.RowState].Value == DataRowState.Modified
-                                                    && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == listRow.CompanyCode
-                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == listRow.SeqNo
-                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.LineCount].Value) == listRow.LineCount)
-                                                    .ToArray();
-                                if (checkRow.Count() != 0 && listRow.UpdateDate != CommonMotions.cnvDate(checkRow[0].Cells[(int)DispColumn.UpdateDate].Value))
-                                {
-                                    MessageBox.Show("‘¼‚Ìƒ†�[ƒU�[‚É‚æ‚Á‚Ä�X�V‚³‚ê‚Ä‚¢‚Ü‚·�Bƒf�[ƒ^‚ð�Ä•\Ž¦‚µ‚Ä‰º‚³‚¢�B", "“o˜^ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                                    return false;
-
-                                }
-                            }
-                        }
-                    }
-                    // �í�œ�ˆ—�ŽÀ�sƒtƒ‰ƒO
-                    bDeleteData = true;
-                }
-
-
-                int TargetDate = m_Select_TargetDate;
-
-                IoBd.connect();
-                IoBd.beginTran();
-
-                IoBdD.connect();
-                IoBdD.beginTran();
-
-                IoPdD.connect();
-                IoPdD.beginTran();
-
-                IoPaI.connect();
-                IoPaI.beginTran();
-
-                IoBps.connect();
-                IoBps.beginTran();
-
-                ArrayList wrkArray = new ArrayList();
-                try
-                {
-                    // �í�œ
-                    if (bDeleteData == true)
-                    {
-                        foreach (var r in rows)
-                        {
-                            // �í�œ�@•K—v�s’Š�o�i�í�œ‚ª•K—v‚È‹ÆŽÒ�A˜A”Ô‚ð‘S‚Ä�í�œ�A•K—v‚È�s‚Ì�s”Ô�†‚ð�U‚è‚È‚¨‚·�j
-                            DataGridViewRow[] DeleteRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                                                    && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == r.Key.CompanyCode
-                                                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == r.Key.SeqNo)
-                                                                                           .OrderBy(y => CommonMotions.cnvInt(y.Cells[m_Company_Column].Value))
-                                                                                           .ThenBy(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.GroupSeqNo].Value))
-                                                                                           .ThenBy(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.LineCount].Value))
-                                                                                           .ToArray();
-                            iCompanyCode = 0;
-                            iSeqNo = 0;
-                            iLineCount = 0;
-                            int iNewLineCount = 1;
-                            foreach (DataGridViewRow delr in DeleteRows)
-                            {
-                                if (iCompanyCode == 0 || iSeqNo == 0)
-                                {
-                                    iCompanyCode = CommonMotions.cnvInt(delr.Cells[m_Company_Column].Value);
-                                    iSeqNo = CommonMotions.cnvInt(delr.Cells[(int)DispColumn.GroupSeqNo].Value);
-
-                                    // ‹Æ–±�¿‹�ƒf�[ƒ^
-                                    // ƒ�ƒbƒN
-                                    if (!IoBd.RowLock(iCompanyCode, TargetDate, CommonMotions.cnvInt(delr.Cells[(int)DispColumn.GroupSeqNo].Value), false))
-                                    {
-                                        throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                                    }
-
-                                    // �í�œ�i‹Æ–±�¿‹�ƒf�[ƒ^�j
-                                    strBdWhere = IoBd.CreatePrimarykeyString(iCompanyCode, TargetDate, iSeqNo);
-                                    wrkArray.Clear();
-                                    if (IoBd.ExecuteReader(strBdWhere, ref wrkArray, false))
-                                    {
-                                        if (!IoBd.DeleteAction(strBdWhere, false))
-                                        {
-                                            throw new Exception("�í�œ‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                        }
-                                    }
-                                }
-
-                                iLineCount = CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value);
-                                //if (iLineCount != CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value))
-                                //{
-                                // ’Ç‰Á�sˆÈŠO‚ð�í�œ‚·‚é
-                                if ((DataRowState)delr.Cells[(int)DispColumn.RowState].Value != DataRowState.Added)
-                                {
-                                    // ‹Æ–±–¾�×ƒf�[ƒ^
-                                    // ƒ�ƒbƒN
-                                    if (!IoBdD.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, false))
-                                    {
-                                        throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                                    }
-
-                                    // ƒf�[ƒ^�X�V
-                                    strBdDWhere = IoBdD.CreatePrimarykeyString(iCompanyCode, TargetDate, iSeqNo, CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value));
-                                    wrkArray.Clear();
-                                    if (IoBd.ExecuteReader(strBdWhere, ref wrkArray, false))
-                                    {
-                                        if (!IoBdD.DeleteAction(strBdDWhere, false))
-                                        {
-                                            throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                        }
-                                    }
-
-                                    // Žx•¥–¾�×ƒf�[ƒ^
-                                    strPdDWhere = IoPdD.CreatePrimarykeyString(iCompanyCode, TargetDate, iSeqNo, CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value));
-                                    PdDList = new List<PaymentDataDetail>();
-
-                                    // ƒf�[ƒ^Šm”F
-                                    if (!IoPdD.SelectAction(strPdDWhere, ref PdDList, false))
-                                    {
-                                        throw new Exception("“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                    }
-                                    if (PdDList.Count != 0)
-                                    {
-                                        // ƒ�ƒbƒN
-                                        if (!IoPdD.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, false))
-                                        {
-                                            throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                                        }
-
-                                        // ƒf�[ƒ^�X�V
-                                        wrkArray.Clear();
-                                        if (IoBd.ExecuteReader(strBdWhere, ref wrkArray, false))
-                                        {
-                                            if (!IoPdD.DeleteAction(strPdDWhere, false))
-                                            {
-                                                throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                            }
-                                        }
-                                    }
-                                }
-                                //    iLineCount = CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value);
-                                //}
-
-                                // �s”Ô�†‚ð�U‚è‚È‚¨‚·
-                                if ((DataRowState)delr.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
-                                {
-                                    delr.Cells[(int)DispColumn.LineCount].Value = iNewLineCount;
-                                    iNewLineCount++;
-                                }
-                            }
-                        }
-                    }
-
-                    // •K—v�s’Š�o ‹ÆŽÒƒR�[ƒh�A˜A”Ô�A�s”Ô�†�¸�‡
-                    DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                                        && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
-                                                                             .OrderBy(x => x.Cells[m_Company_Column].Value)
-                                                                             .ThenBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
-                                                                             .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
-                                                                             .ToArray();
-
-                    iCompanyCode = 0;
-                    iSeqNo = 0;
-                    iLineCount = 0;
-                    iLineMax = 0;
-
-                    foreach (DataGridViewRow r in Rows)
-                    {
-                        // –¢“ü—Í�s‚Í�ˆ—�‚µ‚È‚¢
-                        //if (CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value) == 0 && // �HŽ–�Ú�×‘ä’ ‚æ‚èƒf�[ƒ^‚ª�ì�¬‚³‚ê‚é‚Ì‚Å�HŽ–”Ô�†‚Ì�Ý’è‚Í”»’è‚µ‚È‚¢
-                        if (CommonMotions.cnvInt(r.Cells[(int)DispColumn.SomuSeikyu].Value) == 0 &&
-                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.SomuKosoku].Value) == 0 &&
-                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.SomuKanamono].Value) == 0 &&
-                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.SomuSannhaiZei].Value) == 0 &&
-                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSeikyu].Value) == 0 &&
-                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKosoku].Value) == 0 &&
-                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKanamono].Value) == 0 &&
-                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSannhaiZei].Value) == 0 &&
-                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiNebiki].Value) == 0 &&
-                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSousai].Value) == 0)
-                        {
-                            continue;
-                        }
-
-
-                        // ‹ÆŽÒƒR�[ƒh�A‚Ü‚½‚Í˜A”Ô‚ªˆÙ‚È‚é�ê�‡
-                        if (iCompanyCode != CommonMotions.cnvInt(r.Cells[m_Company_Column].Value) || iSeqNo != CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value))
-                        {
-
-                            if (bBdData == true)
-                            {
-                                int lSoumuBillGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == iCompanyCode
-                                                                                                && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == iSeqNo)
-                                                                                       .Sum(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.SomuSeikyu].Value));
-                                // ƒf�[ƒ^‚Ì’l‚ÆƒOƒŠƒbƒhƒrƒ…�[‚Ì’l‚ðƒ`ƒFƒbƒN
-                                if (BdWork.BillPrice != lSoumuBillGoukei)
-                                {
-                                    // ƒ�ƒbƒN
-                                    if (!IoBd.RowLock(iCompanyCode, TargetDate, iSeqNo, false))
-                                    {
-                                        throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                                    }
-                                    BdWork.BillPrice = lSoumuBillGoukei;
-                                    // �X�V�i‹Æ–±�¿‹�ƒf�[ƒ^�j
-                                    if (!IoBd.UpdateAction(strBdWhere, BdWork, false))
-                                    {
-                                        throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                    }
-                                }
-                            }
-
-                            // ‹ÆŽÒ�¿‹�ƒf�[ƒ^
-                            bBdData = false;
-                            strBdWhere = IoBd.CreatePrimarykeyString(CommonMotions.cnvInt(r.Cells[m_Company_Column].Value), TargetDate, CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value));
-                            BdList = new List<BillingData>();
-
-                            // ƒf�[ƒ^Šm”F
-                            if (!IoBd.SelectAction(strBdWhere, ref BdList, false))
-                            {
-                                throw new Exception("“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                            }
-
-                            BdWork = new BillingData();
-
-                            // �V‹K�i‹Æ–±�¿‹�ƒf�[ƒ^�j
-                            if (BdList.Count == 0)
-                            {
-                                iLineMax = 0; // �V‹K‚È‚Ì‚Å0‚ð�Ý’è
-                                BdWork.CompanyCode = CommonMotions.cnvInt(r.Cells[m_Company_Column].Value);
-                                BdWork.TargetDate = TargetDate;
-                                BdWork.SeqNo = CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value);
-                                BdWork.BillPrice = GetSeqGoukei(dgv, BdWork.CompanyCode, BdWork.SeqNo, DispColumn.SomuSeikyu);
-
-                                BdList.Clear();
-                                BdList.Add(BdWork);
-
-                                if (!IoBd.InsertAction(BdList, false))
-                                {
-                                    throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                }
-                            }
-                            else
-                            {
-                                // �s”Ô�†‚Ì�Å‘å‚ð�Ý’è
-                                StringBuilder MaxLineNoSql = new StringBuilder();
-                                MaxLineNoSql.AppendFormat(" where COMPANYCODE = {0}", CommonMotions.cnvInt(r.Cells[m_Company_Column].Value));
-                                MaxLineNoSql.AppendFormat(" and TARGETDATE = {0}", TargetDate);
-                                iLineMax = SelectMaxLineNo(IoBdD, MaxLineNoSql.ToString(), false);
-                                bBdData = true;
-                                BdWork.BillPrice = BdList[0].BillPrice;
-                            }
-
-
-                            // ‹ÆŽÒƒR�[ƒh‚ª•Ï‚í‚éŽž‚Ì‚Ý
-                            if (iCompanyCode != CommonMotions.cnvInt(r.Cells[m_Company_Column].Value))
-                            {
-                                // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^-----------------------------------------------
-                                if (bMakeBpsData == true)
-                                {
-                                    BillingPaymentSummary_DataEntry(dgv, iCompanyCode, bDeleteBpsData, iTantoShoninCount, IoBps, BpsList, BpsWork, strBpsWhere);
-                                }
-                                bMakeBpsData = false;
-                                bDeleteBpsData = false;
-                                iTantoShoninCount = 0;
-
-                            }
-
-                            iCompanyCode = CommonMotions.cnvInt(r.Cells[m_Company_Column].Value);
-                            iSeqNo = CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value);
-                        }
-
-
-                        // ‹ÆŽÒ�¿‹�–¾�×ƒf�[ƒ^--------------------------------------------------------------
-                        iLineCount = CommonMotions.cnvInt(r.Cells[(int)DispColumn.LineCount].Value);
-
-                        // �V‹K“o˜^‚Ì‹ÆŽÒ�¿‹�–¾�×ƒf�[ƒ^‚Å�s”Ô�†‚ª0‚È‚Ì‚Å�Å‘å�s”Ô�†‚ð�Ý’è‚·‚é
-                        if (iLineCount == 0)
-                        {
-                            r.Cells[(int)DispColumn.LineCount].Value = ++iLineMax;
-                            iLineCount = iLineMax;
-                        }
-
-                        strBdDWhere = IoBdD.CreatePrimarykeyString(CommonMotions.cnvInt(r.Cells[m_Company_Column].Value), TargetDate, CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value), iLineCount);
-                        BdDList = new List<BillingDataDetail>();
-
-                        // ƒf�[ƒ^Šm”F
-                        if (!IoBdD.SelectAction(strBdDWhere, ref BdDList, false))
-                        {
-                            throw new Exception("“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                        }
-
-                        BdDWork = new BillingDataDetail();
-
-                        // Žx•¥‹àŠz’´‰ßƒ`ƒFƒbƒN
-                        if (!ClsChangeLedgerData.OverExecAmount(CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value),
-                                                                CommonMotions.cnvInt(r.Cells[(int)DispColumn.ConstructionLedgerLineNo].Value),
-                                                                CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSeikyu].Value),
-                                                                CommonMotions.cnvDate(m_Select_TargetDate),
-                                                                CommonMotions.cnvInt(r.Cells[m_Company_Column].Value)))
-                        {
-                            r.Cells[(int)DispColumn.Bikou].Value = "�yŽx•¥‹àŠz’´‰ß�z" + CommonMotions.cnvString(r.Cells[(int)DispColumn.Bikou].Value);
-                        }
-
-                        // �V‹K�i‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�j
-                        if (BdDList.Count == 0)
-                        {
-
-                            BdDWork.CompanyCode = CommonMotions.cnvInt(r.Cells[m_Company_Column].Value);
-                            BdDWork.TargetDate = TargetDate;
-                            BdDWork.SeqNo = CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value);
-                            BdDWork.LineCount = iLineCount;
-
-                            BdDWork.ConstructionCode = CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value);
-                            string sName = CommonMotions.cnvString(r.Cells[m_GenbaNM_Column].Value);
-                            BdDWork.FieldName = sName != "" ? sName : CommonMotions.cnvString(r.Cells[m_GenbaNM_Column].ToolTipText);
-                            BdDWork.BillPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuSeikyu].Value);
-                            BdDWork.HighwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuKosoku].Value);
-                            BdDWork.HardwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuKanamono].Value);
-                            BdDWork.IndsWasteTax = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuSannhaiZei].Value);
-                            BdDWork.Note = CommonMotions.cnvString(r.Cells[(int)DispColumn.Bikou].Value);
-
-                            BdDList.Clear();
-                            BdDList.Add(BdDWork);
-
-                            if (!IoBdD.InsertAction(BdDList, false))
-                            {
-                                throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                            }
-
-                        }
-                        else
-                        {
-                            // �X�V�i‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�j
-                            BdDWork.ConstructionCode = CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value);
-                            string sName = CommonMotions.cnvString(r.Cells[m_GenbaNM_Column].Value);
-                            BdDWork.FieldName = sName != "" ? sName : CommonMotions.cnvString(r.Cells[m_GenbaNM_Column].ToolTipText);
-                            BdDWork.BillPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuSeikyu].Value);
-                            BdDWork.HighwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuKosoku].Value);
-                            BdDWork.HardwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuKanamono].Value);
-                            BdDWork.IndsWasteTax = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuSannhaiZei].Value);
-                            BdDWork.Note = CommonMotions.cnvString(r.Cells[(int)DispColumn.Bikou].Value);
-
-                            // ƒ�ƒbƒN
-                            if (!IoBdD.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, false))
-                            {
-                                throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                            }
-
-                            // ƒf�[ƒ^�X�V
-                            if (!IoBdD.UpdateAction(strBdDWhere, BdDWork, false))
-                            {
-                                throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                            }
-                        }
-
-
-                        // Žx•¥–¾�×ƒf�[ƒ^-----------------------------------------------------------------
-                        if ((CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSeikyu].Value) != 0
-                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiNebiki].Value) != 0
-                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSousai].Value) != 0
-                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKosoku].Value) != 0
-                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKanamono].Value) != 0
-                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSannhaiZei].Value) != 0
-                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KyoryokuUmu].Value) != -1)
-                          || r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray
-                          || CommonMotions.cnvInt(r.Cells[(int)DispColumn.TantoShoninCode].Value) != 0)
-                        {
-                            strPdDWhere = IoPdD.CreatePrimarykeyString(CommonMotions.cnvInt(r.Cells[m_Company_Column].Value),
-                                                                        TargetDate,
-                                                                        CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value),
-                                                                        iLineCount);
-                            PdDList = new List<PaymentDataDetail>();
-
-                            // ƒf�[ƒ^Šm”F
-                            if (!IoPdD.SelectAction(strPdDWhere, ref PdDList, false))
-                            {
-                                throw new Exception("“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                            }
-
-                            PdDWork = new PaymentDataDetail();
-
-                            // �V‹K�iŽx•¥–¾�×ƒf�[ƒ^�j
-                            if (PdDList.Count == 0)
-                            {
-                                PdDWork.CompanyCode = iCompanyCode;
-                                PdDWork.TargetDate = TargetDate;
-                                PdDWork.SeqNo = iSeqNo;
-                                PdDWork.LineCount = iLineCount;
-
-                                PdDWork.BillPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSeikyu].Value);
-
-                                PdDWork.DiscountPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiNebiki].Value);
-                                PdDWork.OffsetPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSousai].Value);
-                                PdDWork.NextCoPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.JikaiKurikosi].Value);
-
-                                PdDWork.HighwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiKosoku].Value);
-                                PdDWork.HardwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiKanamono].Value);
-                                PdDWork.IndsWasteTax = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSannhaiZei].Value);
-
-
-                                PdDWork.CnstrPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KyoryokuKin].Value);
-                                PdDWork.CnstrPriceExist = CommonMotions.cnvInt(r.Cells[(int)DispColumn.KyoryokuUmu].Value);
-
-                                // ’S“–�³”F
-                                if (r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray)
-                                {
-                                    PdDWork.ApprovalPersonCode = CommonMotions.cnvInt(r.Cells[(int)DispColumn.TantoShoninCode].Value);
-                                    if (r.Cells[(int)DispColumn.TantoDate].Value == null)
-                                    {
-                                        PdDWork.ApprovalDate = DateTime.Now;
-                                    }
-                                    else
-                                    {
-                                        PdDWork.ApprovalDate = CommonMotions.cnvDate(r.Cells[(int)DispColumn.TantoDate].Value);
-                                    }
-                                }
-                                else
-                                {
-                                    PdDWork.ApprovalPersonCode = 0;
-                                    PdDWork.ApprovalDate = new DateTime(2001, 01, 01);
-                                }
-                                PdDWork.ApprovalEndFlg = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ApprovalEndFlg].Value); // �Å�I�³”F”»’è•K—v
-
-                                PdDList.Clear();
-                                PdDList.Add(PdDWork);
-
-                                if (!IoPdD.InsertAction(PdDList, false))
-                                {
-                                    throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                }
-
-                            }
-                            else
-                            {
-                                // �X�V�iŽx•¥–¾�×ƒf�[ƒ^�j
-                                PdDWork.BillPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSeikyu].Value);
-
-                                PdDWork.DiscountPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiNebiki].Value);
-                                PdDWork.OffsetPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSousai].Value);
-                                PdDWork.NextCoPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.JikaiKurikosi].Value);
-                                PdDWork.HighwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiKosoku].Value);
-                                PdDWork.HardwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiKanamono].Value);
-                                PdDWork.IndsWasteTax = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSannhaiZei].Value);
-
-                                PdDWork.CnstrPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KyoryokuKin].Value);
-                                PdDWork.CnstrPriceExist = CommonMotions.cnvInt(r.Cells[(int)DispColumn.KyoryokuUmu].Value);
-
-                                // ’S“–�³”F
-                                if (r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray)
-                                {
-                                    if (PdDList[0].ApprovalPersonCode != 0)
-                                    {
-                                        PdDWork.ApprovalPersonCode = PdDList[0].ApprovalPersonCode;
-                                        PdDWork.ApprovalDate = PdDList[0].ApprovalDate;
-                                    }
-                                    else
-                                    {
-                                        PdDWork.ApprovalPersonCode = CommonMotions.cnvInt(r.Cells[(int)DispColumn.TantoShoninCode].Value);
-                                        PdDWork.ApprovalDate = DateTime.Now;
-                                    }
-                                }
-                                else
-                                {
-                                    PdDWork.ApprovalPersonCode = 0;
-                                    PdDWork.ApprovalDate = new DateTime(2001, 01, 01);
-                                }
-                                PdDWork.ApprovalEndFlg = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ApprovalEndFlg].Value); //�Å�I�³”F
-
-
-                                // ƒ�ƒbƒN
-                                if (!IoPdD.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, false))
-                                {
-                                    throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                                }
-
-                                // ƒf�[ƒ^�X�V
-                                if (!IoPdD.UpdateAction(strPdDWhere, PdDWork, false))
-                                {
-                                    throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                }
-
-                            }
-                            // �HŽ–�Ú�×‘ä’ ‚ÌŽx•¥‹àŠz‚ÌˆêŠ‡“o˜^ƒŠƒXƒg‚Ö’Ç‰Á�i�s’PˆÊ‚Å’Ç‰Á�j
-                            ConstructionLedgerExcute CleEntry = new ConstructionLedgerExcute();
-                            CleEntry.ConstructionCode = CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value);
-                            CleEntry.GroupCount = 2;
-                            CleEntry.LineCount = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ConstructionLedgerLineNo].Value);
-                            CleEntry.ColumnCount = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ConstructionLedgerRowNo].Value);
-                            CleEntry.PaymentAmount = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSeikyu].Value);
-                            CleEntry.TargetMonth = CommonMotions.cnvDate(m_Select_TargetDate);
-                            CleEntry.EntryDate = DateTime.Now;
-                            CleEntry.UpdateDate = DateTime.Now;
-                            CleEntryList.Add(CleEntry);
-                        }
-
-                        // Žx•¥�³”F�î•ñƒf�[ƒ^-----------------------------------------------------------------
-                        string tantoDate = CommonMotions.cnvString(r.Cells[(int)DispColumn.TantoDate].Value);
-                        if ((r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray)
-                        || (tantoDate != "" && r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor == Color.Gray))
-                        {
-                            // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^‘€�ì
-                            bMakeBpsData = true;
-
-                            for (int iShoninColumn = (int)DispColumn.Shonin1Code; iShoninColumn < (int)DispColumn.Bikou; iShoninColumn += s_ShoninBlockCnt)
-                            {
-                                // �Ý’è‚³‚ê‚Ä‚¢‚È‚¢�³”F—“‚Í–³Ž‹
-                                if (CommonMotions.cnvInt(r.Cells[iShoninColumn + 4].Value) == 0)
-                                    continue;
-
-                                // ƒf�[ƒ^Šm”F
-                                strPaIWhere = IoPaI.CreatePrimarykeyString(iCompanyCode, m_Select_TargetDate, iSeqNo, iLineCount, CommonMotions.cnvInt(r.Cells[iShoninColumn + 4].Value));
-                                PaIList = new List<PaymentApprovalInfo>();
-                                if (!IoPaI.SelectAction(strPaIWhere, ref PaIList, false))
-                                {
-                                    throw new Exception("“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                }
-
-                                PaIWork = new PaymentApprovalInfo();
-                                // �V‹K�iŽx•¥�³”F�î•ñƒf�[ƒ^�j
-                                if (PaIList.Count == 0)
-                                {
-                                    PaIWork.CompanyCode = iCompanyCode;
-                                    PaIWork.TargetDate = TargetDate;
-                                    PaIWork.SeqNo = iSeqNo;
-                                    PaIWork.LineCount = iLineCount;
-                                    PaIWork.ApprovalNo = CommonMotions.cnvInt(r.Cells[iShoninColumn + s_ShoninNoCnt].Value);
-                                    PaIWork.ApprovalPerson = CommonMotions.cnvInt(r.Cells[iShoninColumn].Value);
-                                    PaIWork.ApprovalPersonName = CommonMotions.cnvString(r.Cells[iShoninColumn + s_ShoninPersonNameCnt].Value);
-                                    PaIWork.ApprovalAuthority = CommonMotions.cnvInt(r.Cells[iShoninColumn + s_ShoninAuthorityCnt].Value);
-
-                                    if (r.Cells[iShoninColumn + 1].Style.ForeColor != Color.Gray)
-                                    {
-                                        PaIWork.ApprovalDate = DateTime.Now.Date;
-                                    }
-                                    else
-                                    {
-                                        PaIWork.ApprovalDate = new DateTime(2001, 01, 01);
-                                    }
-
-                                    PaIList.Clear();
-                                    PaIList.Add(PaIWork);
-
-                                    if (!IoPaI.InsertAction(PaIList, false))
-                                    {
-                                        throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                    }
-
-                                    // ƒOƒŠƒbƒh–¾�×ƒf�[ƒ^–ˆ‚Ì’S“–�³”F�”‰ÁŽZ
-                                    iTantoShoninCount += 1;
-                                }
-                                else
-                                {
-                                    // ’S“–ŽÒON�@�¨�@’S“–ŽÒOFF‚Íƒf�[ƒ^‚ð�Á‚·•K—v‚ª‚ ‚é
-                                    if (tantoDate != "" && r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor == Color.Gray)
-                                    {
-                                        // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�í�œŒó•â
-                                        bDeleteBpsData = true;
-
-                                        // ƒ�ƒbƒN
-                                        if (!IoPaI.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, PaIList[0].ApprovalNo, false))
-                                        {
-                                            throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                                        }
-
-                                        // ƒf�[ƒ^�X�V
-                                        wrkArray.Clear();
-                                        if (IoBd.ExecuteReader(strBdWhere, ref wrkArray, false))
-                                        {
-                                            if (!IoPaI.DeleteAction(strPaIWhere, false))
-                                            {
-                                                throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                            }
-                                        }
-                                    }
-                                    else
-                                    {
-                                        PaIWork.ApprovalPerson = CommonMotions.cnvInt(r.Cells[iShoninColumn].Value);
-                                        PaIWork.ApprovalPersonName = CommonMotions.cnvString(r.Cells[iShoninColumn + 1].Value);
-                                        PaIWork.ApprovalAuthority = CommonMotions.cnvInt(r.Cells[iShoninColumn + 3].Value);
-
-                                        if (r.Cells[iShoninColumn + 1].Style.ForeColor != Color.Gray)
-                                        {
-                                            DateTime dtDate = CommonMotions.cnvDate(r.Cells[iShoninColumn + 2].Value);
-                                            string sDate = dtDate.ToString("yyyy/MM/dd");
-                                            if (sDate != "0001/01/01" && sDate != "2001/01/01")
-                                            {
-                                                PaIWork.ApprovalDate = CommonMotions.cnvDate(sDate);
-                                            }
-                                            else
-                                            {
-                                                PaIWork.ApprovalDate = DateTime.Now.Date;
-                                            }
-                                        }
-                                        else
-                                        {
-                                            PaIWork.ApprovalDate = new DateTime(2001, 01, 01);
-                                        }
-
-                                        // ƒ�ƒbƒN
-                                        if (!IoPaI.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, PaIList[0].ApprovalNo, false))
-                                        {
-                                            throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                                        }
-
-                                        // ƒf�[ƒ^�X�V
-                                        if (!IoPaI.UpdateAction(strPaIWhere, PaIWork, false))
-                                        {
-                                            throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                                        }
-
-                                        // ƒOƒŠƒbƒh–¾�×ƒf�[ƒ^–ˆ‚Ì’S“–�³”F�”‰ÁŽZ
-                                        iTantoShoninCount += 1;
-
-                                    }
-
-                                }
-                            }
-
-                        }
-
-                    }
-
-                    // �X�V�i‹Æ–±�¿‹�ƒf�[ƒ^�j
-                    if (bBdData == true)
-                    {
-                        int lSoumuBillGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == iCompanyCode
-                                                                                        && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == iSeqNo)
-                                                                               .Sum(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.SomuSeikyu].Value));
-                        // ƒf�[ƒ^‚Ì’l‚ÆƒOƒŠƒbƒhƒrƒ…�[‚Ì’l‚ðƒ`ƒFƒbƒN
-                        if (BdWork.BillPrice != lSoumuBillGoukei)
-                        {
-                            // ƒ�ƒbƒN
-                            if (!IoBd.RowLock(iCompanyCode, TargetDate, iSeqNo, false))
-                            {
-                                throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                            }
-
-                            // ƒf�[ƒ^“o˜^
-                            BdWork.BillPrice = lSoumuBillGoukei;
-                            if (!IoBd.UpdateAction(strBdWhere, BdWork, false))
-                            {
-                                throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                            }
-                        }
-                    }
-
-                    // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^
-                    if (bMakeBpsData == true)
-                    {
-                        BillingPaymentSummary_DataEntry(dgv, iCompanyCode, bDeleteBpsData, iTantoShoninCount, IoBps, BpsList, BpsWork, strBpsWhere);
-                    }
-
-                    // �HŽ–�Ú�×‘ä’ Žx•¥‚¢ƒf�[ƒ^ˆêŠ‡“o˜^
-                    if (CleEntryList.Count > 0)
-                    {
-                        if (!ClsChangeLedgerData.EntryExecuteData(CleEntryList))
-                        {
-                            IoBd.rollback();
-                            IoBdD.rollback();
-                            IoPdD.rollback();
-                            IoPaI.rollback();
-                            IoBps.rollback();
-                            MessageBox.Show("�HŽ–�Ú�×‘ä’ Žx•¥‚¢ƒf�[ƒ^ˆêŠ‡“o˜^", "“o˜^ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                            return false;
-                        }
-                    }
-                }
-                catch (Exception ex)
-                {
-                    IoBd.rollback();
-                    IoBdD.rollback();
-                    IoPdD.rollback();
-                    IoPaI.rollback();
-                    IoBps.rollback();
-                    MessageBox.Show(ex.Message, "“o˜^ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                    return false;
-                }
-
-
-                IoBd.commit();
-                IoBdD.commit();
-                IoPdD.commit();
-                IoPaI.commit();
-                IoBps.commit();
-
-                return true;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                IoBd.close();
-                IoBd = null;
-                IoBdD.close();
-                IoBdD = null;
-                IoPdD.close();
-                IoPdD = null;
-                IoPaI.close();
-                IoPaI = null;
-                IoBps.close();
-                IoBps = null;
-            }
-
-        }
-        #endregion
-
-        #region BillingPaymentSummary_DataEntry
-        /// <summary>
-        /// BillingPaymentSummary_DataEntry
-        /// </summary>
-        /// <param name="dgv"></param>
-        /// <param name="iCompanyCode"></param>
-        /// <param name="bDeleteBpsData"></param>
-        /// <param name="iTantoShoninCount"></param>
-        /// <param name="IoBps"></param>
-        /// <param name="BpsList"></param>
-        /// <param name="BpsWork"></param>
-        /// <param name="strBpsWhere"></param>
-        private void BillingPaymentSummary_DataEntry(DataGridView dgv, int iCompanyCode, bool bDeleteBpsData, int iTantoShoninCount,
-                                IOBillingPaymentSummary IoBps, List<BillingPaymentSummary> BpsList, BillingPaymentSummary BpsWork, string strBpsWhere)
-        {
-            // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^-----------------------------------------------
-            for (int ChargePKind = 0; ChargePKind < 2; ChargePKind++)
-            {
-                strBpsWhere = IoBps.CreatePrimarykeyString(iCompanyCode, m_Select_TargetDate, ChargePKind);
-                BpsList = new List<BillingPaymentSummary>();
-
-                // ƒf�[ƒ^Šm”F
-                if (!IoBps.SelectAction(strBpsWhere, ref BpsList, false))
-                {
-                    throw new Exception("“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                }
-
-                BpsWork = new BillingPaymentSummary();
-
-                if (BpsList.Count == 0)
-                {
-                    // �V‹K�i‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�j
-                    BpsWork.CompanyCode = iCompanyCode;
-                    BpsWork.TargetDate = m_Select_TargetDate;
-                    BpsWork.ChargePaymentKind = ChargePKind;
-                    GetBpsGoukei(dgv, iCompanyCode, BpsWork.ChargePaymentKind, ref BpsWork);
-
-                    BpsList.Clear();
-                    BpsList.Add(BpsWork);
-
-                    if (!IoBps.InsertAction(BpsList, false))
-                    {
-                        throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                    }
-
-                }
-                else
-                {
-                    // �X�V
-                    // �í�œ‘Î�Û
-                    if (iTantoShoninCount == 0 && bDeleteBpsData == true)
-                    {
-                        // ƒ�ƒbƒN
-                        if (!IoBps.RowLock(iCompanyCode, m_Select_TargetDate, ChargePKind, false))
-                        {
-                            throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                        }
-
-                        // �X�V�i‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�j
-                        if (!IoBps.DeleteAction(strBpsWhere, false))
-                        {
-                            throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                        }
-                    }
-                    else
-                    {
-                        // ’l�Ý’è
-                        GetBpsGoukei(dgv, iCompanyCode, BpsList[0].ChargePaymentKind, ref BpsWork);
-
-                        // ƒ�ƒbƒN
-                        if (!IoBps.RowLock(iCompanyCode, m_Select_TargetDate, ChargePKind, false))
-                        {
-                            throw new Exception("‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
-                        }
-
-                        // �X�V�i‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�j
-                        if (!IoBps.UpdateAction(strBpsWhere, BpsWork, false))
-                        {
-                            throw new Exception("�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
-                        }
-                    }
-                }
-            }
-        }
-        #endregion
-
-        #region ‹ÆŽÒ�í�œ
-        /// <summary>
-        /// ‹ÆŽÒ�í�œ
-        /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
         private void btnDeleteCompany_Click(object sender, EventArgs e)
         {
-            IOPaymentDataDetail IoPdD;
+            IOPaymentDataDetail IoPdD = new IOPaymentDataDetail();
             DataGridView dgv;
             ArrayList arData = new ArrayList();
             string sWhere = "";
@@ -2930,7 +1122,6 @@
             {
                 dgv = getShowingView();
 
-                IoPdD = new IOPaymentDataDetail();
 
                 // Œ��”Žæ“¾
                 sWhere = string.Format("where CompanyCode = {0} and TargetDate = {1}", dgv.CurrentRow.Cells[m_Company_Column].Value, m_Select_TargetDate);
@@ -2945,9 +1136,10 @@
                 }
 
                 // �‡Œv�s�í�œ
-                DataGridViewRow[] RowsGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CommonMotions.cnvInt(dgv.CurrentRow.Cells[m_Company_Column].Value)
-                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) != 0)
-                                                         .ToArray();
+                DataGridViewRow[] RowsGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => (CommonMotions.cnvInt(x.Cells[m_Company_Column].Value)
+                                                                                            == CommonMotions.cnvInt(dgv.CurrentRow.Cells[m_Company_Column].Value))
+                                                                                        && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) != 0)
+                                                                                .ToArray();
 
                 foreach (DataGridViewRow r in RowsGoukei)
                 {
@@ -2954,7 +1146,8 @@
                     dgv.Rows.Remove(r);
                 }
 
-                DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CommonMotions.cnvInt(dgv.CurrentRow.Cells[m_Company_Column].Value)
+                DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => (CommonMotions.cnvInt(x.Cells[m_Company_Column].Value)
+                                                                                        == CommonMotions.cnvInt(dgv.CurrentRow.Cells[m_Company_Column].Value))
                                                                                     && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0)
                                                                          .ToArray();
                 foreach (DataGridViewRow r in Rows)
@@ -2989,6 +1182,7 @@
             }
             finally
             {
+                IoPdD.close();
                 IoPdD = null;
             }
 
@@ -2995,47 +1189,15 @@
         }
         #endregion
 
-        #region Žw’è�‡ŒvƒOƒ‹�[ƒv‚Ì�‡Œv�s‚ð�í�œ
+        #region Œ»�ê�í�œƒ{ƒ^ƒ“
         /// <summary>
-        /// Žw’è�‡ŒvƒOƒ‹�[ƒv‚Ì�‡Œv�s‚ð�í�œ
+        /// Œ»�ê�í�œƒ{ƒ^ƒ“
         /// </summary>
-        /// <param name="iGoukeiCode"></param>
-        private void DeleteGoukeiRows(int iGoukeiCode, ref bool Delete)
-        {
-            DataGridView dgv = getShowingView();
-            Delete = false;
-
-            // “¯ƒOƒ‹�[ƒv‚ª‘S‚Ä–³‚­‚È‚Á‚½�ê�‡‚Í�A�‡Œv•\Ž¦‚ð�í�œ
-            int cnt = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
-                                                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                            && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == iGoukeiCode)
-                                                    .Count();
-            if (cnt == 0)
-            {
-                // �‡Œv�s�í�œ
-                DataGridViewRow[] RowsGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == iGoukeiCode
-                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) != 0)
-                                                            .ToArray();
-
-                foreach (DataGridViewRow r in RowsGoukei)
-                {
-                    dgv.Rows.Remove(r);
-                }
-                Delete = true;
-            }
-
-        }
-        #endregion
-
-        #region Œ»�ê�í�œ
-        /// <summary>
-        /// Œ»�ê�í�œ
-        /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
         private void btnDeleteProject_Click(object sender, EventArgs e)
         {
-            IOPaymentDataDetail IoPdD;
+            IOPaymentDataDetail IoPdD = new IOPaymentDataDetail();
             DataGridView dgv;
             string sWhere;
 
@@ -3051,7 +1213,6 @@
 
             try
             {
-                IoPdD = new IOPaymentDataDetail();
                 List<PaymentDataDetail> PdDList = new List<PaymentDataDetail>();
 
                 dgv = getShowingView();
@@ -3139,7 +1300,7 @@
                                                                          .ToArray();
                 if (Rows.Count() == 0)
                 {
-                    if (m_viewTarget == 0)
+                    if (rdbCompany.Checked)
                     {
                         MakeIndex = dgv.CurrentRow.Index + 1;
                     }
@@ -3200,12 +1361,12 @@
 
                     iGoukeiCode = CommonMotions.cnvInt(dgv.Rows[MakeIndex].Cells[m_GoukeiCode_Column].Value);
 
-                    if (m_viewTarget == 1)
+                    if (rdbProject.Checked)
                     {
                         DataGridViewRow[] SameGenba = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Genba_Column].Value) == 0
-                                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
-                                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0)
-                                            .ToArray();
+                                                                                                && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
+                                                                                                && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0)
+                                                                                            .ToArray();
 
                         //‘¼‚É•s–¾‚ª‚È‚¯‚ê‚Î�‡Œv�s’Ç‰Á(�¡’Ç‰Á‚µ‚½•s–¾ˆÈŠO)
                         if (SameGenba.Count() == 1)
@@ -3221,16 +1382,19 @@
 
                 // “¯Œ»�ê‚ª‘S‚Ä–³‚­‚È‚Á‚½�ê�‡‚Í�A�‡Œv•\Ž¦‚ð�í�œ
                 int cnt = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
-                                                                && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                            && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == CommonMotions.cnvInt(dgv.CurrentRow.Cells[m_GoukeiCode_Column].Value))
+                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                    && (CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) 
+                                                                        == CommonMotions.cnvInt(dgv.CurrentRow.Cells[m_GoukeiCode_Column].Value)))
                                                         .Count();
                 //bool DeleteGoukeiRow = false;
                 if (cnt == 0)
                 {
                     // �‡Œv�s�í�œ
-                    DataGridViewRow[] RowsGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == CommonMotions.cnvInt(dgv.CurrentRow.Cells[m_GoukeiCode_Column].Value)
-                                                                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) != 0)
-                                                                 .ToArray();
+                    DataGridViewRow[] RowsGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x =>
+                                                                                            (CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value)
+                                                                                                == CommonMotions.cnvInt(dgv.CurrentRow.Cells[m_GoukeiCode_Column].Value))
+                                                                                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) != 0)
+                                                                                        .ToArray();
 
                     foreach (DataGridViewRow r in RowsGoukei)
                     {
@@ -3278,6 +1442,7 @@
             }
             finally
             {
+                IoPdD.close();
                 IoPdD = null;
             }
 
@@ -3315,228 +1480,6 @@
         }
         #endregion
 
-        #region ˜A”Ô‚ð�U‚è‚È‚¨‚·�@�¦“¯‹ÆŽÒƒf�[ƒ^‚ª‘S‚Ä�V‹K‚Ì�ê�‡‚Ì‚Ý
-        /// <summary>
-        /// ˜A”Ô‚ð�U‚è‚È‚¨‚·�@�¦“¯‹ÆŽÒƒf�[ƒ^‚ª‘S‚Ä�V‹K‚Ì�ê�‡‚Ì‚Ý
-        /// </summary>
-        private void ResetSeqNo(int CompanyCode)
-        {
-            try
-            {
-                DataGridView dgv = getShowingView();
-
-                DataGridViewRow[] ExistenceData = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
-                        && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                        && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Added)
-                        .ToArray();
-
-                if (ExistenceData.Count() == 0)
-                {
-                    int SeqNo = 1;
-
-                    DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
-                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0)
-                            .ToArray();
-                    int escSeqNo = 0;
-                    int LineCount = 1;
-                    foreach (DataGridViewRow r in Rows)
-                    {
-                        if (r.State != DataGridViewElementStates.None)
-                        {
-                            if (escSeqNo != CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value))
-                            {
-                                escSeqNo = CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value);
-                                r.Cells[(int)DispColumn.GroupSeqNo].Value = SeqNo;
-                                SeqNo++;
-                                LineCount = 1;
-                            }
-                            r.Cells[(int)DispColumn.LineCount].Value = LineCount;
-                            LineCount++;
-                        }
-                    }
-
-                }
-
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
-        #region No�`�‡Œv’PˆÊ‚Ì–¼�Ì•\Ž¦ƒŠƒZƒbƒg
-        /// <summary>
-        /// No�`�‡Œv’PˆÊ‚Ì–¼�Ì•\Ž¦ƒŠƒZƒbƒg
-        /// </summary>
-        private void ResetNo()
-        {
-
-            try
-            {
-                DataGridView dgv = getShowingView();
-                int DisporderCol = 0;
-                int iNo, iTop;
-
-                //‹ÆŽÒ�‡‚Å‚Ì•t”Ô
-                if (m_viewTarget == 0)
-                {
-                    DisporderCol = (int)DispColumn_Company.SubConstractorCode;
-
-                    var OrderRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
-                                                    .GroupBy(c => new
-                                                    {
-                                                        DispOrder = CommonMotions.cnvInt(c.Cells[DisporderCol].Value),
-                                                        GoukeiCode = CommonMotions.cnvInt(c.Cells[m_GoukeiCode_Column].Value),
-                                                        GoukeiName = CommonMotions.cnvString(c.Cells[m_GoukeiCode_Column + 2].ToolTipText)
-                                                    })
-                                                    .OrderBy(x => x.Key.DispOrder)
-                                                    .ToArray();
-
-                    iNo = 1;
-                    foreach (var k in OrderRows)
-                    {
-                        DataGridViewRow[] GoukeiRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                     && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.Key.GoukeiCode)
-                                                          .OrderBy(x => x.Cells[(int)DispColumn.CompanyDispOrder].Value)
-                                                          .ThenBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
-                                                          .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
-                                                          .ToArray();
-                        iTop = 1;
-                        foreach (DataGridViewRow r in GoukeiRows)
-                        {
-                            r.Cells[(int)DispColumn.GoukeiSeqNo].Value = iTop;
-                            iTop++;
-                        }
-
-                        DataGridViewRow[] Rows;
-                        if (m_viewTarget == 0)
-                        {
-                            Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
-                                                                                             && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                                             && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.Key.GoukeiCode)
-                                                                                    .OrderBy(x => x.Cells[(int)DispColumn.GoukeiSeqNo].RowIndex)
-                                                                                    .ToArray();
-                        }
-                        else
-                        {
-                            Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
-                                                                                         && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                                         && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.Key.GoukeiCode)
-                                                                                    .OrderBy(x => x.Cells[m_GoukeiCode_Column].RowIndex)
-                                                                                    .ToArray();
-                        }
-
-                        iTop = 1;
-                        foreach (DataGridViewRow r in Rows)
-                        {
-                            if (iTop == 1)
-                            {
-                                r.Cells[(int)DispColumn.No].Value = iNo;
-                                r.Cells[m_GoukeiCode_Column + 1].Value = k.Key.GoukeiCode;
-                                r.Cells[m_GoukeiCode_Column + 2].Value = k.Key.GoukeiName;
-                                r.Cells[m_GoukeiCode_Column + 2].ToolTipText = k.Key.GoukeiName;
-                            }
-                            else
-                            {
-                                r.Cells[(int)DispColumn.No].Value = "";
-                                r.Cells[m_GoukeiCode_Column + 1].Value = "";
-                                r.Cells[m_GoukeiCode_Column + 2].Value = "";
-                                r.Cells[m_GoukeiCode_Column + 2].ToolTipText = k.Key.GoukeiName;
-                            }
-                            iTop++;
-                        }
-                        iNo++;
-                    }
-                }
-                //Œ»�ê�‡‚Å‚Ì•t”Ô
-                else
-                {
-                    DisporderCol = m_GoukeiCode_Column;
-
-                    var OrderRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
-                                                    .GroupBy(c => new
-                                                    {
-                                                        DispOrder = CommonMotions.cnvInt(c.Cells[DisporderCol].Value),
-                                                        GoukeiCode = CommonMotions.cnvInt(c.Cells[m_GoukeiCode_Column].Value),
-                                                        GoukeiName = CommonMotions.cnvString(c.Cells[m_GoukeiCode_Column + 1].ToolTipText)
-                                                    }).Select(g => new
-                                                    {
-                                                        DispOrder = g.Key.DispOrder,
-                                                        GoukeiCode = g.Key.GoukeiCode,
-                                                        GoukeiName = g.Key.GoukeiName,
-                                                        MinRowIndex = g.Min(c => CommonMotions.cnvInt(c.Cells[DisporderCol].RowIndex))
-                                                    })
-                                                    .OrderBy(x => x.MinRowIndex)
-                                                    .ToArray();
-
-                    iNo = 1;
-                    foreach (var k in OrderRows)
-                    {
-                        DataGridViewRow[] GoukeiRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                     && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.GoukeiCode)
-                                                          .OrderBy(x => x.Cells[(int)DispColumn.CompanyDispOrder].Value)
-                                                          .ThenBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
-                                                          .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
-                                                          .ToArray();
-                        iTop = 1;
-                        foreach (DataGridViewRow r in GoukeiRows)
-                        {
-                            r.Cells[(int)DispColumn.GoukeiSeqNo].Value = iTop;
-                            iTop++;
-                        }
-
-                        DataGridViewRow[] Rows;
-                        if (m_viewTarget == 0)
-                        {
-                            Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
-                                                                                             && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                                             && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.GoukeiCode)
-                                                                                    .OrderBy(x => x.Cells[(int)DispColumn.GoukeiSeqNo].RowIndex)
-                                                                                    .ToArray();
-                        }
-                        else
-                        {
-                            Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
-                                                                                         && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                                         && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.GoukeiCode)
-                                                                                    .OrderBy(x => x.Cells[m_GoukeiCode_Column].RowIndex)
-                                                                                    .ToArray();
-                        }
-
-                        iTop = 1;
-                        foreach (DataGridViewRow r in Rows)
-                        {
-                            if (iTop == 1)
-                            {
-                                r.Cells[(int)DispColumn.No].Value = iNo;
-                                r.Cells[m_GoukeiCode_Column + 1].Value = k.GoukeiName;
-                                r.Cells[m_GoukeiCode_Column + 1].ToolTipText = k.GoukeiName;
-                            }
-                            else
-                            {
-                                r.Cells[(int)DispColumn.No].Value = "";
-                                r.Cells[m_GoukeiCode_Column + 1].Value = "";
-                                r.Cells[m_GoukeiCode_Column + 1].ToolTipText = k.GoukeiName;
-                            }
-                            iTop++;
-                        }
-                        iNo++;
-                    }
-                }
-
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
         #region �\�¿ƒ{ƒ^ƒ“‰Ÿ‰º
         /// <summary>
         /// �\�¿ƒ{ƒ^ƒ“‰Ÿ‰º
@@ -3634,6 +1577,11 @@
         }
         #endregion
 
+        /// <summary>
+        /// ŽèŠÔ�E’Ê�í‹ÆŽÒˆê——‰æ–Ê‚ð•\Ž¦‚·‚é�iƒeƒXƒg”Å�j
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
         private void button1_Click(object sender, EventArgs e)
         {
             DispReqSumTotalList();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.designer.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.designer.cs	(revision 270)
@@ -102,7 +102,12 @@
             this.btnShowView = new System.Windows.Forms.Button();
             this.CombinedOrderLabel1 = new System.Windows.Forms.Label();
             this.CombinedOrderLabel2 = new System.Windows.Forms.Label();
+            this.button1 = new System.Windows.Forms.Button();
+            this.btnOtherProc = new System.Windows.Forms.Button();
             this.groupBoxEx1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
+            this.panel2 = new System.Windows.Forms.Panel();
+            this.rdbProject = new System.Windows.Forms.RadioButton();
+            this.rdbCompany = new System.Windows.Forms.RadioButton();
             this.pnlApproval = new System.Windows.Forms.Panel();
             this.lblApprovalCount = new System.Windows.Forms.Label();
             this.btnPetition = new System.Windows.Forms.Button();
@@ -114,11 +119,8 @@
             this.lblPaymentDate = new System.Windows.Forms.Label();
             this.label5 = new System.Windows.Forms.Label();
             this.label2 = new System.Windows.Forms.Label();
-            this.rdbProject = new System.Windows.Forms.RadioButton();
-            this.rdbCompany = new System.Windows.Forms.RadioButton();
             this.cmbTargetMonth = new System.Windows.Forms.ComboBox();
             this.label3 = new System.Windows.Forms.Label();
-            this.label4 = new System.Windows.Forms.Label();
             this.dgvCompany = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.Column135 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column133 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -135,6 +137,7 @@
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column26 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column143 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -225,6 +228,7 @@
             this.Project_Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column138 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Project_Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column144 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Project_Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Project_Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Project_Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -299,9 +303,9 @@
             this.Column77 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column141 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column142 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.button1 = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
             this.groupBoxEx1.SuspendLayout();
+            this.panel2.SuspendLayout();
             this.pnlApproval.SuspendLayout();
             this.pnlApprovalButton.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvCompany)).BeginInit();
@@ -522,6 +526,31 @@
             this.CombinedOrderLabel2.Text = "æ¥­è€…æ”¯æ‰•";
             this.CombinedOrderLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // button1
+            // 
+            this.button1.Location = new System.Drawing.Point(929, 661);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(120, 30);
+            this.button1.TabIndex = 19;
+            this.button1.Text = "button1";
+            this.button1.UseVisualStyleBackColor = true;
+            this.button1.Visible = false;
+            this.button1.Click += new System.EventHandler(this.button1_Click);
+            // 
+            // btnOtherProc
+            // 
+            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
+            this.btnOtherProc.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnOtherProc.Location = new System.Drawing.Point(10, 661);
+            this.btnOtherProc.Name = "btnOtherProc";
+            this.btnOtherProc.Size = new System.Drawing.Size(160, 30);
+            this.btnOtherProc.TabIndex = 95;
+            this.btnOtherProc.TabStop = false;
+            this.btnOtherProc.Text = "ä»–ã�®ç”»é�¢ã�¸";
+            this.btnOtherProc.UseVisualStyleBackColor = false;
+            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
+            // 
             // groupBoxEx1
             // 
             this.groupBoxEx1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
@@ -529,16 +558,14 @@
             this.groupBoxEx1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
             this.groupBoxEx1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.groupBoxEx1.BorderColor = System.Drawing.Color.Gray;
+            this.groupBoxEx1.Controls.Add(this.panel2);
             this.groupBoxEx1.Controls.Add(this.pnlApproval);
             this.groupBoxEx1.Controls.Add(this.pnlApprovalButton);
             this.groupBoxEx1.Controls.Add(this.lblPaymentDate);
             this.groupBoxEx1.Controls.Add(this.label5);
             this.groupBoxEx1.Controls.Add(this.label2);
-            this.groupBoxEx1.Controls.Add(this.rdbProject);
-            this.groupBoxEx1.Controls.Add(this.rdbCompany);
             this.groupBoxEx1.Controls.Add(this.cmbTargetMonth);
             this.groupBoxEx1.Controls.Add(this.label3);
-            this.groupBoxEx1.Controls.Add(this.label4);
             this.groupBoxEx1.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
             this.groupBoxEx1.Location = new System.Drawing.Point(10, 40);
             this.groupBoxEx1.Margin = new System.Windows.Forms.Padding(4);
@@ -548,6 +575,50 @@
             this.groupBoxEx1.TabIndex = 2;
             this.groupBoxEx1.TabStop = false;
             // 
+            // panel2
+            // 
+            this.panel2.BackColor = System.Drawing.Color.White;
+            this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.panel2.Controls.Add(this.rdbProject);
+            this.panel2.Controls.Add(this.rdbCompany);
+            this.panel2.Location = new System.Drawing.Point(681, 6);
+            this.panel2.Name = "panel2";
+            this.panel2.Size = new System.Drawing.Size(227, 27);
+            this.panel2.TabIndex = 97;
+            // 
+            // rdbProject
+            // 
+            this.rdbProject.AutoSize = true;
+            this.rdbProject.BackColor = System.Drawing.Color.White;
+            this.rdbProject.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.rdbProject.ForeColor = System.Drawing.Color.Black;
+            this.rdbProject.Location = new System.Drawing.Point(128, 1);
+            this.rdbProject.Margin = new System.Windows.Forms.Padding(4);
+            this.rdbProject.Name = "rdbProject";
+            this.rdbProject.Size = new System.Drawing.Size(77, 20);
+            this.rdbProject.TabIndex = 9;
+            this.rdbProject.Text = "ç�¾ã€€å ´";
+            this.rdbProject.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.rdbProject.UseVisualStyleBackColor = false;
+            // 
+            // rdbCompany
+            // 
+            this.rdbCompany.AutoSize = true;
+            this.rdbCompany.BackColor = System.Drawing.Color.White;
+            this.rdbCompany.Checked = true;
+            this.rdbCompany.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.rdbCompany.ForeColor = System.Drawing.Color.Black;
+            this.rdbCompany.Location = new System.Drawing.Point(18, 1);
+            this.rdbCompany.Margin = new System.Windows.Forms.Padding(4);
+            this.rdbCompany.Name = "rdbCompany";
+            this.rdbCompany.Size = new System.Drawing.Size(77, 20);
+            this.rdbCompany.TabIndex = 8;
+            this.rdbCompany.TabStop = true;
+            this.rdbCompany.Text = "æ¥­ã€€è€…";
+            this.rdbCompany.TextAlign = System.Drawing.ContentAlignment.TopCenter;
+            this.rdbCompany.UseVisualStyleBackColor = false;
+            this.rdbCompany.CheckedChanged += new System.EventHandler(this.rdbCompany_CheckedChanged);
+            // 
             // pnlApproval
             // 
             this.pnlApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -662,7 +733,7 @@
             this.lblPaymentDate.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblPaymentDate.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.lblPaymentDate.ForeColor = System.Drawing.Color.Black;
-            this.lblPaymentDate.Location = new System.Drawing.Point(471, 5);
+            this.lblPaymentDate.Location = new System.Drawing.Point(417, 7);
             this.lblPaymentDate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.lblPaymentDate.Name = "lblPaymentDate";
             this.lblPaymentDate.Size = new System.Drawing.Size(120, 25);
@@ -676,7 +747,7 @@
             this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label5.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.label5.ForeColor = System.Drawing.Color.Black;
-            this.label5.Location = new System.Drawing.Point(343, 5);
+            this.label5.Location = new System.Drawing.Point(289, 7);
             this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label5.Name = "label5";
             this.label5.Size = new System.Drawing.Size(120, 25);
@@ -690,7 +761,7 @@
             this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label2.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label2.ForeColor = System.Drawing.Color.Black;
-            this.label2.Location = new System.Drawing.Point(607, 5);
+            this.label2.Location = new System.Drawing.Point(553, 7);
             this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(120, 25);
@@ -698,50 +769,17 @@
             this.label2.Text = "è¡¨ç¤ºå½¢å¼�";
             this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // rdbProject
-            // 
-            this.rdbProject.AutoSize = true;
-            this.rdbProject.BackColor = System.Drawing.Color.White;
-            this.rdbProject.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.rdbProject.ForeColor = System.Drawing.Color.Black;
-            this.rdbProject.Location = new System.Drawing.Point(861, 8);
-            this.rdbProject.Margin = new System.Windows.Forms.Padding(4);
-            this.rdbProject.Name = "rdbProject";
-            this.rdbProject.Size = new System.Drawing.Size(77, 20);
-            this.rdbProject.TabIndex = 7;
-            this.rdbProject.Text = "ç�¾ã€€å ´";
-            this.rdbProject.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
-            this.rdbProject.UseVisualStyleBackColor = false;
-            // 
-            // rdbCompany
-            // 
-            this.rdbCompany.AutoSize = true;
-            this.rdbCompany.BackColor = System.Drawing.Color.White;
-            this.rdbCompany.Checked = true;
-            this.rdbCompany.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.rdbCompany.ForeColor = System.Drawing.Color.Black;
-            this.rdbCompany.Location = new System.Drawing.Point(751, 8);
-            this.rdbCompany.Margin = new System.Windows.Forms.Padding(4);
-            this.rdbCompany.Name = "rdbCompany";
-            this.rdbCompany.Size = new System.Drawing.Size(77, 20);
-            this.rdbCompany.TabIndex = 6;
-            this.rdbCompany.TabStop = true;
-            this.rdbCompany.Text = "æ¥­ã€€è€…";
-            this.rdbCompany.TextAlign = System.Drawing.ContentAlignment.TopCenter;
-            this.rdbCompany.UseVisualStyleBackColor = false;
-            this.rdbCompany.CheckedChanged += new System.EventHandler(this.rdbCompany_CheckedChanged);
-            // 
             // cmbTargetMonth
             // 
             this.cmbTargetMonth.BackColor = System.Drawing.Color.White;
             this.cmbTargetMonth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
             this.cmbTargetMonth.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbTargetMonth.Font = new System.Drawing.Font("Century", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.cmbTargetMonth.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
             this.cmbTargetMonth.FormattingEnabled = true;
-            this.cmbTargetMonth.Location = new System.Drawing.Point(127, 6);
+            this.cmbTargetMonth.Location = new System.Drawing.Point(133, 5);
             this.cmbTargetMonth.Margin = new System.Windows.Forms.Padding(4);
             this.cmbTargetMonth.Name = "cmbTargetMonth";
-            this.cmbTargetMonth.Size = new System.Drawing.Size(160, 26);
+            this.cmbTargetMonth.Size = new System.Drawing.Size(140, 28);
             this.cmbTargetMonth.TabIndex = 1;
             this.cmbTargetMonth.SelectedIndexChanged += new System.EventHandler(this.cmbTargetMonth_SelectedIndexChanged);
             // 
@@ -751,27 +789,14 @@
             this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label3.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label3.ForeColor = System.Drawing.Color.Black;
-            this.label3.Location = new System.Drawing.Point(5, 5);
+            this.label3.Location = new System.Drawing.Point(5, 7);
             this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(114, 25);
+            this.label3.Size = new System.Drawing.Size(120, 25);
             this.label3.TabIndex = 0;
             this.label3.Text = "å¯¾ è±¡ æœˆ";
             this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // label4
-            // 
-            this.label4.BackColor = System.Drawing.Color.White;
-            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label4.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label4.ForeColor = System.Drawing.Color.Black;
-            this.label4.Location = new System.Drawing.Point(735, 4);
-            this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(227, 27);
-            this.label4.TabIndex = 5;
-            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // dgvCompany
             // 
             this.dgvCompany.AllowUserToAddRows = false;
@@ -805,6 +830,7 @@
             this.Column2,
             this.Column26,
             this.Column3,
+            this.Column143,
             this.Column4,
             this.Column9,
             this.Column10,
@@ -889,7 +915,7 @@
             this.dgvCompany.DefaultCellStyle = dataGridViewCellStyle27;
             this.dgvCompany.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
             this.dgvCompany.EnableHeadersVisualStyles = false;
-            this.dgvCompany.Location = new System.Drawing.Point(10, 82);
+            this.dgvCompany.Location = new System.Drawing.Point(10, 84);
             this.dgvCompany.Margin = new System.Windows.Forms.Padding(0);
             this.dgvCompany.MultiSelect = false;
             this.dgvCompany.Name = "dgvCompany";
@@ -1025,6 +1051,15 @@
             this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.Column3.Width = 180;
             // 
+            // Column143
+            // 
+            this.Column143.HeaderText = "è«‹æ±‚æ˜Žç´°";
+            this.Column143.Name = "Column143";
+            this.Column143.ReadOnly = true;
+            this.Column143.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column143.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column143.Width = 180;
+            // 
             // Column4
             // 
             dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
@@ -1655,6 +1690,7 @@
             this.Project_Column6,
             this.Column138,
             this.Project_Column7,
+            this.Column144,
             this.Project_Column8,
             this.Project_Column9,
             this.Project_Column10,
@@ -1739,7 +1775,7 @@
             this.dgvProject.DefaultCellStyle = dataGridViewCellStyle58;
             this.dgvProject.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
             this.dgvProject.EnableHeadersVisualStyles = false;
-            this.dgvProject.Location = new System.Drawing.Point(10, 82);
+            this.dgvProject.Location = new System.Drawing.Point(10, 84);
             this.dgvProject.Margin = new System.Windows.Forms.Padding(4);
             this.dgvProject.MultiSelect = false;
             this.dgvProject.Name = "dgvProject";
@@ -1874,6 +1910,15 @@
             this.Project_Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.Project_Column7.Width = 140;
             // 
+            // Column144
+            // 
+            this.Column144.HeaderText = "è«‹æ±‚æ˜Žç´°";
+            this.Column144.Name = "Column144";
+            this.Column144.ReadOnly = true;
+            this.Column144.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column144.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column144.Width = 180;
+            // 
             // Project_Column8
             // 
             dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
@@ -2452,6 +2497,7 @@
             this.Column21.Name = "Column21";
             this.Column21.Resizable = System.Windows.Forms.DataGridViewTriState.False;
             this.Column21.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column21.Width = 140;
             // 
             // Column77
             // 
@@ -2477,17 +2523,6 @@
             this.Column142.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.Column142.Visible = false;
             // 
-            // button1
-            // 
-            this.button1.Location = new System.Drawing.Point(929, 659);
-            this.button1.Name = "button1";
-            this.button1.Size = new System.Drawing.Size(120, 30);
-            this.button1.TabIndex = 19;
-            this.button1.Text = "button1";
-            this.button1.UseVisualStyleBackColor = true;
-            this.button1.Visible = false;
-            this.button1.Click += new System.EventHandler(this.button1_Click);
-            // 
             // FrmRequestSummaryList
             // 
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -2494,6 +2529,7 @@
             this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
             this.BackColor = System.Drawing.Color.Black;
             this.ClientSize = new System.Drawing.Size(1340, 697);
+            this.Controls.Add(this.btnOtherProc);
             this.Controls.Add(this.button1);
             this.Controls.Add(this.btnShowView);
             this.Controls.Add(this.CombinedOrderLabel1);
@@ -2524,6 +2560,8 @@
             this.panel1.PerformLayout();
             this.groupBoxEx1.ResumeLayout(false);
             this.groupBoxEx1.PerformLayout();
+            this.panel2.ResumeLayout(false);
+            this.panel2.PerformLayout();
             this.pnlApproval.ResumeLayout(false);
             this.pnlApprovalButton.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dgvCompany)).EndInit();
@@ -2540,10 +2578,7 @@
         private System.Windows.Forms.Button btnDataEntry;
         private System.Windows.Forms.ComboBox cmbTargetMonth;
         private System.Windows.Forms.Label label3;
-        private System.Windows.Forms.RadioButton rdbProject;
-        private System.Windows.Forms.RadioButton rdbCompany;
         private System.Windows.Forms.Label label2;
-        private System.Windows.Forms.Label label4;
         private System.Windows.Forms.Label label5;
         private System.Windows.Forms.Label lblPaymentDate;
         private System.Windows.Forms.Button btnDeleteProject;
@@ -2559,6 +2594,21 @@
         private System.Windows.Forms.Label label9;
         private System.Windows.Forms.Label label8;
         private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.Label CombinedOrderLabel1;
+        private System.Windows.Forms.Label CombinedOrderLabel2;
+        private System.Windows.Forms.Panel pnlApproval;
+        private System.Windows.Forms.Label lblApprovalCount;
+        private System.Windows.Forms.Button btnPetition;
+        private System.Windows.Forms.Button btnApproval;
+        private System.Windows.Forms.Panel pnlApprovalButton;
+        private System.Windows.Forms.Button btnOnApproval;
+        private System.Windows.Forms.Button btnNotApproval;
+        private System.Windows.Forms.Button btnOnHold;
+        private System.Windows.Forms.Button button1;
+        private System.Windows.Forms.Button btnOtherProc;
+        private System.Windows.Forms.Panel panel2;
+        private System.Windows.Forms.RadioButton rdbProject;
+        private System.Windows.Forms.RadioButton rdbCompany;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column135;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column133;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column71;
@@ -2574,6 +2624,7 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column26;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column143;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
@@ -2663,6 +2714,7 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Project_Column6;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column138;
         private System.Windows.Forms.DataGridViewTextBoxColumn Project_Column7;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column144;
         private System.Windows.Forms.DataGridViewTextBoxColumn Project_Column8;
         private System.Windows.Forms.DataGridViewTextBoxColumn Project_Column9;
         private System.Windows.Forms.DataGridViewTextBoxColumn Project_Column10;
@@ -2737,16 +2789,5 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column77;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column141;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column142;
-        private System.Windows.Forms.Label CombinedOrderLabel1;
-        private System.Windows.Forms.Label CombinedOrderLabel2;
-        private System.Windows.Forms.Panel pnlApproval;
-        private System.Windows.Forms.Label lblApprovalCount;
-        private System.Windows.Forms.Button btnPetition;
-        private System.Windows.Forms.Button btnApproval;
-        private System.Windows.Forms.Panel pnlApprovalButton;
-        private System.Windows.Forms.Button btnOnApproval;
-        private System.Windows.Forms.Button btnNotApproval;
-        private System.Windows.Forms.Button btnOnHold;
-        private System.Windows.Forms.Button button1;
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.resx	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryList.resx	(revision 270)
@@ -141,6 +141,9 @@
   <metadata name="Column137.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="Column143.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <metadata name="Column36.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
@@ -300,6 +303,9 @@
   <metadata name="Column138.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="Column144.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <metadata name="Column50.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 270)
@@ -22,7 +22,7 @@
 using ProcessManagement.Forms.ControlsAction;
 using ProcessManagement.Forms.SubForms;
 
-//*---------------------------- �¿‹�‚Ü‚Æ‚ß‰æ–Ê(•â�•)--------------------------*
+//*---------------------------- �¿‹�‚Ü‚Æ‚ß‰æ–Ê(•â�•)---------------------------*
 //  2015/07/13  Ver1.0.0.0      Create Source           
 //
 //
@@ -112,10 +112,18 @@
             {
                 logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
             }
+            finally
+            {
+                IoBbdm.close(); IoBbdm = null;
+            }
         }
         #endregion
 
         #region �‰Šú•\Ž¦‚ÌƒXƒ^ƒCƒ‹‚ð•Ï�X
+        /// <summary>
+        /// �‰Šú•\Ž¦‚ÌƒXƒ^ƒCƒ‹‚ð•Ï�X
+        /// </summary>
+        /// <param name="dgv"></param>
         private void InitDisplayStyle(DataGridView dgv)
         {
             dgv.Columns[(int)DispColumn.SomuSeikyu].HeaderCell.Style.BackColor = System.Drawing.Color.Coral;
@@ -396,7 +404,7 @@
         {
             try
             {
-                if (m_viewTarget == 0)
+                if (rdbCompany.Checked)
                 {
                     // �¿‹�‚Ü‚Æ‚ßˆê——�i‹ÆŽÒ�j‚ð•\Ž¦
                     dgvCompany.Visible = true;
@@ -416,7 +424,7 @@
         }
         #endregion
 
-        #region ƒ{ƒ^ƒ“�§Œä‚ð�s‚¤
+        #region ƒ{ƒ^ƒ“�§Œä‚ð�s‚¤�iƒf�[ƒ^Œ��”‚É‚æ‚è•Ï‰»�j
         /// <summary>
         /// ƒ{ƒ^ƒ“�§Œä‚ð�s‚¤�iƒf�[ƒ^Œ��”‚É‚æ‚è•Ï‰»�j
         /// </summary>
@@ -438,7 +446,9 @@
                 btnDeleteProject.Enabled = true;
             }
         }
+        #endregion
 
+        #region ƒ{ƒ^ƒ“�§Œä‚ð�s‚¤
         /// <summary>
         /// ƒ{ƒ^ƒ“�§Œä‚ð�s‚¤
         /// </summary>
@@ -448,7 +458,7 @@
             {
                 // ƒ†�[ƒU–ˆ‚Ìƒ{ƒ^ƒ“�§Œä
                 // ‘�–±’S“–
-                if (m_UserInfo.m_GeneralAffairsFlg == 1)
+                if (m_UserInfo.m_GeneralAffairsFlg == (int)SecurityMaster.GeneAffDef.GeneralDep)
                 {
                     btnAddCompany.Enabled = true;
                     btnDeleteCompany.Enabled = true;
@@ -482,7 +492,7 @@
                 }
 
                 // •\Ž¦Œ`Ž®‚ª�uŒ»�ê�v‚Ì�ê�‡�A”ñŠˆ�«
-                if (m_viewTarget != 0)
+                if (!rdbCompany.Checked)
                 {
                     btnAddCompany.Enabled = false;
                     btnDeleteCompany.Enabled = false;
@@ -508,7 +518,7 @@
                 return;
             }
             // ‘�–±’S“–
-            if (m_UserInfo.m_GeneralAffairsFlg == 1)
+            if (m_UserInfo.m_GeneralAffairsFlg == (int)SecurityMaster.GeneAffDef.GeneralDep)
             {
                 dgv.Columns[(int)DispColumn.KojiSeikyu].ReadOnly = true;
                 dgv.Columns[(int)DispColumn.KojiNebiki].ReadOnly = true;
@@ -555,6 +565,23 @@
         }
         #endregion
 
+        #region ‹ÆŽÒ�EŒ»�êŠeƒR�[ƒh‚Æ–¼�Ì‚Ì�s”Ô�†Žæ“¾
+        /// <summary>
+        ///  ‹ÆŽÒ�EŒ»�êŠeƒR�[ƒh‚Æ–¼�Ì‚Ì�s”Ô�†Žæ“¾
+        /// </summary>
+        private void SetColumnID()
+        {
+            m_Company_Column = rdbCompany.Checked ? (int)DispColumn_Company.SubConstractorCode : (int)DispColumn_Project.SubConstractorCode;
+            m_Company_DispColumn = rdbCompany.Checked ? (int)DispColumn_Company.CompanyCode : (int)DispColumn_Project.CompanyCode;
+            m_CompanyNM_Column = rdbCompany.Checked ? (int)DispColumn_Company.SubConstractorName : (int)DispColumn_Project.SubConstractorName;
+
+            m_Genba_Column = rdbCompany.Checked ? (int)DispColumn_Company.GengaCode : (int)DispColumn_Project.GengaCode;
+            m_GenbaNM_Column = rdbCompany.Checked ? (int)DispColumn_Company.GengaName : (int)DispColumn_Project.GengaName;
+
+            m_GoukeiCode_Column = rdbCompany.Checked ? (int)DispColumn_Company.SubConstractorCode : (int)DispColumn_Project.GengaCode;
+        }
+        #endregion
+
         #region Œ»�Ý•\Ž¦‚³‚ê‚Ä‚¢‚éˆê——‚ð•Ô‚·
         /// <summary>
         /// Œ»�Ý•\Ž¦‚³‚ê‚Ä‚¢‚éˆê——‚ð•Ô‚·
@@ -564,7 +591,7 @@
             try
             {
                 // �¿‹�‚Ü‚Æ‚ßˆê——�i‹ÆŽÒ�j‚ð•\Ž¦‚µ‚Ä‚¢‚é�ê�‡
-                if (m_viewTarget == 0)
+                if (rdbCompany.Checked)
                 {
                     return dgvCompany;
                 }
@@ -679,6 +706,184 @@
         }
         #endregion
 
+        #region Žw’è‚µ‚½‹¦—Í‰ïŽÐ�‡‚ÌŽŸ‚Ì‹¦—Í‰ïŽÐ‚ÌƒCƒ“ƒfƒbƒNƒX‚ðŽæ“¾‚µ�A”z’u‚µ‚½‚¢ƒCƒ“ƒfƒbƒNƒX‚ð•Ô‚·
+        /// <summary>
+        /// Žw’è‚µ‚½‹¦—Í‰ïŽÐ�‡‚ÌŽŸ‚Ì‹¦—Í‰ïŽÐ‚ÌƒCƒ“ƒfƒbƒNƒX‚ðŽæ“¾‚µ�A”z’u‚µ‚½‚¢ƒCƒ“ƒfƒbƒNƒX‚ð•Ô‚·
+        /// </summary>
+        /// <param name="InsertDispOrder"></param>
+        /// <returns></returns>
+        private int SearchRowIndex(int InsertDispOrder)
+        {
+            int Result = 0;
+            DataGridView dgv = getShowingView();
+            DataGridViewRow Row;
+
+            Row = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.CompanyDispOrder].Value) > InsertDispOrder
+                                                                           && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0).FirstOrDefault();
+
+
+            Result = Row == null ? -1 : Row.Index;
+            return Result;
+        }
+        #endregion
+
+        #region �s’Ç‰Á
+        /// <summary>
+        /// �V‹K�s’Ç‰Á
+        /// </summary>
+        /// <param name="CompanyCode">‹ÆŽÒƒR�[ƒh</param>
+        /// <param name="CompanyName">‹ÆŽÒ–¼</param>
+        /// <param name="GenbaCode">Œ»�êƒR�[ƒh</param>
+        /// <param name="No">No</param>
+        /// <param name="iGroupSeqNo">˜A”Ô</param>
+        /// <param name="iIndex">ƒf�[ƒ^�ì�¬ˆÊ’u</param>
+        /// <param name="GenbaName">Œ»�ê–¼</param>
+        private void MakeNewRow(int CompanyCode,
+                                string CompanyName,
+                                int GenbaCode,
+                                int No,
+                                ref int MakeIndex,
+                                int iGroupSeqNo = -1,
+                                int iIndex = -1,
+                                string GenbaName = "")
+        {
+            DataGridView dgv = getShowingView();
+            int iLineCnt = 0;
+            int iGoukeiSeqNo = 0;
+            int iGoukeiCode = rdbCompany.Checked ? CompanyCode : GenbaCode;
+            try
+            {
+                // �‡Œv—p�s”Ô�†
+                string cell = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == iGoukeiCode
+                                                                        && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                        && cnvRowState(x.Cells[(int)DispColumn.RowState].Value) != DataRowState.Deleted)
+                                                                .Max(x => (string)x.Cells[(int)DispColumn.GoukeiSeqNo].Value.ToString());
+                if (cell == null)
+                {
+                    iGoukeiSeqNo = 1;
+                }
+                else
+                {
+                    iGoukeiSeqNo = CommonMotions.cnvInt(cell) + 1;
+                }
+
+                // ˜A”Ô
+                cell = null;
+                if (iGroupSeqNo == -1)
+                {
+                    cell = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
+                                                                            && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
+                                                                  .Max(x => (string)x.Cells[(int)DispColumn.GroupSeqNo].Value.ToString());
+                    if (cell == null)
+                    {
+                        iGroupSeqNo = 1;
+                    }
+                    else
+                    {
+                        iGroupSeqNo = CommonMotions.cnvInt(cell) + 1;
+                    }
+                }
+
+                // �s”Ô�†
+                string lineCnt = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
+                                                                          && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == iGroupSeqNo
+                                                                          && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
+                                                                 .Max(x => (string)x.Cells[(int)DispColumn.LineCount].Value.ToString());
+                if (lineCnt == null)
+                {
+                    iLineCnt = 1;
+                }
+                else
+                {
+                    iLineCnt = CommonMotions.cnvInt(lineCnt) + 1;
+                }
+
+                if (iIndex == -1)
+                {
+                    iIndex = getNewIndexNo();
+                    dgv.Rows.Add(iIndex
+                                        , CompanyCode.ToString()
+                                        , CompanyName);
+                    MakeIndex = iIndex;
+                }
+                else
+                {
+                    dgv.Rows.Insert(iIndex
+                                        , CompanyCode.ToString()
+                                        , CompanyName);
+                }
+
+
+                dgv.Rows[iIndex].Cells[(int)DispColumn.CompanyDispOrder].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.ApprovalEndFlg].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.UpdateDate].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.RowState].Value = DataRowState.Added;   // ’Ç‰Á
+                dgv.Rows[iIndex].Cells[(int)DispColumn.RowVisible].Value = 1;   // ‰ÂŽ‹
+                dgv.Rows[iIndex].Cells[(int)DispColumn.RowType].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.No].Value = No == 0 ? "" : CommonMotions.cnvString(No);
+                dgv.Rows[iIndex].Cells[(int)DispColumn.GoukeiSeqNo].Value = iGoukeiSeqNo;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.GroupSeqNo].Value = iGroupSeqNo;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.LineCount].Value = iLineCnt;
+
+                dgv.Rows[iIndex].Cells[m_Company_Column].Value = CompanyCode;
+                dgv.Rows[iIndex].Cells[m_Company_DispColumn].Value = CompanyCode;
+                dgv.Rows[iIndex].Cells[m_CompanyNM_Column].Value = CompanyName;
+                dgv.Rows[iIndex].Cells[m_CompanyNM_Column].ToolTipText = CompanyName;
+                dgv.Rows[iIndex].Cells[m_Genba_Column].Value = GenbaCode;
+                dgv.Rows[iIndex].Cells[m_GenbaNM_Column].Value = GenbaName != "" ? GenbaName : "•s–¾";
+
+                dgv.Rows[iIndex].Cells[(int)DispColumn.SomuSeikyu].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.SomuKosoku].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.SomuKanamono].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.SomuSannhaiZei].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiSeikyu].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiNebiki].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiSousai].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.JikaiKurikosi].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiKosoku].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiKanamono].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.KojiSannhaiZei].Value = 0;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.KyoryokuKin].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.KyoryokuKinRitu].Value = 0;// �¦•Ï�X•K—v
+
+                // ˆê’UƒZƒ‹‚Ì’l•Ï�XƒCƒxƒ“ƒg‚ð–³Œø‚É‚·‚é
+                dgv.CellValueChanged -= DataGridView_CellValueChanged;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.KyoryokuUmu].Value = -1;
+                // ƒZƒ‹‚Ì’l•Ï�XƒCƒxƒ“ƒg‚ð—LŒø‚É‚·‚é
+                dgv.CellValueChanged += DataGridView_CellValueChanged;
+
+                dgv.Rows[iIndex].Cells[(int)DispColumn.CyuumonshoTeisyutu].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.CyuumonshoTouchaku].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.YosanSho].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.TantoShoninCode].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.TantoShonin].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.TantoShonin].Style.ForeColor = Color.Gray;
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin1].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin2].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin3].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin4].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin5].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin6].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin7].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin8].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin9].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Shonin10].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.Bikou].Value = "";
+                //dgv.Rows[iIndex].Cells[(int)DispColumn.ShohiZeiRitu].Value = 0;// �¦•Ï�X•K—v
+                dgv.Rows[iIndex].Cells[(int)DispColumn.ConstructionLedgerLineNo].Value = "";
+                dgv.Rows[iIndex].Cells[(int)DispColumn.ConstructionLedgerColNo].Value = "";
+
+                MakeIndex = iIndex;
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
         #region Œ»�ê‘I‘ðƒ_ƒCƒAƒ�ƒO•\Ž¦
         /// <summary>
         /// �HŽ–ˆÄŒ�‘I‘ðƒ_ƒCƒAƒ�ƒO•\Ž¦
@@ -691,7 +896,7 @@
             IOMPersonInCharge IoMpic = new IOMPersonInCharge();
             FrmRegField frmRegField = new FrmRegField();
             int ConstrDepartmentCode = 0;
-            ArrayList arData;
+            ArrayList arData = new ArrayList();
             List<RequestGridKeys> DeleteRowKeys = new List<RequestGridKeys>();
 
             try
@@ -727,7 +932,7 @@
                 }
 
                 // ‘�–±’S“–
-                if (m_UserInfo.m_GeneralAffairsFlg == 1)
+                if (m_UserInfo.m_GeneralAffairsFlg == (int)SecurityMaster.GeneAffDef.GeneralDep)
                 {
                     PersonCharge = 3;
                 }
@@ -741,10 +946,10 @@
                 constructionFieldNameHeader.PersonCharge = PersonCharge;
 
                 DataGridViewRow[] rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
-                                                                        && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
-                                                                        && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted
-                                                                        && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == iCompanyCode
-                                                                        && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == iSeqNo)
+                                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
+                                                                                    && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted
+                                                                                    && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == iCompanyCode
+                                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == iSeqNo)
                                                                         .ToArray();
                 foreach (DataGridViewRow r in rows)
                 {
@@ -798,10 +1003,9 @@
                     if (detail.ReadOnly == false)
                     {
                         string sCompanyName = "", sGenbaName = "";
-                        arData = null;
                         bool bGoukeiDelete = false;
 
-                        if (m_viewTarget == 0)
+                        if (rdbCompany.Checked)
                         {
                             iGoukeiCode = iCompanyCode;
                             sGenbaName = detail.FieldName;
@@ -833,7 +1037,7 @@
                             KojiTanto = Picm.SealPrintName;
 
                             // ’�•¶�‘—X‘—�E’�•¶�‘•Ô‘—�E—\ŽZ�‘‚Ì’lŽæ“¾
-                            arData = new ArrayList();
+                            arData.Clear();
                             if (!GetMarubatu(IoCbi, detail.ConstructionCode, ref arData)) throw new Exception("�HŽ–Šî–{�î•ñ�E�³”Fƒf�[ƒ^ƒGƒ‰�[");
                         }
 
@@ -885,7 +1089,7 @@
                                     dgv.Rows[iRowIndex].Cells[(int)DispColumn.RowVisible].Value = 0;
                                     dgv.Rows[iRowIndex].Visible = false;
                                 }
-                                if (m_viewTarget == 1)
+                                if (rdbProject.Checked)
                                 {
                                     DeleteGoukeiRows(CommonMotions.cnvInt(dgv.Rows[iRowIndex].Cells[m_GoukeiCode_Column].Value), ref bGoukeiDelete);
                                 }
@@ -921,7 +1125,7 @@
                             int iNo = 0;
                             bool bNewGoukei = false;
                             int iFumeiIndex = -1;
-                            if (m_viewTarget == 0)
+                            if (rdbCompany.Checked)
                             {
                                 //�Å‘å�s”Ô�†‚ÌŽæ“¾(‰B‚ê‚Ä‚¢‚é�s‚àŠÜ‚ß‚Ä)
                                 int MaxLineCount = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == iCompanyCode
@@ -956,7 +1160,7 @@
                                     bNewGoukei = true;
                                     MaxRow = new DataGridViewRow[] { dgv.Rows[dgv.Rows.Count - 1] };
 
-                                    if (m_viewTarget == 1 && detail.ConstructionCode == 0)
+                                    if (rdbProject.Checked && detail.ConstructionCode == 0)
                                     {
                                         iFumeiIndex = 0;
                                     }
@@ -975,7 +1179,7 @@
                             }
                             int MakeIndex = 0;
                             int SendMakeIndex;
-                            if (m_viewTarget == 0)
+                            if (rdbCompany.Checked)
                             {
                                 SendMakeIndex = iFumeiIndex == -1 ? MaxRow[0].Index : iFumeiIndex;
                             }
@@ -985,7 +1189,7 @@
                             }
                             MakeNewRow(iCompanyCode, sCompanyName, detail.ConstructionCode, iNo, ref MakeIndex, iSeqNo, SendMakeIndex, detail.FieldName);
 
-                            string sGoukeiName = m_viewTarget == 0 ? constructionFieldNameHeader.CompanyName : detail.FieldName;
+                            string sGoukeiName = rdbCompany.Checked ? constructionFieldNameHeader.CompanyName : detail.FieldName;
                             dgv.Rows[MakeIndex].Cells[m_GoukeiCode_Column + 1].ToolTipText = sGoukeiName;
                             dgv.Rows[MakeIndex].Cells[(int)DispColumn.CompanyDispOrder].Value = CompanyDispOrder;
                             dgv.Rows[MakeIndex].Cells[(int)DispColumn.SomuSeikyu].Value = detail.BillPrice;
@@ -1111,7 +1315,7 @@
                 // �‡Œv’lŽZ�o
                 setGoukei_DataDisp(dgv, iGoukeiCode);
 
-                if (m_viewTarget == 0)
+                if (rdbCompany.Checked)
                 {
                     ResetSeqNo(iGoukeiCode);
                 }
@@ -1137,6 +1341,908 @@
         }
         #endregion
 
+        #region No�`�‡Œv’PˆÊ‚Ì–¼�Ì•\Ž¦ƒŠƒZƒbƒg
+        /// <summary>
+        /// No�`�‡Œv’PˆÊ‚Ì–¼�Ì•\Ž¦ƒŠƒZƒbƒg
+        /// </summary>
+        private void ResetNo()
+        {
+
+            try
+            {
+                DataGridView dgv = getShowingView();
+                int DisporderCol = 0;
+                int iNo, iTop;
+
+                //‹ÆŽÒ�‡‚Å‚Ì•t”Ô
+                if (rdbCompany.Checked)
+                {
+                    DisporderCol = (int)DispColumn_Company.SubConstractorCode;
+
+                    var OrderRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
+                                                    .GroupBy(c => new
+                                                    {
+                                                        DispOrder = CommonMotions.cnvInt(c.Cells[DisporderCol].Value),
+                                                        GoukeiCode = CommonMotions.cnvInt(c.Cells[m_GoukeiCode_Column].Value),
+                                                        GoukeiName = CommonMotions.cnvString(c.Cells[m_GoukeiCode_Column + 2].ToolTipText)
+                                                    })
+                                                    .OrderBy(x => x.Key.DispOrder)
+                                                    .ToArray();
+
+                    iNo = 1;
+                    foreach (var k in OrderRows)
+                    {
+                        DataGridViewRow[] GoukeiRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                     && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.Key.GoukeiCode)
+                                                          .OrderBy(x => x.Cells[(int)DispColumn.CompanyDispOrder].Value)
+                                                          .ThenBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
+                                                          .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
+                                                          .ToArray();
+                        iTop = 1;
+                        foreach (DataGridViewRow r in GoukeiRows)
+                        {
+                            r.Cells[(int)DispColumn.GoukeiSeqNo].Value = iTop;
+                            iTop++;
+                        }
+
+                        DataGridViewRow[] Rows;
+                        if (rdbCompany.Checked)
+                        {
+                            Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
+                                                                                             && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                                             && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.Key.GoukeiCode)
+                                                                                    .OrderBy(x => x.Cells[(int)DispColumn.GoukeiSeqNo].RowIndex)
+                                                                                    .ToArray();
+                        }
+                        else
+                        {
+                            Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
+                                                                                         && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                                         && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.Key.GoukeiCode)
+                                                                                    .OrderBy(x => x.Cells[m_GoukeiCode_Column].RowIndex)
+                                                                                    .ToArray();
+                        }
+
+                        iTop = 1;
+                        foreach (DataGridViewRow r in Rows)
+                        {
+                            if (iTop == 1)
+                            {
+                                r.Cells[(int)DispColumn.No].Value = iNo;
+                                r.Cells[m_GoukeiCode_Column + 1].Value = k.Key.GoukeiCode;
+                                r.Cells[m_GoukeiCode_Column + 2].Value = k.Key.GoukeiName;
+                                r.Cells[m_GoukeiCode_Column + 2].ToolTipText = k.Key.GoukeiName;
+                            }
+                            else
+                            {
+                                r.Cells[(int)DispColumn.No].Value = "";
+                                r.Cells[m_GoukeiCode_Column + 1].Value = "";
+                                r.Cells[m_GoukeiCode_Column + 2].Value = "";
+                                r.Cells[m_GoukeiCode_Column + 2].ToolTipText = k.Key.GoukeiName;
+                            }
+                            iTop++;
+                        }
+                        iNo++;
+                    }
+                }
+                //Œ»�ê�‡‚Å‚Ì•t”Ô
+                else
+                {
+                    DisporderCol = m_GoukeiCode_Column;
+
+                    var OrderRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
+                                                    .GroupBy(c => new
+                                                    {
+                                                        DispOrder = CommonMotions.cnvInt(c.Cells[DisporderCol].Value),
+                                                        GoukeiCode = CommonMotions.cnvInt(c.Cells[m_GoukeiCode_Column].Value),
+                                                        GoukeiName = CommonMotions.cnvString(c.Cells[m_GoukeiCode_Column + 1].ToolTipText)
+                                                    }).Select(g => new
+                                                    {
+                                                        DispOrder = g.Key.DispOrder,
+                                                        GoukeiCode = g.Key.GoukeiCode,
+                                                        GoukeiName = g.Key.GoukeiName,
+                                                        MinRowIndex = g.Min(c => CommonMotions.cnvInt(c.Cells[DisporderCol].RowIndex))
+                                                    })
+                                                    .OrderBy(x => x.MinRowIndex)
+                                                    .ToArray();
+
+                    iNo = 1;
+                    foreach (var k in OrderRows)
+                    {
+                        DataGridViewRow[] GoukeiRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                     && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.GoukeiCode)
+                                                          .OrderBy(x => x.Cells[(int)DispColumn.CompanyDispOrder].Value)
+                                                          .ThenBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
+                                                          .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
+                                                          .ToArray();
+                        iTop = 1;
+                        foreach (DataGridViewRow r in GoukeiRows)
+                        {
+                            r.Cells[(int)DispColumn.GoukeiSeqNo].Value = iTop;
+                            iTop++;
+                        }
+
+                        DataGridViewRow[] Rows;
+                        if (rdbCompany.Checked)
+                        {
+                            Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
+                                                                                             && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                                             && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.GoukeiCode)
+                                                                                    .OrderBy(x => x.Cells[(int)DispColumn.GoukeiSeqNo].RowIndex)
+                                                                                    .ToArray();
+                        }
+                        else
+                        {
+                            Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
+                                                                                         && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                                         && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == k.GoukeiCode)
+                                                                                    .OrderBy(x => x.Cells[m_GoukeiCode_Column].RowIndex)
+                                                                                    .ToArray();
+                        }
+
+                        iTop = 1;
+                        foreach (DataGridViewRow r in Rows)
+                        {
+                            if (iTop == 1)
+                            {
+                                r.Cells[(int)DispColumn.No].Value = iNo;
+                                r.Cells[m_GoukeiCode_Column + 1].Value = k.GoukeiName;
+                                r.Cells[m_GoukeiCode_Column + 1].ToolTipText = k.GoukeiName;
+                            }
+                            else
+                            {
+                                r.Cells[(int)DispColumn.No].Value = "";
+                                r.Cells[m_GoukeiCode_Column + 1].Value = "";
+                                r.Cells[m_GoukeiCode_Column + 1].ToolTipText = k.GoukeiName;
+                            }
+                            iTop++;
+                        }
+                        iNo++;
+                    }
+                }
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region ˜A”Ô‚ð�U‚è‚È‚¨‚·�@�¦“¯‹ÆŽÒƒf�[ƒ^‚ª‘S‚Ä�V‹K‚Ì�ê�‡‚Ì‚Ý
+        /// <summary>
+        /// ˜A”Ô‚ð�U‚è‚È‚¨‚·�@�¦“¯‹ÆŽÒƒf�[ƒ^‚ª‘S‚Ä�V‹K‚Ì�ê�‡‚Ì‚Ý
+        /// </summary>
+        private void ResetSeqNo(int CompanyCode)
+        {
+            try
+            {
+                DataGridView dgv = getShowingView();
+
+                DataGridViewRow[] ExistenceData = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
+                        && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                        && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Added)
+                        .ToArray();
+
+                if (ExistenceData.Count() == 0)
+                {
+                    int SeqNo = 1;
+
+                    DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
+                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0)
+                            .ToArray();
+                    int escSeqNo = 0;
+                    int LineCount = 1;
+                    foreach (DataGridViewRow r in Rows)
+                    {
+                        if (r.State != DataGridViewElementStates.None)
+                        {
+                            if (escSeqNo != CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value))
+                            {
+                                escSeqNo = CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value);
+                                r.Cells[(int)DispColumn.GroupSeqNo].Value = SeqNo;
+                                SeqNo++;
+                                LineCount = 1;
+                            }
+                            r.Cells[(int)DispColumn.LineCount].Value = LineCount;
+                            LineCount++;
+                        }
+                    }
+
+                }
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region Žw’è�‡ŒvƒOƒ‹�[ƒv‚Ì�‡Œv�s‚ð�í�œ
+        /// <summary>
+        /// Žw’è�‡ŒvƒOƒ‹�[ƒv‚Ì�‡Œv�s‚ð�í�œ
+        /// </summary>
+        /// <param name="iGoukeiCode"></param>
+        private void DeleteGoukeiRows(int iGoukeiCode, ref bool Delete)
+        {
+            DataGridView dgv = getShowingView();
+            Delete = false;
+
+            // “¯ƒOƒ‹�[ƒv‚ª‘S‚Ä–³‚­‚È‚Á‚½�ê�‡‚Í�A�‡Œv•\Ž¦‚ð�í�œ
+            int cnt = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
+                                                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                            && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == iGoukeiCode)
+                                                    .Count();
+            if (cnt == 0)
+            {
+                // �‡Œv�s�í�œ
+                DataGridViewRow[] RowsGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == iGoukeiCode
+                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) != 0)
+                                                            .ToArray();
+
+                foreach (DataGridViewRow r in RowsGoukei)
+                {
+                    dgv.Rows.Remove(r);
+                }
+                Delete = true;
+            }
+
+        }
+        #endregion
+
+        #region –Ú“I‚Ì�‡Œv�s‚ÌDataGridView‚ÌIndex‚ð•Ô‚·
+        /// <summary>
+        /// –Ú“I‚Ì�‡Œv�s‚ÌDataGridView‚ÌIndex‚ð•Ô‚·
+        /// </summary>
+        /// <param name="CodeCol">ƒR�[ƒh—ñ”Ô�†</param>
+        /// <param name="Code">ƒR�[ƒh</param>
+        /// <param name="RowType">ŒŸ�õ‘Î�Û�‡Œv�s</param>
+        /// <returns></returns>
+        private int SearchRowIndex(int CodeCol, int Code, GoukeiRows RowType, int SeqNo = 0, int LineCode = 0, DataRowState NotRowState = DataRowState.Unchanged)
+        {
+            DataGridView dgv = getShowingView();
+            int type = (int)RowType;
+            int Result = 0;
+            DataGridViewRow[] Rows = null;
+            try
+            {
+                if (SeqNo == 0 && LineCode == 0)
+                {
+                    Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[CodeCol].Value) == Code
+                                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == type).ToArray();
+                }
+                else if (SeqNo != 0)
+                {
+                    Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)CodeCol].Value) == Code
+                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == SeqNo
+                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.LineCount].Value) == LineCode
+                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1).ToArray();
+                }
+
+
+                Result = Rows.Count() == 0 ? -1 : Rows[0].Index;
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            return Result;
+        }
+        #endregion
+
+        #region Žx•¥–¾�×ƒf�[ƒ^Šm”F
+        /// <summary>
+        /// Žx•¥–¾�×ƒf�[ƒ^Šm”F
+        /// </summary>
+        /// <param name="CompanyCode"></param>
+        /// <param name="SeqNo"></param>
+        /// <param name="LineCount"></param>
+        /// <returns></returns>
+        private int CheckPaymentDataDetail(int CompanyCode, int SeqNo, int LineCount)
+        {
+            IOPaymentDataDetail IoPdD = new IOPaymentDataDetail();
+            DataGridView dgv;
+            try
+            {
+                List<PaymentDataDetail> PdDList = new List<PaymentDataDetail>();
+
+                dgv = getShowingView();
+
+
+                string sWhere = IoPdD.CreatePrimarykeyString(CompanyCode, m_Select_TargetDate, SeqNo, LineCount);
+
+                if (!IoPdD.SelectAction(sWhere, ref PdDList))
+                {
+                    MessageBox.Show("ƒf�[ƒ^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½", "Œ»�ê�í�œ", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return -1;
+                }
+
+                //�@ƒf�[ƒ^‚ª‘¶�Ý‚µ‚Ä‚¢‚é���HŽ–’S“–ŽÒ“ü—Í—“‚ª“ü—Í‚³‚ê‚Ä‚¢‚é
+                return PdDList.Count;
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return -1;
+            }
+            finally
+            {
+                IoPdD.close();
+                IoPdD = null;
+            }
+        }
+        #endregion
+
+        #region �³”FŽÒ�Ý’è�i’S“–ŽÒ–¢�³”F‚Ì�ê�‡�j
+        /// <summary>
+        /// �³”FŽÒ�Ý’è�i’S“–ŽÒ–¢�³”F‚Ì�ê�‡�j
+        /// </summary>
+        /// <param name="dgv"></param>
+        /// <param name="iRowIndex"></param>
+        /// <param name="lstDefaultShonin"></param>
+        /// <returns></returns>
+        private bool SetDefaultShonin(DataGridView dgv,
+                                        int iRowIndex,
+                                        int DepartmentCode,
+                                        ref int DataCount,
+                                        List<ShoninData> lstDefaultShonin = null)
+        {
+            int iShoninColumn = 0;
+
+            try
+            {
+                if (lstDefaultShonin == null)
+                {
+                    lstDefaultShonin = new List<ShoninData>();
+                    // ’S“––¢�³”FŽž‚Ì�³”FŽÒ–¼�ÌŽæ“¾
+                    if (!GetShouninDefault(DepartmentCode, ref lstDefaultShonin)) return false;
+                }
+
+                // ’S“–ŽÒ–¢�³”Fƒf�[ƒ^
+                iShoninColumn = (int)DispColumn.Shonin1Code;
+                foreach (ShoninData work in lstDefaultShonin)
+                {
+                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = work.Key; // �³”FŽÒƒR�[ƒh
+                    dgv.Rows[iRowIndex].Cells[iShoninColumn].Style.ForeColor = Color.Gray;
+                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = work.Value;    // �³”FŽÒ–¼�iˆóŠÓ•\Ž¦–¼�j
+                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = "";       // �³”F“ú•t
+                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = work.ApprovalAuthority; // �³”FŽÒŒ ŒÀ‹æ•ª
+                    dgv.Rows[iRowIndex].Cells[iShoninColumn++].Value = work.Order; // �³”FŽÒ�‡”Ô
+                    DataCount++;
+                }
+
+                return true;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region ’S“––¢�³”F‚Ì�³”FŽÒƒŠƒXƒg
+        /// <summary>
+        /// ’S“––¢�³”F‚Ì�³”FŽÒƒŠƒXƒg
+        /// </summary>
+        /// <param name="AmList"></param>
+        /// <returns></returns>
+        private bool GetShouninDefault(int DepartmentCode, ref List<ShoninData> AmList)
+        {
+            IOMApproval IoAm = new IOMApproval();
+            ArrayList arDataAm = new ArrayList();
+            StringBuilder sql = new StringBuilder();
+            AmList = new List<ShoninData>();
+            try
+            {
+                sql.AppendLine("select Am.APPROVALPERSON,Picm.SealPrintName,Am.ApprovalAuthority ");
+                sql.AppendLine("from ApprovalMaster as Am left join PersonInChargeMaster as Picm on Am.APPROVALPERSON = Picm.PERSONCODE ");
+                // ApprovalListNo ‚ÌƒR�[ƒh‚ÅŽæ“¾‚·‚é
+                int iApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals(s_MyProcessName[m_Labourkind])).Key;
+                sql.AppendFormat("where Am.APPROVALCODE = {0} ", iApprovalCode);
+                sql.AppendFormat("and Am.DepartmentCode = {0} ", DepartmentCode);
+                sql.AppendLine("order by Am.SEQNO desc ");
+
+                if (!IoAm.ExecuteReader(sql.ToString(), ref arDataAm)) return false;
+                AmList = new List<ShoninData>();
+                int Order = 1;
+                foreach (object[] work in arDataAm)
+                {
+                    AmList.Add(new ShoninData()
+                    {
+                        Key = CommonMotions.cnvInt(work[0]),
+                        Value = CommonMotions.cnvString(work[1]),
+                        Order = Order,
+                        ApprovalAuthority = CommonMotions.cnvInt(work[2])
+                    });
+                    Order++;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                IoAm.close();
+                IoAm = null;
+            }
+        }
+        #endregion
+
+        #region ƒf�[ƒ^Žæ“¾Žž�A�‡Œv‹àŠzŽZ�o
+        /// <summary>
+        /// ƒf�[ƒ^Žæ“¾Žž�A�‡Œv‹àŠzŽZ�o
+        /// </summary>
+        /// <param name="dgv">‘Î�ÛƒOƒŠƒbƒh</param>
+        /// <param name="GoukeiCd">�‡Œv’PˆÊ‚ÌƒR�[ƒh</param>
+        private void setGoukei_DataDisp(DataGridView dgv, int GoukeiCd)
+        {
+            int iColIndex = 0;
+
+
+            // •K—v�s’Š�o ˜A”Ô�A�s”Ô�†�¸�‡
+            DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                              && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1
+                                                                              && CommonMotions.cnvInt(x.Cells[m_GoukeiCode_Column].Value) == GoukeiCd)
+                                                                        .OrderBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
+                                                                        .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
+                                                                        .ToArray();
+            foreach (DataGridViewRow row in Rows)
+            {
+                // ‹¦—Í‹à�Ý’è
+                SetKyoryokukin(dgv, row.Index, m_GoukeiCode_Column);
+
+                // ŽŸ‰ñŒJ‰z
+                dgv[(int)DispColumn.JikaiKurikosi, row.Index].Value = CommonMotions.cnvInt(dgv[(int)DispColumn.SomuSeikyu, row.Index].Value)
+                                                                        - (CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSeikyu, row.Index].Value)
+                                                                        + CommonMotions.cnvInt(dgv[(int)DispColumn.KojiNebiki, row.Index].Value)
+                                                                        + CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSousai, row.Index].Value));
+            }
+
+            ShoukeiSanshutu((int)DispColumn.SomuSeikyu, m_GoukeiCode_Column, GoukeiCd);
+            ShoukeiSanshutu((int)DispColumn.SomuKosoku, m_GoukeiCode_Column, GoukeiCd);
+            ShoukeiSanshutu((int)DispColumn.SomuKanamono, m_GoukeiCode_Column, GoukeiCd);
+            ShoukeiSanshutu((int)DispColumn.SomuSannhaiZei, m_GoukeiCode_Column, GoukeiCd);
+
+            ShoukeiSanshutu((int)DispColumn.KojiSeikyu, m_GoukeiCode_Column, GoukeiCd);
+
+            ShoukeiSanshutu((int)DispColumn.KojiNebiki, m_GoukeiCode_Column, GoukeiCd);
+            ShoukeiSanshutu((int)DispColumn.KojiSousai, m_GoukeiCode_Column, GoukeiCd);
+            ShoukeiSanshutu((int)DispColumn.JikaiKurikosi, m_GoukeiCode_Column, GoukeiCd);
+
+            ShoukeiSanshutu((int)DispColumn.KojiKosoku, m_GoukeiCode_Column, GoukeiCd);
+            ShoukeiSanshutu((int)DispColumn.KojiKanamono, m_GoukeiCode_Column, GoukeiCd);
+            ShoukeiSanshutu((int)DispColumn.KojiSannhaiZei, m_GoukeiCode_Column, GoukeiCd);
+            ShoukeiSanshutu((int)DispColumn.KyoryokuKin, m_GoukeiCode_Column, GoukeiCd);
+
+            // ‘�–±�‡Œv—“
+            iColIndex = (int)DispColumn.SomuKosoku;
+            foreach (GoukeiRows i in Enum.GetValues(typeof(GoukeiRows)))
+            {
+                if (i == GoukeiRows.�¬Œv)
+                    continue;
+                if (i == GoukeiRows.‹¦—Í‹à)
+                    break;
+
+                // —ñ�Ý’è
+                int ColIndex = (int)DispColumn.SomuSeikyu;
+
+                if (i == GoukeiRows.�Á”ï�Å)
+                {
+                    // �sŒŸ�õ
+                    int RowIndex = SearchRowIndex(m_GoukeiCode_Column, GoukeiCd, i);
+                    // �¬Œv�sŒŸ�õ
+                    int ShoukeiRowIndex = SearchRowIndex(m_GoukeiCode_Column, GoukeiCd, GoukeiRows.�¬Œv);
+                    if (ShoukeiRowIndex == -1) return;
+
+                    //�¦Œã‚É‰ïŽÐ�î•ñ‚©‚çŽæ“¾‚³‚ê‚é (Žb’è“I‚É’è�”’l—˜—p)                        �@
+                    //dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value) * CommonMotions.cnvDouble(dgv.CurrentRow.Cells[(int)DispColumn.ShohiZeiRitu].Value);
+                    //dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value) * 0.08);
+                    dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value)
+                                                                            * (CommonMotions.SystemMasterData.ConsumptionTax / 100));
+                }
+                else
+                {
+                    SetSubGoukei(dgv, ColIndex, iColIndex, m_GoukeiCode_Column, GoukeiCd, i);
+                    iColIndex++;
+                }
+
+            }
+
+
+            // �HŽ–�‡Œv—“
+            iColIndex = (int)DispColumn.KojiKosoku;
+            foreach (GoukeiRows i in Enum.GetValues(typeof(GoukeiRows)))
+            {
+                if (i == GoukeiRows.�¬Œv)
+                    continue;
+
+                // —ñ�Ý’è
+                int ColIndex = (int)DispColumn.KojiSeikyu;
+
+                if (i == GoukeiRows.�Á”ï�Å)
+                {
+                    // �sŒŸ�õ
+                    int RowIndex = SearchRowIndex(m_GoukeiCode_Column, GoukeiCd, i);
+                    // �¬Œv�sŒŸ�õ
+                    int ShoukeiRowIndex = SearchRowIndex(m_GoukeiCode_Column, GoukeiCd, GoukeiRows.�¬Œv);
+
+                    if (RowIndex < 0 || ShoukeiRowIndex < 0) return;
+
+                    //�¦Œã‚É‰ïŽÐ�î•ñ‚©‚çŽæ“¾‚³‚ê‚é (Žb’è“I‚É’è�”’l—˜—p)                    �@
+                    //dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value)
+                    //*CommonMotions.cnvDouble(dgv.CurrentRow.Cells[(int)DispColumn.ShohiZeiRitu].Value);
+                    //dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value) * 0.08);
+                    dgv[ColIndex, RowIndex].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv[ColIndex, ShoukeiRowIndex].Value)
+                                                                            * (CommonMotions.SystemMasterData.ConsumptionTax / 100));
+                }
+                else
+                {
+                    SetSubGoukei(dgv, ColIndex, iColIndex, m_GoukeiCode_Column, GoukeiCd, i);
+                    iColIndex++;
+                }
+
+            }
+
+            // �Å�I�‡Œv
+            setGoukei(m_GoukeiCode_Column, GoukeiCd);
+        }
+        #endregion
+
+        #region ‹¦—Í‹à•\Ž¦
+        /// <summary>
+        /// ‹¦—Í‹à•\Ž¦
+        /// </summary>
+        /// <param name="dgv"></param>
+        /// <param name="RowIndex"></param>
+        /// <param name="Code_Column"></param>
+        private void SetKyoryokukin(DataGridView dgv, int RowIndex, int Code_Column)
+        {
+            if (dgv.CurrentRow == null)
+                return;
+
+            if (RowIndex == -1)
+                return;
+
+            // ‹¦—Í‹à—L–³�w�›�x
+            if (CommonMotions.cnvInt(dgv[(int)DispColumn.KyoryokuUmu, RowIndex].Value) == 1)
+            {
+                //�¦Œã‚É‰ïŽÐ�î•ñ‚©‚çŽæ“¾‚³‚ê‚é                         
+                //dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKin].Value = CommonMotions.cnvDouble(dgv.Rows[RowIndex].Cells[(int)DispColumn.KojiSeikyu].Value)
+                //                                                            * CommonMotions.cnvDouble(dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKinRitu].Value);
+                //SystemMaster sm = new SystemMaster();
+                //dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKin].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv.Rows[RowIndex].Cells[(int)DispColumn.KojiSeikyu].Value)
+                //                                                            * (sm.CooperationRate / 100));�@
+
+                dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKin].Value = CommonMotions.cnvRound(CommonMotions.cnvDouble(dgv.Rows[RowIndex].Cells[(int)DispColumn.KojiSeikyu].Value)
+                                                                                                        * (CommonMotions.SystemMasterData.ConsumptionTax / 100));
+            }
+            else
+            {
+                dgv.Rows[RowIndex].Cells[(int)DispColumn.KyoryokuKin].Value = "";
+            }
+
+            // �¬ŒvŽZ�o
+            ShoukeiSanshutu((int)DispColumn.KyoryokuKin, Code_Column, CommonMotions.cnvInt(dgv[Code_Column, RowIndex].Value));
+
+            // �‡Œv’lŽZ�o
+            SetSubGoukei(dgv, (int)DispColumn.KojiSeikyu, (int)DispColumn.KyoryokuKin, Code_Column, CommonMotions.cnvInt(dgv[Code_Column, RowIndex].Value), GoukeiRows.‹¦—Í‹à);
+
+        }
+        #endregion
+
+        #region ƒTƒu�‡Œv’l�Ý’è
+        /// <summary>
+        /// ƒTƒu�‡Œv’l�Ý’è
+        /// </summary>
+        /// <param name="dgv">‘Î�ÛƒOƒŠƒbƒh</param>
+        /// <param name="ColIndex">‘Î�Û—ñƒCƒ“ƒfƒbƒNƒX</param>
+        /// <param name="Code_Column">�‡Œv‚·‚é’PˆÊ‚Ì—ñ”Ô�†</param>
+        /// <param name="Code">�‡Œv‚·‚é’PˆÊ‚Ì—ñ‚Ì’l</param>
+        /// <param name="SetRow">‘Î�Û�‡Œv�s</param>
+        private void SetSubGoukei(DataGridView dgv, int ColIndex, int GetColIndex, int Code_Column, int Code, GoukeiRows SetRow)
+        {
+            // �sŒŸ�õ
+            int RowIndex = SearchRowIndex(Code_Column, Code, SetRow);
+            // �¬Œv�sŒŸ�õ
+            int GetRowIndex = SearchRowIndex(Code_Column, Code, GoukeiRows.�¬Œv);
+
+            if (RowIndex < 0 || GetRowIndex < 0) return;
+
+            dgv[ColIndex, RowIndex].Value = dgv[GetColIndex, GetRowIndex].Value;
+
+        }
+        #endregion
+
+        #region �¬ŒvŽZ�o
+        /// <summary>
+        /// �¬ŒvŽZ�o
+        /// </summary>
+        /// <param name="TargetColumn"></param>
+        /// <param name="CompanyCode_Column"></param>
+        /// <param name="CompanyCode"></param>
+        private void ShoukeiSanshutu(int TargetColumn, int Code_Column, int Code)
+        {
+            DataGridView dgv = getShowingView();
+
+            try
+            {
+                if (dgv.RowCount <= 1)
+                {
+                    return;
+                }
+                // �¬Œv�sŒŸ�õ
+                int ShoukeiRowIndex = SearchRowIndex(Code_Column, Code, GoukeiRows.�¬Œv);
+                if (ShoukeiRowIndex == -1) return;
+
+                int Shoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[Code_Column].Value) == Code
+                                                                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                            && CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowVisible].Value) == 1)
+                                                                .Sum(y => CommonMotions.cnvInt(y.Cells[(int)TargetColumn].Value));
+
+                dgv[TargetColumn, ShoukeiRowIndex].Value = Shoukei;
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region �‡Œv�s
+        /// <summary>
+        /// �‡Œv�s
+        /// </summary>
+        /// <param name="CompanyCode_Column">‘Î�Û‹ÆŽÒƒR�[ƒh—ñ”Ô�†</param>
+        /// <param name="CompanyCode">‘Î�Û‹ÆŽÒƒR�[ƒh</param>
+        private void setGoukei(int CompanyCode_Column, int CompanyCode)
+        {
+            DataGridView dgv = getShowingView();
+            try
+            {
+                // �Ý’è�sŒŸ�õ
+                int RowIndex = SearchRowIndex(CompanyCode_Column, CompanyCode, GoukeiRows.�‡Œv);
+                if (RowIndex < 0) return;
+
+                int SoumuKei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[CompanyCode_Column].Value) == CompanyCode &&
+                                                                                                                    ((int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�¬Œv ||
+                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�Á”ï�Å ||
+                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�‚‘¬‘ã ||
+                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.‹à•¨‘ã ||
+                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.ŽY”p�Å))
+                                                               .Sum(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.SomuSeikyu].Value));
+                dgv[(int)DispColumn.SomuSeikyu, RowIndex].Value = SoumuKei;
+
+                int KojiKei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[CompanyCode_Column].Value) == CompanyCode &&
+                                                                                                                    ((int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�¬Œv ||
+                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�Á”ï�Å ||
+                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.�‚‘¬‘ã ||
+                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.‹à•¨‘ã ||
+                                                                                                                     (int)x.Cells[(int)DispColumn.RowType].Value == (int)GoukeiRows.ŽY”p�Å))
+                                                               .Sum(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.KojiSeikyu].Value));
+                KojiKei = KojiKei - CommonMotions.cnvInt(dgv[(int)DispColumn.KojiSeikyu, SearchRowIndex(CompanyCode_Column, CompanyCode, GoukeiRows.‹¦—Í‹à)].Value);
+                dgv[(int)DispColumn.KojiSeikyu, RowIndex].Value = KojiKei;
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region �‡Œv�s�ì�¬
+        /// <summary>
+        /// �‡Œv�s�ì�¬
+        /// </summary>
+        /// <param name="dgv">‘Î�ÛƒOƒŠƒbƒh</param>
+        /// <param name="GoukeiCD">�‡Œv’PˆÊƒR�[ƒh</param>
+        /// <param name="DispOrder">‹¦—Í‰ïŽÐ•\Ž¦�‡</param>
+        /// <param name="StartIndex">�s�ì�¬ˆÊ’u</param>
+        private void MakeGoukeiGyo(DataGridView dgv, int GoukeiCD, int DispOrder = 0, int StartIndex = -1)
+        {
+            try
+            {
+                int cnt = 0;
+                if (StartIndex != -1)
+                {
+                    cnt = StartIndex;
+                }
+
+                DataGridViewRow[] list = new DataGridViewRow[(int)GoukeiRows.�‡Œv];
+                foreach (GoukeiRows i in Enum.GetValues(typeof(GoukeiRows)))
+                {
+                    DataGridViewRow row = new DataGridViewRow();
+                    row.CreateCells(dgv);
+
+                    string Money = "";
+                    if (i == GoukeiRows.�¬Œv)
+                    {
+                        Money = "0";
+                    }
+
+                    if (dgvCompany.Visible == true)
+                    {
+                        row.SetValues(new object[] { DispOrder,
+                                                        "",
+                                                        "",
+                                                        DataRowState.Unchanged,
+                                                        1,
+                                                        (int)i,
+                                                        0,
+                                                        0,
+                                                        0,
+                                                        "",
+                                                        GoukeiCD,
+                                                        "",
+                                                        "",
+                                                        "",
+                                                        "",     // ’Ç‰Á�@2017/9/11
+                                                        Enum.GetName(typeof(GoukeiRows), i),
+                                                        0,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        0,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        "",
+                                                        0,
+                                                        -1,
+                                                        "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" });
+                    }
+                    else
+                    {
+                        row.SetValues(new object[] { DispOrder,
+                                                        "",
+                                                        "",
+                                                        DataRowState.Unchanged,
+                                                        1,
+                                                        (int)i,
+                                                        0,
+                                                        0,
+                                                        0,
+                                                        "",
+                                                        GoukeiCD,
+                                                        "",
+                                                        "",
+                                                        "",
+                                                        "",     // ’Ç‰Á�@2017/9/11
+                                                        Enum.GetName(typeof(GoukeiRows), i),
+                                                        0,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        0,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        Money,
+                                                        "",
+                                                        0,
+                                                        -1,
+                                                        "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" });
+                    }
+                    row.ReadOnly = true;
+                    switch (i)
+                    {
+                        case GoukeiRows.�¬Œv:
+                            //row.DefaultCellStyle.BackColor = Color.Khaki;
+                            row.DefaultCellStyle.BackColor = Color.LightGoldenrodYellow;
+                            break;
+                        case GoukeiRows.�‡Œv:
+                            //row.DefaultCellStyle.BackColor = Color.Yellow;
+                            row.DefaultCellStyle.BackColor = Color.DarkGray;
+                            break;
+                        default:
+                            //row.DefaultCellStyle.BackColor = Color.Aqua;
+                            row.DefaultCellStyle.BackColor = Color.LightGray;
+                            break;
+                    }
+
+                    if (StartIndex != -1)
+                    {
+                        dgv.Rows.Insert(cnt++, row);
+                    }
+                    else
+                    {
+                        list[(int)i - 1] = row;
+                    }
+                }
+
+                if (StartIndex == -1)
+                {
+                    dgv.Rows.AddRange(list);
+                }
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region ’�•¶�‘—X‘—�E’�•¶�‘•Ô‘—�E—\ŽZ�‘‚Ì’lŽæ“¾
+        /// <summary>
+        /// ’�•¶�‘—X‘—�E’�•¶�‘•Ô‘—�E—\ŽZ�‘‚Ì’lŽæ“¾
+        /// </summary>
+        /// <param name="IoCbi"></param>
+        /// <param name="ConstructionCode"></param>
+        /// <param name="arData"></param>
+        /// <returns></returns>
+        private bool GetMarubatu(IOConstructionBaseInfo IoCbi, int ConstructionCode, ref ArrayList arData)
+        {
+            StringBuilder sql = new StringBuilder();
+
+            try
+            {
+                sql.AppendLine("select  ");
+                sql.AppendLine(" case ifnull(Cbi.PurchaseOrderMailingDate,'2001-01-01') when '2001-01-01' then '�~'   ");
+                sql.AppendLine("																	      else '�›'  ");
+                sql.AppendLine(" end as PurchaseOrderMailingDate, /*’�•¶�‘—X‘—“ú*/ ");
+                sql.AppendLine(" case ifnull(Cbi.PurchaseOrderReturnDate,'2001-01-01') when '2001-01-01' then '�~'   ");
+                sql.AppendLine("																	      else '�›'  ");
+                sql.AppendLine(" end as PurchaseOrderReturnDate,  /*’�•¶�‘•Ô‘—“ú*/ ");
+                sql.AppendLine(" case ifnull(Pa.PERSONCODE,0) when 0 then '�~' /* —\ŽZ�‘ */ ");
+                sql.AppendLine("							  else '�›'   ");
+                sql.AppendLine(" end as PaData   ");
+                sql.AppendLine(" from ConstructionBaseInfo as Cbi");
+                sql.AppendLine(" left join (PersonInChargeMaster as Picm2");
+                sql.AppendLine("      left join ApprovalMaster as Am");
+                sql.AppendLine("           on Picm2.DEPARTMENTCODE = Am.DEPARTMENTCODE");
+                sql.AppendLine("           and Am.ApprovalCode = 3");
+                sql.AppendLine("           and ApprovalAuthority = 1)");
+                sql.AppendLine(" on Cbi.ConstructionPersonCode = Picm2.PERSONCODE  ");
+                sql.AppendLine(" left join ProcessApproval as Pa");
+                sql.AppendLine(" on Cbi.CONSTRUCTIONCODE = Pa.CONSTRUCTIONCODE");
+                sql.AppendLine(" and Am.APPROVALPERSON = Pa.PERSONCODE");
+                sql.AppendLine(" and Pa.SEQNO > 1");
+                sql.AppendLine(" and Pa.APPROVALSTATUS = 2 ");
+                sql.AppendFormat("where Cbi.CONSTRUCTIONCODE = {0} ", ConstructionCode);
+                sql.AppendLine("group by Cbi.PurchaseOrderMailingDate, ");
+                sql.AppendLine("Cbi.PurchaseOrderReturnDate, ");
+                sql.AppendLine("Pa.PERSONCODE ");
+
+                // SQLŽÀ�s
+                if (!IoCbi.ExecuteReader(sql.ToString(), ref arData)) return false;
+                if (arData.Count == 0) return false;
+
+
+                return true;
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+
+        #endregion
+
         #region �s”Ô�†Žæ“¾
         /// <summary>
         /// �s”Ô�†Žæ“¾
@@ -1304,6 +2410,7 @@
 
                 int ApprovalNo = 0;
                 int ApprovalPerson = 0;
+                int PettionPerson = 0;
                 string ApprovalPersonName = string.Empty;
                 int ApprovalAuthority = 0;
                 DateTime dtApproval = DateTime.MinValue;
@@ -1318,6 +2425,13 @@
                     SeqNo = CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.GroupSeqNo].Value);
                     if (CompanyCode == 0) continue;
 
+                    // �\�¿Žž‚Í�\�¿‘Î�Û‚Ì‚ÝƒZƒbƒg‚·‚é
+                    if (bPettion)
+                    {
+                        PettionPerson = CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.TantoShoninCode].Value);
+                        if (PettionPerson != CommonMotions.LoginUserData.PersonCode) continue;
+                    }
+
                     for (int i = (int)DispColumn.Shonin1Code; i < (int)DispColumn.Bikou; i += s_ShoninBlockCnt)
                     {
 
@@ -1329,7 +2443,8 @@
                         if (ApprovalPerson == 0) continue;
 
                         // �\�¿ŽžˆÈŠO‚Í‘Î�Û‚Ì‚ÝƒZƒbƒg‚·‚é
-                        if (!bPettion && ApprovalPerson != CommonMotions.LoginUserData.PersonCode) continue;
+                        //if (!bPettion && (ApprovalPerson != CommonMotions.LoginUserData.PersonCode)) continue;
+                        if (ApprovalPerson != CommonMotions.LoginUserData.PersonCode) continue;
 
                         PaymentApprovalInfo DataRec = new PaymentApprovalInfo();
                         DataRec.CompanyCode = CompanyCode;                  // ‹¦—Í‰ïŽÐƒR�[ƒh
@@ -1363,7 +2478,7 @@
             try
             {
                 // ƒf�[ƒ^“o˜^
-                if (!DataEntry()) return;
+                if (!DataEntryProcess()) return;
 
                 // ‹N“®”Ô�†
                 int NowPoint = ClsExcute.NextProcess((int)ClsExcute.SubFormExecuteNo.ApprovalPerson);
@@ -1441,7 +2556,7 @@
             try
             {
                 // ƒf�[ƒ^“o˜^
-                if (!DataEntry()) return;
+                if (!DataEntryProcess()) return;
 
                 // ‹N“®”Ô�†
                 int NowPoint = ClsExcute.NextProcess((int)ClsExcute.SubFormExecuteNo.ApprovalPerson);
@@ -1752,47 +2867,6 @@
         }
         #endregion
 
-        #region �I—¹Žž�ˆ—�
-        /// <summary>
-        /// �I—¹ŽžƒTƒuƒtƒH�[ƒ€ƒNƒ��[ƒY
-        /// </summary>
-        private void TerminatingProcess()
-        {
-            try
-            {
-                // ƒtƒH�[ƒ€‚ªClose‚³‚ê‚Ä‚¢‚È‚¯‚ê‚ÎƒNƒ��[ƒY‚·‚é
-                for (int i = 0; i < ClsExcute.SubFormHandleList.Length; i++)
-                {
-                    PreserveSubFormHandle Handle = ClsExcute.SubFormHandleList[i];
-
-                    // Ž©•ª‚ª‹N“®‚µ‚½‚à‚ÌˆÈŠO‚Í�ˆ—�‚µ‚È‚¢
-                    if (Handle.ProcessNo != (int)ClsExcute.ProcessExecuteNo.RequestSummaryList) continue;
-
-                    // Ž©•ª‚Í�ˆ—�‚µ‚È‚¢
-                    if (i == (int)ClsExcute.ProcessExecuteNo.RequestSummaryList)
-                    {
-                        ClsExcute.SubFormHandleList[i].SubFormHandle = null;
-                        ClsExcute.SubFormHandleList[i].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
-                        continue;
-                    }
-
-                    // ‹N“®‚³‚ê‚Ä–³‚¯‚ê‚Î�ˆ—�‚µ‚È‚¢
-                    if (Handle.SubFormHandle == null) continue;
-
-                    // ‰æ–ÊƒNƒ��[ƒY
-                    Handle.SubFormHandle.Close();
-                    if (Handle.SubFormHandle != null) Handle.SubFormHandle.Dispose();
-                    ClsExcute.SubFormHandleList[i].SubFormHandle = null;
-
-                }
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
         #region ƒOƒŠƒbƒh•\Ž¦
         /// <summary>
         /// ƒOƒŠƒbƒh•\Ž¦
@@ -1827,7 +2901,7 @@
             try
             {
                 // �‡Œv’l�sŽZ�o‚Ì’PˆÊ
-                if (m_viewTarget == 0)
+                if (rdbCompany.Checked)
                 {
                     DataGoukeiCd_Column = (int)ClickGetData.COMPANYCODE;
                 }
@@ -1858,11 +2932,11 @@
 
                 if (dgvCompany.Visible == true)         // ‹ÆŽÒ’PˆÊ•\Ž¦
                 {
-                    sql.AppendLine("order by CompanyCode ASC, SeqNo ASC, LineCount ASC ");
+                    sql.AppendLine(" order by CompanyCode ASC, SeqNo ASC, LineCount ASC, ConstructionCode ASC ");
                 }
                 else if (dgvProject.Visible == true)    // Œ»�ê’PˆÊ•\Ž¦
                 {
-                    sql.AppendLine("order by ConstructionPersonCode ASC, ConstructionCode DESC, DisplayOrder ASC, SEQNO ASC, LineCount ASC ");
+                    sql.AppendLine(" order by ConstructionPersonCode ASC, ConstructionCode DESC, DisplayOrder ASC, SEQNO ASC, LineCount ASC ");
                 }
 
                 // ƒf�[ƒ^Žæ“¾�@�¬Œv�E�‡Œv‚ðŒvŽZ‚·‚éˆ×�A‘S‚Ä‚Ìƒf�[ƒ^‚ðŽæ“¾‚·‚é
@@ -1995,8 +3069,11 @@
                     dgv.Rows[icnt].Cells[(int)DispColumn.Bikou].Value = CommonMotions.cnvString(work[(int)ClickGetData.Bikou]);
                     // �HŽ–�Ú�×‘ä’ ‚Ì�s”Ô�†�A—ñ”Ô�†‚ð�Ý’è
                     dgv.Rows[icnt].Cells[(int)DispColumn.ConstructionLedgerLineNo].Value = CommonMotions.cnvString(work[(int)ClickGetData.ConstructionLedgerLineNo]);
-                    dgv.Rows[icnt].Cells[(int)DispColumn.ConstructionLedgerRowNo].Value = CommonMotions.cnvString(work[(int)ClickGetData.ConstructionLedgerRowNo]);
+                    dgv.Rows[icnt].Cells[(int)DispColumn.ConstructionLedgerColNo].Value = CommonMotions.cnvString(work[(int)ClickGetData.ConstructionLedgerRowNo]);
 
+                    // –¾�×–¼�ÌƒZƒbƒg
+                    dgv.Rows[icnt].Cells[(int)DispColumn.DetailName].Value = CommonMotions.cnvString(work[(int)ClickGetData.DetailName]);
+
                     // Œ ŒÀ‚É‚æ‚Á‚Ä•\Ž¦”ñ•\Ž¦
                     // �‰Šú’l‚Í‰ÂŽ‹
                     dgv.Rows[icnt].Visible = true;
@@ -2010,7 +3087,7 @@
                         dgv.Rows[icnt].Cells[(int)DispColumn.RowVisible].Value = 0;
 
                         // ‘�–±’S“–
-                        if (m_UserInfo.m_GeneralAffairsFlg == 1)
+                        if (m_UserInfo.m_GeneralAffairsFlg == (int)SecurityMaster.GeneAffDef.GeneralDep)
                         {
                             // •ÛŒì‹æ•ª”ÍˆÍ‚ÉŠÖŒW‚È‚­‘S•”��‚ÌŽQ�Æ‚ð‰Â”\‚Æ‚µ�A•Ò�W‰Â”\�€–Ú‚Í‘�–±•”–å“ü—Í—“‚Ì‚Ý‚Æ‚·‚é�B
                             dgv.Rows[icnt].Visible = true;
@@ -2075,22 +3152,22 @@
 
                     if (CommonMotions.cnvInt(work[(int)ClickGetData.ApprovalEndFlg]) == 1)
                     {
-                        // �Å�I�³”FŽÒ‚É‚æ‚Á‚Ä�³”F‚³‚ê‚Ä‚¢‚é�ê�‡‚Í�A‘S�€–Ú•Ò�W•s‰Â
+                        // �Å�I�³”FŽÒ‚É‚æ‚Á‚Ä�³”F‚³‚ê‚Ä‚¢‚é�ê�‡‚Í�A�s‘S�€–Ú•Ò�W•s‰Â
                         dgv.Rows[icnt].ReadOnly = true;
                     }
-                    else if ((ApprovalPerson == true && m_UserInfo.m_Type == CommonDefine.SecurityRankPos.NormalAuthority)
-                          || (SekininApproval == true && m_UserInfo.m_Type == CommonDefine.SecurityRankPos.LimitedAuthority)
-                          || (SekininApproval == true && m_UserInfo.m_Type == CommonDefine.SecurityRankPos.FreeAuthority))
-                    {
-                        // �HŽ–’S“–ŽÒ‚ª’S“–ŽÒ�³”F‚ðŽÀ�s‚µ‚Ä‚¢‚é�ê�‡�A‚Ü‚½‚Í�@�Ó”CŽÒ‚ªŽ©�g‚Ì�³”F‚ðŽÀ�s‚µ‚Ä‚¢‚é�ê�‡‚Í�A�HŽ–’S“–“ü—Í—“•Ò�W•s‰Â
-                        dgv.Rows[icnt].Cells[(int)DispColumn.KojiSeikyu].ReadOnly = true;
-                        dgv.Rows[icnt].Cells[(int)DispColumn.KojiNebiki].ReadOnly = true;
-                        dgv.Rows[icnt].Cells[(int)DispColumn.KojiSousai].ReadOnly = true;
-                        dgv.Rows[icnt].Cells[(int)DispColumn.KojiKosoku].ReadOnly = true;
-                        dgv.Rows[icnt].Cells[(int)DispColumn.KojiKanamono].ReadOnly = true;
-                        dgv.Rows[icnt].Cells[(int)DispColumn.KojiSannhaiZei].ReadOnly = true;
-                        dgv.Rows[icnt].Cells[(int)DispColumn.KyoryokuUmu].ReadOnly = true;
-                    }
+                    //else if ((ApprovalPerson == true && m_UserInfo.m_Type == CommonDefine.SecurityRankPos.NormalAuthority)
+                    //      || (SekininApproval == true && m_UserInfo.m_Type == CommonDefine.SecurityRankPos.LimitedAuthority)
+                    //      || (SekininApproval == true && m_UserInfo.m_Type == CommonDefine.SecurityRankPos.FreeAuthority))
+                    //{
+                    //    // �HŽ–’S“–ŽÒ‚ª’S“–ŽÒ�³”F‚ðŽÀ�s‚µ‚Ä‚¢‚é�ê�‡�A‚Ü‚½‚Í�@�Ó”CŽÒ‚ªŽ©�g‚Ì�³”F‚ðŽÀ�s‚µ‚Ä‚¢‚é�ê�‡‚Í�A�HŽ–’S“–“ü—Í—“•Ò�W•s‰Â
+                    //    dgv.Rows[icnt].Cells[(int)DispColumn.KojiSeikyu].ReadOnly = true;
+                    //    dgv.Rows[icnt].Cells[(int)DispColumn.KojiNebiki].ReadOnly = true;
+                    //    dgv.Rows[icnt].Cells[(int)DispColumn.KojiSousai].ReadOnly = true;
+                    //    dgv.Rows[icnt].Cells[(int)DispColumn.KojiKosoku].ReadOnly = true;
+                    //    dgv.Rows[icnt].Cells[(int)DispColumn.KojiKanamono].ReadOnly = true;
+                    //    dgv.Rows[icnt].Cells[(int)DispColumn.KojiSannhaiZei].ReadOnly = true;
+                    //    dgv.Rows[icnt].Cells[(int)DispColumn.KyoryokuUmu].ReadOnly = true;
+                    //}
 
                     icnt++;
                     iGoukeiSeq++;
@@ -2153,6 +3230,46 @@
         }
         #endregion
 
+        #region Žx•¥�³”F�î•ñƒf�[ƒ^‚æ‚è�A�³”FŽÒ‚ðŽæ“¾
+        /// <summary>
+        /// Žx•¥�³”F�î•ñƒf�[ƒ^‚æ‚è�A�³”FŽÒ‚ðŽæ“¾
+        /// </summary>
+        /// <param name="CompanyCode"></param>
+        /// <param name="SeqNo"></param>
+        /// <param name="LineCuont"></param>
+        /// <param name="PaIList"></param>
+        /// <returns></returns>
+        private bool GetShonin(int CompanyCode, int SeqNo, int LineCuont, ref List<PaymentApprovalInfo> PaIList)
+        {
+            PaymentApprovalInfo Pai = new PaymentApprovalInfo();
+            IOPaymentApprovalInfo IoPai = new IOPaymentApprovalInfo();
+            PaIList = new List<PaymentApprovalInfo>();
+            try
+            {
+                StringBuilder sSql = new StringBuilder();
+                sSql.AppendFormat(" where CompanyCode = {0}", CompanyCode);
+                sSql.AppendFormat(" and TargetDate = {0}", m_Select_TargetDate);
+                sSql.AppendFormat(" and SeqNo = {0}", SeqNo);
+                sSql.AppendFormat(" and LineCount = {0}", LineCuont);
+                sSql.Append(" order by ApprovalNo");
+                if (!IoPai.SelectAction(sSql.ToString(), ref PaIList)) return false;
+
+                return true;
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                IoPai.close();
+                IoPai = null;
+            }
+        }
+        #endregion
+
         #region ƒOƒŠƒbƒhƒf�[ƒ^ƒZƒbƒg
         /// <summary>
         /// ƒOƒŠƒbƒhƒf�[ƒ^ƒZƒbƒg
@@ -2276,8 +3393,10 @@
                 sql.Append("      end ");
                 sql.Append("    else '�›' ");
                 sql.Append("    end as PaData ");
-                sql.Append("  , null as LinePoint ");
-                sql.Append("  , null as ColPoint ");
+                //sql.Append("  , null as LinePoint ");
+                //sql.Append("  , null as ColPoint ");
+                sql.Append("  , Bdd.CONSTRUCTIONROWCNT as LinePoint ");
+                sql.Append("  , Bdd.CONSTRUCTIONCOLCNT as ColPoint  ");
                 sql.Append("from ");
                 sql.Append("  BillingData as Bd join ( ");
                 sql.Append("    BillingDataDetail as Bdd join SubContractorMaster as Scm ");
@@ -2432,11 +3551,13 @@
                 sql.Append("    else '�›' ");
                 sql.Append("    end as PaData ");
                 sql.Append("  , Cld.LineCount as LinePoint ");
-                sql.AppendFormat("  , PERIOD_DIFF({0} ,DATE_FORMAT(Cl.ConstructionStart, '%Y%m')) + {1} AS ColPoint ", m_Select_TargetDate, Enum.GetNames(typeof(FrmConstructionLedger.GridColumn)).Length - 1);
-                sql.Append("from ");
+                sql.AppendFormat("  , PERIOD_DIFF({0} ,DATE_FORMAT(Cl.ConstructionStart, '%Y%m')) + {1} AS ColPoint "
+                                    , m_Select_TargetDate, Enum.GetNames(typeof(FrmConstructionLedger.GridColumn)).Length - 1);
+                sql.Append("  , Cld.SecondString as DetailName ");
+                sql.Append(" from ");
                 sql.Append("  ConstructionLedgerDetail as Cld ");
                 sql.Append("  inner join ConstructionLedger as Cl on Cl.ConstructionCode = Cld.ConstructionCode ");
-                sql.Append("    and Cl.ComplateFlg = 0 ");
+                sql.AppendFormat("    and Cl.ComplateFlg = {0} ", (int)ConstructionLedger.CompFlagDef.Operateing);
                 sql.Append("  inner join ConstructionBaseinfoDetail as Cbd on Cbd.ConstructionCode = Cld.ConstructionCode ");
                 sql.Append("    and Cbd.DetailNo = 2 ");
                 sql.Append("  inner join SubContractorMaster as Sc on Sc.COMPANYCODE = Cld.CompanyCode ");
@@ -2444,7 +3565,8 @@
                 sql.Append("  left join ConstructionLedgerExcute AS Cle on Cle.ConstructionCode = Cld.ConstructionCode ");
                 sql.Append("  and Cle.GroupCount = Cld.GroupCount ");
                 sql.Append("  and Cle.LineCount = Cld.LineCount ");
-                sql.AppendFormat("    and Cle.ColumnCount = (PERIOD_DIFF({0} ,DATE_FORMAT(CL.ConstructionStart, '%Y%m')) + {1}) ", m_Select_TargetDate, Enum.GetNames(typeof(FrmConstructionLedger.GridColumn)).Length - 1);
+                sql.AppendFormat("    and Cle.ColumnCount = (PERIOD_DIFF({0} ,DATE_FORMAT(CL.ConstructionStart, '%Y%m')) + {1}) "
+                                        , m_Select_TargetDate, Enum.GetNames(typeof(FrmConstructionLedger.GridColumn)).Length - 1);
                 sql.Append("  left join ( ");
                 sql.Append("  BillingData as Bd join ( ");
                 sql.Append("    BillingDataDetail as Bdd join SubContractorMaster as Scm ");
@@ -2497,11 +3619,12 @@
                 sql.Append("union ");
                 sql.Append(" ");
 
-                sql.Append("select ");
+                sql.Append(" select ");
                 sql.Append("  ifnull(Bd.SeqNo, 1) as SeqNo ");
                 sql.Append("  , ifnull(Bdd.LineCount, 0) as LineCount ");
                 sql.Append("  , ifnull(Bdd.CompanyCode, 0) as CompanyCode ");
-                sql.Append("  , ifnull(Scm.CompanyName, \"\") as CompanyName ");
+                //sql.Append("  , ifnull(Scm.CompanyName, \"\") as CompanyName ");
+                sql.Append("  , ifnull(Scm.CompanyName, \'\') as CompanyName ");
                 sql.Append("  , Scm.DisplayOrder as DisplayOrder ");
                 sql.Append("  , Bdd.ConstructionCode as ConstructionCode ");
                 sql.Append("  , Bdd.FieldName as FieldName ");
@@ -2549,9 +3672,10 @@
                 sql.Append("      end ");
                 sql.Append("    else '�›' ");
                 sql.Append("    end as PaData ");
-                sql.Append("  , null as LinePoint ");
-                sql.Append("  , null as ColPoint ");
-                sql.Append("from ");
+                sql.Append("  , Bdd.CONSTRUCTIONROWCNT as LinePoint ");
+                sql.Append("  , Bdd.CONSTRUCTIONCOLCNT as ColPoint  ");
+                sql.Append("  , Cld.SecondString as DetailName ");
+                sql.Append(" from ");
                 sql.Append("  BillingData as Bd join ( ");
                 sql.Append("    BillingDataDetail as Bdd join SubContractorMaster as Scm ");
                 sql.Append("      on Bdd.CompanyCode = Scm.CompanyCode ");
@@ -2592,10 +3716,17 @@
                 sql.Append("    PurchaseOrderDate as Pod ");
                 sql.Append("  ) on Bd.CompanyCode = Pod.CompanyCode ");
                 sql.Append("  and Bdd.ConstructionCode = Pod.ConstructionCode ");
+                sql.Append("  inner join constructionledger as Cl");
+                sql.Append("    ON Cl.ConstructionCode = Bdd.CONSTRUCTIONCODE");
+                sql.AppendFormat("    And Cl.ComplateFlg = {0}", (int)ConstructionLedger.CompFlagDef.Operateing);
+                sql.Append("  Left join constructionledgerDetail as Cld");
+                sql.Append("    ON Cld.ConstructionCode = Bdd.CONSTRUCTIONCODE");
+                sql.AppendFormat("    And Cld.GroupCount = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
+                sql.Append("    And Cld.LineCount = Bdd.LineCount");
 
                 sql.Append(") AS T ");
 
-                sql.Append("group by ");
+                sql.Append(" group by ");
                 sql.Append("  T.SeqNo ");
                 sql.Append("  , T.LineCount ");
                 sql.Append("  , T.CompanyCode ");
@@ -2637,5 +3768,1071 @@
             }
         }
         #endregion
+
+        #region ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^—p�‡Œv’lŽæ“¾�@(ƒf�[ƒ^’PˆÊ)
+        /// <summary>
+        /// ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^—p�‡Œv’lŽæ“¾�@(ƒf�[ƒ^’PˆÊ)
+        /// </summary>
+        /// <param name="dgv"></param>
+        /// <param name="CompanyCode">‹¦—Í‰ïŽÐƒR�[ƒh</param>
+        /// <param name="ChargePaymentKind">‘Î�ÛŽx•¥‚¢‹æ•ª�@0�F�¿‹�(‘�–±�j 1�FŽx•¥(�HŽ–’S“–)</param>
+        /// <param name="BpsWork"></param>
+        /// <returns></returns>
+        private bool GetBpsGoukei(DataGridView dgv, int CompanyCode, int ChargePaymentKind, ref BillingPaymentSummary BpsWork)
+        {
+            try
+            {
+                if (ChargePaymentKind == 0)
+                {
+                    // 0�F�¿‹�(‘�–±�j
+                    BpsWork.Payday = CommonMotions.cnvDate(lblPaymentDate.Text);
+                    BpsWork.BillPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.SomuSeikyu);
+                    //BpsWork.ConsumptionTaxRate = 0.08; // �¦‰ïŽÐ�î•ñ‚Ì’l‚ª�Ý’è‚³‚ê‚é‚æ‚¤‚É‚È‚é
+                    BpsWork.ConsumptionTaxRate = CommonMotions.SystemMasterData.ConsumptionTax;
+                    BpsWork.ConsumptionTaxPrice = CommonMotions.cnvRound(CommonMotions.cnvDouble(BpsWork.BillPriceStotal) * BpsWork.ConsumptionTaxRate);
+                    BpsWork.HighwPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.SomuKosoku);
+                    BpsWork.HardwPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.SomuKanamono);
+                    BpsWork.IndsWasteTaxStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.SomuSannhaiZei);
+
+                    //SystemMaster sm = new SystemMaster();
+                    //BpsWork.CnstrPriceRate = (sm.CooperationRate / 100);
+                    BpsWork.CnstrPriceRate = (CommonMotions.SystemMasterData.CooperationRate / 100);
+                    BpsWork.CnstrPriceStotal = 0;
+                    BpsWork.BillingPriceTotal = BpsWork.BillPriceStotal + BpsWork.ConsumptionTaxPrice + BpsWork.HighwPriceStotal + BpsWork.HardwPriceStotal + BpsWork.IndsWasteTaxStotal;
+                }
+                else if (ChargePaymentKind == 1)
+                {
+                    // 1�FŽx•¥(�HŽ–’S“–)
+                    BpsWork.Payday = CommonMotions.cnvDate(lblPaymentDate.Text);
+                    BpsWork.BillPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.KojiSeikyu);
+                    //BpsWork.ConsumptionTaxRate = 0.08; // �¦‰ïŽÐ�î•ñ‚Ì’l‚ª�Ý’è‚³‚ê‚é‚æ‚¤‚É‚È‚é
+                    BpsWork.ConsumptionTaxRate = CommonMotions.SystemMasterData.ConsumptionTax;
+                    BpsWork.ConsumptionTaxPrice = CommonMotions.cnvRound(CommonMotions.cnvDouble(BpsWork.BillPriceStotal) * BpsWork.ConsumptionTaxRate);
+                    BpsWork.HighwPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.KojiKosoku);
+                    BpsWork.HardwPriceStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.KojiKanamono);
+                    BpsWork.IndsWasteTaxStotal = GetBpsGoukei(dgv, CompanyCode, DispColumn.KojiSannhaiZei);
+                    //SystemMaster sm = new SystemMaster();
+                    //BpsWork.CnstrPriceRate = (sm.CooperationRate / 100);
+                    //BpsWork.CnstrPriceStotal = CommonMotions.cnvRound(CommonMotions.cnvDouble(BpsWork.BillPriceStotal) * (sm.CooperationRate / 100));
+                    BpsWork.CnstrPriceRate = (CommonMotions.SystemMasterData.CooperationRate / 100);
+                    BpsWork.CnstrPriceStotal = CommonMotions.cnvRound(CommonMotions.cnvDouble(BpsWork.BillPriceStotal) * BpsWork.CnstrPriceRate);
+                    BpsWork.BillingPriceTotal = BpsWork.BillPriceStotal + BpsWork.ConsumptionTaxPrice + BpsWork.HighwPriceStotal + BpsWork.HardwPriceStotal + BpsWork.IndsWasteTaxStotal - BpsWork.CnstrPriceStotal;
+
+                }
+
+                return true;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^—p�‡Œv’lŽæ“¾�@(—ñ’PˆÊ)
+        /// <summary>
+        /// ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^—p�‡Œv’lŽæ“¾�@(—ñ’PˆÊ)
+        /// </summary>
+        /// <param name="dgv"></param>
+        /// <param name="CompanyCode"></param>
+        /// <param name="TargetColumn"></param>
+        /// <returns></returns>
+        private long GetBpsGoukei(DataGridView dgv, int CompanyCode, DispColumn TargetColumn)
+        {
+            long Result = 0;
+            try
+            {
+
+                Result = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted
+                                                                && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode)
+                    .Sum(y => CommonMotions.cnvLong(y.Cells[(int)TargetColumn].Value));
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            return Result;
+
+        }
+        #endregion
+
+        #region ‰æ–Ê�€–Ú‚Ìƒ`ƒFƒbƒN
+        /// <summary>
+        /// ‰æ–Ê�€–Ú‚Ìƒ`ƒFƒbƒN
+        /// </summary>
+        /// <returns></returns>
+        private bool DispFeildCheck()
+        {
+            bool bRet = true;
+            try
+            {
+                DataGridView dgv = getShowingView();
+
+                // •K—v�s’Š�o ‹ÆŽÒƒR�[ƒh�A˜A”Ô�A�s”Ô�†�¸�‡
+                DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                                    && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
+                                                                         .OrderBy(x => x.Cells[m_Company_Column].Value)
+                                                                         .ThenBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
+                                                                         .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
+                                                                         .ToArray();
+
+                foreach (DataGridViewRow r in Rows)
+                {
+                    CommonMotions.chgBackColor(r.Cells[m_GenbaNM_Column], true);
+                    if (CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value) == 0
+                        &&
+                        ((CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSeikyu].Value) != 0
+                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiNebiki].Value) != 0
+                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSousai].Value) != 0
+                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKosoku].Value) != 0
+                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKanamono].Value) != 0
+                        || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSannhaiZei].Value) != 0)
+                        //|| CommonMotions.cnvInt(r.Cells[(int)DispColumn.KyoryokuUmu].Value) != -1) ‹¦—Í‹à—L–³‚Íƒ`ƒFƒbƒN‚É“ü‚ê‚È‚¢
+                    || r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray))
+                    {
+                        CommonMotions.chgBackColor(r.Cells[m_GenbaNM_Column], false);
+                        MessageBox.Show("Œ»�ê‚ª‘I‘ð‚³‚ê‚Ä‚¢‚Ü‚¹‚ñ�B", "ƒf�[ƒ^Šm”F", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+                        bRet = false;
+                    }
+
+                }
+
+                return bRet;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region ƒf�[ƒ^“o˜^
+        /// <summary>
+        /// ƒf�[ƒ^“o˜^
+        /// </summary>
+        private bool DataEntryProcess()
+        {
+
+            IOBillingData IoBd = new IOBillingData();
+            IOBillingDataDetail IoBdD = new IOBillingDataDetail();
+            IOPaymentDataDetail IoPdD = new IOPaymentDataDetail();
+            IOPaymentApprovalInfo IoPaI = new IOPaymentApprovalInfo();
+            IOBillingPaymentSummary IoBps = new IOBillingPaymentSummary();
+
+            DataGridView dgv = getShowingView();
+
+            List<BillingData> BdList;
+            List<BillingDataDetail> BdDList = new List<BillingDataDetail>();
+            List<PaymentDataDetail> PdDList = new List<PaymentDataDetail>();
+            List<PaymentApprovalInfo> PaIList = new List<PaymentApprovalInfo>();
+            List<BillingPaymentSummary> BpsList = new List<BillingPaymentSummary>();
+            List<ConstructionLedgerExcute> CleEntryList = new List<ConstructionLedgerExcute>();
+
+            BillingData BdWork = new BillingData();
+            BillingDataDetail BdDWork;
+            PaymentDataDetail PdDWork;
+            PaymentApprovalInfo PaIWork;
+            BillingPaymentSummary BpsWork = new BillingPaymentSummary();
+
+            int iCompanyCode = 0, iSeqNo = 0, iLineCount = 0, iLineMax = 0;
+            int iTantoShoninCount = 0;
+            bool bBdData = false;
+            bool bDeleteData = false;
+            bool bMakeBpsData = false;
+            bool bDeleteBpsData = false;
+
+            string strBdWhere = "";
+            string strBdDWhere = "";
+            string strPdDWhere = "";
+            string strPaIWhere = "";
+            string strBpsWhere = "";
+
+            try
+            {
+
+                //�@�í�œ‘Î�Û‚Ì‹ÆŽÒƒR�[ƒh�A˜A”Ô‚Ìƒf�[ƒ^‚Ì’†‚Ì‚¢‚¸‚ê‚©‚ª‘¼ŽÒ‚É‚æ‚Á‚Ä•Ï�X‚³‚ê‚Ä‚¢‚é‚©ƒ`ƒFƒbƒN
+                var rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                    && (DataRowState)x.Cells[(int)DispColumn.RowState].Value == DataRowState.Deleted)
+                                                           .GroupBy(c => new
+                                                           {
+                                                               CompanyCode = CommonMotions.cnvInt(c.Cells[m_Company_Column].Value),
+                                                               SeqNo = CommonMotions.cnvInt(c.Cells[(int)DispColumn.GroupSeqNo].Value)
+                                                           })
+                                                           .ToArray();
+
+                if (rows.Count() != 0)
+                {
+                    foreach (var r in rows)
+                    {
+                        string strWhere = string.Format(" Where CompanyCode = {0}", r.Key.CompanyCode);
+                        strWhere = string.Format(" and TargetDate = {0}", m_Select_TargetDate);
+                        strWhere = string.Format(" and SeqNo = {0}", r.Key.SeqNo);
+                        strWhere = " order by CompanyCode, SeqNo, LineCount";
+                        BdDList.Clear();
+                        if (!IoBdD.SelectAction(strWhere, ref BdDList))
+                        {
+                            MessageBox.Show("“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B", "“o˜^ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                            return false;
+                        }
+                        // Žæ“¾ƒf�[ƒ^‚ª–³‚¯‚ê‚ÎŽŸ‚Ì�s‚Ö
+                        if (BdDList.Count == 0) continue;
+
+                        foreach (BillingDataDetail listRow in BdDList)
+                        {
+                            DataGridViewRow[] checkRow = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                                                    && (DataRowState)x.Cells[(int)DispColumn.RowState].Value == DataRowState.Modified
+                                                                                                    && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == listRow.CompanyCode
+                                                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == listRow.SeqNo
+                                                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.LineCount].Value) == listRow.LineCount)
+                                                                                        .ToArray();
+                            if (checkRow.Count() != 0 && listRow.UpdateDate != CommonMotions.cnvDate(checkRow[0].Cells[(int)DispColumn.UpdateDate].Value))
+                            {
+                                MessageBox.Show("‘¼‚Ìƒ†�[ƒU�[‚É‚æ‚Á‚Ä�X�V‚³‚ê‚Ä‚¢‚Ü‚·�Bƒf�[ƒ^‚ð�Ä•\Ž¦‚µ‚Ä‰º‚³‚¢�B", "“o˜^ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                                return false;
+
+                            }
+                        }
+                    }
+                    // �í�œ�ˆ—�ŽÀ�sƒtƒ‰ƒO
+                    bDeleteData = true;
+                }
+
+
+                int TargetDate = m_Select_TargetDate;
+
+                IoBd.connect();
+                IoBd.beginTran();
+
+                IoBdD.connect();
+                IoBdD.beginTran();
+
+                IoPdD.connect();
+                IoPdD.beginTran();
+
+                IoPaI.connect();
+                IoPaI.beginTran();
+
+                IoBps.connect();
+                IoBps.beginTran();
+
+                ArrayList wrkArray = new ArrayList();
+                try
+                {
+                    // �í�œ
+                    if (bDeleteData == true)
+                    {
+                        foreach (var r in rows)
+                        {
+                            // �í�œ�@•K—v�s’Š�o�i�í�œ‚ª•K—v‚È‹ÆŽÒ�A˜A”Ô‚ð‘S‚Ä�í�œ�A•K—v‚È�s‚Ì�s”Ô�†‚ð�U‚è‚È‚¨‚·�j
+                            DataGridViewRow[] DeleteRows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                                                    && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == r.Key.CompanyCode
+                                                                                                    && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == r.Key.SeqNo)
+                                                                                           .OrderBy(y => CommonMotions.cnvInt(y.Cells[m_Company_Column].Value))
+                                                                                           .ThenBy(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.GroupSeqNo].Value))
+                                                                                           .ThenBy(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.LineCount].Value))
+                                                                                           .ToArray();
+                            iCompanyCode = 0;
+                            iSeqNo = 0;
+                            iLineCount = 0;
+                            int iNewLineCount = 1;
+                            foreach (DataGridViewRow delr in DeleteRows)
+                            {
+                                if (iCompanyCode == 0 || iSeqNo == 0)
+                                {
+                                    iCompanyCode = CommonMotions.cnvInt(delr.Cells[m_Company_Column].Value);
+                                    iSeqNo = CommonMotions.cnvInt(delr.Cells[(int)DispColumn.GroupSeqNo].Value);
+
+                                    // ‹Æ–±�¿‹�ƒf�[ƒ^
+                                    // ƒ�ƒbƒN
+                                    if (!IoBd.RowLock(iCompanyCode, TargetDate, CommonMotions.cnvInt(delr.Cells[(int)DispColumn.GroupSeqNo].Value), false))
+                                    {
+                                        throw new Exception("‹Æ–±�¿‹�ƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                                    }
+
+                                    // �í�œ�i‹Æ–±�¿‹�ƒf�[ƒ^�j
+                                    strBdWhere = IoBd.CreatePrimarykeyString(iCompanyCode, TargetDate, iSeqNo);
+                                    wrkArray.Clear();
+                                    if (IoBd.ExecuteReader(strBdWhere, ref wrkArray, false))
+                                    {
+                                        if (!IoBd.DeleteAction(strBdWhere, false))
+                                        {
+                                            throw new Exception("‹Æ–±�¿‹�ƒf�[ƒ^�F�í�œ‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                        }
+                                    }
+                                }
+
+                                iLineCount = CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value);
+                                //if (iLineCount != CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value))
+                                //{
+                                // ’Ç‰Á�sˆÈŠO‚ð�í�œ‚·‚é
+                                if ((DataRowState)delr.Cells[(int)DispColumn.RowState].Value != DataRowState.Added)
+                                {
+                                    // ‹Æ–±–¾�×ƒf�[ƒ^
+                                    // ƒ�ƒbƒN
+                                    if (!IoBdD.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, false))
+                                    {
+                                        throw new Exception("‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                                    }
+
+                                    // ƒf�[ƒ^�X�V
+                                    strBdDWhere = IoBdD.CreatePrimarykeyString(iCompanyCode, TargetDate, iSeqNo, CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value));
+                                    wrkArray.Clear();
+                                    if (IoBdD.ExecuteReader(strBdDWhere, ref wrkArray, false))
+                                    {
+                                        if (!IoBdD.DeleteAction(strBdDWhere, false))
+                                        {
+                                            throw new Exception("‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�F�í�œ‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                        }
+                                    }
+
+                                    // Žx•¥–¾�×ƒf�[ƒ^
+                                    strPdDWhere = IoPdD.CreatePrimarykeyString(iCompanyCode, TargetDate, iSeqNo, CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value));
+                                    // ƒf�[ƒ^Šm”F
+                                    PdDList.Clear();
+                                    if (!IoPdD.SelectAction(strPdDWhere, ref PdDList, false))
+                                    {
+                                        throw new Exception("Žx•¥–¾�×ƒf�[ƒ^�F“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                    }
+                                    if (PdDList.Count != 0)
+                                    {
+                                        // ƒ�ƒbƒN
+                                        if (!IoPdD.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, false))
+                                        {
+                                            throw new Exception("Žx•¥–¾�×ƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                                        }
+
+                                        // ƒf�[ƒ^�X�V
+                                        wrkArray.Clear();
+                                        if (IoPdD.ExecuteReader(strPdDWhere, ref wrkArray, false))
+                                        {
+                                            if (!IoPdD.DeleteAction(strPdDWhere, false))
+                                            {
+                                                throw new Exception("Žx•¥–¾�×ƒf�[ƒ^�F�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                            }
+                                        }
+                                    }
+                                }
+                                //    iLineCount = CommonMotions.cnvInt(delr.Cells[(int)DispColumn.LineCount].Value);
+                                //}
+
+                                // �s”Ô�†‚ð�U‚è‚È‚¨‚·
+                                if ((DataRowState)delr.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
+                                {
+                                    delr.Cells[(int)DispColumn.LineCount].Value = iNewLineCount;
+                                    iNewLineCount++;
+                                }
+                            }
+                        }
+                    }
+
+                    // •K—v�s’Š�o ‹ÆŽÒƒR�[ƒh�A˜A”Ô�A�s”Ô�†�¸�‡
+                    DataGridViewRow[] Rows = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                                        && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted)
+                                                                             .OrderBy(x => x.Cells[m_Company_Column].Value)
+                                                                             .ThenBy(x => x.Cells[(int)DispColumn.GroupSeqNo].Value)
+                                                                             .ThenBy(x => x.Cells[(int)DispColumn.LineCount].Value)
+                                                                             .ToArray();
+
+                    iCompanyCode = 0;
+                    iSeqNo = 0;
+                    iLineCount = 0;
+                    iLineMax = 0;
+
+                    foreach (DataGridViewRow r in Rows)
+                    {
+                        // –¢“ü—Í�s‚Í�ˆ—�‚µ‚È‚¢
+                        //if (CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value) == 0 && // �HŽ–�Ú�×‘ä’ ‚æ‚èƒf�[ƒ^‚ª�ì�¬‚³‚ê‚é‚Ì‚Å�HŽ–”Ô�†‚Ì�Ý’è‚Í”»’è‚µ‚È‚¢
+                        if (CommonMotions.cnvInt(r.Cells[(int)DispColumn.SomuSeikyu].Value) == 0 &&
+                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.SomuKosoku].Value) == 0 &&
+                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.SomuKanamono].Value) == 0 &&
+                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.SomuSannhaiZei].Value) == 0 &&
+                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSeikyu].Value) == 0 &&
+                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKosoku].Value) == 0 &&
+                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKanamono].Value) == 0 &&
+                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSannhaiZei].Value) == 0 &&
+                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiNebiki].Value) == 0 &&
+                            CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSousai].Value) == 0)
+                        {
+                            continue;
+                        }
+
+
+                        // ‹ÆŽÒƒR�[ƒh�A‚Ü‚½‚Í˜A”Ô‚ªˆÙ‚È‚é�ê�‡
+                        if (iCompanyCode != CommonMotions.cnvInt(r.Cells[m_Company_Column].Value) || iSeqNo != CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value))
+                        {
+
+                            if (bBdData == true)
+                            {
+                                int lSoumuBillGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == iCompanyCode
+                                                                                                && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == iSeqNo)
+                                                                                       .Sum(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.SomuSeikyu].Value));
+                                // ƒf�[ƒ^‚Ì’l‚ÆƒOƒŠƒbƒhƒrƒ…�[‚Ì’l‚ðƒ`ƒFƒbƒN
+                                if (BdWork.BillPrice != lSoumuBillGoukei)
+                                {
+                                    // ƒ�ƒbƒN
+                                    if (!IoBd.RowLock(iCompanyCode, TargetDate, iSeqNo, false))
+                                    {
+                                        throw new Exception("‹Æ–±�¿‹�ƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                                    }
+                                    BdWork.BillPrice = lSoumuBillGoukei;
+                                    // �X�V�i‹Æ–±�¿‹�ƒf�[ƒ^�j
+                                    if (!IoBd.UpdateAction(strBdWhere, BdWork, false))
+                                    {
+                                        throw new Exception("‹Æ–±�¿‹�ƒf�[ƒ^�F�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                    }
+                                }
+                            }
+
+                            // ‹ÆŽÒ�¿‹�ƒf�[ƒ^
+                            bBdData = false;
+                            strBdWhere = IoBd.CreatePrimarykeyString(CommonMotions.cnvInt(r.Cells[m_Company_Column].Value),
+                                                                        TargetDate,
+                                                                        CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value));
+                            BdList = new List<BillingData>();
+
+                            // ƒf�[ƒ^Šm”F
+                            if (!IoBd.SelectAction(strBdWhere, ref BdList, false))
+                            {
+                                throw new Exception("‹ÆŽÒ�¿‹�ƒf�[ƒ^�F“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                            }
+
+                            BdWork = new BillingData();
+
+                            // �V‹K�i‹Æ–±�¿‹�ƒf�[ƒ^�j
+                            if (BdList.Count == 0)
+                            {
+                                iLineMax = 0; // �V‹K‚È‚Ì‚Å0‚ð�Ý’è
+                                BdWork.CompanyCode = CommonMotions.cnvInt(r.Cells[m_Company_Column].Value);
+                                BdWork.TargetDate = TargetDate;
+                                BdWork.SeqNo = CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value);
+                                BdWork.BillPrice = GetSeqGoukei(dgv, BdWork.CompanyCode, BdWork.SeqNo, DispColumn.SomuSeikyu);
+
+                                BdList.Clear();
+                                BdList.Add(BdWork);
+
+                                if (!IoBd.InsertAction(BdList, false))
+                                {
+                                    throw new Exception("‹ÆŽÒ�¿‹�ƒf�[ƒ^�F’Ç‰Á�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                }
+                            }
+                            else
+                            {
+                                // �s”Ô�†‚Ì�Å‘å‚ð�Ý’è
+                                StringBuilder MaxLineNoSql = new StringBuilder();
+                                MaxLineNoSql.AppendFormat(" where COMPANYCODE = {0}", CommonMotions.cnvInt(r.Cells[m_Company_Column].Value));
+                                MaxLineNoSql.AppendFormat(" and TARGETDATE = {0}", TargetDate);
+                                iLineMax = SelectMaxLineNo(IoBdD, MaxLineNoSql.ToString(), false);
+                                bBdData = true;
+                                BdWork.BillPrice = BdList[0].BillPrice;
+                            }
+
+
+                            // ‹ÆŽÒƒR�[ƒh‚ª•Ï‚í‚éŽž‚Ì‚Ý
+                            if (iCompanyCode != CommonMotions.cnvInt(r.Cells[m_Company_Column].Value))
+                            {
+                                // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^-----------------------------------------------
+                                if (bMakeBpsData == true)
+                                {
+                                    BillingPaymentSummary_DataEntry(dgv,
+                                                                    iCompanyCode,
+                                                                    bDeleteBpsData,
+                                                                    iTantoShoninCount,
+                                                                    IoBps,
+                                                                    BpsList,
+                                                                    BpsWork,
+                                                                    strBpsWhere);
+                                }
+                                bMakeBpsData = false;
+                                bDeleteBpsData = false;
+                                iTantoShoninCount = 0;
+
+                            }
+
+                            iCompanyCode = CommonMotions.cnvInt(r.Cells[m_Company_Column].Value);
+                            iSeqNo = CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value);
+                        }
+
+
+                        // ‹ÆŽÒ�¿‹�–¾�×ƒf�[ƒ^--------------------------------------------------------------
+                        iLineCount = CommonMotions.cnvInt(r.Cells[(int)DispColumn.LineCount].Value);
+
+                        // �V‹K“o˜^‚Ì‹ÆŽÒ�¿‹�–¾�×ƒf�[ƒ^‚Å�s”Ô�†‚ª0‚È‚Ì‚Å�Å‘å�s”Ô�†‚ð�Ý’è‚·‚é
+                        if (iLineCount == 0)
+                        {
+                            r.Cells[(int)DispColumn.LineCount].Value = ++iLineMax;
+                            iLineCount = iLineMax;
+                        }
+
+                        strBdDWhere = IoBdD.CreatePrimarykeyString(CommonMotions.cnvInt(r.Cells[m_Company_Column].Value),
+                                                                    TargetDate,
+                                                                    CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value),
+                                                                    iLineCount);
+
+                        // ƒf�[ƒ^Šm”F
+                        BdDList.Clear();
+                        if (!IoBdD.SelectAction(strBdDWhere, ref BdDList, false))
+                        {
+                            throw new Exception("‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�F“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                        }
+
+
+                        // Žx•¥‹àŠz’´‰ßƒ`ƒFƒbƒN
+                        if (!ClsChangeLedgerData.OverExecAmount(CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value),
+                                                                CommonMotions.cnvInt(r.Cells[(int)DispColumn.ConstructionLedgerLineNo].Value),
+                                                                CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSeikyu].Value),
+                                                                CommonMotions.cnvDate(m_Select_TargetDate),
+                                                                CommonMotions.cnvInt(r.Cells[m_Company_Column].Value)))
+                        {
+                            string strOverComment = "�yŽx•¥‹àŠz’´‰ß�z";
+                            if (CommonMotions.cnvString(r.Cells[(int)DispColumn.Bikou].Value).IndexOf(strOverComment) >= 0) strOverComment = string.Empty;
+                            r.Cells[(int)DispColumn.Bikou].Value = strOverComment + CommonMotions.cnvString(r.Cells[(int)DispColumn.Bikou].Value);
+                        }
+
+                        // ƒf�[ƒ^ƒZƒbƒg
+                        BdDWork = new BillingDataDetail();
+                        BdDWork.ConstructionCode = CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value);
+                        BdDWork.ConstructionRowCnt = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ConstructionLedgerLineNo].Value);
+                        BdDWork.ConstructionColCnt = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ConstructionLedgerColNo].Value);
+                        string sName = CommonMotions.cnvString(r.Cells[m_GenbaNM_Column].Value);
+                        BdDWork.FieldName = sName != "" ? sName : CommonMotions.cnvString(r.Cells[m_GenbaNM_Column].ToolTipText);
+                        BdDWork.BillPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuSeikyu].Value);
+                        BdDWork.HighwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuKosoku].Value);
+                        BdDWork.HardwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuKanamono].Value);
+                        BdDWork.IndsWasteTax = CommonMotions.cnvLong(r.Cells[(int)DispColumn.SomuSannhaiZei].Value);
+                        BdDWork.Note = CommonMotions.cnvString(r.Cells[(int)DispColumn.Bikou].Value);
+                        if (BdDList.Count == 0)
+                        {
+                            // �V‹K�i‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�j
+                            BdDWork.CompanyCode = CommonMotions.cnvInt(r.Cells[m_Company_Column].Value);
+                            BdDWork.TargetDate = TargetDate;
+                            BdDWork.SeqNo = CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value);
+                            BdDWork.LineCount = iLineCount;
+
+                            BdDList.Clear();
+                            BdDList.Add(BdDWork);
+
+                            if (!IoBdD.InsertAction(BdDList, false))
+                            {
+                                throw new Exception("‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�F’Ç‰Á�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                            }
+
+                        }
+                        else
+                        {
+                            // �X�V�i‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�j
+                            // ƒ�ƒbƒN
+                            if (!IoBdD.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, false))
+                            {
+                                throw new Exception("‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�F:‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                            }
+
+                            // ƒf�[ƒ^�X�V
+                            if (!IoBdD.UpdateAction(strBdDWhere, BdDWork, false))
+                            {
+                                throw new Exception("‹Æ–±�¿‹�–¾�×ƒf�[ƒ^�F�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                            }
+                        }
+
+
+                        // Žx•¥–¾�×ƒf�[ƒ^-----------------------------------------------------------------
+                        if ((CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSeikyu].Value) != 0
+                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiNebiki].Value) != 0
+                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSousai].Value) != 0
+                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKosoku].Value) != 0
+                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiKanamono].Value) != 0
+                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KojiSannhaiZei].Value) != 0
+                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.KyoryokuUmu].Value) != -1)
+                            || r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray
+                            || CommonMotions.cnvInt(r.Cells[(int)DispColumn.TantoShoninCode].Value) != 0)
+                        {
+
+                            strPdDWhere = IoPdD.CreatePrimarykeyString(CommonMotions.cnvInt(r.Cells[m_Company_Column].Value),
+                                                                        TargetDate,
+                                                                        CommonMotions.cnvInt(r.Cells[(int)DispColumn.GroupSeqNo].Value),
+                                                                        iLineCount);
+                            // ƒf�[ƒ^Šm”F
+                            PdDList.Clear();
+                            if (!IoPdD.SelectAction(strPdDWhere, ref PdDList, false))
+                            {
+                                throw new Exception("Žx•¥–¾�×ƒf�[ƒ^�F“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                            }
+
+                            // ƒf�[ƒ^ƒZƒbƒg
+                            PdDWork = new PaymentDataDetail();
+                            PdDWork.BillPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSeikyu].Value);
+                            PdDWork.DiscountPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiNebiki].Value);
+                            PdDWork.OffsetPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSousai].Value);
+                            PdDWork.NextCoPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.JikaiKurikosi].Value);
+                            PdDWork.HighwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiKosoku].Value);
+                            PdDWork.HardwPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiKanamono].Value);
+                            PdDWork.IndsWasteTax = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSannhaiZei].Value);
+                            PdDWork.CnstrPrice = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KyoryokuKin].Value);
+                            PdDWork.CnstrPriceExist = CommonMotions.cnvInt(r.Cells[(int)DispColumn.KyoryokuUmu].Value);
+
+                            if (PdDList.Count == 0)
+                            {
+                                // �V‹K�iŽx•¥–¾�×ƒf�[ƒ^�j
+                                PdDWork.CompanyCode = iCompanyCode;
+                                PdDWork.TargetDate = TargetDate;
+                                PdDWork.SeqNo = iSeqNo;
+                                PdDWork.LineCount = iLineCount;
+
+                                // ’S“–�³”F
+                                if (r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray)
+                                {
+                                    PdDWork.ApprovalPersonCode = CommonMotions.cnvInt(r.Cells[(int)DispColumn.TantoShoninCode].Value);
+                                    if (r.Cells[(int)DispColumn.TantoDate].Value == null)
+                                    {
+                                        PdDWork.ApprovalDate = DateTime.Now;
+                                    }
+                                    else
+                                    {
+                                        PdDWork.ApprovalDate = CommonMotions.cnvDate(r.Cells[(int)DispColumn.TantoDate].Value);
+                                    }
+                                }
+                                else
+                                {
+                                    PdDWork.ApprovalPersonCode = 0;
+                                    PdDWork.ApprovalDate = new DateTime(2001, 01, 01);
+                                }
+                                PdDWork.ApprovalEndFlg = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ApprovalEndFlg].Value); // �Å�I�³”F”»’è•K—v
+
+                                PdDList.Clear();
+                                PdDList.Add(PdDWork);
+
+                                if (!IoPdD.InsertAction(PdDList, false))
+                                {
+                                    throw new Exception("Žx•¥–¾�×ƒf�[ƒ^�F�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                }
+
+                            }
+                            else
+                            {
+                                // �X�V�iŽx•¥–¾�×ƒf�[ƒ^�j
+                                // ’S“–�³”F
+                                if (r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray)
+                                {
+                                    if (PdDList[0].ApprovalPersonCode != 0)
+                                    {
+                                        PdDWork.ApprovalPersonCode = PdDList[0].ApprovalPersonCode;
+                                        PdDWork.ApprovalDate = PdDList[0].ApprovalDate;
+                                    }
+                                    else
+                                    {
+                                        PdDWork.ApprovalPersonCode = CommonMotions.cnvInt(r.Cells[(int)DispColumn.TantoShoninCode].Value);
+                                        PdDWork.ApprovalDate = DateTime.Now;
+                                    }
+                                }
+                                else
+                                {
+                                    PdDWork.ApprovalPersonCode = 0;
+                                    PdDWork.ApprovalDate = new DateTime(2001, 01, 01);
+                                }
+                                PdDWork.ApprovalEndFlg = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ApprovalEndFlg].Value); //�Å�I�³”F
+
+
+                                // ƒ�ƒbƒN
+                                if (!IoPdD.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, false))
+                                {
+                                    throw new Exception("Žx•¥–¾�×ƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                                }
+
+                                // ƒf�[ƒ^�X�V
+                                if (!IoPdD.UpdateAction(strPdDWhere, PdDWork, false))
+                                {
+                                    throw new Exception("Žx•¥–¾�×ƒf�[ƒ^�F�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                }
+
+                            }
+                            // �HŽ–�Ú�×‘ä’ ‚ÌŽx•¥‹àŠz‚ÌˆêŠ‡“o˜^ƒŠƒXƒg‚Ö’Ç‰Á�i�s’PˆÊ‚Å’Ç‰Á�j
+                            ConstructionLedgerExcute CleEntry = new ConstructionLedgerExcute();
+                            CleEntry.ConstructionCode = CommonMotions.cnvInt(r.Cells[m_Genba_Column].Value);
+                            CleEntry.GroupCount = 2;
+                            CleEntry.LineCount = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ConstructionLedgerLineNo].Value);
+                            CleEntry.ColumnCount = CommonMotions.cnvInt(r.Cells[(int)DispColumn.ConstructionLedgerColNo].Value);
+                            CleEntry.PaymentAmount = CommonMotions.cnvLong(r.Cells[(int)DispColumn.KojiSeikyu].Value);
+                            CleEntry.TargetMonth = CommonMotions.cnvDate(string.Format("{0}/01", cmbTargetMonth.Text));
+                            CleEntry.EntryDate = DateTime.Now;
+                            CleEntry.UpdateDate = DateTime.Now;
+                            CleEntryList.Add(CleEntry);
+                        }
+
+                        // Žx•¥�³”F�î•ñƒf�[ƒ^-----------------------------------------------------------------
+                        string tantoDate = CommonMotions.cnvString(r.Cells[(int)DispColumn.TantoDate].Value);
+                        if ((r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor != Color.Gray)
+                        || (tantoDate != "" && r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor == Color.Gray))
+                        {
+                            // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^‘€�ì
+                            bMakeBpsData = true;
+
+                            for (int iShoninColumn = (int)DispColumn.Shonin1Code; iShoninColumn < (int)DispColumn.Bikou; iShoninColumn += s_ShoninBlockCnt)
+                            {
+                                // �Ý’è‚³‚ê‚Ä‚¢‚È‚¢�³”F—“‚Í–³Ž‹
+                                if (CommonMotions.cnvInt(r.Cells[iShoninColumn + 4].Value) == 0)
+                                    continue;
+
+                                // ƒf�[ƒ^Šm”F
+                                strPaIWhere = IoPaI.CreatePrimarykeyString(iCompanyCode, m_Select_TargetDate, iSeqNo, iLineCount, CommonMotions.cnvInt(r.Cells[iShoninColumn + 4].Value));
+                                PaIList.Clear();
+                                if (!IoPaI.SelectAction(strPaIWhere, ref PaIList, false))
+                                {
+                                    throw new Exception("Žx•¥�³”F�î•ñƒf�[ƒ^�F“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                }
+
+                                PaIWork = new PaymentApprovalInfo();
+                                // �V‹K�iŽx•¥�³”F�î•ñƒf�[ƒ^�j
+                                if (PaIList.Count == 0)
+                                {
+                                    PaIWork.CompanyCode = iCompanyCode;
+                                    PaIWork.TargetDate = TargetDate;
+                                    PaIWork.SeqNo = iSeqNo;
+                                    PaIWork.LineCount = iLineCount;
+                                    PaIWork.ApprovalNo = CommonMotions.cnvInt(r.Cells[iShoninColumn + s_ShoninNoCnt].Value);
+                                    PaIWork.ApprovalPerson = CommonMotions.cnvInt(r.Cells[iShoninColumn].Value);
+                                    PaIWork.ApprovalPersonName = CommonMotions.cnvString(r.Cells[iShoninColumn + s_ShoninPersonNameCnt].Value);
+                                    PaIWork.ApprovalAuthority = CommonMotions.cnvInt(r.Cells[iShoninColumn + s_ShoninAuthorityCnt].Value);
+
+                                    if (r.Cells[iShoninColumn + 1].Style.ForeColor != Color.Gray)
+                                    {
+                                        PaIWork.ApprovalDate = DateTime.Now.Date;
+                                    }
+                                    else
+                                    {
+                                        PaIWork.ApprovalDate = new DateTime(2001, 01, 01);
+                                    }
+
+                                    PaIList.Clear();
+                                    PaIList.Add(PaIWork);
+
+                                    if (!IoPaI.InsertAction(PaIList, false))
+                                    {
+                                        throw new Exception("Žx•¥�³”F�î•ñƒf�[ƒ^�F’Ç‰Á�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                    }
+
+                                    // ƒOƒŠƒbƒh–¾�×ƒf�[ƒ^–ˆ‚Ì’S“–�³”F�”‰ÁŽZ
+                                    iTantoShoninCount += 1;
+                                }
+                                else
+                                {
+                                    // ’S“–ŽÒON�@�¨�@’S“–ŽÒOFF‚Íƒf�[ƒ^‚ð�Á‚·•K—v‚ª‚ ‚é
+                                    if (tantoDate != "" && r.Cells[(int)DispColumn.TantoShonin].Style.ForeColor == Color.Gray)
+                                    {
+                                        // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�í�œŒó•â
+                                        bDeleteBpsData = true;
+
+                                        // ƒ�ƒbƒN
+                                        if (!IoPaI.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, PaIList[0].ApprovalNo, false))
+                                        {
+                                            throw new Exception("Žx•¥�³”F�î•ñƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                                        }
+
+                                        // ƒf�[ƒ^�X�V
+                                        wrkArray.Clear();
+                                        if (IoBd.ExecuteReader(strBdWhere, ref wrkArray, false))
+                                        {
+                                            if (!IoPaI.DeleteAction(strPaIWhere, false))
+                                            {
+                                                throw new Exception("Žx•¥�³”F�î•ñƒf�[ƒ^�F�í�œ�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                            }
+                                        }
+                                    }
+                                    else
+                                    {
+                                        PaIWork.ApprovalPerson = CommonMotions.cnvInt(r.Cells[iShoninColumn].Value);
+                                        PaIWork.ApprovalPersonName = CommonMotions.cnvString(r.Cells[iShoninColumn + 1].Value);
+                                        PaIWork.ApprovalAuthority = CommonMotions.cnvInt(r.Cells[iShoninColumn + 3].Value);
+
+                                        if (r.Cells[iShoninColumn + 1].Style.ForeColor != Color.Gray)
+                                        {
+                                            DateTime dtDate = CommonMotions.cnvDate(r.Cells[iShoninColumn + 2].Value);
+                                            string sDate = dtDate.ToString("yyyy/MM/dd");
+                                            if (sDate != "0001/01/01" && sDate != "2001/01/01")
+                                            {
+                                                PaIWork.ApprovalDate = CommonMotions.cnvDate(sDate);
+                                            }
+                                            else
+                                            {
+                                                PaIWork.ApprovalDate = DateTime.Now.Date;
+                                            }
+                                        }
+                                        else
+                                        {
+                                            PaIWork.ApprovalDate = new DateTime(2001, 01, 01);
+                                        }
+
+                                        // ƒ�ƒbƒN
+                                        if (!IoPaI.RowLock(iCompanyCode, TargetDate, iSeqNo, iLineCount, PaIList[0].ApprovalNo, false))
+                                        {
+                                            throw new Exception("Žx•¥�³”F�î•ñƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                                        }
+
+                                        // ƒf�[ƒ^�X�V
+                                        if (!IoPaI.UpdateAction(strPaIWhere, PaIWork, false))
+                                        {
+                                            throw new Exception("Žx•¥�³”F�î•ñƒf�[ƒ^�F�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                                        }
+
+                                        // ƒOƒŠƒbƒh–¾�×ƒf�[ƒ^–ˆ‚Ì’S“–�³”F�”‰ÁŽZ
+                                        iTantoShoninCount += 1;
+
+                                    }
+                                }
+                            }
+                        }
+                    }
+
+                    // �X�V�i‹Æ–±�¿‹�ƒf�[ƒ^�j
+                    if (bBdData == true)
+                    {
+                        int lSoumuBillGoukei = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == iCompanyCode
+                                                                                        && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == iSeqNo)
+                                                                               .Sum(y => CommonMotions.cnvInt(y.Cells[(int)DispColumn.SomuSeikyu].Value));
+                        // ƒf�[ƒ^‚Ì’l‚ÆƒOƒŠƒbƒhƒrƒ…�[‚Ì’l‚ðƒ`ƒFƒbƒN
+                        if (BdWork.BillPrice != lSoumuBillGoukei)
+                        {
+                            // ƒ�ƒbƒN
+                            if (!IoBd.RowLock(iCompanyCode, TargetDate, iSeqNo, false))
+                            {
+                                throw new Exception("‹Æ–±�¿‹�ƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                            }
+
+                            // ƒf�[ƒ^“o˜^
+                            BdWork.BillPrice = lSoumuBillGoukei;
+                            if (!IoBd.UpdateAction(strBdWhere, BdWork, false))
+                            {
+                                throw new Exception("‹Æ–±�¿‹�ƒf�[ƒ^�F�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                            }
+                        }
+                    }
+
+                    // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^
+                    if (bMakeBpsData == true)
+                    {
+                        BillingPaymentSummary_DataEntry(dgv
+                                                        , iCompanyCode
+                                                        , bDeleteBpsData
+                                                        , iTantoShoninCount
+                                                        , IoBps
+                                                        , BpsList
+                                                        , BpsWork
+                                                        , strBpsWhere);
+                    }
+
+                    // �HŽ–�Ú�×‘ä’ Žx•¥‚¢ƒf�[ƒ^ˆêŠ‡“o˜^
+                    if (CleEntryList.Count > 0)
+                    {
+                        if (!ClsChangeLedgerData.EntryExecuteData(CleEntryList))
+                        {
+                            IoBd.rollback();
+                            IoBdD.rollback();
+                            IoPdD.rollback();
+                            IoPaI.rollback();
+                            IoBps.rollback();
+                            MessageBox.Show("�HŽ–�Ú�×‘ä’ Žx•¥‚¢ƒf�[ƒ^ˆêŠ‡“o˜^", "“o˜^ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                            return false;
+                        }
+                    }
+                }
+                catch (Exception ex)
+                {
+                    IoBd.rollback();
+                    IoBdD.rollback();
+                    IoPdD.rollback();
+                    IoPaI.rollback();
+                    IoBps.rollback();
+                    MessageBox.Show(ex.Message, "“o˜^ƒGƒ‰�[", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return false;
+                }
+
+
+                IoBd.commit();
+                IoBdD.commit();
+                IoPdD.commit();
+                IoPaI.commit();
+                IoBps.commit();
+
+                return true;
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                IoBd.close();
+                IoBd = null;
+                IoBdD.close();
+                IoBdD = null;
+                IoPdD.close();
+                IoPdD = null;
+                IoPaI.close();
+                IoPaI = null;
+                IoBps.close();
+                IoBps = null;
+            }
+
+        }
+        #endregion
+
+        #region ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�ì�¬�E�X�V
+        /// <summary>
+        /// ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�ì�¬�E�X�V
+        /// </summary>
+        /// <param name="dgv"></param>
+        /// <param name="iCompanyCode"></param>
+        /// <param name="bDeleteBpsData"></param>
+        /// <param name="iTantoShoninCount"></param>
+        /// <param name="IoBps"></param>
+        /// <param name="BpsList"></param>
+        /// <param name="BpsWork"></param>
+        /// <param name="strBpsWhere"></param>
+        private void BillingPaymentSummary_DataEntry(DataGridView dgv, int iCompanyCode, bool bDeleteBpsData, int iTantoShoninCount,
+                                IOBillingPaymentSummary IoBps, List<BillingPaymentSummary> BpsList, BillingPaymentSummary BpsWork, string strBpsWhere)
+        {
+            // ‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^-----------------------------------------------
+            for (int ChargePKind = 0; ChargePKind < 2; ChargePKind++)
+            {
+                strBpsWhere = IoBps.CreatePrimarykeyString(iCompanyCode, m_Select_TargetDate, ChargePKind);
+                BpsList = new List<BillingPaymentSummary>();
+
+                // ƒf�[ƒ^Šm”F
+                if (!IoBps.SelectAction(strBpsWhere, ref BpsList, false))
+                {
+                    throw new Exception("‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�F“o˜^Šm”F‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                }
+
+                BpsWork = new BillingPaymentSummary();
+
+                if (BpsList.Count == 0)
+                {
+                    // �V‹K�i‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�j
+                    BpsWork.CompanyCode = iCompanyCode;
+                    BpsWork.TargetDate = m_Select_TargetDate;
+                    BpsWork.ChargePaymentKind = ChargePKind;
+                    GetBpsGoukei(dgv, iCompanyCode, BpsWork.ChargePaymentKind, ref BpsWork);
+
+                    BpsList.Clear();
+                    BpsList.Add(BpsWork);
+
+                    if (!IoBps.InsertAction(BpsList, false))
+                    {
+                        throw new Exception("‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�F’Ç‰Á�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                    }
+
+                }
+                else
+                {
+                    // �X�V
+                    // �í�œ‘Î�Û
+                    if (iTantoShoninCount == 0 && bDeleteBpsData == true)
+                    {
+                        // ƒ�ƒbƒN
+                        if (!IoBps.RowLock(iCompanyCode, m_Select_TargetDate, ChargePKind, false))
+                        {
+                            throw new Exception("‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                        }
+
+                        // �X�V�i‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�j
+                        if (!IoBps.DeleteAction(strBpsWhere, false))
+                        {
+                            throw new Exception("‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�F�í�œ�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                        }
+                    }
+                    else
+                    {
+                        // ’l�Ý’è
+                        GetBpsGoukei(dgv, iCompanyCode, BpsList[0].ChargePaymentKind, ref BpsWork);
+
+                        // ƒ�ƒbƒN
+                        if (!IoBps.RowLock(iCompanyCode, m_Select_TargetDate, ChargePKind, false))
+                        {
+                            throw new Exception("‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�F‘¼‚Ìƒ†�[ƒU‚Å•Ò�W’†‚Ì‚½‚ß�A�ˆ—�‚Å‚«‚Ü‚¹‚ñ�B");
+                        }
+
+                        // �X�V�i‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�j
+                        if (!IoBps.UpdateAction(strBpsWhere, BpsWork, false))
+                        {
+                            throw new Exception("‹ÆŽÒ�¿‹�Žx•¥ƒTƒ}ƒŠ�[ƒf�[ƒ^�F�X�V‚ÉŽ¸”s‚µ‚Ü‚µ‚½�B");
+                        }
+                    }
+                }
+            }
+        }
+        #endregion
+
+        #region ‹ÆŽÒ�¿‹�–¾�×ƒf�[ƒ^�Å‘å�s”Ô�†Žæ“¾
+        /// <summary>
+        /// ‹ÆŽÒ�¿‹�–¾�×ƒf�[ƒ^‚Ì�Å‘å�s”Ô�†‚ðŽæ“¾‚·‚é
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public int SelectMaxLineNo(IOBillingDataDetail IoBdD, string AddSQLString, bool bConnect = true)
+        {
+            // ƒCƒ“ƒ^�[ƒtƒF�[ƒX
+            StringBuilder strcmd = new StringBuilder();
+            ArrayList arData = new ArrayList();
+            int iRet = 0;
+            try
+            {
+                // SQL�ì�¬
+                strcmd.AppendFormat("SELECT IFNULL(MAX(LineCount), 0) FROM BillingDataDetail {0}", AddSQLString);
+
+                // SQLŽÀ�s
+                if (!IoBdD.ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return iRet;
+
+                // ƒf�[ƒ^ƒZƒbƒg
+                foreach (object[] objwrk in arData)
+                {
+                    if (objwrk[0].ToString().Equals("null"))
+                        iRet = 0;
+                    else
+                        iRet = int.Parse(objwrk[0].ToString());
+                }
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}�F{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+            }
+            return iRet;
+        }
+        #endregion
+
+        #region “¯‹ÆŽÒ�A“¯˜A”Ô‚Ì�‡Œv’l
+        /// <summary>
+        /// “¯‹ÆŽÒ�A“¯˜A”Ô‚Ì�‡Œv’l
+        /// </summary>
+        /// <param name="dgv"></param>
+        /// <param name="CompanyCode">‹ÆŽÒƒR�[ƒh</param>
+        /// <param name="SeqNo">˜A”Ô</param>
+        /// <param name="TargetColumn">‘Î�Û—ñ</param>
+        /// <returns></returns>
+        private long GetSeqGoukei(DataGridView dgv, int CompanyCode, int SeqNo, DispColumn TargetColumn)
+        {
+            long Result = 0;
+            try
+            {
+
+                Result = dgv.Rows.Cast<DataGridViewRow>().Where(x => CommonMotions.cnvInt(x.Cells[(int)DispColumn.RowType].Value) == 0
+                                                                && (DataRowState)x.Cells[(int)DispColumn.RowState].Value != DataRowState.Deleted
+                                                                && CommonMotions.cnvInt(x.Cells[m_Company_Column].Value) == CompanyCode
+                                                                && CommonMotions.cnvInt(x.Cells[(int)DispColumn.GroupSeqNo].Value) == SeqNo)
+                    .Sum(y => CommonMotions.cnvLong(y.Cells[(int)TargetColumn].Value));
+
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            return Result;
+
+        }
+        #endregion
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/ProcessControl.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/ProcessControl.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/ProcessControl.cs	(revision 270)
@@ -0,0 +1,1351 @@
+ï»¿using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using System.Collections;
+using System.Linq;
+using System.Diagnostics;
+
+using log4net;
+using log4net.Appender;
+using log4net.Repository.Hierarchy;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.DB.Core;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+using ProcessManagement.Forms.SubForms;
+using ProcessManagement.Forms.Master;
+
+namespace ProcessManagement.Forms.DataEntry
+{
+    partial class FrmRequestSummaryList
+    {
+        #region è‡ªãƒ—ãƒ­ã‚»ã‚¹ã�®ç•ªå�·
+        /// <summary>
+        /// è‡ªãƒ—ãƒ­ã‚»ã‚¹ã�®ç•ªå�·ã‚’æŒ�ã�¤
+        /// </summary>
+        private static int s_CurrentProcessNo = (int)ClsExcute.ProcessExecuteNo.RequestSummaryList;
+ 		#endregion
+
+        #region ãƒ—ãƒ­ã‚»ã‚¹ã‚³ãƒ³ãƒ†ã‚­ã‚¹ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼å¤‰æ•°
+        /// <summary>
+        /// ãƒ—ãƒ­ã‚»ã‚¹ã‚³ãƒ³ãƒ†ã‚­ã‚¹ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼
+        /// </summary>
+        private ContextMenuStrip m_ProcessContextMenuStrip;
+        #endregion
+
+        #region å·¥äº‹ç•ªå�·
+        /// <summary>
+        /// å·¥äº‹ç•ªå�·
+        /// </summary>
+        private int m_ConstructionCode = 0;
+        #endregion
+
+        #region å·¥äº‹æƒ…å ±å®šç¾©
+        /// <summary>
+        /// å·¥äº‹æƒ…å ±å®šç¾©
+        /// </summary>
+        private ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo();
+        #endregion
+
+        #region åˆ¥ãƒ—ãƒ­ã‚»ã‚¹ç§»å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä½œæˆ�
+        /// <summary>
+        /// åˆ¥ãƒ—ãƒ­ã‚»ã‚¹ç§»å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä½œæˆ�
+        /// </summary>
+        //private void CreateProcessContextMenu(bool bSubForm)
+        private void CreateProcessContextMenu()
+        {
+            try
+            {
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä¸€è¦§ã‚’ä½œæˆ�ã�™ã‚‹
+                m_ProcessContextMenuStrip = new ContextMenuStrip();
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�®ã‚»ãƒƒãƒˆ
+                //UpDateProcessContextMenu(bSubForm);
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region åˆ¥ãƒ—ãƒ­ã‚»ã‚¹ç§»å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼æ›´æ–°
+        /// <summary>
+        /// åˆ¥ãƒ—ãƒ­ã‚»ã‚¹ç§»å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼æ›´æ–°
+        /// </summary>
+        private void UpDateProcessContextMenu(bool bSubForm = false)
+        {
+            try
+            {
+                // èµ·å‹•ãƒ—ãƒ­ã‚»ã‚¹ã�®ä¸€æ¡ˆã‚’ä½œæˆ�ã�™ã‚‹
+                List<KeyValuePair<int, string>> ProcList = new List<KeyValuePair<int, string>>();
+                // å·¥äº‹ç•ªå�·ã‚»ãƒƒãƒˆ
+                ClsProcessExist.ConstructionCode = m_ConstructionCode;
+                // ãƒªã‚¹ãƒˆå�–å¾—
+                ClsProcessExist.GetProcessList(ref ProcList, s_CurrentProcessNo);
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ä¸€è¦§ã‚’ä½œæˆ�ã�™ã‚‹
+                m_ProcessContextMenuStrip.Items.Clear();
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ãƒ‡ãƒ¼ã‚¿ã�®ã‚»ãƒƒãƒˆ
+                int icnt = 0;
+                foreach (KeyValuePair<int, string> CurRec in ProcList)
+                {
+                    // è‡ªãƒ—ãƒ­ã‚»ã‚¹ã�¯å‡¦ç�†ã�—ã�ªã�„
+                    if (CurRec.Key == s_CurrentProcessNo) continue;
+                    //ã‚¤ãƒ™ãƒ³ãƒˆã�®ç™»éŒ²
+                    EventHandler handle = null;
+                    switch (CurRec.Key)
+                    {
+                        case (int)ClsExcute.ProcessExecuteNo.MainMenu:                  //  0:ãƒ¡ãƒ‹ãƒ¥ãƒ¼
+                            handle = ProcessExecute_MainMenu;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo:      //  2:å·¥äº‹æƒ…å ±å…¥åŠ›
+                            handle = ProcessExecute_ConstructionBaseInfo;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.EstimateInput:             //  3:ç©�ç®—è¦‹ç©�å…¥åŠ›
+                            handle = ProcessExecute_EstimateInput;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.EstimatePrint:             //  4:ç©�ç®—è¦‹ç©�æ›¸å�°åˆ·
+                            handle = ProcessExecute_EstimatePrint;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.EstimateBudget:            //  5:ç©�ç®—äºˆç®—æ›¸å…¥åŠ›
+                            handle = ProcessExecute_EstimateBudget;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.ConstructionBudget:        //  6:å·¥äº‹äºˆç®—æ›¸å…¥åŠ›
+                            handle = ProcessExecute_ConstructionBudget;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList:      //  8:å·¥äº‹æ¡ˆä»¶ã‚³ãƒ”ãƒ¼æ©Ÿèƒ½
+                            handle = ProcessExecute_ConstructionCopyList;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry:        //  9:æ³¨æ–‡æ›¸å…¥åŠ›
+                            handle = ProcessExecute_PurchaseOrderEntry;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint:        // 10:æ³¨æ–‡æ›¸å�°åˆ·
+                            handle = ProcessExecute_PurchaseOrderPrint;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.ConstructionLedger:        // 12:å·¥äº‹è©³ç´°å�°å¸³
+                            handle = ProcessExecute_ConstructionLedger;
+                            break;
+                        case (int)ClsExcute.ProcessExecuteNo.TAndPCosts:                // 13:äº¤é€šè²»å�Šã�³è³¼å…¥å“�å…¥åŠ›
+                            handle = ProcessExecute_TAndPCosts;
+                            break;
+                    }
+                    // èµ·å‹•é–¢æ•°ã�®ã‚»ãƒƒãƒˆã�Œç„¡ã�‘ã‚Œã�°å‡¦ç�†ã�—ã�ªã�„
+                    if (handle == null) continue;
+
+                    // åŒºåˆ‡ã‚Šç·š
+                    if (icnt != 0) m_ProcessContextMenuStrip.Items.Add("-");
+                    // è¡Œã�®ã‚»ãƒƒãƒˆ
+                    ToolStripMenuItem tsmItem = new ToolStripMenuItem(CurRec.Value, null, handle);
+                    m_ProcessContextMenuStrip.Items.Add(tsmItem);
+                    icnt++;
+                }
+                // ã‚³ãƒ³ãƒ†ã‚­ã‚¹ãƒˆãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚»ãƒƒãƒˆ
+                btnOtherProc.ContextMenuStrip = m_ProcessContextMenuStrip;
+                m_ProcessContextMenuStrip.Show(btnOtherProc, new Point(0, 0));
+                m_ProcessContextMenuStrip.Close();
+
+            }
+            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 btnOtherProc_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                // ã‚«ãƒ¬ãƒ³ãƒˆè¡Œã‚ˆã‚Šå·¥äº‹ç•ªå�·ã‚’å�–å¾—ã�™ã‚‹
+                GetConstructionCode();
+                if (m_ConstructionCode == 0) return;
+                // å·¥äº‹æƒ…å ±ã‚’å�–å¾—ã�™ã‚‹
+                GetBaseInfoData();
+                // åˆ¥ãƒ—ãƒ­ã‚»ã‚¹ç§»å‹•ãƒ¡ãƒ‹ãƒ¥ãƒ¼æ›´æ–°
+                UpDateProcessContextMenu();
+
+                // ãƒœã‚¿ãƒ³ã�®çœŸä¸Šã�«ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‚’è¡¨ç¤ºã�™ã‚‹
+                int h = m_ProcessContextMenuStrip.Height * -1;
+                m_ProcessContextMenuStrip.Show(btnOtherProc, new Point(0, h));
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region çµ‚äº†æ™‚å‡¦ç�†
+        /// <summary>
+        /// çµ‚äº†æ™‚ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚¯ãƒ­ãƒ¼ã‚º
+        /// </summary>
+        private void TerminatingProcess()
+        {
+            try
+            {
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�ŒCloseã�•ã‚Œã�¦ã�„ã�ªã�‘ã‚Œã�°ã‚¯ãƒ­ãƒ¼ã‚ºã�™ã‚‹
+                for (int i = 0; i < ClsExcute.SubFormHandleList.Length; i++)
+                {
+                    PreserveSubFormHandle Handle = ClsExcute.SubFormHandleList[i];
+
+                    // è‡ªåˆ†ã�Œèµ·å‹•ã�—ã�Ÿã‚‚ã�®ä»¥å¤–ã�¯å‡¦ç�†ã�—ã�ªã�„
+                    if (Handle.ProcessNo != s_CurrentProcessNo) continue;
+
+                    // è‡ªåˆ†ã�¯å‡¦ç�†ã�—ã�ªã�„
+                    if (i == s_CurrentProcessNo)
+                    {
+                        ClsExcute.SubFormHandleList[i].SubFormHandle = null;
+                        ClsExcute.SubFormHandleList[i].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+                        continue;
+                    }
+
+                    // èµ·å‹•ã�•ã‚Œã�¦ç„¡ã�‘ã‚Œã�°å‡¦ç�†ã�—ã�ªã�„
+                    if (Handle.SubFormHandle == null) continue;
+
+                    // ç”»é�¢ã‚¯ãƒ­ãƒ¼ã‚º
+                    Handle.SubFormHandle.Close();
+                    if (Handle.SubFormHandle != null) Handle.SubFormHandle.Dispose();
+                    ClsExcute.SubFormHandleList[i].SubFormHandle = null;
+                }
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region æ¬¡ã�®èµ·å‹•ã�Œç”³è«‹ç”»é�¢ã�‹ã�©ã�†ã�‹ã�®åˆ¤å®š
+        /// <summary>
+        /// æ¬¡ã�®èµ·å‹•ã�Œç”³è«‹ç”»é�¢ã�‹ã�©ã�†ã�‹ã�®åˆ¤å®š
+        /// </summary>
+        /// <returns></returns>
+        private bool judgmentApprovalScreen()
+        {
+            try
+            {
+                // ãƒ—ãƒ­ã‚»ã‚¹èµ·å‹•ãƒ†ãƒ¼ãƒ–ãƒ«ã�«ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯true
+                int NextProcess = ClsExcute.ProcControlPara[ClsExcute.GetNowProcessPoint()].ProcNo;
+                if (NextProcess == (int)ClsExcute.SubFormExecuteNo.ApprovalScreen) return true;
+
+                return false;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region    // ---------- ä»–ãƒ—ãƒ­ã‚»ã‚¹èµ·å‹•ãƒ�ãƒ³ãƒ‰ãƒ©ç¾¤ã€€START
+        #region ä¸€æ°—ã�«ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹
+        /// <summary>
+        /// ä¸€æ°—ã�«ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_MainMenu(object sender, EventArgs e)
+        {
+            try
+            {
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // èµ·å‹•ãƒ†ãƒ¼ãƒ–ãƒ«ã‚’ã‚¯ãƒªã‚¢ã�™ã‚‹
+                ClsExcute.ClearProcess();
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ãƒ•ãƒ©ã‚°ONã€€
+                m_ParentEnd = true;
+
+                // çµ‚äº†å‡¦ç�†OFF
+                m_CloseingProcessOn = false;
+
+                // è‡ªãƒ•ã‚©ãƒ¼ãƒ çµ‚äº†
+                this.Close();
+            }
+            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 ProcessExecute_ConstructionBaseInfo(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmConstructionBaseInfo frm = (FrmConstructionBaseInfo)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.ParentAdd = true;
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // å·¥äº‹æƒ…å ±å…¥åŠ›èµ·å‹•
+                frm = new FrmConstructionBaseInfo();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmConstructionBaseInfoClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region ç©�ç®—è¦‹ç©�æ›¸å…¥åŠ›
+        /// <summary>
+        /// ç©�ç®—è¦‹ç©�æ›¸å…¥åŠ›
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_EstimateInput(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // ç©�ç®—è¦‹ç©�æ›¸å…¥åŠ›èµ·å‹•
+                frm = new FrmEstimateInput();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateInputClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region ç©�ç®—è¦‹ç©�æ›¸å�°åˆ·
+        /// <summary>
+        /// ç©�ç®—è¦‹ç©�æ›¸å�°åˆ·
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_EstimatePrint(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // ç©�ç®—è¦‹ç©�æ›¸å�°åˆ·èµ·å‹•
+                frm = new FrmEstimatePrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimatePrintClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region ç©�ç®—äºˆç®—æ›¸å…¥åŠ›
+        /// <summary>
+        /// ç©�ç®—äºˆç®—æ›¸å…¥åŠ›
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_EstimateBudget(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateBudget;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmEstimateBudget frm = (FrmEstimateBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.EstimateBudget;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // ç©�ç®—äºˆç®—æ›¸å…¥åŠ›èµ·å‹•
+                frm = new FrmEstimateBudget();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmEstimateBudgetClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region å·¥äº‹äºˆç®—æ›¸å…¥åŠ›
+        /// <summary>
+        /// å·¥äº‹äºˆç®—æ›¸å…¥åŠ›
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_ConstructionBudget(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBudget;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmConstructionBudget frm = (FrmConstructionBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.ConstructionBudget;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // å·¥äº‹äºˆç®—æ›¸å…¥åŠ›èµ·å‹•
+                frm = new FrmConstructionBudget();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmConstructionBudgetClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region å·¥äº‹æ¡ˆä»¶ã‚³ãƒ”ãƒ¼æ©Ÿèƒ½
+        /// <summary>
+        /// å·¥äº‹æ¡ˆä»¶ã‚³ãƒ”ãƒ¼æ©Ÿèƒ½
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_ConstructionCopyList(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmNewOrContinueCopy frm = (FrmNewOrContinueCopy)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.ParentAdd = true;
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // å·¥äº‹æ¡ˆä»¶ã‚³ãƒ”ãƒ¼èµ·å‹•
+                frm = new FrmNewOrContinueCopy();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmNewOrContinueCopyClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region æ³¨æ–‡æ›¸å…¥åŠ›
+        /// <summary>
+        /// æ³¨æ–‡æ›¸å…¥åŠ›
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_PurchaseOrderEntry(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmPurchaseOrderEntry frm = (FrmPurchaseOrderEntry)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.ParentAdd = true;
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // æ³¨æ–‡æ›¸å…¥åŠ›èµ·å‹•
+                frm = new FrmPurchaseOrderEntry();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmPurchaseOrderEntryClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region æ³¨æ–‡æ›¸å�°åˆ·
+        /// <summary>
+        /// æ³¨æ–‡æ›¸å�°åˆ·
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_PurchaseOrderPrint(object sender, EventArgs e)
+        {
+            FrmTyingConstrDiag frmTying = new FrmTyingConstrDiag();
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmPurchaseOrderPrint frm = (FrmPurchaseOrderPrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å¢—æ¸›å·¥äº‹ã�¯ã‚µãƒ–ãƒ•ã‚©ãƒ¼ãƒ ã‚’è¡¨ç¤ºã�™ã‚‹
+                int SelConstrCode = m_ConstructionCode;
+                if (m_ConstructionBaseInfo.TyingFlg != (int)ConstructionBaseInfo.TyingFlgDef.Standard ||
+                    m_ConstructionBaseInfo.JoinFlg != (int)ConstructionBaseInfo.JoinFlgDef.Standard)
+                {
+                    frmTying.ParentAdd = true;
+                    frmTying.OperationProcess = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint;
+                    frmTying.ConstructionCode = m_ConstructionCode;
+                    frmTying.ShowDialog();
+                    if (frmTying.EndButton == DialogResult.No) return;
+                    SelConstrCode = frmTying.ConstructionCode;
+                }
+
+                // æ³¨æ–‡æ›¸å�°åˆ·èµ·å‹•
+                frm = new FrmPurchaseOrderPrint();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = SelConstrCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmPurchaseOrderPrintClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frmTying.Dispose(); frmTying = null;
+            }
+        }
+        #endregion
+
+        #region å·¥äº‹è©³ç´°å�°å¸³
+        /// <summary>
+        /// å·¥äº‹è©³ç´°å�°å¸³
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void ProcessExecute_ConstructionLedger(object sender, EventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedger;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmConstructionLedger frm = (FrmConstructionLedger)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // å·¥äº‹è©³ç´°å�°å¸³å…¥åŠ›èµ·å‹•
+                frm = new FrmConstructionLedger();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(m_ConstructionCode);
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmConstructionLedgerClosed);
+                frm.Show();
+            }
+            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 ProcessExecute_TAndPCosts(object sender, EventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.TAndPCosts;
+                // ãƒ•ã‚©ãƒ¼ãƒ ã�Œã�‚ã‚Œã�°æœ€å‰�é�¢ã�¸
+                FrmTAndPCosts frm = (FrmTAndPCosts)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // ãƒ‡ãƒ¼ã‚¿å¤‰æ›´æœ‰æ™‚ã�¯ãƒ‡ãƒ¼ã‚¿ç™»éŒ²
+                if (m_bChengeAns)
+                {
+                    if (!DataEntryProcess()) return;
+                }
+
+                // äº¤é€šè²»å�Šã�³è³¼å…¥å“�ç­‰å…¥åŠ›èµ·å‹•
+                frm = new FrmTAndPCosts();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+                frm.ConstructionCode = m_ConstructionCode;
+                frm.PersonCode = CommonMotions.LoginUserData.PersonCode;
+                frm.EditLock = m_EditLock;
+                frm.SubForm = true;
+                frm.ShowInTaskbar = true;
+
+                // ã‚¯ãƒ­ãƒ¼ã‚¹ãƒ‰ãƒ�ãƒ³ãƒ‰ãƒ©ã‚’ã�“ã�¡ã‚‰ã�§å®šç¾©ã�™ã‚‹
+                frm.FormClosed += new FormClosedEventHandler(FrmTAndPCostsClosed);
+                frm.Show();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #endregion // ---------- ä»–ãƒ—ãƒ­ã‚»ã‚¹èµ·å‹•ãƒ�ãƒ³ãƒ‰ãƒ©ç¾¤ã€€END
+
+        #region    // ---------- ä»–ãƒ—ãƒ­ã‚»ã‚¹çµ‚äº†ãƒ�ãƒ³ãƒ‰ãƒ©ç¾¤ã€€START
+        #region å·¥äº‹æƒ…å ±å…¥åŠ›ã�®ã‚¯ãƒ­ãƒ¼ã‚ºã‚’å�–å¾—ã�™ã‚‹
+        /// <summary>
+        /// å·¥äº‹æƒ…å ±å…¥åŠ›ã�®ã‚¯ãƒ­ãƒ¼ã‚ºã‚’å�–å¾—ã�™ã‚‹
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmConstructionBaseInfoClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo;
+                FrmConstructionBaseInfo frm = (FrmConstructionBaseInfo)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+                bool DataChange = frm.DataChenge;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    this.Activate();
+                }
+            }
+            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 FrmEstimateInputClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+                FrmEstimateInput frm = (FrmEstimateInput)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯è¦ªã‚‚çµ‚ã‚�ã‚‰ã�›ã‚‹
+                    if (judgmentApprovalScreen()) m_ParentEnd = true;
+
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmEstimatePrintClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimatePrint;
+                FrmEstimatePrint frm = (FrmEstimatePrint)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+                
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmEstimateBudgetClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateBudget;
+                FrmEstimateBudget frm = (FrmEstimateBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯è¦ªã‚‚çµ‚ã‚�ã‚‰ã�›ã‚‹
+                    if (judgmentApprovalScreen()) m_ParentEnd = true;
+
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmConstructionBudgetClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionBudget;
+                FrmConstructionBudget frm = (FrmConstructionBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯è¦ªã‚‚çµ‚ã‚�ã‚‰ã�›ã‚‹
+                    if (judgmentApprovalScreen()) m_ParentEnd = true;
+
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmNewOrContinueCopyClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionCopyList;
+                // ãƒ—ãƒ­ã‚»ã‚¹ç•ªå�·ã�Œé�•ã�†ã�®ã�§æ³¨æ„�ï¼�ï¼�
+                FrmNewOrContinueCopy frm = (FrmNewOrContinueCopy)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+
+                // æˆ»ã‚Šå€¤å�–å¾—
+                int ConstructionCode = frm.ConstructionCode;
+                bool bNowConstruction = frm.NewConstruction;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                int NowPoint = ClsExcute.GetNowProcessPoint();
+                // ç�¾åœ¨è¨­å®šå€¤ã‚¯ãƒªã‚¢
+                ClsExcute.ClearExecParameter(NowPoint);
+                // å·¥äº‹ç•ªå�·å¤‰æ›´
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(ConstructionCode);
+                // ã‚³ãƒ”ãƒ¼ä½œæˆ�ãƒ‡ãƒ¼ã‚¿ãƒ•ãƒ©ã‚°ã‚»ãƒƒãƒˆ
+                ClsExcute.ProcControlPara[NowPoint].BoolExecParameter.Add(true);
+
+                //this.Activate();
+
+                // çµ‚äº†å‡¦ç�†ãƒ•ãƒ©ã‚°Off
+                m_CloseingProcessOn = false;
+
+                this.Close();
+            }
+            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 FrmPurchaseOrderEntryClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
+                FrmPurchaseOrderEntry frm = (FrmPurchaseOrderEntry)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // ç”³è«‹ç”»é�¢ã�Œè¨­å®šã�•ã‚Œã�¦ã�„ã‚‹å ´å�ˆã�¯è¦ªã‚‚çµ‚ã‚�ã‚‰ã�›ã‚‹
+                    if (judgmentApprovalScreen()) m_ParentEnd = true;
+
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmPurchaseOrderPrintClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint;
+                FrmPurchaseOrderEntry frm = (FrmPurchaseOrderEntry)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmConstructionLedgerClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedger;
+                FrmConstructionLedger frm = (FrmConstructionLedger)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            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 FrmTAndPCostsClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.TAndPCosts;
+                FrmTAndPCosts frm = (FrmTAndPCosts)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                bool ThisEnd = frm.ParentEnd;
+
+                // ãƒ�ãƒ³ãƒ‰ãƒ«ã‚¯ãƒªã‚¢
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+
+                // ãƒ¡ãƒ‹ãƒ¥ãƒ¼ã�¸æˆ»ã‚‹ã�®é�¸æŠž
+                if (ThisEnd)
+                {
+                    // çµ‚äº†å‡¦ç�†OFF
+                    m_CloseingProcessOn = false;
+                    this.Close();
+                }
+                else
+                {
+                    UpDateProcessContextMenu();
+                    this.Activate();
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #endregion // ---------- ä»–ãƒ—ãƒ­ã‚»ã‚¹çµ‚äº†ãƒ�ãƒ³ãƒ‰ãƒ©ç¾¤ã€€END
+
+        // ---------- è«‹æ±‚ã�¾ã�¨ã‚�å…¥åŠ›å›ºæœ‰å‡¦ç�†
+        #region å·¥äº‹ç•ªå�·å�–å¾—
+        /// <summary>
+        /// å·¥äº‹ç•ªå�·å�–å¾—
+        /// </summary>
+        /// <returns></returns>
+        private void GetConstructionCode()
+        {
+            try
+            {
+                m_ConstructionCode = 0;
+                
+                // ã‚°ãƒªãƒƒãƒ‰å�–å¾—
+                DataGridView dgv = getShowingView();
+                // ã‚«ãƒ¬ãƒ³ãƒˆè¡Œå�–å¾—
+                DataGridViewRow CurRow = dgv.CurrentRow;
+                // ã‚»ãƒ«ä½�ç½®å�–å¾—
+                int ConstrPos = rdbCompany.Checked ? (int)DispColumn_Company.GengaCode : (int)DispColumn_Project.GengaCode;
+
+                m_ConstructionCode = CommonMotions.cnvInt(CurRow.Cells[ConstrPos].Value);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region å·¥äº‹æƒ…å ±å�–å¾—å‡¦ç�†
+        /// <summary>
+        /// å·¥äº‹æƒ…å ±å�–å¾—
+        /// </summary>
+        /// <returns></returns>
+        private bool GetBaseInfoData()
+        {
+            IOConstructionBaseInfo cbDB = new IOConstructionBaseInfo();
+            try
+            {
+                string strSQL = cbDB.CreatePrimarykeyString(m_ConstructionCode);
+                if (!cbDB.SelectAction(strSQL, ref m_ConstructionBaseInfo)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                cbDB.close(); cbDB = null;
+            }
+        }
+        #endregion
+        // ---------- è«‹æ±‚ã�¾ã�¨ã‚�å…¥åŠ›å›ºæœ‰å‡¦ç�†ã€€END
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SalesConfirm/FrmSalesConfirm.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SalesConfirm/FrmSalesConfirm.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SalesConfirm/FrmSalesConfirm.cs	(revision 270)
@@ -60,7 +60,7 @@
         private ClsSecurityPermission.UserInfo m_UserInfo = new ClsSecurityPermission.UserInfo()
         {
             m_Type = CommonDefine.SecurityRankPos.NormalAuthority,
-            m_GeneralAffairsFlg = 0,
+            m_GeneralAffairsFlg = (int)SecurityMaster.GeneAffDef.OtherDep,
             m_SecRange = ClsSecurityPermission.SecRangeType.InCharge
         };
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs	(revision 270)
@@ -328,7 +328,7 @@
         private ClsSecurityPermission.UserInfo m_UserInfo = new ClsSecurityPermission.UserInfo()
         {
             m_Type = CommonDefine.SecurityRankPos.NormalAuthority,
-            m_GeneralAffairsFlg = 0,
+            m_GeneralAffairsFlg = (int)SecurityMaster.GeneAffDef.OtherDep,
             m_SecRange = ClsSecurityPermission.SecRangeType.InCharge
         };
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCosts.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCosts.Designer.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCosts.Designer.cs	(revision 270)
@@ -2785,8 +2785,6 @@
             this.cmbDepartment.Name = "cmbDepartment";
             this.cmbDepartment.Size = new System.Drawing.Size(260, 29);
             this.cmbDepartment.TabIndex = 1;
-            this.cmbDepartment.TextChanged += new System.EventHandler(this.cmbDepartment_TextChanged);
-            this.cmbDepartment.Enter += new System.EventHandler(this.cmbDepartment_Enter);
             // 
             // label2
             // 
@@ -2812,8 +2810,6 @@
             this.cmbConstructionPerson.Name = "cmbConstructionPerson";
             this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 29);
             this.cmbConstructionPerson.TabIndex = 2;
-            this.cmbConstructionPerson.TextChanged += new System.EventHandler(this.cmbConstructionPerson_TextChanged);
-            this.cmbConstructionPerson.Enter += new System.EventHandler(this.cmbConstructionPerson_Enter);
             // 
             // label3
             // 
@@ -2849,8 +2845,6 @@
             this.comboBox1.Name = "comboBox1";
             this.comboBox1.Size = new System.Drawing.Size(160, 29);
             this.comboBox1.TabIndex = 0;
-            this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
-            this.comboBox1.Enter += new System.EventHandler(this.comboBox1_Enter);
             // 
             // pnlApproval
             // 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCosts.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCosts.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCosts.cs	(revision 270)
@@ -292,6 +292,16 @@
         private int m_ConstructionCode = 0;
 
         /// <summary>
+        /// åˆ�æœŸã‚³ãƒ¼ãƒ‰ã‚»ãƒƒãƒˆãƒ•ãƒ©ã‚°
+        /// </summary>
+        private bool m_InitSetFlag = false;
+
+        /// <summary>
+        /// æ‹…å½“è€…æ‰€å±žéƒ¨ç½²ã‚³ãƒ¼ãƒ‰
+        /// </summary>
+        private int m_DepartmentCode = 0;
+
+        /// <summary>
         /// æ‹…å½“è€…ã‚³ãƒ¼ãƒ‰
         /// </summary>
         private int m_PersonCode = 0;
@@ -360,6 +370,24 @@
         }
 
         /// <summary>
+        /// åˆ�æœŸã‚³ãƒ¼ãƒ‰ã‚»ãƒƒãƒˆãƒ•ãƒ©ã‚°
+        /// </summary>
+        public bool InitSetFlag
+        {
+            get { return m_InitSetFlag; }
+            set { m_InitSetFlag = value; }
+        }
+
+        /// <summary>
+        /// æ‹…å½“è€…æ‰€å±žéƒ¨ç½²ã‚³ãƒ¼ãƒ‰
+        /// </summary>
+        public int DepartmentCode
+        {
+            get { return m_DepartmentCode; }
+            set { m_DepartmentCode = value; }
+        }
+
+        /// <summary>
         /// æ‹…å½“è€…ã‚³ãƒ¼ãƒ‰
         /// </summary>
         public int PersonCode
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCostsAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCostsAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCostsAuxiliary.cs	(revision 270)
@@ -100,6 +100,9 @@
                 // å¤‰æ›´ãƒ•ãƒ©ã‚°ã�®ã‚¯ãƒªã‚¢
                 m_bChengeAns = false;
 
+                // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã‚¤ãƒ™ãƒ³ãƒˆã‚»ãƒƒãƒˆ
+                SetCombBoxEvent(true);
+                
                 return true;
             }
             catch (Exception ex)
@@ -110,6 +113,41 @@
         }
         #endregion
 
+        #region ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã‚¤ãƒ™ãƒ³ãƒˆè¨­å®šå‡¦ç�†
+        /// <summary>
+        /// ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã‚¤ãƒ™ãƒ³ãƒˆè¨­å®šå‡¦ç�†
+        /// </summary>
+        /// <param name="bSetEvent"></param>
+        private void SetCombBoxEvent(bool bSetEvent)
+        {
+            try
+            {
+                if (bSetEvent)
+                {
+                    comboBox1.SelectedIndexChanged += new EventHandler(this.comboBox1_SelectedIndexChanged);
+                    comboBox1.Enter += new EventHandler(this.comboBox1_Enter);
+                    cmbDepartment.TextChanged += new EventHandler(this.cmbDepartment_TextChanged);
+                    cmbDepartment.Enter += new EventHandler(this.cmbDepartment_Enter);
+                    cmbConstructionPerson.TextChanged += new EventHandler(this.cmbConstructionPerson_TextChanged);
+                    cmbConstructionPerson.Enter += new EventHandler(this.cmbConstructionPerson_Enter);
+                }
+                else
+                {
+                    comboBox1.SelectedIndexChanged -= new EventHandler(this.comboBox1_SelectedIndexChanged);
+                    comboBox1.Enter -= new EventHandler(this.comboBox1_Enter);
+                    cmbDepartment.TextChanged -= new EventHandler(this.cmbDepartment_TextChanged);
+                    cmbDepartment.Enter -= new EventHandler(this.cmbDepartment_Enter);
+                    cmbConstructionPerson.TextChanged -= new EventHandler(this.cmbConstructionPerson_TextChanged);
+                    cmbConstructionPerson.Enter -= new EventHandler(this.cmbConstructionPerson_Enter);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region ç”»é�¢ã‚¯ãƒªã‚¢
         /// <summary>
         /// ç”»é�¢ã‚¯ãƒªã‚¢
@@ -142,11 +180,22 @@
             try
             {
                 // é�¸æŠžéƒ¨ç½²ã�Œè¤‡æ•°ã�®è€…ã�¯ã‚»ãƒƒãƒˆã�—ã�ªã�„
-                if (cmbDepartment.Items.Count > 2) return;
+                if (!m_InitSetFlag && cmbDepartment.Items.Count > 2) return;
 
-                cmbDepartment.SelectedValue = CommonMotions.LoginUserData.DepartmentCode;
+                // ãƒ—ãƒ­ãƒ‘ãƒ†ã‚£ã�Œã�‚ã‚Œã�°ã��ã‚Œã‚’ã‚»ãƒƒãƒˆ
+                if (m_InitSetFlag && m_DepartmentCode != 0)
+                    cmbDepartment.SelectedValue = m_DepartmentCode;
+                else
+                    cmbDepartment.SelectedValue = CommonMotions.LoginUserData.DepartmentCode;
+                
+                // å¯¾è±¡éƒ¨ç½²ã�®æ‹…å½“è€…ã‚»ãƒƒãƒˆ
                 SetcombBoxPerson();
-                cmbConstructionPerson.SelectedValue = CommonMotions.LoginUserData.PersonCode;
+
+                // ãƒ—ãƒ­ãƒ‘ãƒ†ã‚£ã�Œã�‚ã‚Œã�°ã��ã‚Œã‚’ã‚»ãƒƒãƒˆ
+                if (m_InitSetFlag && m_PersonCode != 0)
+                    cmbConstructionPerson.SelectedValue = m_PersonCode;
+                else
+                    cmbConstructionPerson.SelectedValue = CommonMotions.LoginUserData.PersonCode;
             }
             catch (Exception ex)
             {
@@ -175,9 +224,15 @@
                 }
 
                 // å­˜åœ¨æœˆã‚’æ‹…å½“è€…æ¯ŽçµŒè²»ãƒ‡ãƒ¼ã‚¿ã‚ˆã‚Šå�–å¾—ã�™ã‚‹
-                string strSQL = "SELECT DATE_FORMAT(ACTIONDATE,'%Y/%m'), COUNT(*) FROM CostDataOfPerson GROUP BY DATE_FORMAT(ACTIONDATE,'%Y/%m') ORDER BY 1 DESC";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append("SELECT");
+                strSQL.Append(" DATE_FORMAT(ACTIONDATE,'%Y/%m'),");
+                strSQL.Append(" COUNT(*)");
+                strSQL.Append(" FROM CostDataOfPerson");
+                strSQL.Append(" GROUP BY DATE_FORMAT(ACTIONDATE,'%Y/%m')");
+                strSQL.Append(" ORDER BY 1 DESC");
                 ArrayList arList = new ArrayList();
-                CostDB.ExecuteReader(strSQL, ref arList);
+                CostDB.ExecuteReader(strSQL.ToString(), ref arList);
 
                 // å½“æœˆã‚’ä½œæˆ�ã�™ã‚‹
                 string ToMonth = string.Format("{0}/{1}", DateTime.Now.Year, DateTime.Now.Month.ToString("00"));
@@ -325,27 +380,27 @@
                 cmbDepartment.Items.Clear();
                 cmbDepartment.Text = "";
 
-                string strSQL = string.Empty;
+                StringBuilder strSQL = new StringBuilder();
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚’æ¤œç´¢ã�™ã‚‹
-                strSQL = "SELECT A.DEPARTMENTCODE, A.DEPARTMENTSTRING, A.DISPLAYORDER, COUNT(*)";
-                strSQL += " FROM DEPARTMENTMASTER A, PERSONINCHARGEMASTER B, CONSTRUCTIONBASEINFO C";
-                strSQL += " WHERE A.DELETEFLG = 0";
+                strSQL.Append("SELECT A.DEPARTMENTCODE, A.DEPARTMENTSTRING, A.DISPLAYORDER, COUNT(*)");
+                strSQL.Append(" FROM DEPARTMENTMASTER A, PERSONINCHARGEMASTER B, CONSTRUCTIONBASEINFO C");
+                strSQL.Append(" WHERE A.DELETEFLG = 0");
 
                 if (CommonMotions.LoginUserData.PersonCode != CommonDefine.AdminCode)
                 {
                     // å�‚ç…§éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚ˆã‚Šå�–å¾—ã�™ã‚‹
-                    strSQL += " AND A.DEPARTMENTCODE IN (SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1";
-                    strSQL += string.Format(" WHERE A1.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" AND A.DEPARTMENTCODE IN (SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSQL.AppendFormat(" WHERE A1.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
                 }
 
-                strSQL += " AND A.DEPARTMENTCODE = B.DEPARTMENTCODE";
-                strSQL += " AND B.PERSONCODE = C.CONSTRUCTIONPERSONCODE";
-                strSQL += " GROUP BY A.DEPARTMENTCODE, A.DEPARTMENTSTRING, A.DISPLAYORDER";
-                strSQL += " ORDER BY A.DISPLAYORDER ASC";
+                strSQL.Append(" AND A.DEPARTMENTCODE = B.DEPARTMENTCODE");
+                strSQL.Append(" AND B.PERSONCODE = C.CONSTRUCTIONPERSONCODE");
+                strSQL.Append(" GROUP BY A.DEPARTMENTCODE, A.DEPARTMENTSTRING, A.DISPLAYORDER");
+                strSQL.Append(" ORDER BY A.DISPLAYORDER ASC");
 
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿èª­è¾¼
                 ArrayList arList = new ArrayList();
-                if (!depDB.ExecuteReader(strSQL, ref arList)) return false;
+                if (!depDB.ExecuteReader(strSQL.ToString(), ref arList)) return false;
 
                 List<KeyValuePair<int, string>> ConstructionDataList = new List<KeyValuePair<int, string>>();
                 ConstructionDataList.Add(new KeyValuePair<int, string>(0, ""));
@@ -425,24 +480,24 @@
                 cmbConstructionPerson.Text = "";
 
                 List<PersonInChargeMaster> workList = new List<PersonInChargeMaster>();
-                string strSQL = string.Empty;
+                StringBuilder strSQL = new StringBuilder();
                 int DepartmentCode = GetDepartmentCode();
                 if (DepartmentCode == 0)
                 {
-                    strSQL = " WHERE DeleteFlg = 0";
-                    strSQL += string.Format(" AND EmployeeClassFlg = {0}", (int)PersonInChargeMaster.EmployeeClassFlgDef.Regular);
+                    strSQL.Append(" WHERE DeleteFlg = 0");
+                    strSQL.AppendFormat(" AND EmployeeClassFlg = {0}", (int)PersonInChargeMaster.EmployeeClassFlgDef.Regular);
                     // å�‚ç…§éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚ˆã‚Šå�–å¾—ã�™ã‚‹
-                    strSQL += " AND DEPARTMENTCODE IN (SELECT AA.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER AA";
-                    strSQL += string.Format(" WHERE AA.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
-                    strSQL += " Order By EmployeeClassFlg ASC, DisplayOrder ASC";
+                    strSQL.Append(" AND DEPARTMENTCODE IN (SELECT AA.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER AA");
+                    strSQL.AppendFormat(" WHERE AA.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" Order By EmployeeClassFlg ASC, DisplayOrder ASC");
                 }
                 else
                 {
-                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC", DepartmentCode);
+                    strSQL.AppendFormat(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC", DepartmentCode);
                 }
 
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿èª­è¾¼
-                if (!picDB.SelectAction(strSQL, ref workList)) return;
+                if (!picDB.SelectAction(strSQL.ToString(), ref workList)) return;
 
                 List<KeyValuePair<int, string>> ConstructionDataList = new List<KeyValuePair<int, string>>();
                 ConstructionDataList.Add(new KeyValuePair<int, string>(0, ""));
@@ -989,7 +1044,8 @@
             try
             {
                 // è¡¨ç¤ºã�•ã‚Œã�¦ã�„ã�ªã�„å ´å�ˆã�¯ãƒ­ã‚°ã‚¤ãƒ³ãƒ¦ãƒ¼ã‚¶ãƒ¼ã‚’è¿”ã�™
-                if (!cmbConstructionPerson.Visible) {
+                if (!cmbConstructionPerson.Visible)
+                {
                     return CommonMotions.LoginUserData.PersonCode;
                 }
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmRequestPrint.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmRequestPrint.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmRequestPrint.cs	(revision 270)
@@ -75,7 +75,7 @@
         private ClsSecurityPermission.UserInfo m_UserInfo = new ClsSecurityPermission.UserInfo()
         {
             m_Type = CommonDefine.SecurityRankPos.NormalAuthority,
-            m_GeneralAffairsFlg = 0,
+            m_GeneralAffairsFlg = (int)SecurityMaster.GeneAffDef.OtherDep,
             m_SecRange = ClsSecurityPermission.SecRangeType.InCharge
         };
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.Designer.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.Designer.cs	(revision 270)
@@ -695,6 +695,7 @@
             this.timer_StaffAssign = new System.Windows.Forms.Timer(this.components);
             this.btnDataCopy = new System.Windows.Forms.Button();
             this.btnConstrSearch = new System.Windows.Forms.Button();
+            this.lblUpdateNotice = new System.Windows.Forms.Label();
             this.tabMenu.SuspendLayout();
             this.tabPage1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvBusinessMessage)).BeginInit();
@@ -750,7 +751,7 @@
             this.lblTitle.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.lblTitle.Font = new System.Drawing.Font("ãƒ¡ã‚¤ãƒªã‚ª", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.lblTitle.ForeColor = System.Drawing.Color.Black;
-            this.lblTitle.Location = new System.Drawing.Point(360, 10);
+            this.lblTitle.Location = new System.Drawing.Point(360, 6);
             this.lblTitle.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.lblTitle.Name = "lblTitle";
             this.lblTitle.Size = new System.Drawing.Size(500, 30);
@@ -7191,7 +7192,7 @@
             this.lblDate.BackColor = System.Drawing.Color.Transparent;
             this.lblDate.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.lblDate.ForeColor = System.Drawing.Color.White;
-            this.lblDate.Location = new System.Drawing.Point(1050, 14);
+            this.lblDate.Location = new System.Drawing.Point(1050, 10);
             this.lblDate.Name = "lblDate";
             this.lblDate.Size = new System.Drawing.Size(150, 23);
             this.lblDate.TabIndex = 19;
@@ -7203,7 +7204,7 @@
             this.lblVersion.AutoSize = true;
             this.lblVersion.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.lblVersion.ForeColor = System.Drawing.Color.White;
-            this.lblVersion.Location = new System.Drawing.Point(20, 17);
+            this.lblVersion.Location = new System.Drawing.Point(20, 13);
             this.lblVersion.Name = "lblVersion";
             this.lblVersion.Size = new System.Drawing.Size(112, 16);
             this.lblVersion.TabIndex = 20;
@@ -7258,6 +7259,19 @@
             this.btnConstrSearch.UseVisualStyleBackColor = false;
             this.btnConstrSearch.Click += new System.EventHandler(this.btnConstrSearch_Click);
             // 
+            // lblUpdateNotice
+            // 
+            this.lblUpdateNotice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.lblUpdateNotice.AutoSize = true;
+            this.lblUpdateNotice.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lblUpdateNotice.ForeColor = System.Drawing.Color.Red;
+            this.lblUpdateNotice.Location = new System.Drawing.Point(680, 36);
+            this.lblUpdateNotice.Name = "lblUpdateNotice";
+            this.lblUpdateNotice.Size = new System.Drawing.Size(535, 16);
+            this.lblUpdateNotice.TabIndex = 45;
+            this.lblUpdateNotice.Text = "â€»ã‚·ã‚¹ãƒ†ãƒ ã�Œã‚¢ãƒƒãƒ—ãƒ‡ãƒ¼ãƒˆã�•ã‚Œã�¾ã�—ã�Ÿçµ‚äº†å¾Œã€�å†�èµ·å‹•ã�—ã�¦ã��ã� ã�•ã�„ã€‚";
+            this.lblUpdateNotice.Visible = false;
+            // 
             // FrmMenu
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -7265,6 +7279,7 @@
             this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
             this.BackColor = System.Drawing.Color.Black;
             this.ClientSize = new System.Drawing.Size(1220, 682);
+            this.Controls.Add(this.lblUpdateNotice);
             this.Controls.Add(this.btnConstrSearch);
             this.Controls.Add(this.btnReLoadData);
             this.Controls.Add(this.btnLogOut);
@@ -7812,6 +7827,7 @@
         private System.Windows.Forms.ComboBox cmbDepartment;
         private System.Windows.Forms.Label label16;
         private System.Windows.Forms.Button btnConstrSearch;
+        private System.Windows.Forms.Label lblUpdateNotice;
     }
 }
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs	(revision 270)
@@ -1023,74 +1023,6 @@
         }
         #endregion
 
-        #region åˆ�æœŸæ™‚ã‚·ã‚¹ãƒ†ãƒ æ›´æ–°ç¢ºèª�
-        /// <summary>
-        /// åˆ�æœŸæ™‚ã‚·ã‚¹ãƒ†ãƒ æ›´æ–°ç¢ºèª�
-        /// </summary>
-        /// <returns></returns>
-        private SystemUpdate InitUpdateProc()
-        {
-            IOSystemExecute SysExecDB = new IOSystemExecute();
-            try
-            {
-                // æœ¬ç’°å¢ƒã�®ã�¿ã‚³ãƒ”ãƒ¼ãƒ—ãƒ­ã‚»ã‚¹å®Ÿè¡Œ
-                if (!CommonMotions.ProductionExecution) return SystemUpdate.ExecNormal;
-
-                // ã‚·ã‚¹ãƒ†ãƒ ã�®ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³ã‚’ãƒ�ã‚§ãƒƒã‚¯ã�™ã‚‹
-                // ã‚­ãƒ¼ã‚’å�–å¾—ã�™ã‚‹
-                int PCode = CommonDefine.ExePrimaryCode.First(x => x.Value.Equals("ã‚·ã‚¹ãƒ†ãƒ ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³")).Key;
-                
-                // ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³èª­è¾¼
-                string strSQL = SysExecDB.CreatePrimarykeyString(PCode);
-                SystemExecute recordRec = new SystemExecute();
-                if (!SysExecDB.SelectAction(strSQL, ref recordRec))
-                {   // ãƒ¬ã‚³ãƒ¼ãƒ‰ç„¡æ™‚ã�¯ã‚¨ãƒ©ãƒ¼
-                    logger.ErrorFormat("ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³ãƒ�ã‚§ãƒƒã‚¯ãƒ‡ãƒ¼ã‚¿èª­è¾¼ã�¿ã‚¨ãƒ©ãƒ¼ï¼š{0}", CommonMotions.GetMethodName());
-                    return SystemUpdate.Abort;
-                }
-
-                // ã‚³ãƒ”ãƒ¼ãƒ»ç’°å¢ƒã�®æ›´æ–°ç¢ºèª�
-                if (recordRec.UpDateCopyVersion > CommonVersion.s_UpDateCopyVersion)
-                {
-                    // ã‚³ãƒ”ãƒ¼æ©Ÿèƒ½ã�®æ›´æ–°
-                    ClsUpDate.UpdateAndEnvFileCopy();
-
-                    // æœ¬ä½“æ›´æ–°ã�Œç„¡ã�„å ´å�ˆã�¯å†�èµ·å‹•
-                    if (recordRec.SystemVersion == CommonVersion.s_SystemVersion)
-                    {
-                        m_LoginEndFlg = true;
-                        Application.Restart();
-                        return SystemUpdate.ExecUpdate;
-                    }
-                }
-
-                // æœ¬ä½“æ›´æ–°ã�®ç¢ºèª�
-                if (recordRec.SystemVersion > CommonVersion.s_SystemVersion)
-                {
-                    // æœ¬ä½“ãƒ»ç’°å¢ƒæ›´æ–°ã‚’èµ·å‹•ã�™ã‚‹
-                    string ExecProc = System.Environment.CurrentDirectory + "\\" + CommonDefine.s_UPDATECOPY_NAME;
-                    if (File.Exists(ExecProc))
-                    {
-                        m_LoginEndFlg = true;
-                        Process p = Process.Start(ExecProc);
-                        return SystemUpdate.ExecUpdate;
-                    }
-                }
-
-                return SystemUpdate.ExecNormal;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
-                return SystemUpdate.Abort;
-            }
-            finally
-            {
-                SysExecDB.close(); SysExecDB = null;
-            }
-        }
-        #endregion
-
         #region åˆ�æœŸç”»é�¢è¡¨ç¤ºæ™‚ã‚¢ã‚¯ã‚·ãƒ§ãƒ³
         /// <summary>
         /// åˆ�æœŸç”»é�¢è¡¨ç¤ºæ™‚ã‚¢ã‚¯ã‚·ãƒ§ãƒ³
@@ -2273,7 +2205,7 @@
 
                 // æ¬¡èµ·å‹•ãƒ—ãƒ­ã‚»ã‚¹ã‚»ãƒƒãƒˆ
                 int NowPoint = ClsExcute.NextProcess((int)ClsExcute.SubFormExecuteNo.ApprovalPerson);
-                // é�¸æŠžå·¥äº‹ç•ªå�·ã‚»ãƒƒãƒˆ
+                // é�¸æŠžæ‹…å½“è€…ç•ªå�·ã‚»ãƒƒãƒˆ
                 ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(iPersonCode);
                 // é�¸æŠžæ‰¿èª�æ©Ÿèƒ½ç•ªå�·ã‚»ãƒƒãƒˆ
                 ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(iApprovalCode);
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 270)
@@ -1,4 +1,5 @@
 ï»¿using System;
+using System.IO;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
@@ -29,6 +30,121 @@
     partial class FrmMenu
     {
 
+        #region åˆ�æœŸæ™‚ã‚·ã‚¹ãƒ†ãƒ æ›´æ–°ç¢ºèª�
+        /// <summary>
+        /// åˆ�æœŸæ™‚ã‚·ã‚¹ãƒ†ãƒ æ›´æ–°ç¢ºèª�
+        /// </summary>
+        /// <returns></returns>
+        private SystemUpdate InitUpdateProc()
+        {
+            try
+            {
+                // æœ¬ç’°å¢ƒã�®ã�¿ã‚³ãƒ”ãƒ¼ãƒ—ãƒ­ã‚»ã‚¹å®Ÿè¡Œ
+                if (!CommonMotions.ProductionExecution) return SystemUpdate.ExecNormal;
+
+                // ã‚·ã‚¹ãƒ†ãƒ ã�®ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³ã‚’ãƒ�ã‚§ãƒƒã‚¯ã�™ã‚‹
+                // ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³èª­è¾¼
+                SystemExecute recordRec = new SystemExecute();
+                GetSystemExecute(ref recordRec);
+                
+                // ã‚³ãƒ”ãƒ¼ãƒ»ç’°å¢ƒã�®æ›´æ–°ç¢ºèª�
+                if (recordRec.UpDateCopyVersion > CommonVersion.s_UpDateCopyVersion)
+                {
+                    // ã‚³ãƒ”ãƒ¼æ©Ÿèƒ½ã�®æ›´æ–°
+                    ClsUpDate.UpdateAndEnvFileCopy();
+
+                    // æœ¬ä½“æ›´æ–°ã�Œç„¡ã�„å ´å�ˆã�¯å†�èµ·å‹•
+                    if (recordRec.SystemVersion == CommonVersion.s_SystemVersion)
+                    {
+                        m_LoginEndFlg = true;
+                        Application.Restart();
+                        return SystemUpdate.ExecUpdate;
+                    }
+                }
+
+                // æœ¬ä½“æ›´æ–°ã�®ç¢ºèª�
+                if (recordRec.SystemVersion > CommonVersion.s_SystemVersion)
+                {
+                    // æœ¬ä½“ãƒ»ç’°å¢ƒæ›´æ–°ã‚’èµ·å‹•ã�™ã‚‹
+                    string ExecProc = System.Environment.CurrentDirectory + "\\" + CommonDefine.s_UPDATECOPY_NAME;
+                    if (File.Exists(ExecProc))
+                    {
+                        m_LoginEndFlg = true;
+                        Process p = Process.Start(ExecProc);
+                        return SystemUpdate.ExecUpdate;
+                    }
+                }
+
+                return SystemUpdate.ExecNormal;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+                return SystemUpdate.Abort;
+            }
+        }
+        #endregion
+
+        #region ã‚·ã‚¹ãƒ†ãƒ èµ·å‹•ç¢ºèª�ãƒ‡ãƒ¼ã‚¿å�–å¾—
+        /// <summary>
+        /// ã‚·ã‚¹ãƒ†ãƒ èµ·å‹•ç¢ºèª�ãƒ‡ãƒ¼ã‚¿å�–å¾—
+        /// </summary>
+        /// <param name="SysExecDB"></param>
+        /// <param name="recordRec"></param>
+        private void GetSystemExecute(ref SystemExecute recordRec)
+        {
+            IOSystemExecute SysExecDB = new IOSystemExecute();
+            try
+            {
+                // ã‚·ã‚¹ãƒ†ãƒ ã�®ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³ã‚’ãƒ�ã‚§ãƒƒã‚¯ã�™ã‚‹
+                // ã‚­ãƒ¼ã‚’å�–å¾—ã�™ã‚‹
+                int PCode = CommonDefine.ExePrimaryCode.First(x => x.Value.Equals("ã‚·ã‚¹ãƒ†ãƒ ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³")).Key;
+
+                // ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³èª­è¾¼
+                string strSQL = SysExecDB.CreatePrimarykeyString(PCode);
+                if (!SysExecDB.SelectAction(strSQL, ref recordRec))
+                {   // ãƒ¬ã‚³ãƒ¼ãƒ‰ç„¡æ™‚ã�¯ã‚¨ãƒ©ãƒ¼
+                    logger.ErrorFormat("ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³ãƒ�ã‚§ãƒƒã‚¯ãƒ‡ãƒ¼ã‚¿èª­è¾¼ã�¿ã‚¨ãƒ©ãƒ¼ï¼š{0}", CommonMotions.GetMethodName());
+                    return;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                SysExecDB.close(); SysExecDB = null;
+            }
+        }
+        #endregion
+
+        #region ã‚·ã‚¹ãƒ†ãƒ æ›´æ–°ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸è¡¨ç¤º
+        /// <summary>
+        /// ã‚·ã‚¹ãƒ†ãƒ æ›´æ–°ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸è¡¨ç¤º
+        /// </summary>
+        private void SysUpDateMesage()
+        {
+            try
+            {
+                bool bVis = false;
+
+                // ã‚·ã‚¹ãƒ†ãƒ ã�®ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³ã‚’ãƒ�ã‚§ãƒƒã‚¯ã�™ã‚‹
+                // ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³èª­è¾¼
+                SystemExecute recordRec = new SystemExecute();
+                GetSystemExecute(ref recordRec);
+
+                if (recordRec.SystemVersion > CommonVersion.s_SystemVersion) bVis = true;
+                    
+                lblUpdateNotice.Visible = bVis;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
         /// <summary>
         /// åˆ�æœŸæ™‚ãƒ‡ãƒ¼ã‚¿å�–å¾—
@@ -140,6 +256,9 @@
         {
             try
             {
+                // ã‚·ã‚¹ãƒ†ãƒ æ›´æ–°ãƒ�ã‚§ãƒƒã‚¯
+                SysUpDateMesage();
+
                 // é�¸æŠžç„¡ã�¯å‡¦ç�†ã�—ã�ªã�„
                 if (tabMenu.SelectedTab == null) return;
 
@@ -2748,7 +2867,8 @@
                 int iLineCnt = 0;
                 int BreakCode = 0;
 
-                if (arData.Count == 0) goto BlankLien;
+                if (arData.Count == 0) return;
+
                 // ã�Ÿã‚�è¾¼ã�¿å‡¦ç�†é ˜åŸŸåˆ�æœŸåŒ–
                 ArrayList BufferList = new ArrayList();
                 object[] objfirst = (object[])arData[0];
@@ -2789,15 +2909,6 @@
                     // è¡Œè¡¨ç¤º
                     DispPersonAppRowProc(ino, BufferList, ref BreakCode);
                 }
-
-            BlankLien:
-
-                dgv.ResumeLayout();
-
-                // ProgressBarã�®å€¤ã‚’å¤‰æ›´ã�™ã‚‹
-                MainProgressBar.Value = MainProgressBar.Maximum;
-                MainProgressBar.Update();
-
             }
             catch (Exception ex)
             {
@@ -2805,6 +2916,12 @@
             }
             finally
             {
+                dgv.ResumeLayout();
+
+                // ProgressBarã�®å€¤ã‚’å¤‰æ›´ã�™ã‚‹
+                MainProgressBar.Value = MainProgressBar.Maximum;
+                MainProgressBar.Update();
+
                 // èª­è¾¼æ™‚ãƒ‡ãƒ¼ã‚¿ã‚«ã‚¦ãƒ³ãƒˆå�–å¾—
                 if (CommonDefine.s_MaxInitLineCount > dgv.RowCount)
                     dgv.RowCount += (CommonDefine.s_MaxInitLineCount - dgv.RowCount);
Index: branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 270)
@@ -291,6 +291,9 @@
       <DependentUpon>FrmJoinSelect.cs</DependentUpon>
     </Compile>
     <Compile Include="Forms\DataEntry\ConstructionLedgerList\CreateLedgerSQL.cs" />
+    <Compile Include="Forms\DataEntry\ConstructionLedgerList\ProcessControl.cs">
+      <SubType>Form</SubType>
+    </Compile>
     <Compile Include="Forms\DataEntry\ConstructionSerarch\FrmConstrSerarchAux.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -699,6 +702,9 @@
     <Compile Include="Forms\DataEntry\Request\RequestSummaryList\FrmRequestSummaryListAuxiliary.cs">
       <SubType>Form</SubType>
     </Compile>
+    <Compile Include="Forms\DataEntry\Request\RequestSummaryList\ProcessControl.cs">
+      <SubType>Form</SubType>
+    </Compile>
     <Compile Include="Forms\DataEntry\Request\SalesConfirm\FrmSalesConfirmAuxiliary.cs">
       <SubType>Form</SubType>
     </Compile>
Index: branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 269)
+++ branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 270)
@@ -32,7 +32,7 @@
 // ã�™ã�¹ã�¦ã�®å€¤ã‚’æŒ‡å®šã�™ã‚‹ã�‹ã€�ä¸‹ã�®ã‚ˆã�†ã�« '*' ã‚’ä½¿ã�£ã�¦ãƒ“ãƒ«ãƒ‰ã�Šã‚ˆã�³ãƒªãƒ“ã‚¸ãƒ§ãƒ³ç•ªå�·ã‚’ 
 // æ—¢å®šå€¤ã�«ã�™ã‚‹ã�“ã�¨ã�Œã�§ã��ã�¾ã�™:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.80")]
-[assembly: AssemblyFileVersion("1.0.0.80")]
+[assembly: AssemblyVersion("1.0.0.81")]
+[assembly: AssemblyFileVersion("1.0.0.81")]
 // Log4netã‚’ä½¿ç”¨ã�™ã‚‹
 [assembly: log4net.Config.XmlConfigurator(ConfigFile = @"log4net.config", Watch = true)]
\ No newline at end of file
