Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 93)
@@ -14,7 +14,7 @@
         /// <summary>
         /// 本体バージョン
         /// </summary>
-        public static int s_SystemVersion = 18;
+        public static int s_SystemVersion = 1;
 
         /// <summary>
         /// コピー・環境バージョン
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsApprovalPermission.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsApprovalPermission.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsApprovalPermission.cs	(revision 93)
@@ -421,7 +421,7 @@
                 string strSQL = "SELECT A.DISPLAYORDER, A.APPROVALPERSON, A.APPROVALAUTHORITY, B.SEQNO, B.APPROVALSTATUS";
                 strSQL += " FROM APPROVALMASTER A";
                 strSQL += " LEFT JOIN PERSONAPPROVAL B ON B.PERSONCODEAPPROVAL = A.APPROVALPERSON AND B.APPROVALCODE = A.APPROVALCODE";
-                strSQL += string.Format(" AND B.ORDERDATE = STR_TO_DATE('{0}','%Y/%m/%d')", OrderDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(B.ORDERDATE) = STR_TO_DATE('{0}','%Y/%m/%d')", OrderDate.ToShortDateString());
                 strSQL += string.Format(" AND B.ORDERNO = {0} AND B.SEQNO != {1}", OrderNo, s_PrimartyRecord);
                 strSQL += string.Format(" WHERE A.APPROVALCODE = {0}", ApprovalCode);
                 strSQL += " AND A.DEPARTMENTCODE = (SELECT C.DEPARTMENTCODE FROM PERSONINCHARGEMASTER C";
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsCalendar.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsCalendar.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsCalendar.cs	(revision 93)
@@ -77,8 +77,8 @@
                 int Holidays = 0;
 
                 string strSQL = "SELECT COUNT(*) FROM HOLIDAYCALENDERMASTER";
-                strSQL += string.Format(" WHERE STR_TO_DATE('{0}','%Y/%m/%d') <= HOLIDAY", Startdate.ToShortDateString());
-                strSQL += string.Format(" AND HOLIDAY <= STR_TO_DATE('{0}','%Y/%m/%d')", Complatedate.ToShortDateString());
+                strSQL += string.Format(" WHERE STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(HOLIDAY)", Startdate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(HOLIDAY) <= STR_TO_DATE('{0}','%Y/%m/%d')", Complatedate.ToShortDateString());
 
                 ArrayList datalist = new ArrayList();
                 if (!calDB.ExecuteReader(strSQL, ref datalist)) return 0;
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs	(revision 93)
@@ -89,7 +89,7 @@
                                                                 , GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Lease)
                                                                 , GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.StoragePlace)
                                                                 , GetConstructionLedgerGroupNo((int)CommonDefine.CostDataNo.Lodging));
-                strDelSQL += string.Format(" AND TARGETMONTH = STR_TO_DATE('{0}','%Y/%m/%d')", (TargetMonth + "/01"));
+                strDelSQL += string.Format(" AND DATE(TARGETMONTH) = STR_TO_DATE('{0}','%Y/%m/%d')", (TargetMonth + "/01"));
                 LedgerExcuteDB.ExecuteNonQuery(strDelSQL, false);
 
                 for (int i = (int)CommonDefine.CostDataNo.Transport; i <= (int)CommonDefine.CostDataNo.Lodging; i++)
@@ -537,7 +537,7 @@
                     int NowValue = 0;
                     string strExecout = "SELECT PAYMENTAMOUNT FROM CONSTRUCTIONLEDGEREXCUTE";
                     strExecout += LedgerExDB.CreatePrimarykeyString(CurRec.ConstructionCode, CurRec.GroupCount, CurRec.LineCount);
-                    strExecout += string.Format(" AND TargetMonth = STR_TO_DATE('{0}', '%y/%m/%d')", DateTimeUtil.BeginOfMonth(TargetDate).ToShortDateString());
+                    strExecout += string.Format(" AND DATE(TargetMonth) = STR_TO_DATE('{0}', '%y/%m/%d')", DateTimeUtil.BeginOfMonth(TargetDate).ToShortDateString());
                     ArrayList arExecList = new ArrayList();
                     LedgerExDB.ExecuteReader(strExecout, ref arExecList, false);
                     if (arExecList.Count != 0)
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs	(revision 93)
@@ -80,7 +80,8 @@
             CostomerRegistList = 33,            // 33:発注者登録申請一覧
             CostomerRegist = 34,                // 34:発注者登録申請
             SubConstrRegistList = 35,           // 35:協力会社登録申請一覧
-            SubConstrRegist = 36                // 36:協力会社登録申請
+            SubConstrRegist = 36,               // 36:協力会社登録申請
+            PriceOfBudget = 37,                 // 37:台帳状況確認画面
         }
         #endregion
 
@@ -181,7 +182,8 @@
                                                                                 { (int)ProcessExecuteNo.CostomerRegistList,     "発注者登録申請一覧－表示"},
                                                                                 { (int)ProcessExecuteNo.CostomerRegist,         "発注者登録申請－入力"},
                                                                                 { (int)ProcessExecuteNo.SubConstrRegistList,    "協力会社登録申請一覧－表示"},
-                                                                                { (int)ProcessExecuteNo.SubConstrRegist,        "協力会社登録申請－入力"}
+                                                                                { (int)ProcessExecuteNo.SubConstrRegist,        "協力会社登録申請－入力"},
+                                                                                { (int)ProcessExecuteNo.PriceOfBudget,          "工事台帳状態確認－表示"},
         };
 
         #endregion
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSystemOnceExecute.cs	(revision 93)
@@ -36,6 +36,11 @@
         /// 非受注へ移す期間（受注できずに見積提出日より以下の日数を過ぎれば非受注へ移動）
         /// </summary>
         private const int s_NonOrderDay = 93;
+
+        /// <summary>
+        /// 非受注時メッセージ
+        /// </summary>
+        private const string s_NonOrderComment = "受注できずに見積提出日より{0}日を過ぎましたので非受注とします。";
         #endregion
 
         #region 変数
@@ -833,6 +838,7 @@
         private bool ChangeNonOrdersData()
         {
             IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
+            IOConstructionBaseInfoDetail DetailDB = new IOConstructionBaseInfoDetail();
             try
             {
                 int iCode1 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("非 受 注")).Key;
@@ -840,37 +846,76 @@
                 int iCode3 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("見積提出")).Key;
 
                 // 対象データが存在するかを確認する
-                string strSQL = "SELECT COUNT(*) FROM CONSTRUCTIONBASEINFO WHERE DATE(ESTIMATESSUBMITTEDDATE) != STR_TO_DATE('0001/01/01','%Y/%m/%d')";
-                strSQL += string.Format(" AND DATE(DATE_ADD(ESTIMATESSUBMITTEDDATE, INTERVAL {0} DAY))", s_NonOrderDay);
-                strSQL += string.Format(" < STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.Now.ToShortDateString());
-                strSQL += string.Format(" AND CONSTRUCTIONSTATUSFLG IN({0}, {1})", iCode2, iCode3);
-                strSQL += string.Format(" AND ESTIMATETYPE IN ({0}, {1})", (int)CommonDefine.BaseInfoEstimateType.Normal, (int)CommonDefine.BaseInfoEstimateType.GetBudget);
+                string strSQL = "SELECT A.CONSTRUCTIONCODE, B.DETAILSTRING FROM CONSTRUCTIONBASEINFO A";
+                strSQL += " LEFT JOIN CONSTRUCTIONBASEINFODETAIL B ON B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE";
+                strSQL += string.Format(" AND B.DETAILNO = {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.OrdersDecisionComment);
+
+                string strWHERE = " WHERE DATE(A.ESTIMATESSUBMITTEDDATE) != STR_TO_DATE('0001/01/01', '%Y/%m/%d')";
+                strWHERE += string.Format(" AND DATE(DATE_ADD(ESTIMATESSUBMITTEDDATE, INTERVAL '{0}' DAY))", s_NonOrderDay);
+                strWHERE += string.Format(" < STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.Now.ToShortDateString());
+                strWHERE += string.Format(" AND A.CONSTRUCTIONSTATUSFLG IN({0}, {1})", iCode2, iCode3);
+                strWHERE += string.Format(" AND A.ESTIMATETYPE IN ({0}, {1})", (int)CommonDefine.BaseInfoEstimateType.Normal, (int)CommonDefine.BaseInfoEstimateType.GetBudget);
+                strSQL += strWHERE;
                 ArrayList arList = new ArrayList();
                 if (!BaseDB.ExecuteReader(strSQL, ref arList))
                 {
-                    logger.ErrorFormat("工事基本情報更新エラー　非受注案件移行処理失敗：{0}：{1}", CommonMotions.GetMethodName(), strSQL);
+                    logger.ErrorFormat("工事基本情報読込エラー　非受注案件移行処理失敗：{0}：{1}", CommonMotions.GetMethodName(), strSQL);
                     return false;
                 }
-                object[] wrkcount = (object[])arList[0];
-                if (Common.CommonMotions.cnvInt(wrkcount[0]) == 0) return true;
+                // ----- 対象データが存在しなければ抜ける
+                if (arList.Count == 0) return true;
 
-                // 対象データが存在すれば更新する
-                strSQL = string.Format("UPDATE CONSTRUCTIONBASEINFO SET CONSTRUCTIONSTATUSFLG = {0},", iCode1);
-                strSQL += string.Format(" NONORDERDATE = STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.Today.ToShortDateString());
-                strSQL += " WHERE CONSTRUCTIONCODE IN";
-                strSQL += " (SELECT CONSTRUCTIONCODE from ("; // MySql対応（Updateの副問合せ対応）
-                strSQL += " (SELECT CONSTRUCTIONCODE FROM CONSTRUCTIONBASEINFO WHERE DATE(ESTIMATESSUBMITTEDDATE) != STR_TO_DATE('0001/01/01','%Y/%m/%d')";
-                strSQL += string.Format(" AND DATE(DATE_ADD(ESTIMATESSUBMITTEDDATE, INTERVAL {0} DAY))", s_NonOrderDay);
-                strSQL += string.Format(" < STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.Now.ToShortDateString());
-                strSQL += string.Format(" AND CONSTRUCTIONSTATUSFLG IN({0}, {1})", iCode2, iCode3);
-                strSQL += string.Format(" AND ESTIMATETYPE IN ({0}, {1}))", (int)CommonDefine.BaseInfoEstimateType.Normal, (int)CommonDefine.BaseInfoEstimateType.GetBudget);
-                strSQL += " ) AS TMP )"; // MySql対応（Updateの副問合せ対応）
-                if (!BaseDB.ExecuteNonQuery(strSQL))
+                // ----- 対象データが存在すれば更新する
+                BaseDB.connect(); BaseDB.beginTran();
+                DetailDB.connect(); DetailDB.beginTran();
+
+                // 工事基本情報データ
+                strSQL = string.Format("UPDATE CONSTRUCTIONBASEINFO A SET A.CONSTRUCTIONSTATUSFLG = {0},", iCode1);
+                strSQL += string.Format(" A.NONORDERDATE = STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.Today.ToShortDateString());
+                strSQL += strWHERE;
+                if (!BaseDB.ExecuteNonQuery(strSQL, false))
                 {
+                    BaseDB.rollback();
                     logger.ErrorFormat("工事基本情報更新エラー　非受注案件移行処理失敗：{0}：{1}", CommonMotions.GetMethodName(), strSQL);
                     return false;
                 }
 
+                // 工事基本情報明細データ
+                string strMsg = string.Format(s_NonOrderComment, s_NonOrderDay);
+                string strOrgMsg = string.Empty;
+                foreach (object[] objRec in arList)
+                {
+                    strOrgMsg = string.Empty;
+                    strOrgMsg = CommonMotions.cnvString(objRec[1]);
+                    if (strOrgMsg.Length != 0)
+                    {
+                        strOrgMsg += "\n";
+                        strOrgMsg += strMsg;
+                        if (strOrgMsg.Length > 120) strOrgMsg = strOrgMsg.Substring(0, 120);
+                        if (!DetailDB.UpdateFeild(CommonMotions.cnvInt(objRec[0]),
+                                                    (int)IOConstructionBaseInfoDetail.TableColumn.DETAILSTRING,
+                                                    strOrgMsg,
+                                                    false,
+                                                    (int)ConstructionBaseInfoDetail.DetailDataNo.OrdersDecisionComment))
+                        {
+                            BaseDB.rollback();
+                            DetailDB.rollback();
+                            logger.ErrorFormat("工事基本情報明細更新エラー　非受注案件移行処理失敗：{0}：{1}", CommonMotions.GetMethodName(), strSQL);
+                            return false;
+                        }
+                    }
+                    else
+                    {
+                        if (!CreateBaseInfoDetail(DetailDB, CommonMotions.cnvInt(objRec[0]), strMsg))
+                        {
+                            BaseDB.rollback();
+                            DetailDB.rollback();
+                            logger.ErrorFormat("工事基本情報明細作成エラー　非受注案件移行処理失敗：{0}：{1}", CommonMotions.GetMethodName(), strSQL);
+                            return false;
+                        }
+                    }
+                }
+
                 return true;
             }
             catch (Exception ex)
@@ -880,11 +925,40 @@
             }
             finally
             {
+                BaseDB.commit();
+                DetailDB.commit();
                 BaseDB.close(); BaseDB = null;
+                DetailDB.close(); DetailDB = null;
             }
         }
         #endregion
 
+        #region 工事基本情報明細作成（受注決定申送りコメント）
+        /// <summary>
+        /// 工事基本情報明細作成（受注決定申送りコメント）
+        /// </summary>
+        /// <returns></returns>
+        private bool CreateBaseInfoDetail(IOConstructionBaseInfoDetail DetailDB, int ConstrCode, string strMsg)
+        {
+            try
+            {
+                ConstructionBaseInfoDetail work = new ConstructionBaseInfoDetail();
+                work.ConstructionCode = ConstrCode;
+                work.DetailNo = (int)ConstructionBaseInfoDetail.DetailDataNo.OrdersDecisionComment;
+                work.DetailString = strMsg;
+
+                if (!DetailDB.InsertAction(work, false)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
         #region 工事詳細台帳の給与を加算する
         /// <summary>
         /// 工事詳細台帳の給与を加算する
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOActionScheduleData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOActionScheduleData.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOActionScheduleData.cs	(revision 93)
@@ -312,7 +312,7 @@
             string strWork = string.Empty;
             try
             {
-                strWork = string.Format(" Where TargetDate = STR_TO_DATE('{0}','%Y/%m/%d')", TargetDate.ToShortDateString());
+                strWork = string.Format(" Where DATE(TargetDate) = STR_TO_DATE('{0}','%Y/%m/%d')", TargetDate.ToShortDateString());
                 if(PersonCode != 0)
                     strWork += string.Format(" And PersonCode = {0}", PersonCode.ToString());
 
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBankBusinessDayMaster.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBankBusinessDayMaster.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOBankBusinessDayMaster.cs	(revision 93)
@@ -70,7 +70,7 @@
 
             try
             {
-                // SQL作成（oracleのDateTime型が変換できないのでCharに変換しておく）
+                // SQL作成（DateTime型が変換できないのでCharに変換しておく）
                 strcmd = "SELECT";
                 strcmd += "  YearMonth, BankBusinessDay, Note, DeleteFlg";
                 strcmd += " ,DATE_FORMAT(EntryDate, '%Y/%m/%d %H:%i:%s')";
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPurchaseOrderDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPurchaseOrderDetail.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOPurchaseOrderDetail.cs	(revision 93)
@@ -47,6 +47,7 @@
             UnitPrice,		        // 単価
             OrdersLinePrice,		// 金額
             SourceCode,             // 予算作成時工事番号
+            SourceLineCnt,	        // 注文書作成時台帳行番号
 
             EntryDate,
             UpdateDate,
@@ -87,6 +88,7 @@
             strcmd += ", UnitPrice";		        // 単価
             strcmd += ", OrdersLinePrice";		    // 金額
             strcmd += ", SourceCode";               // 予算作成時工事番号
+            strcmd += ", SourceLineCnt";	        // 注文書作成時台帳行番号
 
             strcmd += ", DATE_FORMAT(EntryDate, '%Y/%m/%d %H:%i:%s')";
             strcmd += ", DATE_FORMAT(UpdateDate, '%Y/%m/%d %H:%i:%s')";
@@ -185,26 +187,18 @@
             {
 
                 strcmd = "INSERT INTO PurchaseOrderDetail";
-                strcmd += " (";
-                strcmd += "  ConstructionCode";	        // 工事コード
-                strcmd += ", SeqNo";                    // 注文書枝番
-                strcmd += ", GroupCount";               // グループ番号
-                strcmd += ", LineCount";                // 行番号
-                strcmd += ", ComponentCode";            // 構成キー
-                strcmd += ", ItemCode";		            // 工種キー
-                strcmd += ", FirstString";              // 工種品名
-                strcmd += ", SecondString";             // 内容内訳
-                strcmd += ", UnitCount";		        // 数量
-                strcmd += ", UnitName";		            // 単位
-                strcmd += ", UnitPrice";		        // 単価
-                strcmd += ", OrdersLinePrice";		    // 金額
-                strcmd += ", SourceCode";               // 予算作成時工事番号
-                strcmd += ", EntryDate";
-                strcmd += ", UpdateDate";
-                strcmd += ")";
 
-                strcmd += " VALUES (";
+                strcmd += "(";
+                bool bFirst = true;
+                foreach (var gender in Enum.GetValues(typeof(TableColumn)))
+                {
+                    if (!bFirst) strcmd += " ,";
+                    strcmd += gender.ToString();
+                    bFirst = false;
+                }
+                strcmd += ") VALUES (";
 
+
                 strcmd += string.Format("  {0}", work.ConstructionCode);        // 工事番号
 
                 strcmd += string.Format(", {0}", work.SeqNo);                   // 注文書枝番
@@ -219,6 +213,7 @@
                 strcmd += string.Format(", {0}", work.UnitPrice);		        // 単価
                 strcmd += string.Format(", {0}", work.OrdersLinePrice);         // 金額
                 strcmd += string.Format(", {0}", work.SourceCode);              // 予算作成時工事番号
+                strcmd += string.Format(", {0}", work.SourceLineCnt);	        // 注文書作成時台帳行番号
 
                 strcmd += ", NOW()";
                 strcmd += ", NOW()";
@@ -292,6 +287,7 @@
                 strcmd += string.Format(", UnitPrice = {0}", data.UnitPrice);		                // 単価
                 strcmd += string.Format(", OrdersLinePrice = {0}", data.OrdersLinePrice);		    // 金額
                 strcmd += string.Format(", SourceCode = {0}", data.SourceCode);                     // 予算作成時工事番号
+                strcmd += string.Format(", SourceLineCnt = {0}", data.SourceLineCnt);	            // 注文書作成時台帳行番号
 
                 strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%'),'%Y/%m/%d %H:%i:%s')";
                 strcmd += AddSQLString;
@@ -389,6 +385,9 @@
                     case (int)TableColumn.SourceCode:       // 予算作成時工事番号
                         strcmd += string.Format(" SourceCode = {0}", ((int)value).ToString());
                         break;
+                    case (int)TableColumn.SourceLineCnt:	            // 注文書作成時台帳行番号
+                        strcmd += string.Format(" SourceLineCnt = {0}", ((int)value).ToString());
+                        break;
                 }
 
                 strcmd += ", UpdateDate = STR_TO_DATE(DATE_FORMAT(NOW(),'%Y/%m/%d %H:%i:%'),'%Y/%m/%d %H:%i:%s')";
@@ -432,6 +431,7 @@
                 wrk.UnitPrice = double.Parse(objwrk[(int)TableColumn.UnitPrice].ToString());		            // 単価
                 wrk.OrdersLinePrice = double.Parse(objwrk[(int)TableColumn.OrdersLinePrice].ToString());		// 金額
                 wrk.SourceCode = int.Parse(objwrk[(int)TableColumn.SourceCode].ToString());                     // 予算作成時工事番号
+                wrk.SourceLineCnt = int.Parse(objwrk[(int)TableColumn.SourceLineCnt].ToString());	            // 注文書作成時台帳行番号
 
                 wrk.EntryDate = DateTime.Parse(objwrk[(int)TableColumn.EntryDate].ToString());
                 wrk.UpdateDate = DateTime.Parse(objwrk[(int)TableColumn.UpdateDate].ToString());
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/PurchaseOrderDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/PurchaseOrderDetail.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/PurchaseOrderDetail.cs	(revision 93)
@@ -27,6 +27,7 @@
         private double  m_UnitPrice = 0;	                // 単価
         private double  m_OrdersLinePrice = 0;	            // 金額
         private double  m_SourceCode = 0;                   // 予算作成時工事番号
+        private int     m_SourceLineCnt = 0;                // 注文書作成時台帳行番号
 
         private DateTime m_EntryDate = DateTime.Now;        // 登録日付
         private DateTime m_UpdateDate = DateTime.Now;       // 更新日付
@@ -141,6 +142,14 @@
             get { return m_SourceCode; }
             set { m_SourceCode = value; }
         }
+        /// <summary>
+        /// 注文書作成時台帳行番号
+        /// </summary>
+        public int SourceLineCnt
+        {
+            get { return m_SourceLineCnt; }
+            set { m_SourceLineCnt = value; }
+        }
 
         /// <summary>
         /// 登録日付
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs	(revision 93)
@@ -635,7 +635,7 @@
                 strSQL += " LEFT JOIN DEPARTMENTMASTER C ON C.DEPARTMENTCODE = B.DEPARTMENTCODE";
                 strSQL += string.Format(" LEFT JOIN PERSONAPPROVAL D ON D.PERSONCODE = {0}", m_PersonCode);
                 strSQL += string.Format(" And D.APPROVALCODE = {0}", m_ApprovalCode);
-                strSQL += string.Format(" And D.ORDERDATE = STR_TO_DATE('{0}','%Y/%m/%d')",m_OrderDate.ToShortDateString());
+                strSQL += string.Format(" And DAATE(D.ORDERDATE) = STR_TO_DATE('{0}','%Y/%m/%d')",m_OrderDate.ToShortDateString());
                 strSQL += string.Format(" And D.ORDERNO = {0}", m_OrderNo);
                 strSQL += " And D.SEQNO <> 1";
                 strSQL += " AND D.PERSONCODEAPPROVAL = A.APPROVALPERSON";
@@ -817,13 +817,13 @@
                         strSQL = string.Format("UPDATE ATTENDANCEDATA SET ORDERDATE = STR_TO_DATE('{0}','%Y/%m/%d'),", m_OrderDate.ToShortDateString());
                         strSQL += string.Format(" ORDERNO = {0}", m_OrderNo);
                         strSQL += string.Format(" WHERE PersonCode = {0}",m_PersonCode);
-                        strSQL += string.Format(" AND AttendanceMonth = STR_TO_DATE('{0}' ,'%Y/%m/%d')", m_SearchDate.ToShortDateString());
+                        strSQL += string.Format(" AND DATE(AttendanceMonth) = STR_TO_DATE('{0}' ,'%Y/%m/%d')", m_SearchDate.ToShortDateString());
                         break;
                     case (int)ClsExcute.ApprovalListNo.CostomerRegistApproval:
                         strSQL = string.Format("UPDATE COSTOMERREGIST SET ORDERDATE = STR_TO_DATE('{0}','%Y/%m/%d'),", m_OrderDate.ToShortDateString());
                         strSQL += string.Format(" ORDERNO = {0}", m_OrderNo);
                         strSQL += string.Format(" WHERE PersonCode = {0}", m_PersonCode);
-                        strSQL += string.Format(" AND CREATEDATE = STR_TO_DATE('{0}' ,'%Y/%m/%d')", m_SearchDate.ToShortDateString());
+                        strSQL += string.Format(" AND DATE(CREATEDATE) = STR_TO_DATE('{0}' ,'%Y/%m/%d')", m_SearchDate.ToShortDateString());
                         strSQL += string.Format(" AND SEQNO = {0}", m_SearchSeqNo);
                         break;
                     case (int)ClsExcute.ApprovalListNo.SubConstregistApproval:
@@ -830,7 +830,7 @@
                         strSQL = string.Format("UPDATE SUBCONSTRREGIST SET ORDERDATE = STR_TO_DATE('{0}','%Y/%m/%d'),", m_OrderDate.ToShortDateString());
                         strSQL += string.Format(" ORDERNO = {0}", m_OrderNo);
                         strSQL += string.Format(" WHERE PersonCode = {0}", m_PersonCode);
-                        strSQL += string.Format(" AND CREATEDATE = STR_TO_DATE('{0}' ,'%Y/%m/%d')", m_SearchDate.ToShortDateString());
+                        strSQL += string.Format(" AND DATE(CREATEDATE) = STR_TO_DATE('{0}' ,'%Y/%m/%d')", m_SearchDate.ToShortDateString());
                         strSQL += string.Format(" AND SEQNO = {0}", m_SearchSeqNo);
                         break;
                     default:
@@ -871,13 +871,13 @@
                         strSQL = string.Format("UPDATE ATTENDANCEDATA SET ORDERDATE = STR_TO_DATE('{0}','%Y/%m/%d'),", DateTime.MinValue.ToShortDateString());
                         strSQL = " ORDERNO = 0";
                         strSQL += string.Format(" WHERE PersonCode = {0}", m_PersonCode);
-                        strSQL += string.Format(" AND AttendanceMonth = STR_TO_DATE('{0}','%Y/%m/%d')", m_OrderDate.ToShortDateString());
+                        strSQL += string.Format(" AND DATE(AttendanceMonth) = STR_TO_DATE('{0}','%Y/%m/%d')", m_OrderDate.ToShortDateString());
                         break;
                     case (int)ClsExcute.ApprovalListNo.CostomerRegistApproval:
                         strSQL = string.Format("UPDATE COSTOMERREGIST SET ORDERDATE = STR_TO_DATE('{0}','%Y/%m/%d'),", DateTime.MinValue.ToShortDateString());
                         strSQL += " ORDERNO = 0";
                         strSQL += string.Format(" WHERE PersonCode = {0}", m_PersonCode);
-                        strSQL += string.Format(" AND CREATEDATE = STR_TO_DATE('{0}','%Y/%m/%d')", m_SearchDate.ToShortDateString());
+                        strSQL += string.Format(" AND DATE(CREATEDATE) = STR_TO_DATE('{0}','%Y/%m/%d')", m_SearchDate.ToShortDateString());
                         strSQL += string.Format(" AND SEQNO = {0}", m_SearchSeqNo);
                         break;
                     default:
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 93)
@@ -848,7 +848,7 @@
                 {
                     strSQL += string.Format(" WHERE B1.CONSTRUCTIONCODE = {0}", SourceCode);
                 }
-                strSQL += string.Format(" AND B1.PRINTOUTDATE != TO_DATE('{0}')) B", DateTime.MinValue.ToShortDateString());
+                strSQL += string.Format(" AND DATE(B1.PRINTOUTDATE) != STR_TO_DATE('{0}', '%Y/%m/%d')) B", DateTime.MinValue.ToShortDateString());
 
                 ArrayList arList = new ArrayList();
                 if (!OrderDB.ExecuteReader(strSQL, ref arList)) return;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfo.cs	(revision 93)
@@ -1563,12 +1563,10 @@
                 DateTime dtToday = GetPrevDateFieldValue(sender);
 
                 // �����̏o���񐔃J�E���g
-                // int sepStrCnt = txtbox.Text.Length - txtbox.Text.Replace("/", "").Length;
                 if (CommonMotions.chkNumeric(txtbox.Text))
                 {   // �����̂ݓ���
                     if (txtbox.Text.ToString().Length <= 4)
                     {
-                        //txtbox.Text = m_dispControl[(int)Dispcount.ConstructionYear].Text
                         txtbox.Text = dtToday.Year.ToString()
                                         + "/" + CommonMotions.cnvInt(txtbox.Text.Substring(0, 2)).ToString("00")
                                         + "/" + CommonMotions.cnvInt(txtbox.Text.Substring(2)).ToString("00");
@@ -1578,7 +1576,6 @@
                 {   // 99/99�̓���
                     if (txtbox.Text.ToString().Length <= 5)
                     {
-                        //txtbox.Text = m_dispControl[(int)Dispcount.ConstructionYear].Text
                         txtbox.Text = dtToday.Year.ToString()
                                         + "/" + CommonMotions.cnvInt(txtbox.Text.Substring(0, txtbox.Text.IndexOf("/"))).ToString("00")
                                         + "/" + CommonMotions.cnvInt(txtbox.Text.Substring(txtbox.Text.IndexOf("/") + 1)).ToString("00");
@@ -1588,12 +1585,13 @@
 
                 // ���N�x�`�F�b�N
                 txtbox.Text = DTNextYearChange(txtbox).ToShortDateString();
-                //txtbox.Text = DTNextYearChange(ClsCommon.cnvDate(txtbox.Text)).ToShortDateString();
 
                 if (!CommonMotions.chkDate(txtbox.Text.ToString())) return;
 
                 txtbox.Text = DateTime.Parse(txtbox.Text.ToString()).ToShortDateString();
 
+                ValidatedDate(txtbox);
+
                 m_bChengeAns = true;
             }
             catch (Exception ex)
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 93)
@@ -2344,7 +2344,7 @@
                 strSQL += string.Format(" AND (TYINGFLG = {0} OR TYINGFLG = {1})"
                                         , (int)CommonDefine.BaseInfoTyingFlg.Parent, (int)CommonDefine.BaseInfoTyingFlg.Tying);
                 //strSQL += string.Format(" AND CONSTRUCTIONPERIODSTART != TO_DATE('{0}')", DateTime.MinValue.ToShortDateString());
-                strSQL += string.Format(" AND CONSTRUCTIONPERIODSTART != STR_TO_DATE('{0}', '%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
+                strSQL += string.Format(" AND DATE(CONSTRUCTIONPERIODSTART) != STR_TO_DATE('{0}', '%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
                 ArrayList Arlist = new ArrayList();
                 if (!BaseDB.ExecuteReader(strSQL, ref Arlist, false)) return;
                 if (Arlist.Count == 0) return;
@@ -4111,5 +4111,102 @@
             }
         }
         #endregion
+
+        #region �_��H�����������z�������̏���
+        /// <summary>
+        /// �_��H�����������z�������̏���
+        /// </summary>
+        /// <param name="txtbox"></param>
+        private void ValidatedDate(TextBox txtbox)
+        {
+            try
+            {
+                bool bTarget = false;
+                if (txtbox.Name.Equals(m_DspCtrl[(int)DspCnt.ConstructionPeriodStart].Name)) bTarget = true;    // 48: �_��H���J�n
+                if (txtbox.Name.Equals(m_DspCtrl[(int)DspCnt.ConstructionPeriodEnd].Name)) bTarget = true;      // 49: �_��H������
+                if (txtbox.Name.Equals(m_DspCtrl[(int)DspCnt.ConstructionPeriodStart2].Name)) bTarget = true;	// 62: �_��H���J�n�i�������j
+                if (txtbox.Name.Equals(m_DspCtrl[(int)DspCnt.ConstructionPeriodEnd2].Name)) bTarget = true;		// 63: �_��H�������i�������j
+
+                // �ΏۈȊO�͏������Ȃ�
+                if (!bTarget) return;
+
+                // �w������Ԏ擾
+                int Period = CommonMotions.cnvInt(m_DspCtrl[(int)DspCnt.ConstructionPeriod].Text);              //  2: �H����
+                DateTime dtStart = DateTime.Now;
+                DateTime dtEnd = DateTime.Now;
+                int iYear = 0;
+                int month = 0;
+                int day = 0;
+                bool bPeriod = true;
+                if (CommonMotions.SystemMasterData.ConstructionNoBase == (int)CommonDefine.SystemConstructionNoBase.BusinessPeriod)
+                {   // �c�Ɗ�
+                    iYear = CommonMotions.PeriodCountToYear(Period);
+                    bPeriod = true;
+                }
+                CommonMotions.GetBeginningMonthDay(bPeriod, ref month, ref day);
+                dtStart = new DateTime(iYear, month, day);
+                dtEnd = dtStart.AddYears(1).AddDays(-1);     // �I���́{1�N�|1��
+
+                // �{�H���Ԏ擾
+                DateTime dtCStart = CommonMotions.cnvDate(m_DspCtrl[(int)DspCnt.ConstructionPeriodStart].Text);     // 48: �_��H���J�n
+                DateTime dtCStart2 = CommonMotions.cnvDate(m_DspCtrl[(int)DspCnt.ConstructionPeriodStart2].Text);   // 62: �_��H���J�n�i�������j
+                if (dtCStart2 == DateTime.MinValue) dtCStart2 = dtCStart;
+                if (dtCStart2 < dtCStart) dtCStart = dtCStart2;
+
+                DateTime dtCEnd = CommonMotions.cnvDate(m_DspCtrl[(int)DspCnt.ConstructionPeriodEnd].Text);         // 49: �_��H������
+                DateTime dtCEnd2 = CommonMotions.cnvDate(m_DspCtrl[(int)DspCnt.ConstructionPeriodEnd2].Text);		// 63: �_��H�������i�������j
+                if (dtCEnd2 == DateTime.MinValue) dtCEnd2 = dtCEnd;
+                if (dtCEnd < dtCEnd2) dtCEnd = dtCEnd2;
+
+                // ���Ԃ������ȑO
+                if (dtCStart < dtStart)
+                {
+                    if(MessageBox.Show("�_��H�����H����\n���݌v����̊�����ȑO���w���Ă��܂�\n�v�����ύX���܂����H",
+                                    "�_��H�����H���`�F�b�N",
+                                    MessageBoxButtons.YesNo, MessageBoxIcon.Information)==DialogResult.Yes)
+                    {
+                        int NewPeriod = Period;
+                        for (int i = 1; i < 10; i++)
+                        {
+                            dtStart = new DateTime((iYear - i), month, day);
+                            dtEnd = dtStart.AddYears(1).AddDays(-1);
+                            if (dtStart <= dtCStart && dtCStart <= dtEnd)
+                            {
+                                NewPeriod -= i;
+                                break;
+                            }
+                        }
+                        m_DspCtrl[(int)DspCnt.ConstructionPeriod].Text = NewPeriod.ToString();
+                        return;
+                    }
+                }
+                if (dtEnd < dtCEnd)
+                {
+                    if (MessageBox.Show("�_��H����������\n���݌v����̊������ȍ~���w���Ă��܂�\n�v�����ύX���܂����H",
+                                    "�_��H���������`�F�b�N",
+                                    MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
+                    {
+                        int NewPeriod = Period;
+                        for (int i = 1; i < 10; i++)
+                        {
+                            dtStart = new DateTime((iYear + i), month, day);
+                            dtEnd = dtStart.AddYears(1).AddDays(-1);
+                            if (dtStart <= dtCEnd && dtCEnd <= dtEnd)
+                            {
+                                NewPeriod += i;
+                                break;
+                            }
+                        }
+                        m_DspCtrl[(int)DspCnt.ConstructionPeriod].Text = NewPeriod.ToString();
+                        return;
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionJoin/FrmConstructionJoinAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionJoin/FrmConstructionJoinAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionJoin/FrmConstructionJoinAuxiliary.cs	(revision 93)
@@ -1303,19 +1303,19 @@
                     {
                         case 0:
                             //strGetDate += string.Format(" AND ConstructionPeriodStart != TO_DATE('{0}','YYYY/MM/DD')", DateTime.MinValue.ToShortDateString());
-                            strGetDate += string.Format(" AND ConstructionPeriodStart != STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
+                            strGetDate += string.Format(" AND DATE(ConstructionPeriodStart) != STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
                             break;
                         case 1:
                             //strGetDate += string.Format(" AND ConstructionPeriodStart2 != TO_DATE('{0}','YYYY/MM/DD')", DateTime.MinValue.ToShortDateString());
-                            strGetDate += string.Format(" AND ConstructionPeriodStart2 != STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
+                            strGetDate += string.Format(" AND DATE(ConstructionPeriodStart2) != STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
                             break;
                         case 2:
                             //strGetDate += string.Format(" AND ConstructionPeriodEnd != TO_DATE('{0}','YYYY/MM/DD')", DateTime.MinValue.ToShortDateString());
-                            strGetDate += string.Format(" AND ConstructionPeriodEnd != STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
+                            strGetDate += string.Format(" AND DATE(ConstructionPeriodEnd) != STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
                             break;
                         case 3:
                             //strGetDate += string.Format(" AND ConstructionPeriodEnd2 != TO_DATE('{0}','YYYY/MM/DD')", DateTime.MinValue.ToShortDateString());
-                            strGetDate += string.Format(" AND ConstructionPeriodEnd2 != STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
+                            strGetDate += string.Format(" AND DATE(ConstructionPeriodEnd2) != STR_TO_DATE('{0}','%Y/%m/%d')", DateTime.MinValue.ToShortDateString());
                             break;
                     }
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs	(revision 93)
@@ -171,8 +171,16 @@
                                                             "�w �� �� �U ��",
                                                             "�S���ҋ��^���z"};
         #endregion
+
+        #region ���v���Z�X�̔ԍ�
+        /// <summary>
+        /// ���v���Z�X�̔ԍ�
+        /// </summary>
+        private static int s_CurrentProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedgerList;
         #endregion
 
+        #endregion
+
         #region �ϐ�
         /// <summary>
         /// �t�B�[���h�l�ω��t���O
@@ -259,15 +267,8 @@
         private bool m_NextProcFlg = false;
         #endregion
 
-        #region �䒠�󋵊m�F���
-        /// <summary>
-        /// �䒠�󋵊m�F���
-        /// </summary>
-        private FrmPriceOfBudget m_PriceOfBudget = null;
         #endregion
 
-        #endregion
-
         #region �v���p�e�B
 
         #region �N���t���O
@@ -389,15 +390,11 @@
         {
             try
             {
+                // �t�H�[����Close����Ă��Ȃ���΃N���[�Y����
+                TerminatingProcess();
+
                 if (m_CloseingProcessOff) return;
 
-                // �䒠�󋵊m�F��ʂ��\������Ă���΃N���[�Y����
-                if (m_PriceOfBudget != null)
-                {
-                    m_PriceOfBudget.Dispose();
-                    m_PriceOfBudget = null;
-                }
-
                 // �O�v���Z�X�ɖ߂�
                 ClsExcute.BackProcess();
             }
@@ -445,40 +442,11 @@
         /// <param name="e"></param>
         private void btnLedgerStatus_Click(object sender, EventArgs e)
         {
-            // �t�H�[�����\������Ă���ꍇ�͑O�ʕ\�����Ĕ�����
-            if (m_PriceOfBudget != null)
-            {
-                m_PriceOfBudget.Activate();
-                return;
-            }
-            // �O�ʕ\��
+            // ��ʕ\��
             DispPriceOfBudget();
         }
         #endregion
 
-        #region �䒠�󋵊m�F��ʃN���[�Y
-        /// <summary>
-        /// �䒠�󋵊m�F��ʂ̃N���[�Y���擾����
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmPriceOfBudget_FormClosed(object sender, FormClosedEventArgs e)
-        {
-            try
-            {
-                this.Activate();
-
-                // �n���h���N���A
-                m_PriceOfBudget.Dispose();
-                m_PriceOfBudget = null;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
         #region �t�H�[�����[�h
         /// <summary>
         /// �����t�H�[�����[�h
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 93)
@@ -73,8 +73,9 @@
             else
             {
                 int Master = CommonDefine.SecurityRankList[(int)CommonDefine.SecurityRankPos.SpecialAuthority].Key;
-                if (CommonMotions.LoginUserSecurity.SecRank == Master) btnLedgerStatus.Visible = true;
-                else btnLedgerStatus.Visible = false;
+                // �䒠�󋵉�ʃ{�^���\��
+                int editflg = 0;
+                btnLedgerStatus.Visible = ClsSecurityPermission.GetExecutePermission((int)ClsExcute.ProcessExecuteNo.PriceOfBudget, ref editflg);
             }
         }
         #endregion
@@ -146,6 +147,47 @@
         }
         #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 != s_CurrentProcessNo) continue;
+
+                    // �����͏������Ȃ�
+                    if (i == s_CurrentProcessNo)
+                    {
+                        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 ����SQL�̃Z�L�����e�B���蕔�����쐬����
         /// <summary>
         /// ����SQL�̃Z�L�����e�B���蕔�����쐬����
@@ -2353,18 +2395,31 @@
         {
             try
             {
-                // �䒠�󋵊m�F��ʕ\��
-                m_PriceOfBudget = new FrmPriceOfBudget();
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PriceOfBudget;
+                // �t�H�[��������΍őO�ʂ�
+                FrmPriceOfBudget frm = (FrmPriceOfBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
 
+                // �\���S���҂������Ȃ�Ώ������Ȃ�
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // �䒠�󋵊m�F���
+                frm = new FrmPriceOfBudget();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+
                 // �ʒu�ݒ�
-                m_PriceOfBudget.LocationPoint = new Point(this.Right, this.Top);
+                frm.LocationPoint = new Point(this.Right, this.Top);
 
                 // �^�X�N�o�[�ɕ\�����Ȃ�
                 //m_PriceOfBudget.ShowInTaskbar = false;
 
                 // �N���[�X�h�n���h����������Œ�`����
-                m_PriceOfBudget.FormClosed += new FormClosedEventHandler(FrmPriceOfBudget_FormClosed);
-                m_PriceOfBudget.Show();
+                frm.FormClosed += new FormClosedEventHandler(FrmPriceOfBudget_FormClosed);
+                frm.Show();
             }
             catch (System.Exception ex)
             {
@@ -2373,6 +2428,36 @@
         }
         #endregion
 
+        #region �䒠�󋵊m�F��ʃN���[�Y
+        /// <summary>
+        /// �䒠�󋵊m�F��ʂ̃N���[�Y���擾����
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmPriceOfBudget_FormClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PriceOfBudget;
+                FrmPriceOfBudget frm = (FrmPriceOfBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+
+                // �n���h���N���A
+                if (ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle != null)
+                {
+                    ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                    ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                    ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+                }
+
+                this.Activate();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region �������Ƀ��O�C���S���҂��Z�b�g����
         /// <summary>
         /// �������Ƀ��O�C���S���҂��Z�b�g����
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistAuxiliary.cs	(revision 93)
@@ -551,7 +551,7 @@
                 strSQL += " LEFT JOIN PERSONINCHARGEMASTER B ON B.PERSONCODE = A.PERSONCODE";
                 strSQL += " LEFT JOIN DEPARTMENTMASTER C ON C.DEPARTMENTCODE = B.DEPARTMENTCODE";
                 strSQL += string.Format(" WHERE A.PersonCode = {0}", m_PersonCode);
-                strSQL += string.Format(" AND A.CreateDate = TO_DATE('{0}')", m_CreateDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.CreateDate) = STR_TO_DATE('{0}', '%Y/%m/%d')", m_CreateDate.ToShortDateString());
                 strSQL += string.Format(" AND A.SeqNo = {0}", m_SeqNo);
 
                 if (!crDB.ExecuteReader(strSQL, ref crList)) return false;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/PrintFormat.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/PrintFormat.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/PrintFormat.cs	(revision 93)
@@ -205,7 +205,7 @@
             {
                 string strSQL = "SELECT * FROM PROCEEDINGSDATAATTEND A";
                 strSQL += string.Format(" WHERE A.CONSTRUCTIONCODE = {0}", DailyRec.ConstructionCode);
-                strSQL += string.Format(" AND A.PROCEEDINGSDATADATE = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.ProceedingsDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.PROCEEDINGSDATADATE) = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.ProceedingsDataDate.ToShortDateString());
                 strSQL += string.Format(" AND A.STARTMEETINGTIME = {0}", DailyRec.StartMeetingTime);
                 strSQL += " ORDER BY A.SEQNO";
                 DailyDB.ExecuteReader(strSQL, ref AttendList);
@@ -229,7 +229,7 @@
             {
                 string strSQL = "SELECT * FROM PROCEEDINGSDATADETAIL A";
                 strSQL += string.Format(" WHERE A.CONSTRUCTIONCODE = {0}", DailyRec.ConstructionCode);
-                strSQL += string.Format(" AND A.PROCEEDINGSDATADATE = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.ProceedingsDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.PROCEEDINGSDATADATE) = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.ProceedingsDataDate.ToShortDateString());
                 strSQL += string.Format(" AND A.STARTMEETINGTIME = {0}", DailyRec.StartMeetingTime);
                 strSQL += " ORDER BY A.SEQNO";
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.designer.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.designer.cs	(revision 93)
@@ -30,27 +30,27 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
             this.label1 = new System.Windows.Forms.Label();
             this.btnDataDelete = new System.Windows.Forms.Button();
             this.btnDataEntry = new System.Windows.Forms.Button();
@@ -82,6 +82,9 @@
             this.btnLineDel = new System.Windows.Forms.Button();
             this.btnLineAdd = new System.Windows.Forms.Button();
             this.pnlBase = new System.Windows.Forms.Panel();
+            this.label20 = new System.Windows.Forms.Label();
+            this.panel3 = new System.Windows.Forms.Panel();
+            this.label6 = new System.Windows.Forms.Label();
             this.btnSubJob = new System.Windows.Forms.Button();
             this.label39 = new System.Windows.Forms.Label();
             this.label48 = new System.Windows.Forms.Label();
@@ -143,7 +146,6 @@
             this.label13 = new System.Windows.Forms.Label();
             this.label12 = new System.Windows.Forms.Label();
             this.label7 = new System.Windows.Forms.Label();
-            this.label6 = new System.Windows.Forms.Label();
             this.lblCellTotal = new System.Windows.Forms.Label();
             this.dgvAllDisplay = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -166,11 +168,11 @@
             this.btnCancel = new System.Windows.Forms.Button();
             this.btnFirst = new System.Windows.Forms.Button();
             this.btnFinal = new System.Windows.Forms.Button();
-            this.panel3 = new System.Windows.Forms.Panel();
             this.panel1.SuspendLayout();
             this.pnlApproval.SuspendLayout();
             this.pnlApprovalButton.SuspendLayout();
             this.pnlBase.SuspendLayout();
+            this.panel3.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX4)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX3)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX2)).BeginInit();
@@ -177,7 +179,6 @@
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).BeginInit();
             this.panel2.SuspendLayout();
-            this.panel3.SuspendLayout();
             this.SuspendLayout();
             // 
             // label1
@@ -579,6 +580,7 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.pnlBase.AutoScroll = true;
             this.pnlBase.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.pnlBase.Controls.Add(this.label20);
             this.pnlBase.Controls.Add(this.panel3);
             this.pnlBase.Controls.Add(this.label39);
             this.pnlBase.Controls.Add(this.label48);
@@ -626,6 +628,38 @@
             this.pnlBase.Size = new System.Drawing.Size(1320, 490);
             this.pnlBase.TabIndex = 36;
             // 
+            // label20
+            // 
+            this.label20.AutoSize = true;
+            this.label20.ForeColor = System.Drawing.Color.Red;
+            this.label20.Location = new System.Drawing.Point(612, 854);
+            this.label20.Name = "label20";
+            this.label20.Size = new System.Drawing.Size(603, 16);
+            this.label20.TabIndex = 77;
+            this.label20.Text = "未巡回の場合は未巡回と記入して下さい。（記入例：未巡回（電話確認）等）";
+            // 
+            // panel3
+            // 
+            this.panel3.BackColor = System.Drawing.Color.White;
+            this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.panel3.Controls.Add(this.label6);
+            this.panel3.Controls.Add(this.btnSubJob);
+            this.panel3.Location = new System.Drawing.Point(53, 10);
+            this.panel3.Name = "panel3";
+            this.panel3.Size = new System.Drawing.Size(200, 40);
+            this.panel3.TabIndex = 76;
+            // 
+            // label6
+            // 
+            this.label6.BackColor = System.Drawing.Color.White;
+            this.label6.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.label6.Location = new System.Drawing.Point(8, 4);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(80, 30);
+            this.label6.TabIndex = 37;
+            this.label6.Text = "職　　種";
+            this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // btnSubJob
             // 
             this.btnSubJob.BackColor = System.Drawing.Color.SeaGreen;
@@ -733,14 +767,14 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dataGridViewEX4.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dataGridViewEX4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle22.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dataGridViewEX4.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dataGridViewEX4.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
             this.dataGridViewEX4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dataGridViewEX4.ColumnHeadersVisible = false;
             this.dataGridViewEX4.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -767,8 +801,8 @@
             // 
             // dataGridViewTextBoxColumn18
             // 
-            dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn18.DefaultCellStyle = dataGridViewCellStyle23;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn18.DefaultCellStyle = dataGridViewCellStyle2;
             this.dataGridViewTextBoxColumn18.Frozen = true;
             this.dataGridViewTextBoxColumn18.HeaderText = "№";
             this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
@@ -779,8 +813,8 @@
             // 
             // dataGridViewTextBoxColumn19
             // 
-            dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn19.DefaultCellStyle = dataGridViewCellStyle24;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn19.DefaultCellStyle = dataGridViewCellStyle3;
             this.dataGridViewTextBoxColumn19.HeaderText = "時間帯固定";
             this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
             this.dataGridViewTextBoxColumn19.ReadOnly = true;
@@ -789,8 +823,8 @@
             // 
             // Column9
             // 
-            dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column9.DefaultCellStyle = dataGridViewCellStyle25;
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column9.DefaultCellStyle = dataGridViewCellStyle4;
             this.Column9.HeaderText = "時間帯";
             this.Column9.Name = "Column9";
             this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -851,14 +885,14 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dataGridViewEX3.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dataGridViewEX3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle26.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dataGridViewEX3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26;
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dataGridViewEX3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
             this.dataGridViewEX3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dataGridViewEX3.ColumnHeadersVisible = false;
             this.dataGridViewEX3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -884,8 +918,8 @@
             // 
             // dataGridViewTextBoxColumn15
             // 
-            dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn15.DefaultCellStyle = dataGridViewCellStyle27;
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn15.DefaultCellStyle = dataGridViewCellStyle6;
             this.dataGridViewTextBoxColumn15.Frozen = true;
             this.dataGridViewTextBoxColumn15.HeaderText = "№";
             this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
@@ -1005,14 +1039,14 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dataGridViewEX2.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dataGridViewEX2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle28.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dataGridViewEX2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle28;
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle7.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dataGridViewEX2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
             this.dataGridViewEX2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dataGridViewEX2.ColumnHeadersVisible = false;
             this.dataGridViewEX2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -1041,8 +1075,8 @@
             // 
             // dataGridViewTextBoxColumn9
             // 
-            dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle29;
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle8;
             this.dataGridViewTextBoxColumn9.Frozen = true;
             this.dataGridViewTextBoxColumn9.HeaderText = "№";
             this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
@@ -1061,8 +1095,8 @@
             // 
             // dataGridViewTextBoxColumn11
             // 
-            dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn11.DefaultCellStyle = dataGridViewCellStyle30;
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn11.DefaultCellStyle = dataGridViewCellStyle9;
             this.dataGridViewTextBoxColumn11.HeaderText = "数量";
             this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
             this.dataGridViewTextBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1212,14 +1246,14 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dataGridViewEX1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dataGridViewEX1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle31.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dataGridViewEX1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle31;
+            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle10.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dataGridViewEX1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
             this.dataGridViewEX1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dataGridViewEX1.ColumnHeadersVisible = false;
             this.dataGridViewEX1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -1250,8 +1284,8 @@
             // 
             // dataGridViewTextBoxColumn1
             // 
-            dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle32;
+            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle11;
             this.dataGridViewTextBoxColumn1.Frozen = true;
             this.dataGridViewTextBoxColumn1.HeaderText = "№";
             this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
@@ -1294,8 +1328,8 @@
             // 
             // dataGridViewTextBoxColumn6
             // 
-            dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle33;
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle12;
             this.dataGridViewTextBoxColumn6.HeaderText = "開始";
             this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
             this.dataGridViewTextBoxColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1304,8 +1338,8 @@
             // 
             // dataGridViewTextBoxColumn7
             // 
-            dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle34;
+            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle13;
             this.dataGridViewTextBoxColumn7.HeaderText = "";
             this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
             this.dataGridViewTextBoxColumn7.ReadOnly = true;
@@ -1315,8 +1349,8 @@
             // 
             // dataGridViewTextBoxColumn8
             // 
-            dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle35;
+            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle14;
             this.dataGridViewTextBoxColumn8.HeaderText = "終了";
             this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
             this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1429,17 +1463,6 @@
             this.label7.Text = "業　者　名";
             this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // label6
-            // 
-            this.label6.BackColor = System.Drawing.Color.White;
-            this.label6.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.label6.Location = new System.Drawing.Point(8, 4);
-            this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(80, 30);
-            this.label6.TabIndex = 37;
-            this.label6.Text = "職　　種";
-            this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // lblCellTotal
             // 
             this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
@@ -1462,14 +1485,14 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dgvAllDisplay.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle36.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle36;
+            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle15.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15;
             this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvAllDisplay.ColumnHeadersVisible = false;
             this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -1502,8 +1525,8 @@
             // 
             // Column1
             // 
-            dataGridViewCellStyle37.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle37;
+            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle16;
             this.Column1.Frozen = true;
             this.Column1.HeaderText = "№";
             this.Column1.Name = "Column1";
@@ -1523,8 +1546,8 @@
             // 
             // Column2
             // 
-            dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column2.DefaultCellStyle = dataGridViewCellStyle38;
+            dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle17;
             this.Column2.Frozen = true;
             this.Column2.HeaderText = "職種名称";
             this.Column2.Name = "Column2";
@@ -1544,8 +1567,8 @@
             // 
             // Column3
             // 
-            dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle39;
+            dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle18;
             this.Column3.Frozen = true;
             this.Column3.HeaderText = "業者名";
             this.Column3.Name = "Column3";
@@ -1556,8 +1579,8 @@
             // 
             // Column4
             // 
-            dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column4.DefaultCellStyle = dataGridViewCellStyle40;
+            dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column4.DefaultCellStyle = dataGridViewCellStyle19;
             this.Column4.HeaderText = "当日";
             this.Column4.Name = "Column4";
             this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1566,8 +1589,8 @@
             // 
             // Column5
             // 
-            dataGridViewCellStyle41.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle41;
+            dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle20;
             this.Column5.HeaderText = "累計";
             this.Column5.Name = "Column5";
             this.Column5.ReadOnly = true;
@@ -1593,8 +1616,8 @@
             // 
             // Column8
             // 
-            dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column8.DefaultCellStyle = dataGridViewCellStyle42;
+            dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column8.DefaultCellStyle = dataGridViewCellStyle21;
             this.Column8.HeaderText = "人員";
             this.Column8.Name = "Column8";
             this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1732,17 +1755,6 @@
             this.btnFinal.UseVisualStyleBackColor = false;
             this.btnFinal.Click += new System.EventHandler(this.btnFinal_Click);
             // 
-            // panel3
-            // 
-            this.panel3.BackColor = System.Drawing.Color.White;
-            this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.panel3.Controls.Add(this.label6);
-            this.panel3.Controls.Add(this.btnSubJob);
-            this.panel3.Location = new System.Drawing.Point(53, 10);
-            this.panel3.Name = "panel3";
-            this.panel3.Size = new System.Drawing.Size(200, 40);
-            this.panel3.TabIndex = 76;
-            // 
             // FrmDRConstruction
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -1782,6 +1794,7 @@
             this.pnlApprovalButton.ResumeLayout(false);
             this.pnlBase.ResumeLayout(false);
             this.pnlBase.PerformLayout();
+            this.panel3.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX4)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX3)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX2)).EndInit();
@@ -1788,7 +1801,6 @@
             ((System.ComponentModel.ISupportInitialize)(this.dataGridViewEX1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).EndInit();
             this.panel2.ResumeLayout(false);
-            this.panel3.ResumeLayout(false);
             this.ResumeLayout(false);
 
         }
@@ -1911,5 +1923,6 @@
         private System.Windows.Forms.Button btnFinal;
         private System.Windows.Forms.Button btnSubJob;
         private System.Windows.Forms.Panel panel3;
+        private System.Windows.Forms.Label label20;
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs	(revision 93)
@@ -883,17 +883,20 @@
                 ArrayList arList = new ArrayList();
                 if (!DetailDB.ExecuteReader(strSQL, ref arList) || arList.Count == 0)
                 {
-                    // データ無は空行を表示する
-                    dgv.Rows.Add(s_MinRowCountGrid[(int)DataGridDefine.Detail]);
-                    // 合計表示
-                    lblGrid1Total1.Text = "0.0";
-                    double work = GetTotalHeadCount();
-                    if (work==0)
-                        lblGrid1Total2.Text = work.ToString("#,#.#");
-                    else
-                        lblGrid1Total2.Text = work.ToString("#,0.0");
-                    lblGrid1Total3.Text = "0.0";
-                    return;
+                    if (!MaxDateCheck(ref arList))
+                    {
+                        // データ無は空行を表示する
+                        dgv.Rows.Add(s_MinRowCountGrid[(int)DataGridDefine.Detail]);
+                        // 合計表示
+                        lblGrid1Total1.Text = "0.0";
+                        double work = GetTotalHeadCount();
+                        if (work == 0)
+                            lblGrid1Total2.Text = work.ToString("#,#.#");
+                        else
+                            lblGrid1Total2.Text = work.ToString("#,0.0");
+                        lblGrid1Total3.Text = "0.0";
+                        return;
+                    }
                 }
 
                 // グリッド表示
@@ -961,6 +964,50 @@
         }
         #endregion
 
+        #region 現在指定日がデータの最終日より大きいかをチェックする
+        /// <summary>
+        /// 現在指定日がデータの最終日より大きいかをチェックする
+        /// </summary>
+        /// <returns></returns>
+        private bool MaxDateCheck(ref ArrayList DispList)
+        {
+            IODailyDataDetail DetailDB = new IODailyDataDetail();
+            try
+            {
+                DateTime MaxDate = GetFPNDataDate((int)ReadData.Final);
+                if (MaxDate > dTPCreateDate.Value) return false;
+
+                // 明細データ取得
+                string strSQL = "SELECT A.JOBCATEGORYCODE";
+                strSQL += ", B.JOBCATEGORYNAME";
+                strSQL += ", A.COMPANYCODE";
+                strSQL += ", C.COMPANYNAME";
+                strSQL += ", A.NEXTDAYHEADCOUNT";
+                strSQL += ", (A.TOTALHEADCOUNT + A.NEXTDAYHEADCOUNT)";
+                strSQL += ", A.NEXTDAYWORK";
+                strSQL += ", ''";
+                strSQL += ", 0";
+                strSQL += " FROM DAILYDATADETAIL A";
+                strSQL += " LEFT JOIN SUBCONTRACTORJOBCATEGORY B ON A.JOBCATEGORYCODE = B.JOBCATEGORYCODE";
+                strSQL += " LEFT JOIN SUBCONTRACTORMASTER C ON A.COMPANYCODE = C.COMPANYCODE";
+                strSQL += DetailDB.CreatePrimarykeyString(m_PersonCode, MaxDate, m_ConstructionCode, 0);
+                strSQL += " ORDER BY A.SEQNO";
+                DetailDB.ExecuteReader(strSQL, ref DispList);
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                DetailDB.close(); DetailDB = null;
+            }
+        }
+        #endregion
+
         #region 作業内容グリッドの合計を計算する
         /// <summary>
         /// 作業内容グリッドの合計を計算する
@@ -1856,8 +1903,16 @@
                 bAns = DailyDataCheck();
                 bRet &= bAns;
 
+                bool[] bDailyDataField = new bool[4];
+                Array.Clear(bDailyDataField, 0, bDailyDataField.Length);
+                CommonMotions.chgBackColor(m_DgvArray[4].Rows[0].Cells[(int)DispGridColumn5.ContentsText], true);
+                CommonMotions.chgBackColor(m_DgvArray[4].Rows[3].Cells[(int)DispGridColumn5.ContentsText], true);
+                CommonMotions.chgBackColor(m_DgvArray[4].Rows[6].Cells[(int)DispGridColumn5.ContentsText], true);
+                CommonMotions.chgBackColor(m_DgvArray[4].Rows[9].Cells[(int)DispGridColumn5.ContentsText], true);
+
                 foreach (DataGridView dgv in m_DgvArray)
                 {
+                    ErrorRow = 0;
                     // 明細チェック
                     foreach (DataGridViewRow wrkRow in dgv.Rows)
                     {
@@ -1869,6 +1924,7 @@
                         else if (dgv == m_DgvArray[(int)DataGridDefine.Vehicles])
                         {
                             bAns = DailyDataVehiclesCheck(wrkRow, ref ErrorRow);
+                            if (ErrorRow != 0) dgvAllDisplay.FirstDisplayedScrollingRowIndex = ErrorRow;
                         }
                         else if (dgv == m_DgvArray[(int)DataGridDefine.Materials])
                         {
@@ -1880,11 +1936,14 @@
                         }
                         else if (dgv == m_DgvArray[(int)DataGridDefine.Field])
                         {
-                            bAns = DailyDataFieldCheck(wrkRow, ref ErrorRow);
+                            bAns = DailyDataFieldCheck(wrkRow, ref ErrorRow, ref bDailyDataField);
                         }
                         bRet &= bAns;
                     }
+                    // 最後のエラー行へ移動する
+                    if (ErrorRow != 0) dgv.FirstDisplayedScrollingRowIndex = ErrorRow;
                 }
+
                 if (!bRet)
                 {
                     MessageBox.Show("入力エラーがあります、確認してください。", "データ確認", MessageBoxButtons.OK, MessageBoxIcon.Warning);
@@ -1891,9 +1950,24 @@
                     return false;
                 }
 
-                // 最後のエラー行へ移動する
-                dgvAllDisplay.FirstDisplayedScrollingRowIndex = ErrorRow;
+                int fieldcnt = 0;
+                for (int i = 0; i < bDailyDataField.Length; i++)
+                {
+                    if (bDailyDataField[i]) fieldcnt++;
+                }
+                if (fieldcnt < 4)
+                {
+                    dataGridViewEX4.Focus();
+                    CommonMotions.chgBackColor(m_DgvArray[4].Rows[0].Cells[(int)DispGridColumn5.ContentsText], false);
+                    CommonMotions.chgBackColor(m_DgvArray[4].Rows[3].Cells[(int)DispGridColumn5.ContentsText], false);
+                    CommonMotions.chgBackColor(m_DgvArray[4].Rows[6].Cells[(int)DispGridColumn5.ContentsText], false);
+                    CommonMotions.chgBackColor(m_DgvArray[4].Rows[9].Cells[(int)DispGridColumn5.ContentsText], false);
 
+                    MessageBox.Show("現場巡回は必須入力です、確認してください。", "データ確認", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+                    return false;
+                }
+                
+                
                 return true;
             }
             catch (System.Exception ex)
@@ -2036,6 +2110,8 @@
                         bAns = false;
                     }
                 }
+                if (!bRet) ErrorRow = wrkRow.Index;
+                
                 // 背景色変更
                 CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn1.NextdayHeadCount], bAns);
                 bRet &= bAns;
@@ -2122,6 +2198,7 @@
                 CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn2.EndWorkingTime], bAns);
                 bRet &= bAns;
 
+                if (!bRet) ErrorRow = wrkRow.Index;
                 return bRet;
             }
             catch (System.Exception ex)
@@ -2191,6 +2268,7 @@
                 CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn3.QualityControl], bAns);
                 bRet &= bAns;
 
+                if (!bRet) ErrorRow = wrkRow.Index;
                 return bRet;
             }
             catch (System.Exception ex)
@@ -2233,6 +2311,7 @@
                 CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn4.ContentsText], bAns);
                 bRet &= bAns;
 
+                if (!bRet) ErrorRow = wrkRow.Index;
                 return bRet;
             }
             catch (System.Exception ex)
@@ -2248,11 +2327,55 @@
         /// 日報データ(現場巡回)チェック
         /// </summary>
         /// <returns></returns>
-        private bool DailyDataFieldCheck(DataGridViewRow wrkRow, ref int ErrorRow)
+        private bool DailyDataFieldCheck(DataGridViewRow wrkRow, ref int ErrorRow, ref bool[] bDailyDataField)
         {
             try
             {
-                return true;
+                bool bRet = true;
+                bool bAns = true;
+                int rowcnt = wrkRow.Index;
+
+                string strtime = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn5.PatrolTime].Value);
+                string strcomment = CommonMotions.cnvString(wrkRow.Cells[(int)DispGridColumn5.ContentsText].Value);
+
+                CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn5.PatrolTime], bAns);
+                CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn5.ContentsText], bAns);
+
+                if (strtime.Length == 0 && strcomment.Length == 0) return true;
+
+                if (strtime.Length != 0)
+                {
+                    // 巡回時間チェック
+                    bAns = CommonMotions.chkDate(strtime);
+                    // 背景色変更
+                    CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn5.PatrolTime], bAns);
+                    bRet &= bAns;
+                }
+
+                // 巡回状況チェック
+                bAns = CommonMotions.chkStringLength(strcomment, 200, true);
+                // 背景色変更
+                CommonMotions.chgBackColor(wrkRow.Cells[(int)DispGridColumn5.ContentsText], bAns);
+                bRet &= bAns;
+
+                if (0 <= rowcnt && rowcnt < 3)
+                {
+                    if (strcomment.Length != 0) bDailyDataField[0] = true;
+                }
+                else if (3 <= rowcnt && rowcnt < 6)
+                {
+                    if (strcomment.Length != 0) bDailyDataField[1] = true;
+                }
+                else if (6 <= rowcnt && rowcnt < 9)
+                {
+                    if (strcomment.Length != 0) bDailyDataField[2] = true;
+                }
+                else if (9 <= rowcnt && rowcnt < 12)
+                {
+                    if (strcomment.Length != 0) bDailyDataField[3] = true;
+                }
+
+                return bRet;
             }
             catch (System.Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/PrintFormat.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/PrintFormat.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/PrintFormat.cs	(revision 93)
@@ -355,7 +355,7 @@
                 strSQL += " LEFT JOIN SUBCONTRACTORJOBCATEGORY C ON C.JOBCATEGORYCODE = A.JOBCATEGORYCODE";
                 strSQL += string.Format(" WHERE A.PersonCode = {0}",m_PersonCode);
                 //strSQL += string.Format(" AND A.DailyDataDate = TO_DATE('{0}','YYYY/MM/DD')", DailyRec.DailyDataDate.ToShortDateString());
-                strSQL += string.Format(" AND A.DailyDataDate = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.DailyDataDate) = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
                 strSQL += string.Format(" AND A.ConstructionCode = {0}",m_ConstructionCode);
                 strSQL += " ORDER BY A.SEQNO";
                 DailyDB.ExecuteReader(strSQL, ref DetailList);
@@ -363,7 +363,7 @@
                 strSQL = "SELECT SUM(TODAYHEADCOUNT) FROM DAILYDATADETAIL";
                 strSQL += string.Format(" WHERE PersonCode = {0}", m_PersonCode);
                 strSQL += string.Format(" AND ConstructionCode = {0}", m_ConstructionCode);
-                strSQL += string.Format(" AND DailyDataDate <= STR_TO_DATE('{0}', '%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(DailyDataDate) <= STR_TO_DATE('{0}', '%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
                 ArrayList arList = new ArrayList();
                 DailyDB.ExecuteReader(strSQL, ref arList);
                 object[] wrkobj = (object[])arList[0];
@@ -392,7 +392,7 @@
                 strSQL += " FROM DAILYDATAVEHICLES A";
                 strSQL += string.Format(" WHERE A.PersonCode = {0}", m_PersonCode);
                 //strSQL += string.Format(" AND A.DailyDataDate = TO_DATE('{0}','YYYY/MM/DD')", DailyRec.DailyDataDate.ToShortDateString());
-                strSQL += string.Format(" AND A.DailyDataDate = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.DailyDataDate) = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
                 strSQL += string.Format(" AND A.ConstructionCode = {0}", m_ConstructionCode);
                 strSQL += " ORDER BY A.SEQNO";
                 DailyDB.ExecuteReader(strSQL, ref VehiclesList);
@@ -419,7 +419,7 @@
                 strSQL += " FROM DAILYDATAMATERIALS A";
                 strSQL += string.Format(" WHERE A.PersonCode = {0}", m_PersonCode);
                 //strSQL += string.Format(" AND A.DailyDataDate = TO_DATE('{0}','YYYY/MM/DD')", DailyRec.DailyDataDate.ToShortDateString());
-                strSQL += string.Format(" AND A.DailyDataDate = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.DailyDataDate) = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
                 strSQL += string.Format(" AND A.ConstructionCode = {0}", m_ConstructionCode);
                 strSQL += " ORDER BY A.SEQNO";
                 DailyDB.ExecuteReader(strSQL, ref MaterialsList);
@@ -446,7 +446,7 @@
                 strSQL += " FROM DAILYDATASUBCONTRACTORS A";
                 strSQL += string.Format(" WHERE A.PersonCode = {0}", m_PersonCode);
                 //strSQL += string.Format(" AND A.DailyDataDate = TO_DATE('{0}','YYYY/MM/DD')", DailyRec.DailyDataDate.ToShortDateString());
-                strSQL += string.Format(" AND A.DailyDataDate = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.DailyDataDate) = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
                 strSQL += string.Format(" AND A.ConstructionCode = {0}", m_ConstructionCode);
                 strSQL += " ORDER BY A.SEQNO";
                 DailyDB.ExecuteReader(strSQL, ref SubcontrList);
@@ -473,7 +473,7 @@
                 strSQL += " FROM DAILYDATAFIELD A";
                 strSQL += string.Format(" WHERE A.PersonCode = {0}", m_PersonCode);
                 //strSQL += string.Format(" AND A.DailyDataDate = TO_DATE('{0}','YYYY/MM/DD')", DailyRec.DailyDataDate.ToShortDateString());
-                strSQL += string.Format(" AND A.DailyDataDate = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.DailyDataDate) = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.DailyDataDate.ToShortDateString());
                 strSQL += string.Format(" AND A.ConstructionCode = {0}", m_ConstructionCode);
                 strSQL += " ORDER BY A.SEQNO";
                 DailyDB.ExecuteReader(strSQL, ref FieldList);
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRList/FrmDRListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRList/FrmDRListAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRList/FrmDRListAuxiliary.cs	(revision 93)
@@ -322,7 +322,7 @@
                 // ����������A7���Ԃ͓�����͉\�ɂ���
                 strSub1 += string.Format(" OR (A.CONSTRUCTIONSTATUSFLG = {0}", iCode);
                 //strSub1 += string.Format(" AND TO_DATE('{0}','YYYY/MM/DD') <= A.BILLINGDATE))", DateTime.Now.AddDays(-7).ToShortDateString());
-                strSub1 += string.Format(" AND STRTO_DATE('{0}','%Y/%m/%d') <= A.BILLINGDATE))", DateTime.Now.AddDays(-7).ToShortDateString());
+                strSub1 += string.Format(" AND STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(A.BILLINGDATE)))", DateTime.Now.AddDays(-7).ToShortDateString());
                 
                 // �S���ґI��������ꍇ
                 if (PersonCode > 0)
@@ -404,7 +404,7 @@
                 // ����������A7���Ԃ͓�����͉\�ɂ���
                 strSub1 += string.Format(" OR (A.CONSTRUCTIONSTATUSFLG = {0}", iCode);
                 //strSub1 += string.Format(" AND TO_DATE('{0}','YYYY/MM/DD') <= A.BILLINGDATE))", DateTime.Now.AddDays(-7).ToShortDateString());
-                strSub1 += string.Format(" AND STR_TO_DATE('{0}','%Y/%m/%d') <= A.BILLINGDATE))", DateTime.Now.AddDays(-7).ToShortDateString());
+                strSub1 += string.Format(" AND STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(A.BILLINGDATE)))", DateTime.Now.AddDays(-7).ToShortDateString());
 
                 // �S���ґI��������ꍇ
                 if (PersonCode > 0)
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.cs	(revision 93)
@@ -17,6 +17,7 @@
 using ProcessManagement.DB.Core;
 using ProcessManagement.Forms.CustomControls;
 using ProcessManagement.Forms.ControlsAction;
+using ProcessManagement.Forms.SubForms;
 //*---------------------------- �����ʌo��ꗗ��� ----------------------------*
 //  2016/09/23  Ver1.0.0.0      Create Source           
 //
@@ -205,6 +206,8 @@
         /// </summary>
         private bool m_CloseingProcessOff = false;
 
+        #endregion
+
         #region �O���b�h�J�����T�C�Y
         /// <summary>
         /// �O���b�h�J�����T�C�Y
@@ -226,8 +229,6 @@
         private int m_GridWidthSize = 0;
         #endregion
 
-        #endregion
-
         #region �v���p�e�B
         public int ExecuteFlg
         {
@@ -545,5 +546,18 @@
             DataDisplay();
         }
         #endregion
+
+        #region ���쐬�䒠�ꗗ�\��
+        /// <summary>
+        /// ���쐬�䒠�ꗗ�\��
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnLedgerStatus_Click(object sender, EventArgs e)
+        {
+            // ��ʕ\��
+            DispPriceOfBudget();
+        }
+        #endregion
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.designer.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.designer.cs	(revision 93)
@@ -28,19 +28,19 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
             this.btnEnd = new System.Windows.Forms.Button();
             this.label1 = new System.Windows.Forms.Label();
             this.groupBox1 = new System.Windows.Forms.GroupBox();
@@ -92,6 +92,7 @@
             this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.btnLedgerStatus = new System.Windows.Forms.Button();
             this.groupBox1.SuspendLayout();
             this.pnlPayroll.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit();
@@ -634,21 +635,21 @@
             this.dgvMaster.AllowUserToDeleteRows = false;
             this.dgvMaster.AllowUserToResizeColumns = false;
             this.dgvMaster.AllowUserToResizeRows = false;
-            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.dgvMaster.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+            dataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.dgvMaster.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle14;
             this.dgvMaster.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dgvMaster.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dgvMaster.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle2.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle15.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15;
             this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Column3,
@@ -661,14 +662,14 @@
             this.Column9,
             this.Column10,
             this.Column12});
-            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Window;
-            dataGridViewCellStyle13.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.ControlText;
-            dataGridViewCellStyle13.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
-            dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvMaster.DefaultCellStyle = dataGridViewCellStyle13;
+            dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle26.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle26.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
+            dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvMaster.DefaultCellStyle = dataGridViewCellStyle26;
             this.dgvMaster.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
             this.dgvMaster.Location = new System.Drawing.Point(5, 168);
             this.dgvMaster.Name = "dgvMaster";
@@ -686,8 +687,8 @@
             // 
             // Column3
             // 
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle3;
+            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle16;
             this.Column3.Frozen = true;
             this.Column3.HeaderText = "コード";
             this.Column3.Name = "Column3";
@@ -699,8 +700,8 @@
             // 
             // Column1
             // 
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle4;
+            dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle17;
             this.Column1.Frozen = true;
             this.Column1.HeaderText = "№";
             this.Column1.Name = "Column1";
@@ -711,8 +712,8 @@
             // 
             // Column14
             // 
-            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column14.DefaultCellStyle = dataGridViewCellStyle5;
+            dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column14.DefaultCellStyle = dataGridViewCellStyle18;
             this.Column14.Frozen = true;
             this.Column14.HeaderText = "部　署";
             this.Column14.Name = "Column14";
@@ -723,9 +724,9 @@
             // 
             // Column5
             // 
-            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle6.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle6;
+            dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle19.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle19;
             this.Column5.Frozen = true;
             this.Column5.HeaderText = "受注金額";
             this.Column5.Name = "Column5";
@@ -736,9 +737,9 @@
             // 
             // Column6
             // 
-            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle7.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
-            this.Column6.DefaultCellStyle = dataGridViewCellStyle7;
+            dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle20.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column6.DefaultCellStyle = dataGridViewCellStyle20;
             this.Column6.Frozen = true;
             this.Column6.HeaderText = "会社経費";
             this.Column6.Name = "Column6";
@@ -749,9 +750,9 @@
             // 
             // Column7
             // 
-            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle8.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
-            this.Column7.DefaultCellStyle = dataGridViewCellStyle8;
+            dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle21.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column7.DefaultCellStyle = dataGridViewCellStyle21;
             this.Column7.Frozen = true;
             this.Column7.HeaderText = "部署経費";
             this.Column7.Name = "Column7";
@@ -762,9 +763,9 @@
             // 
             // Column8
             // 
-            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle9.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
-            this.Column8.DefaultCellStyle = dataGridViewCellStyle9;
+            dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle22.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column8.DefaultCellStyle = dataGridViewCellStyle22;
             this.Column8.Frozen = true;
             this.Column8.HeaderText = "営業経費";
             this.Column8.Name = "Column8";
@@ -775,9 +776,9 @@
             // 
             // Column9
             // 
-            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle10.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
-            this.Column9.DefaultCellStyle = dataGridViewCellStyle10;
+            dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle23.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column9.DefaultCellStyle = dataGridViewCellStyle23;
             this.Column9.Frozen = true;
             this.Column9.HeaderText = "総支払額";
             this.Column9.Name = "Column9";
@@ -788,9 +789,9 @@
             // 
             // Column10
             // 
-            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle11.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
-            this.Column10.DefaultCellStyle = dataGridViewCellStyle11;
+            dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle24.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column10.DefaultCellStyle = dataGridViewCellStyle24;
             this.Column10.Frozen = true;
             this.Column10.HeaderText = "粗　利";
             this.Column10.Name = "Column10";
@@ -801,9 +802,9 @@
             // 
             // Column12
             // 
-            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle12.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
-            this.Column12.DefaultCellStyle = dataGridViewCellStyle12;
+            dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle25.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9F, System.Drawing.FontStyle.Bold);
+            this.Column12.DefaultCellStyle = dataGridViewCellStyle25;
             this.Column12.Frozen = true;
             this.Column12.HeaderText = "純利益";
             this.Column12.Name = "Column12";
@@ -812,6 +813,20 @@
             this.Column12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.Column12.Width = 140;
             // 
+            // btnLedgerStatus
+            // 
+            this.btnLedgerStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnLedgerStatus.BackColor = System.Drawing.Color.DodgerBlue;
+            this.btnLedgerStatus.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnLedgerStatus.ForeColor = System.Drawing.Color.Black;
+            this.btnLedgerStatus.Location = new System.Drawing.Point(1185, 5);
+            this.btnLedgerStatus.Name = "btnLedgerStatus";
+            this.btnLedgerStatus.Size = new System.Drawing.Size(150, 30);
+            this.btnLedgerStatus.TabIndex = 48;
+            this.btnLedgerStatus.Text = "未作成台帳確認";
+            this.btnLedgerStatus.UseVisualStyleBackColor = false;
+            this.btnLedgerStatus.Click += new System.EventHandler(this.btnLedgerStatus_Click);
+            // 
             // FrmDepExpenssList
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -819,6 +834,7 @@
             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.btnLedgerStatus);
             this.Controls.Add(this.ProgressBar);
             this.Controls.Add(this.lblCellTotal);
             this.Controls.Add(this.dgvMaster);
@@ -899,5 +915,6 @@
         private System.Windows.Forms.Label lblStartDate;
         private System.Windows.Forms.Label label8;
         private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Button btnLedgerStatus;
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssListAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssListAuxiliary.cs	(revision 93)
@@ -20,6 +20,7 @@
 using ProcessManagement.DB.Core;
 using ProcessManagement.Forms.CustomControls;
 using ProcessManagement.Forms.ControlsAction;
+using ProcessManagement.Forms.SubForms;
 //*---------------------------- �����ʌo��ꗗ��� --------------------------*
 //  2016/09/23  Ver1.0.0.0      Create Source           
 //
@@ -61,6 +62,9 @@
             {
                 m_CellSize[wrkCell.Index] = wrkCell.Width;
             }
+            // �䒠�󋵉�ʃ{�^���\��
+            int editflg = 0;
+            btnLedgerStatus.Visible = ClsSecurityPermission.GetExecutePermission((int)ClsExcute.ProcessExecuteNo.PriceOfBudget, ref editflg);
         }
         #endregion
 
@@ -1748,5 +1752,76 @@
             }
         }
         #endregion
+
+        #region �䒠�󋵊m�F��ʂ�\������
+        /// <summary>
+        /// �䒠�󋵊m�F��ʂ�\������
+        /// </summary>
+        private void DispPriceOfBudget()
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PriceOfBudget;
+                // �t�H�[��������΍őO�ʂ�
+                FrmPriceOfBudget frm = (FrmPriceOfBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+
+                // �\���S���҂������Ȃ�Ώ������Ȃ�
+                if (frm != null)
+                {
+                    frm.Activate();
+                    return;
+                }
+
+                // �䒠�󋵊m�F���
+                frm = new FrmPriceOfBudget();
+                ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
+                ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
+
+                // �ʒu�ݒ�
+                frm.LocationPoint = new Point(this.Right, this.Top);
+
+                // �^�X�N�o�[�ɕ\�����Ȃ�
+                //m_PriceOfBudget.ShowInTaskbar = false;
+
+                // �N���[�X�h�n���h����������Œ�`����
+                frm.FormClosed += new FormClosedEventHandler(FrmPriceOfBudget_FormClosed);
+                frm.Show();
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region �䒠�󋵊m�F��ʃN���[�Y
+        /// <summary>
+        /// �䒠�󋵊m�F��ʂ̃N���[�Y���擾����
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmPriceOfBudget_FormClosed(object sender, FormClosedEventArgs e)
+        {
+            try
+            {
+                int ProcessNo = (int)ClsExcute.ProcessExecuteNo.PriceOfBudget;
+                FrmPriceOfBudget frm = (FrmPriceOfBudget)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+
+                // �n���h���N���A
+                if (ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle != null)
+                {
+                    ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle.Dispose();
+                    ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = null;
+                    ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = (int)ClsExcute.ProcessExecuteNo.MainMenu;
+                }
+
+                this.Activate();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs	(revision 93)
@@ -271,7 +271,7 @@
                 strSQL += " FROM PROCEEDINGSDATA A";
                 strSQL += " LEFT JOIN PERSONINCHARGEMASTER B ON B.PERSONCODE = A.CREATORCODE";
                 strSQL += string.Format(" WHERE A.CONSTRUCTIONCODE = {0}", m_ConstructionCode);
-                strSQL += string.Format(" AND A.PROCEEDINGSDATADATE = STR_TO_DATE('{0}','%Y/%m/%d')", dtSelect.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.PROCEEDINGSDATADATE) = STR_TO_DATE('{0}','%Y/%m/%d')", dtSelect.ToShortDateString());
 
                 if (!ProDB.ExecuteReader(strSQL, ref MainRec)) return false;
                 if (MainRec.Count == 0) return false;
@@ -1487,12 +1487,12 @@
                     case (int)ReadData.Previous:
                         strSQL = "SELECT MAX(PROCEEDINGSDATADATE) FROM PROCEEDINGSDATA";
                         strSQL += string.Format(" WHERE CONSTRUCTIONCODE = {0}", m_ConstructionCode);
-                        strSQL += string.Format(" AND TRUNCATE(PROCEEDINGSDATADATE) < STR_TO_DATE('{0}','%Y/%m/%d')", dtMeetingDate.Value.ToShortDateString());
+                        strSQL += string.Format(" AND DATE(PROCEEDINGSDATADATE) < STR_TO_DATE('{0}','%Y/%m/%d')", dtMeetingDate.Value.ToShortDateString());
                         break;
                     case (int)ReadData.Next:
                         strSQL = "SELECT MIN(PROCEEDINGSDATADATE) FROM PROCEEDINGSDATA";
                         strSQL += string.Format(" WHERE CONSTRUCTIONCODE = {0}", m_ConstructionCode);
-                        strSQL += string.Format(" AND TRUNCATE(PROCEEDINGSDATADATE) > STR_TO_DATE('{0}','%Y/%m/%d')", dtMeetingDate.Value.ToShortDateString());
+                        strSQL += string.Format(" AND DATE(PROCEEDINGSDATADATE) > STR_TO_DATE('{0}','%Y/%m/%d')", dtMeetingDate.Value.ToShortDateString());
                         break;
                     case (int)ReadData.Final:
                         strSQL = "SELECT MAX(PROCEEDINGSDATADATE) FROM PROCEEDINGSDATA";
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/PrintFormat.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/PrintFormat.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/PrintFormat.cs	(revision 93)
@@ -146,8 +146,8 @@
                 // 印刷範囲が指定されていた場合は日付指定
                 if (m_PrintRange == (int)FrmPrintConfirmation.PrintSelFlg.Range)
                 {
-                    strSQL += string.Format(" AND (STR_TO_DATE('{0}', '%Y/%m/%d') <= TRUNCATE(PROCEEDINGSDATADATE)", m_PrintStartDate.ToShortDateString());
-                    strSQL += string.Format(" AND TRUNCATE(PROCEEDINGSDATADATE) <= STR_TO_DATE('{0}', '%Y/%m/%d'))", m_PrintCompDate.ToShortDateString());
+                    strSQL += string.Format(" AND (STR_TO_DATE('{0}', '%Y/%m/%d') <= DATE(PROCEEDINGSDATADATE)", m_PrintStartDate.ToShortDateString());
+                    strSQL += string.Format(" AND DATE(PROCEEDINGSDATADATE) <= STR_TO_DATE('{0}', '%Y/%m/%d'))", m_PrintCompDate.ToShortDateString());
                 }
                 strSQL += " ORDER BY PROCEEDINGSDATADATE";
                 List<ProceedingsData> DailyList = new List<ProceedingsData>();
@@ -293,7 +293,7 @@
             {
                 string strSQL = "SELECT * FROM PROCEEDINGSDATAATTEND A";
                 strSQL += string.Format(" WHERE A.CONSTRUCTIONCODE = {0}", DailyRec.ConstructionCode);
-                strSQL += string.Format(" AND A.PROCEEDINGSDATADATE = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.ProceedingsDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.PROCEEDINGSDATADATE) = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.ProceedingsDataDate.ToShortDateString());
                 strSQL += string.Format(" AND A.STARTMEETINGTIME = {0}", DailyRec.StartMeetingTime);
                 strSQL += " ORDER BY A.SEQNO";
                 DailyDB.ExecuteReader(strSQL, ref AttendList);
@@ -317,7 +317,7 @@
             {
                 string strSQL = "SELECT * FROM PROCEEDINGSDATADETAIL A";
                 strSQL += string.Format(" WHERE A.CONSTRUCTIONCODE = {0}", DailyRec.ConstructionCode);
-                strSQL += string.Format(" AND A.PROCEEDINGSDATADATE = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.ProceedingsDataDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.PROCEEDINGSDATADATE) = STR_TO_DATE('{0}','%Y/%m/%d')", DailyRec.ProceedingsDataDate.ToShortDateString());
                 strSQL += string.Format(" AND A.STARTMEETINGTIME = {0}", DailyRec.StartMeetingTime);
                 strSQL += " ORDER BY A.SEQNO";
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs	(revision 93)
@@ -197,7 +197,7 @@
                 strSQL += " LEFT JOIN CONSTRUCTIONBASEINFODETAIL B ON B.CONSTRUCTIONCODE = A.SOURCECODE";
                 strSQL += string.Format(" AND B.DETAILNO = {0}", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
 
-                strSQL += " LEFT JOIN PURCHASEORDERDETAIL E ON E.CONSTRUCTIONCODE = A.SOURCECODE";
+                strSQL += " LEFT JOIN PURCHASEORDERDETAIL E ON E.CONSTRUCTIONCODE = A.SOURCECODE AND (E.SOURCELINECNT = A.LINECOUNT OR E.SOURCELINECNT = 0)";
 
                 strSQL += " LEFT JOIN PURCHASEORDER F ON F.CONSTRUCTIONCODE = E.CONSTRUCTIONCODE AND F.COMPANYCODE = A.COMPANYCODE";
 
@@ -213,9 +213,8 @@
                 strSQL += string.Format(" AND A.GROUPCOUNT = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
                 strSQL += " AND A.COMPANYCODE > 0";
                 strSQL += string.Format(" AND A.COMPANYTYPE <> {0}", (int)CommonDefine.CodeDataType.Person);
-                //strSQL += " AND A.EXECUTIONAMOUNT > 0";
 
-                strSQL += " AND (A.SOURCECODE, A.COMPANYCODE) IN ((SELECT SUMTBL.SOURCECODE, SUMTBL.COMPANYCODE FROM CONSTRUCTIONLEDGERDETAIL SUMTBL";
+                strSQL += " AND ((A.SOURCECODE, A.COMPANYCODE) IN (SELECT SUMTBL.SOURCECODE, SUMTBL.COMPANYCODE FROM CONSTRUCTIONLEDGERDETAIL SUMTBL";
                 strSQL += string.Format(" WHERE SUMTBL.CONSTRUCTIONCODE = {0}", ParentCode);
                 strSQL += string.Format(" AND SUMTBL.GROUPCOUNT = {0} AND SUMTBL.COMPANYCODE > 0", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
                 strSQL += " GROUP BY SUMTBL.SOURCECODE, SUMTBL.COMPANYCODE, SUMTBL.PURCHASEORDERFLG";
@@ -226,9 +225,10 @@
                     SetConstructionCode = ParentCode;
                 else
                     SetConstructionCode = SearchCode;
-                
-                strSQL += string.Format(" UNION (SELECT POR.CONSTRUCTIONCODE, POR.COMPANYCODE FROM PURCHASEORDER POR WHERE POR.CONSTRUCTIONCODE = {0}))", SetConstructionCode);
 
+                strSQL += " OR (A.SOURCECODE, A.COMPANYCODE) IN";
+                strSQL += string.Format(" (SELECT POR.CONSTRUCTIONCODE, POR.COMPANYCODE FROM PURCHASEORDER POR WHERE POR.CONSTRUCTIONCODE = {0}))", SetConstructionCode);
+
                 strSQL += " GROUP BY";
                 strSQL += " A.CONSTRUCTIONCODE";
                 strSQL += ", A.FIRSTSTRING";
@@ -438,42 +438,44 @@
                 Color wrkColor = Color.White;
 
                 int SeqNo = CommonMotions.cnvInt(dgv.Rows[CurRowCnt].Cells[(int)GridColumn.SeqNo].Value);
-                if (SeqNo == 0)
+                switch (Orderflg)
                 {
-                    if (Orderflg == (int)CommonDefine.PurchaseOrderFlg.NotMakingData)
-                    {
+                    case (int)CommonDefine.PurchaseOrderFlg.NotMakingData:
+                        // 作成しない
                         strCreate = DataStatusString[(int)DataStatusNo.NotMaking];
                         wrkColor = Color.White;
                         strCount = string.Empty;
-                    }
-                    else
-                    {
-                        strCreate = DataStatusString[(int)DataStatusNo.NoCreate];
-                        wrkColor = Color.White;
-                        strCount = string.Empty;
-                        BaseDataCnt++;
-                    }
+                        break;
+                    default:
+                        if (SeqNo == 0)
+                        {
+                            strCreate = DataStatusString[(int)DataStatusNo.NoCreate];
+                            wrkColor = Color.White;
+                            strCount = string.Empty;
+                            BaseDataCnt++;
+                        }
+                        else if (SeqNo > 0)
+                        {
+                            switch (AppStat)
+                            {
+                                case (int)CommonDefine.ApprovalStatus.Approval:
+                                    strCreate = DataStatusString[(int)DataStatusNo.Approvals];
+                                    wrkColor = Color.LightGray;
+                                    break;
+                                case -1:
+                                    strCreate = DataStatusString[(int)DataStatusNo.Making];
+                                    wrkColor = Color.LightCyan;
+                                    break;
+                                default:
+                                    strCreate = DataStatusString[(int)DataStatusNo.Request];
+                                    wrkColor = Color.LemonChiffon;
+                                    break;
+                            }
+                            if (Printout != DateTime.MinValue.Date) ApprovalCnt++;
+                            BaseDataCnt++;
+                        }
+                        break;
                 }
-                else if (SeqNo > 0)
-                {
-                    switch (AppStat)
-                    {
-                        case (int)CommonDefine.ApprovalStatus.Approval:
-                            strCreate = DataStatusString[(int)DataStatusNo.Approvals];
-                            wrkColor = Color.LightGray;
-                            break;
-                        case -1:
-                            strCreate = DataStatusString[(int)DataStatusNo.Making];
-                            wrkColor = Color.LightCyan;
-                            break;
-                        default:
-                            strCreate = DataStatusString[(int)DataStatusNo.Request];
-                            wrkColor = Color.LemonChiffon;
-                            break;
-                    }
-                    if (Printout != DateTime.MinValue.Date) ApprovalCnt++;
-                    BaseDataCnt++;
-                }
 
                 // 作成回数セット
                 dgv.Rows[CurRowCnt].Cells[(int)GridColumn.RequestCount].Value = strCount;
@@ -509,38 +511,35 @@
                 {
                     object[] ObjRec = (object[])m_OrderFrm.DetailList[ix];
 
-                    foreach (DataGridViewRow ChkRow in dgv.Rows)
-                    {
-                        // 画面上でデータを探す
-                        if (CommonMotions.cnvInt(ObjRec[(int)ReadDBColumn.SourceCode])
-                            != CommonMotions.cnvInt(ChkRow.Cells[(int)GridColumn.SourceCode].Value)) continue;
+                    DataGridViewRow ChkRow = dgv.Rows[ix];
 
-                        if (CommonMotions.cnvInt(ObjRec[(int)ReadDBColumn.CompanyCode])
-                            != CommonMotions.cnvInt(ChkRow.Cells[(int)GridColumn.CompanyCode].Value)) continue;
+                    if (CommonMotions.cnvInt(ObjRec[(int)ReadDBColumn.CompanyCode])
+                        != CommonMotions.cnvInt(ChkRow.Cells[(int)GridColumn.CompanyCode].Value)) continue;
 
-                        // 作成対象外のチェック
-                        if (!CommonMotions.chkCellBlank(ChkRow.Cells[(int)GridColumn.NotCreate].Value))
-                        {
-                            if ((bool)ChkRow.Cells[(int)GridColumn.NotCreate].Value)
-                            {
-                                // 内部データ削除（親フォームのプロパティを編集する）
-                                m_OrderFrm.DetailList.RemoveAt(ix);
-                                break;
-                            }
-                        }
+                    // 作成対象外のチェック 内部データ削除（親フォームのプロパティを編集する）
+                    if (CommonMotions.chkCellBlank(ChkRow.Cells[(int)GridColumn.NotCreate].Value))
+                    {
+                        m_OrderFrm.DetailList.RemoveAt(ix);
+                        continue;
+                    }
+                    if ((bool)ChkRow.Cells[(int)GridColumn.NotCreate].Value)
+                    {
+                        m_OrderFrm.DetailList.RemoveAt(ix);
+                        continue;
+                    }
 
-                        // 選択フラグのチェック
-                        if (!CommonMotions.chkCellBlank(ChkRow.Cells[(int)GridColumn.SelectExec].Value))
-                        {
-                            if (!(bool)ChkRow.Cells[(int)GridColumn.SelectExec].Value)
-                            {
-                                // 内部データ削除（親フォームのプロパティを編集する）
-                                m_OrderFrm.DetailList.RemoveAt(ix);
-                                break;
-                            }
-                        }
-                        break;
+                    // 選択フラグのチェック
+                    if (CommonMotions.chkCellBlank(ChkRow.Cells[(int)GridColumn.SelectExec].Value))
+                    {
+                        m_OrderFrm.DetailList.RemoveAt(ix);
+                        continue;
                     }
+                    if (!(bool)ChkRow.Cells[(int)GridColumn.SelectExec].Value)
+                    {
+                        // 内部データ削除（親フォームのプロパティを編集する）
+                        m_OrderFrm.DetailList.RemoveAt(ix);
+                        continue;
+                    }
                 }
             }
             catch (Exception ex)
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.Designer.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntry.Designer.cs	(revision 93)
@@ -28,17 +28,17 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
             this.label1 = new System.Windows.Forms.Label();
             this.panel1 = new System.Windows.Forms.Panel();
             this.btnInputImage = new System.Windows.Forms.Button();
@@ -73,16 +73,6 @@
             this.btnEnd = new System.Windows.Forms.Button();
             this.tabPage1 = new System.Windows.Forms.TabPage();
             this.panel3 = new System.Windows.Forms.Panel();
-            this.lbl001 = new System.Windows.Forms.Label();
-            this.lbl003 = new System.Windows.Forms.Label();
-            this.label18 = new System.Windows.Forms.Label();
-            this.txtBoxS001 = new System.Windows.Forms.TextBox();
-            this.lbl002 = new System.Windows.Forms.Label();
-            this.label15 = new System.Windows.Forms.Label();
-            this.TabCollections = new System.Windows.Forms.TabControl();
-            this.btnOtherProc = new System.Windows.Forms.Button();
-            this.btnPageDelete = new System.Windows.Forms.Button();
-            this.btnChangeCompany = new System.Windows.Forms.Button();
             this.groupBox3 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
             this.label40 = new System.Windows.Forms.Label();
             this.txtBoxR013 = new System.Windows.Forms.TextBox();
@@ -130,6 +120,11 @@
             this.label19 = new System.Windows.Forms.Label();
             this.label6 = new System.Windows.Forms.Label();
             this.label22 = new System.Windows.Forms.Label();
+            this.lbl001 = new System.Windows.Forms.Label();
+            this.lbl003 = new System.Windows.Forms.Label();
+            this.label18 = new System.Windows.Forms.Label();
+            this.txtBoxS001 = new System.Windows.Forms.TextBox();
+            this.lbl002 = new System.Windows.Forms.Label();
             this.groupBox4 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
             this.dgvTerms = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -142,6 +137,11 @@
             this.btnDispDown = new System.Windows.Forms.Button();
             this.btnDispUp = new System.Windows.Forms.Button();
             this.dgvAllDisplay = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.label15 = new System.Windows.Forms.Label();
+            this.TabCollections = new System.Windows.Forms.TabControl();
+            this.btnOtherProc = new System.Windows.Forms.Button();
+            this.btnPageDelete = new System.Windows.Forms.Button();
+            this.btnChangeCompany = new System.Windows.Forms.Button();
             this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -158,7 +158,6 @@
             this.pnlApprovalButton.SuspendLayout();
             this.tabPage1.SuspendLayout();
             this.panel3.SuspendLayout();
-            this.TabCollections.SuspendLayout();
             this.groupBox3.SuspendLayout();
             this.groupBox2.SuspendLayout();
             this.groupBox5.SuspendLayout();
@@ -166,6 +165,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.dgvTerms)).BeginInit();
             this.groupBox1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).BeginInit();
+            this.TabCollections.SuspendLayout();
             this.SuspendLayout();
             // 
             // label1
@@ -607,125 +607,6 @@
             this.panel3.TabIndex = 0;
             this.panel3.Scroll += new System.Windows.Forms.ScrollEventHandler(this.BasePanel_Scroll);
             // 
-            // lbl001
-            // 
-            this.lbl001.BackColor = System.Drawing.Color.White;
-            this.lbl001.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lbl001.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lbl001.Location = new System.Drawing.Point(8, 8);
-            this.lbl001.Name = "lbl001";
-            this.lbl001.Size = new System.Drawing.Size(166, 22);
-            this.lbl001.TabIndex = 73;
-            this.lbl001.Text = "2016999901-001";
-            this.lbl001.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // lbl003
-            // 
-            this.lbl003.BackColor = System.Drawing.Color.White;
-            this.lbl003.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lbl003.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lbl003.Location = new System.Drawing.Point(874, 8);
-            this.lbl003.Name = "lbl003";
-            this.lbl003.Size = new System.Drawing.Size(170, 22);
-            this.lbl003.TabIndex = 72;
-            this.lbl003.Text = "\\999,999,999-";
-            this.lbl003.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label18
-            // 
-            this.label18.BackColor = System.Drawing.Color.SandyBrown;
-            this.label18.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label18.Location = new System.Drawing.Point(696, 7);
-            this.label18.Name = "label18";
-            this.label18.Size = new System.Drawing.Size(170, 25);
-            this.label18.TabIndex = 71;
-            this.label18.Text = "台帳発注金額(税別)";
-            this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // txtBoxS001
-            // 
-            this.txtBoxS001.Location = new System.Drawing.Point(1180, 8);
-            this.txtBoxS001.Name = "txtBoxS001";
-            this.txtBoxS001.Size = new System.Drawing.Size(114, 23);
-            this.txtBoxS001.TabIndex = 66;
-            // 
-            // lbl002
-            // 
-            this.lbl002.BackColor = System.Drawing.Color.White;
-            this.lbl002.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lbl002.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lbl002.Location = new System.Drawing.Point(182, 8);
-            this.lbl002.Name = "lbl002";
-            this.lbl002.Size = new System.Drawing.Size(500, 22);
-            this.lbl002.TabIndex = 70;
-            this.lbl002.Text = "協力会社名称";
-            this.lbl002.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // label15
-            // 
-            this.label15.BackColor = System.Drawing.Color.Cyan;
-            this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label15.Location = new System.Drawing.Point(1052, 7);
-            this.label15.Name = "label15";
-            this.label15.Size = new System.Drawing.Size(120, 25);
-            this.label15.TabIndex = 69;
-            this.label15.Text = "発注書作成日";
-            this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // TabCollections
-            // 
-            this.TabCollections.Alignment = System.Windows.Forms.TabAlignment.Bottom;
-            this.TabCollections.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.TabCollections.Controls.Add(this.tabPage1);
-            this.TabCollections.Location = new System.Drawing.Point(7, 150);
-            this.TabCollections.Name = "TabCollections";
-            this.TabCollections.SelectedIndex = 0;
-            this.TabCollections.Size = new System.Drawing.Size(1330, 502);
-            this.TabCollections.TabIndex = 56;
-            // 
-            // btnOtherProc
-            // 
-            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
-            this.btnOtherProc.Location = new System.Drawing.Point(7, 656);
-            this.btnOtherProc.Name = "btnOtherProc";
-            this.btnOtherProc.Size = new System.Drawing.Size(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);
-            // 
-            // btnPageDelete
-            // 
-            this.btnPageDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnPageDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
-            this.btnPageDelete.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnPageDelete.ForeColor = System.Drawing.Color.Black;
-            this.btnPageDelete.Location = new System.Drawing.Point(812, 656);
-            this.btnPageDelete.Name = "btnPageDelete";
-            this.btnPageDelete.Size = new System.Drawing.Size(120, 30);
-            this.btnPageDelete.TabIndex = 96;
-            this.btnPageDelete.Text = "ページ削除";
-            this.btnPageDelete.UseVisualStyleBackColor = false;
-            this.btnPageDelete.Click += new System.EventHandler(this.btnPageDelete_Click);
-            // 
-            // btnChangeCompany
-            // 
-            this.btnChangeCompany.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnChangeCompany.BackColor = System.Drawing.Color.DeepSkyBlue;
-            this.btnChangeCompany.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnChangeCompany.ForeColor = System.Drawing.Color.Black;
-            this.btnChangeCompany.Location = new System.Drawing.Point(686, 655);
-            this.btnChangeCompany.Name = "btnChangeCompany";
-            this.btnChangeCompany.Size = new System.Drawing.Size(120, 30);
-            this.btnChangeCompany.TabIndex = 97;
-            this.btnChangeCompany.Text = "発注先変更";
-            this.btnChangeCompany.UseVisualStyleBackColor = false;
-            this.btnChangeCompany.Click += new System.EventHandler(this.btnChangeCompany_Click);
-            // 
             // groupBox3
             // 
             this.groupBox3.BackColor = System.Drawing.Color.White;
@@ -1287,6 +1168,60 @@
             this.label22.Text = "人";
             this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // lbl001
+            // 
+            this.lbl001.BackColor = System.Drawing.Color.White;
+            this.lbl001.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbl001.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lbl001.Location = new System.Drawing.Point(8, 8);
+            this.lbl001.Name = "lbl001";
+            this.lbl001.Size = new System.Drawing.Size(166, 22);
+            this.lbl001.TabIndex = 73;
+            this.lbl001.Text = "2016999901-001";
+            this.lbl001.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // lbl003
+            // 
+            this.lbl003.BackColor = System.Drawing.Color.White;
+            this.lbl003.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbl003.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lbl003.Location = new System.Drawing.Point(874, 8);
+            this.lbl003.Name = "lbl003";
+            this.lbl003.Size = new System.Drawing.Size(170, 22);
+            this.lbl003.TabIndex = 72;
+            this.lbl003.Text = "\\999,999,999-";
+            this.lbl003.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label18
+            // 
+            this.label18.BackColor = System.Drawing.Color.SandyBrown;
+            this.label18.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label18.Location = new System.Drawing.Point(696, 7);
+            this.label18.Name = "label18";
+            this.label18.Size = new System.Drawing.Size(170, 25);
+            this.label18.TabIndex = 71;
+            this.label18.Text = "台帳発注金額(税別)";
+            this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // txtBoxS001
+            // 
+            this.txtBoxS001.Location = new System.Drawing.Point(1180, 8);
+            this.txtBoxS001.Name = "txtBoxS001";
+            this.txtBoxS001.Size = new System.Drawing.Size(114, 23);
+            this.txtBoxS001.TabIndex = 66;
+            // 
+            // lbl002
+            // 
+            this.lbl002.BackColor = System.Drawing.Color.White;
+            this.lbl002.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbl002.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.lbl002.Location = new System.Drawing.Point(182, 8);
+            this.lbl002.Name = "lbl002";
+            this.lbl002.Size = new System.Drawing.Size(500, 22);
+            this.lbl002.TabIndex = 70;
+            this.lbl002.Text = "協力会社名称";
+            this.lbl002.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
             // groupBox4
             // 
             this.groupBox4.BackColor = System.Drawing.Color.White;
@@ -1307,14 +1242,14 @@
             this.dgvTerms.AllowUserToResizeRows = false;
             this.dgvTerms.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dgvTerms.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle12.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvTerms.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
+            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.dgvTerms.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
             this.dgvTerms.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvTerms.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.dataGridViewTextBoxColumn2,
@@ -1332,8 +1267,8 @@
             // 
             // dataGridViewTextBoxColumn2
             // 
-            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle13;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle2;
             this.dataGridViewTextBoxColumn2.Frozen = true;
             this.dataGridViewTextBoxColumn2.HeaderText = "№";
             this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
@@ -1344,8 +1279,8 @@
             // 
             // dataGridViewTextBoxColumn12
             // 
-            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            this.dataGridViewTextBoxColumn12.DefaultCellStyle = dataGridViewCellStyle14;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.dataGridViewTextBoxColumn12.DefaultCellStyle = dataGridViewCellStyle3;
             this.dataGridViewTextBoxColumn12.HeaderText = "条　　　件";
             this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
             this.dataGridViewTextBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1444,14 +1379,14 @@
             this.dgvAllDisplay.AllowUserToResizeRows = false;
             this.dgvAllDisplay.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle15.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15;
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle4.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
             this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.dataGridViewTextBoxColumn1,
@@ -1475,10 +1410,75 @@
             this.dgvAllDisplay.Size = new System.Drawing.Size(1230, 214);
             this.dgvAllDisplay.TabIndex = 1;
             // 
+            // label15
+            // 
+            this.label15.BackColor = System.Drawing.Color.Cyan;
+            this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label15.Location = new System.Drawing.Point(1052, 7);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(120, 25);
+            this.label15.TabIndex = 69;
+            this.label15.Text = "発注書作成日";
+            this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // TabCollections
+            // 
+            this.TabCollections.Alignment = System.Windows.Forms.TabAlignment.Bottom;
+            this.TabCollections.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.TabCollections.Controls.Add(this.tabPage1);
+            this.TabCollections.Location = new System.Drawing.Point(7, 150);
+            this.TabCollections.Name = "TabCollections";
+            this.TabCollections.SelectedIndex = 0;
+            this.TabCollections.Size = new System.Drawing.Size(1330, 502);
+            this.TabCollections.TabIndex = 56;
+            // 
+            // btnOtherProc
+            // 
+            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
+            this.btnOtherProc.Location = new System.Drawing.Point(7, 656);
+            this.btnOtherProc.Name = "btnOtherProc";
+            this.btnOtherProc.Size = new System.Drawing.Size(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);
+            // 
+            // btnPageDelete
+            // 
+            this.btnPageDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnPageDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
+            this.btnPageDelete.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnPageDelete.ForeColor = System.Drawing.Color.Black;
+            this.btnPageDelete.Location = new System.Drawing.Point(812, 656);
+            this.btnPageDelete.Name = "btnPageDelete";
+            this.btnPageDelete.Size = new System.Drawing.Size(120, 30);
+            this.btnPageDelete.TabIndex = 96;
+            this.btnPageDelete.Text = "ページ削除";
+            this.btnPageDelete.UseVisualStyleBackColor = false;
+            this.btnPageDelete.Click += new System.EventHandler(this.btnPageDelete_Click);
+            // 
+            // btnChangeCompany
+            // 
+            this.btnChangeCompany.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnChangeCompany.BackColor = System.Drawing.Color.DeepSkyBlue;
+            this.btnChangeCompany.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnChangeCompany.ForeColor = System.Drawing.Color.Black;
+            this.btnChangeCompany.Location = new System.Drawing.Point(686, 655);
+            this.btnChangeCompany.Name = "btnChangeCompany";
+            this.btnChangeCompany.Size = new System.Drawing.Size(120, 30);
+            this.btnChangeCompany.TabIndex = 97;
+            this.btnChangeCompany.Text = "発注先変更";
+            this.btnChangeCompany.UseVisualStyleBackColor = false;
+            this.btnChangeCompany.Click += new System.EventHandler(this.btnChangeCompany_Click);
+            // 
             // dataGridViewTextBoxColumn1
             // 
-            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle16;
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle5;
             this.dataGridViewTextBoxColumn1.Frozen = true;
             this.dataGridViewTextBoxColumn1.HeaderText = "№";
             this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
@@ -1516,8 +1516,8 @@
             // 
             // Column5
             // 
-            dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle17;
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle6;
             this.Column5.Frozen = true;
             this.Column5.HeaderText = "工　種・品　名";
             this.Column5.Name = "Column5";
@@ -1527,8 +1527,8 @@
             // 
             // Column6
             // 
-            dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            this.Column6.DefaultCellStyle = dataGridViewCellStyle18;
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column6.DefaultCellStyle = dataGridViewCellStyle7;
             this.Column6.Frozen = true;
             this.Column6.HeaderText = "内　容　内　訳";
             this.Column6.Name = "Column6";
@@ -1538,10 +1538,11 @@
             // 
             // Column7
             // 
-            dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle19.Format = "N0";
-            dataGridViewCellStyle19.NullValue = null;
-            this.Column7.DefaultCellStyle = dataGridViewCellStyle19;
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle8.Format = "N0";
+            dataGridViewCellStyle8.NullValue = null;
+            this.Column7.DefaultCellStyle = dataGridViewCellStyle8;
+            this.Column7.Frozen = true;
             this.Column7.HeaderText = "数　量";
             this.Column7.Name = "Column7";
             this.Column7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1550,8 +1551,9 @@
             // 
             // Column8
             // 
-            dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column8.DefaultCellStyle = dataGridViewCellStyle20;
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column8.DefaultCellStyle = dataGridViewCellStyle9;
+            this.Column8.Frozen = true;
             this.Column8.HeaderText = "単　位";
             this.Column8.Name = "Column8";
             this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1560,8 +1562,9 @@
             // 
             // Column11
             // 
-            dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.Column11.DefaultCellStyle = dataGridViewCellStyle21;
+            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column11.DefaultCellStyle = dataGridViewCellStyle10;
+            this.Column11.Frozen = true;
             this.Column11.HeaderText = "単　価";
             this.Column11.Name = "Column11";
             this.Column11.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1570,8 +1573,9 @@
             // 
             // Column12
             // 
-            dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.Column12.DefaultCellStyle = dataGridViewCellStyle22;
+            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column12.DefaultCellStyle = dataGridViewCellStyle11;
+            this.Column12.Frozen = true;
             this.Column12.HeaderText = "金　額";
             this.Column12.Name = "Column12";
             this.Column12.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -1612,7 +1616,6 @@
             this.tabPage1.ResumeLayout(false);
             this.panel3.ResumeLayout(false);
             this.panel3.PerformLayout();
-            this.TabCollections.ResumeLayout(false);
             this.groupBox3.ResumeLayout(false);
             this.groupBox3.PerformLayout();
             this.groupBox2.ResumeLayout(false);
@@ -1624,6 +1627,7 @@
             this.groupBox1.ResumeLayout(false);
             this.groupBox1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.dgvAllDisplay)).EndInit();
+            this.TabCollections.ResumeLayout(false);
             this.ResumeLayout(false);
 
         }
@@ -1724,6 +1728,15 @@
         private System.Windows.Forms.Label label15;
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn12;
+        private CustomControls.GroupBoxEx groupBox5;
+        private System.Windows.Forms.TextBox textBox3;
+        private System.Windows.Forms.Label label20;
+        private System.Windows.Forms.Label label19;
+        private System.Windows.Forms.Label label22;
+        private System.Windows.Forms.ComboBox comboBox1;
+        private System.Windows.Forms.ComboBox comboBox2;
+        private System.Windows.Forms.Button btnPageDelete;
+        private System.Windows.Forms.Button btnChangeCompany;
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
@@ -1734,14 +1747,5 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
-        private CustomControls.GroupBoxEx groupBox5;
-        private System.Windows.Forms.TextBox textBox3;
-        private System.Windows.Forms.Label label20;
-        private System.Windows.Forms.Label label19;
-        private System.Windows.Forms.Label label22;
-        private System.Windows.Forms.ComboBox comboBox1;
-        private System.Windows.Forms.ComboBox comboBox2;
-        private System.Windows.Forms.Button btnPageDelete;
-        private System.Windows.Forms.Button btnChangeCompany;
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs	(revision 93)
@@ -438,6 +438,7 @@
 
                 int SourceCode = 0;
                 int CompanyCode = 0;
+                int LineNo = 0;
                 int brkSourceCode = 0;
                 bool bFirstCode = true;
                 bool bFirstCompany = true;
@@ -445,6 +446,7 @@
                 {
                     SourceCode = CommonMotions.cnvInt(CurRec[(int)FrmOrderEntryList.ReadDBColumn.SourceCode]);
                     CompanyCode = CommonMotions.cnvInt(CurRec[(int)FrmOrderEntryList.ReadDBColumn.CompanyCode]);
+                    LineNo = CommonMotions.cnvInt(CurRec[(int)FrmOrderEntryList.ReadDBColumn.LedgerLine]);
                     // 工事番号のセット
                     if (brkSourceCode != SourceCode)
                     {
@@ -466,7 +468,7 @@
                     // 会社番号のセット
                     if (!bFirstCompany) strSQL += " OR";
 
-                    strSQL += string.Format(" COMPANYCODE = {0}", CompanyCode);
+                    strSQL += string.Format(" (COMPANYCODE = {0} AND LINECOUNT = {1})", CompanyCode, LineNo);
                     
                     bFirstCompany = false;
                 }
@@ -486,18 +488,16 @@
         /// <returns></returns>
         private bool CreateNewOrderData()
         {
-            //IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
             IOConstructionLedgerDetail DetailDB = new IOConstructionLedgerDetail();
             IOPurchaseOrder OrderDB = new IOPurchaseOrder();
             try
             {
-                //if (m_DetailList.Count == 0) return false;
+                if (m_DetailList.Count == 0) return false;
 
                 // 対象データSQL作成
                 string strSQL = string.Empty;
                 CreateNewDataSQL(ref strSQL);
                 // 工事詳細台帳データ読込
-                //List<ConstructionBudgetDetail> DetailList = new List<ConstructionBudgetDetail>();
                 List<ConstructionLedgerDetail> DetailList = new List<ConstructionLedgerDetail>();
                 if (!DetailDB.SelectAction(strSQL, ref DetailList)) return false;
                 if (DetailList.Count == 0) return false;
@@ -510,9 +510,7 @@
                 bool binit = true;
                 int Break_CompanyCode = 0;
                 double Break_Total = 0;
-                //List<ConstructionBudgetDetail> SumBuffer = new List<ConstructionBudgetDetail>();
                 List<ConstructionLedgerDetail> SumBuffer = new List<ConstructionLedgerDetail>();
-                //foreach (ConstructionBudgetDetail DetailRec in DetailList)
                 foreach (ConstructionLedgerDetail DetailRec in DetailList)
                 {
                     // 1件目はバッファへセットして処理しない
@@ -606,7 +604,6 @@
         /// </summary>
         /// <param name="inputpage"></param>
         /// <param name="DetailRec"></param>
-        //private bool SetConstructionBudget(PurchaseOrderInputPage inputpage, List<ConstructionBudgetDetail> DetailList, int PageCount)
         private bool SetConstructionBudget(PurchaseOrderInputPage inputpage, List<ConstructionLedgerDetail> DetailList, int PageCount)
         {
             try
@@ -893,6 +890,7 @@
                     GetRow.Cells[(int)DispDetailGridColumn.UnitPrice].Value = DetailRec.UnitPrice.ToString("#,#");	            // 単価
                     GetRow.Cells[(int)DispDetailGridColumn.PriceValue].Value = DetailRec.OrdersLinePrice.ToString("#,0");       // 金額
                     GetRow.Cells[(int)DispDetailGridColumn.SourceCode].Value = DetailRec.SourceCode;                            // 元工事番号
+                    GetRow.Cells[(int)DispDetailGridColumn.LedgerLine].Value = DetailRec.SourceLineCnt;                         // 元台帳行番号
 
                     // 金額集計
                     PriceValueValue += DetailRec.OrdersLinePrice;
@@ -941,6 +939,7 @@
                 string strSQL = "SELECT COMPANYCODE, SUM(EXECUTIONAMOUNT) FROM CONSTRUCTIONLEDGERDETAIL";
                 strSQL += string.Format(" WHERE CONSTRUCTIONCODE = {0}", m_ConstructionCode);
                 strSQL += string.Format(" AND GROUPCOUNT = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
+                strSQL += string.Format(" AND PURCHASEORDERFLG = {0}", (int)CommonDefine.PurchaseOrderFlg.Making);
                 strSQL += " GROUP BY COMPANYCODE ORDER BY COMPANYCODE";
                 ArrayList arList = new ArrayList();
                 LedgerDDB.ExecuteReader(strSQL, ref arList);
@@ -1544,7 +1543,9 @@
                     DataGridViewRow GetRow = DataTab.Group1DataGridView.Rows[i];
                     // 文字が設定されていない場合は無効行
                     if (CommonMotions.cnvString(GetRow.Cells[(int)DispDetailGridColumn.FirstName].Value).Length == 0 &&
-                        CommonMotions.cnvString(GetRow.Cells[(int)DispDetailGridColumn.SecondName].Value).Length == 0) continue;
+                        CommonMotions.cnvString(GetRow.Cells[(int)DispDetailGridColumn.SecondName].Value).Length == 0 &&
+                        CommonMotions.cnvInt(GetRow.Cells[(int)DispDetailGridColumn.Quantity].Value) == 0 &&
+                        CommonMotions.cnvDouble(GetRow.Cells[(int)DispDetailGridColumn.PriceValue].Value) == 0) continue;
 
                     PurchaseOrderDetail DatailRec = new PurchaseOrderDetail();
                     DatailRec.ConstructionCode = m_ConstructionCode;	                                                            // 工事番号
@@ -1560,6 +1561,7 @@
                     DatailRec.UnitPrice = CommonMotions.cnvInt(GetRow.Cells[(int)DispDetailGridColumn.UnitPrice].Value);	        // 単価
                     DatailRec.OrdersLinePrice = CommonMotions.cnvDouble(GetRow.Cells[(int)DispDetailGridColumn.PriceValue].Value);  // 金額
                     DatailRec.SourceCode = CommonMotions.cnvInt(GetRow.Cells[(int)DispDetailGridColumn.SourceCode].Value);          // 元工事番号
+                    DatailRec.SourceLineCnt = CommonMotions.cnvInt(GetRow.Cells[(int)DispDetailGridColumn.LedgerLine].Value);       // 元台帳行番号
 
                     // データ書込み
                     if (!DetailDB.InsertAction(DatailRec, false)) return false;
@@ -1677,7 +1679,7 @@
                     strSQL += string.Format(" AND COMPANYCODE = {0}", DataTab.OrderCompanyCode);
                     //strSQL += string.Format(" AND EXECUTIONAMOUNT = {0}", PriceVal);
                     if (LedgerLine != 0) strSQL += string.Format(" AND LINECOUNT = {0}", LedgerLine);
-                    if (!LDetailDB.UpdateFeild(strSQL, TargetField, 1, false))
+                    if (!LDetailDB.UpdateFeild(strSQL, TargetField, (int)CommonDefine.PurchaseOrderFlg.Making, false))
                     {
                         LogicalErrorMessage("注文書データ：注文書作成フラグ更新に失敗しました。", "更新エラー", CommonMotions.GetMethodName());
                         return false;
@@ -1745,20 +1747,25 @@
                 OrderDB.connect(); OrderDB.beginTran();
                 DetailDB.connect(); DetailDB.beginTran();
 
-                // 削除する
-                string strDel = OrderDB.CreatePrimarykeyString(m_ConstructionCode);
-                if (!OrderDB.DeleteAction(strDel, false))
+                for (int i = 0; i < m_TabPageList.Count; i++)
                 {
-                    OrderDB.rollback();
-                    return false;
+                    PurchaseOrderInputPage DataTab = m_TabPageList[i];
+                    int SeqCnt = DataTab.SeqNo;
+
+                    // 削除する
+                    string strDel = OrderDB.CreatePrimarykeyString(m_ConstructionCode, SeqCnt);
+                    if (!OrderDB.DeleteAction(strDel, false))
+                    {
+                        OrderDB.rollback();
+                        return false;
+                    }
+                    if (!DetailDB.DeleteAction(strDel, false))
+                    {
+                        OrderDB.rollback();
+                        DetailDB.rollback();
+                        return false;
+                    }
                 }
-                if (!DetailDB.DeleteAction(strDel, false))
-                {
-                    OrderDB.rollback();
-                    DetailDB.rollback();
-                    return false;
-                }
-
                 OrderDB.commit();
                 DetailDB.commit();
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs	(revision 93)
@@ -428,7 +428,7 @@
                 string strSQL = "SELECT * FROM";
                 strSQL += string.Format(" (SELECT COUNT(*) FROM PURCHASEORDER A1 WHERE CONSTRUCTIONCODE = {0}) A,", TargetCode);
                 //strSQL += string.Format(" (SELECT COUNT(*) FROM PURCHASEORDER B1 WHERE CONSTRUCTIONCODE = {0} AND PRINTOUTDATE != TO_DATE('0001/01/01')) B", TargetCode);
-                strSQL += string.Format(" (SELECT COUNT(*) FROM PURCHASEORDER B1 WHERE CONSTRUCTIONCODE = {0} AND PRINTOUTDATE != STR_TO_DATE('0001/01/01')) B", TargetCode);
+                strSQL += string.Format(" (SELECT COUNT(*) FROM PURCHASEORDER B1 WHERE CONSTRUCTIONCODE = {0} AND DATE(PRINTOUTDATE) != STR_TO_DATE('0001/01/01', '%Y/%m/%d')) B", TargetCode);
                 ArrayList arList = new ArrayList();
                 if (!OrderDB.ExecuteReader(strSQL, ref arList)) return;
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs	(revision 93)
@@ -2935,7 +2935,7 @@
                     dt = new DateTime( yyyy, mm, 1);
 
                     sql = ioLdgExcute.CreatePrimarykeyString(m_nLeaderConstructionCode, lstDetail[0].GroupCount, lstDetail[0].LineCount);
-                    sql += string.Format(" AND TargetMonth = STR_TO_DATE('{0}', '%Y%m%d') ", dt.ToString("yyyyMMdd"));
+                    sql += string.Format(" AND DATE(TargetMonth) = STR_TO_DATE('{0}', '%Y%m%d') ", dt.ToString("yyyyMMdd"));
 
                     if (ioLdgExcute.SelectAction(sql, ref lstExcute) == false)
                     {
@@ -2969,7 +2969,7 @@
 
                 // 当該月の請求金額のレコードがあるか取得してみる
                 sql = ioLdgExcute.CreatePrimarykeyString(m_nLeaderConstructionCode, lstDetail[0].GroupCount, lstDetail[0].LineCount);
-                sql += string.Format(" AND TargetMonth = STR_TO_DATE('{0}', '%Y%m%d') ", dt.ToString("yyyyMMdd"));
+                sql += string.Format(" AND DATE(TargetMonth) = STR_TO_DATE('{0}', '%Y%m%d') ", dt.ToString("yyyyMMdd"));
                 if (ioLdgExcute.SelectAction(sql, ref lstExcute) == false)
                 {
                     return false;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SubConstrRegist/FrmSubConstrRegistAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SubConstrRegist/FrmSubConstrRegistAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SubConstrRegist/FrmSubConstrRegistAuxiliary.cs	(revision 93)
@@ -808,7 +808,7 @@
                 strSQL += " LEFT JOIN PERSONINCHARGEMASTER B ON B.PERSONCODE = A.PERSONCODE";
                 strSQL += " LEFT JOIN DEPARTMENTMASTER C ON C.DEPARTMENTCODE = B.DEPARTMENTCODE";
                 strSQL += string.Format(" WHERE A.PersonCode = {0}", m_PersonCode);
-                strSQL += string.Format(" AND A.CreateDate = STR_TO_DATE('{0}','%Y/%m/%d')", m_CreateDate.ToShortDateString());
+                strSQL += string.Format(" AND DATE(A.CreateDate) = STR_TO_DATE('{0}','%Y/%m/%d')", m_CreateDate.ToShortDateString());
                 strSQL += string.Format(" AND A.SeqNo = {0}", m_SeqNo);
 
                 if (!crDB.ExecuteReader(strSQL, ref crList)) return false;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Security/FrmSecurity.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Security/FrmSecurity.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Security/FrmSecurity.cs	(revision 93)
@@ -91,7 +91,7 @@
         /// データ表示定義
         /// </summary>
         private KeyValuePair<int, string>[] s_ConfigurationArray = {
-                                                    //new KeyValuePair<int, string>(-1, "基　本　処　理"),                                                  // ----- タイトル
+                                                    //new KeyValuePair<int, string>(-1, "基　本　処　理"),                                                   // ----- タイトル
                                                     //new KeyValuePair<int, string>((int)ClsExcute.SubFormExecuteNo.ActionSchdule, string.Empty),             // 203:行動予定入力
                                                     //new KeyValuePair<int, string>((int)ClsExcute.SubFormExecuteNo.VehicleSchdule, string.Empty),            // 204:車両予約入力
                                                     new KeyValuePair<int, string>(-1, "共　通　処　理"),                                                    // ----- タイトル
@@ -98,7 +98,7 @@
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.ConstructionList, string.Empty),          //  1:工事情報一覧
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.ApprovalDocumentList, string.Empty),      //  7:承認申請一覧
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.ConstructionCopyList, string.Empty),      //  8:工事案件コピー機能
-                                                    new KeyValuePair<int, string>(-1, "受　注　管　理"),                                                  // ----- タイトル
+                                                    new KeyValuePair<int, string>(-1, "受　注　管　理"),                                                    // ----- タイトル
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.ConstructionBaseInfo, string.Empty),      //  2:工事情報入力
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.EstimateInput, string.Empty),             //  3:積算見積入力
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.EstimatePrint, string.Empty),             //  4:積算見積書印刷
@@ -105,9 +105,10 @@
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.EstimateBudget, string.Empty),            //  5:積算予算書入力
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.OrderJoin, string.Empty),                 // 20:工事結合
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.ConstructionSplit, string.Empty),         // 21:工事分割
-                                                    new KeyValuePair<int, string>(-1, "日次（施工）管理"),                                                // ----- タイトル
+                                                    new KeyValuePair<int, string>(-1, "日次（施工）管理"),                                                  // ----- タイトル
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.DepartmentExpenssList, string.Empty),     // 11:部署別台帳一覧
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.ConstructionLedgerList, string.Empty),    // 12:工事詳細台帳一覧
+                                                    new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.PriceOfBudget, string.Empty),             // 37:台帳状況確認画面
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.ConstructionLedger, string.Empty),        // 13:工事詳細台帳
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.DRList, string.Empty),                    // 15:工事日報－一覧
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.DRConstruction, string.Empty),            // 16:工事日報入力
@@ -114,16 +115,16 @@
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.Proceedings, string.Empty),               // 17:打合せ議事録入力
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.TAndPCosts, string.Empty),                // 14:交通費及び購入品入力
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.DRWork, string.Empty),                    // 18:出勤日報
-                                                    new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.MaterialList, string.Empty),              // 23:資材一覧
+                                                	new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.MaterialList, string.Empty),              // 23:資材一覧
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.MaterialHistory, string.Empty),           // 24:資材履歴画面
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.MaterialCountEntry, string.Empty),        // 25:資材数変更画面
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.MaterialReserveEntry, string.Empty),      // 26:資材貸出
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.MaterialReturnEntry, string.Empty),       // 27:資材返却
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.MaterialSelect, string.Empty),            // 28;資材選択
-                                                    new KeyValuePair<int, string>(-1, "月次（施工）管理"),                                                // ----- タイトル
+                                                    new KeyValuePair<int, string>(-1, "月次（施工）管理"),                                                  // ----- タイトル
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.RequestSummaryList, string.Empty),        // 29:請求まとめ
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.PaymentConfirmation, string.Empty),       // 30:入金確認
-                                                    new KeyValuePair<int, string>(-1, "書　類　管　理"),                                                  // ----- タイトル
+                                                    new KeyValuePair<int, string>(-1, "書　類　管　理"),                                                    // ----- タイトル
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.ConstructionBudget, string.Empty),        //  6:工事予算書入力
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry, string.Empty),        //  9:注文書入力
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint, string.Empty),        // 10:注文書印刷
@@ -133,7 +134,7 @@
                                                     new KeyValuePair<int, string>(-1, "各種提出書類"),                                                      // ----- タイトル
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.CostomerRegist, string.Empty),            // 34:発注者登録申請
                                                     new KeyValuePair<int, string>((int)ClsExcute.ProcessExecuteNo.SubConstrRegist, string.Empty),           // 36:協力会社登録申請
-                                                    new KeyValuePair<int, string>(-1, "マスタメンテナンス"),                                              // ----- タイトル
+                                                    new KeyValuePair<int, string>(-1, "マスタメンテナンス"),                                                // ----- タイトル
                                                     new KeyValuePair<int, string>((int)ClsExcute.MaintenanceExecuteNo.System, string.Empty),                // システム管理登録
                                                     new KeyValuePair<int, string>((int)ClsExcute.MaintenanceExecuteNo.Security, string.Empty),              // セキュリティ区分登録
                                                     new KeyValuePair<int, string>((int)ClsExcute.MaintenanceExecuteNo.ApprovalRoute, string.Empty),         // 承認経路登録
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmActionCalendar.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmActionCalendar.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmActionCalendar.cs	(revision 93)
@@ -452,7 +452,7 @@
 
                 string wrkSQL = "SELECT Count(*) FROM HolidayCalenderMaster";
                 //wrkSQL += string.Format(" Where TO_DATE('{0}','YYYY/MM/DD') <= Holiday And Holiday <= TO_DATE('{1}','YYYY/MM/DD')"
-                wrkSQL += string.Format(" Where STR_TO_DATE('{0}','%Y/%m/%d') <= Holiday And Holiday <= STR_TO_DATE('{1}','%Y/%m/%d')"
+                wrkSQL += string.Format(" Where STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(Holiday) And DATE(Holiday) <= STR_TO_DATE('{1}','%Y/%m/%d')"
                                         , wrkStratDate.ToShortDateString(), wrkEndDate.ToShortDateString());
                 ArrayList arData = new ArrayList();
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmPriceOfBudget.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmPriceOfBudget.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmPriceOfBudget.cs	(revision 93)
@@ -567,6 +567,7 @@
 
                 bool FirstFlg = true;
                 int BreakKey = -1;
+                int ino = 1;
                 foreach (object[] objGetArry in DatArList)
                 {
                     int CompFlg = CommonMotions.cnvInt(objGetArry[0]);
@@ -596,10 +597,10 @@
                     m_TotalArea[(int)GridColumn.CompanyExpeses] += CurTotalArea[(int)GridColumn.CompanyExpeses];
                     m_TotalArea[(int)GridColumn.DepartmentExpeses] += CurTotalArea[(int)GridColumn.DepartmentExpeses];
                     m_TotalArea[(int)GridColumn.SaleseExpeses] += CurTotalArea[(int)GridColumn.SaleseExpeses];
+
+                    // 合計行表示
+                    DisplayTotalRow(ino++, CurTotalArea);
                 }
-
-                // 合計行表示
-                DisplayTotalRow((int)RowTitleNum.DataType3, CurTotalArea);
             }
             catch (System.Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmVehicleCalendar.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmVehicleCalendar.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmVehicleCalendar.cs	(revision 93)
@@ -487,7 +487,7 @@
 
                 string wrkSQL = "SELECT Count(*) FROM HolidayCalenderMaster";
                 //wrkSQL += string.Format(" Where TO_DATE('{0}','YYYY/MM/DD') <= Holiday And Holiday <= TO_DATE('{1}','YYYY/MM/DD')"
-                wrkSQL += string.Format(" Where STR_TO_DATE('{0}','%Y/%m/%d') <= Holiday And Holiday <= STR_TO_DATE('{1}','%Y/%m/%d')"
+                wrkSQL += string.Format(" Where STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(Holiday) And DATE(Holiday) <= STR_TO_DATE('{1}','%Y/%m/%d')"
                                         , wrkStratDate.ToShortDateString(), wrkEndDate.ToShortDateString());
                 ArrayList arData = new ArrayList();
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs	(revision 93)
@@ -712,13 +712,13 @@
                                                                 },
                                                                 { (int)ClsExcute.MaintenanceExecuteNo.Calender,
                                                                     (int)ClsExcute.MaintenanceExecuteNo.VehicleMaster,
-                                                                    0,
-                                                                    0
+                                                                    (int)ClsExcute.MaintenanceExecuteNo.MaterialKind,
+                                                                    (int)ClsExcute.MaintenanceExecuteNo.MaterialItem
                                                                 },
                                                                 { (int)ClsExcute.MaintenanceExecuteNo.SaleSalesGraphData,
                                                                     0,
                                                                     0,
-                                                                    0
+                                                                    (int)ClsExcute.MaintenanceExecuteNo.SalesConfirm
                                                                 },
         };
         #endregion
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 93)
@@ -4214,7 +4214,7 @@
 
                 strSQL += string.Format(" WHERE A.TYINGFLG = {0}", (int)CommonDefine.BaseInfoTyingFlg.Tying);
                 //strSQL += " AND (A.BILLINGDATE = TO_DATE('0001/01/01') OR A.BILLINGDATE > ADD_MONTHS(sysdate, -1))";
-                strSQL += " AND (A.BILLINGDATE = STR_TO_DATE('0001/01/01', '%Y/%m/%d') OR A.BILLINGDATE > DATE_ADD(NOW(), INTERVAL -1 MONTH))";
+                strSQL += " AND (DATE(A.BILLINGDATE) = STR_TO_DATE('0001/01/01', '%Y/%m/%d') OR DATE(A.BILLINGDATE) > DATE_ADD(NOW(), INTERVAL -1 MONTH))";
                 strSQL += string.Format(" AND A.ConstructionStatusFlg <> {0} AND A.ConstructionStatusFlg < {1}", NotOrder, BillComp);
 
                 //strSQL += CreateFluctuationProjectsSQL();
@@ -4244,7 +4244,7 @@
                 strSQL += string.Format(" AND A.ConstructionStatusFlg <> {0}", NotOrder);
                 strSQL += " AND H.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE";
                 //strSQL += " AND I.CONSTRUCTIONCODE = H.FLUCTUATIONCODE AND (I.BILLINGDATE = TO_DATE('0001/01/01') OR I.BILLINGDATE > ADD_MONTHS(sysdate, -1)) ";
-                strSQL += " AND I.CONSTRUCTIONCODE = H.FLUCTUATIONCODE AND (I.BILLINGDATE = STR_TO_DATE('0001/01/01', '%Y/%m/%d') OR I.BILLINGDATE > DATE_ADD(NOW(), INTERVAL -1 MONTH)) ";
+                strSQL += " AND I.CONSTRUCTIONCODE = H.FLUCTUATIONCODE AND (DATE(I.BILLINGDATE) = STR_TO_DATE('0001/01/01', '%Y/%m/%d') OR DATE(I.BILLINGDATE) > DATE_ADD(NOW(), INTERVAL -1 MONTH)) ";
                 strSQL += ")";
 
                 strSQL += " ORDER BY 2 Desc, 14 Desc, 15 Asc, 17 Asc, 3 ASC";
@@ -4659,7 +4659,7 @@
 
                 // 工事基本情報取得
                 if (!cbiDB.ExecuteReader(strSQL, ref arData)) return;
-                if (arData.Count == 0) return;
+                //if (arData.Count == 0) return;
 
                 ProgressCompletionOfConstruction.Visible = true;
                 ProgressCompletionOfConstruction.Minimum = 0;
@@ -4676,6 +4676,87 @@
                 lblCompTotal03.Visible = false;
                 lblCompTotal04.Visible = false;
 
+                // グリッド表示
+                if (arData.Count != 0) DispCompOfConstrGrid(cbiDB, arData);
+
+                // 行や列を追加したり、セルに値を設定するときは、自動サイズ設定しない。
+                dgvCompletionOfConstruction.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
+                dgvCompletionOfConstruction.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
+                dgvCompletionOfConstruction.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+
+                // ProgressBarの値を変更する
+                ProgressCompletionOfConstruction.Value = ProgressCompletionOfConstruction.Maximum;
+                ProgressCompletionOfConstruction.Update();
+                ProgressCompletionOfConstruction.Visible = false;
+
+                // 金額表示
+                long[] Total01 = CalcOrdersDecisionPrice((numUDCompletion.Value - 1));
+                long[] Total02 = CalcOrdersDecisionPrice(numUDCompletion.Value);
+                lblCompTotal01.Text = @"\" + (Total01[0] + Total01[1]).ToString("#,0") + "-";
+                lblCompTotal02.Text = @"\" + (Total02[0] + Total02[1]).ToString("#,0") + "-";
+                lblCompTotal03.Text = @"\" + Total02[0].ToString("#,0") + "-";
+                lblCompTotal04.Text = @"\" + Total02[1].ToString("#,0") + "-";
+
+                // 最高機密管理者のみ金額が表示される
+                bool bSelFlg = false;
+                // 新セキュリティデータ対応済みかを確認する
+                if (CommonMotions.LoginUserData.SecCode == 0)
+                {
+                    if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement ||
+                        CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key)
+                        bSelFlg = true;
+                }
+                else
+                {
+                    if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode
+                        || CommonMotions.LoginUserSecurity.SecRank == CommonDefine.SecurityRankList[(int)CommonDefine.SecurityRankPos.SpecialAuthority].Key)
+                        bSelFlg = true;
+                }
+
+                if (bSelFlg)
+                {
+                    lblCompTitle01.Visible = true;
+                    lblCompTitle02.Visible = true;
+                    lblCompTitle03.Visible = true;
+                    lblCompTitle04.Visible = true;
+                    lblCompTotal01.Visible = true;
+                    lblCompTotal02.Visible = true;
+                    lblCompTotal03.Visible = true;
+                    lblCompTotal04.Visible = true;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                // 読込時データカウント取得
+                if (CommonDefine.s_MaxInitLineCount > dgvCompletionOfConstruction.RowCount)
+                    dgvCompletionOfConstruction.RowCount += (CommonDefine.s_MaxInitLineCount - dgvCompletionOfConstruction.RowCount);
+                foreach (DataGridViewColumn wrkCol in dgvCompletionOfConstruction.Columns)
+                    wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
+
+                // グリッドソート実行
+                GridSortExcute(dgvCompletionOfConstruction);
+                dgvCompletionOfConstruction.ResumeLayout();
+
+                cbiDB.close(); cbiDB = null;
+                picDB.close(); picDB = null;
+            }
+        }
+        #endregion
+
+        #region 完了案件一覧グリッド表示
+        /// <summary>
+        /// 完了案件一覧グリッド表示
+        /// </summary>
+        /// <param name="cbiDB"></param>
+        /// <param name="arData"></param>
+        private void DispCompOfConstrGrid(IOConstructionBaseInfo cbiDB, ArrayList arData)
+        {
+            try
+            {
                 dgvCompletionOfConstruction.SuspendLayout();
 
                 // 1件目取得
@@ -4760,71 +4841,12 @@
                     ProgressCompletionOfConstruction.Value = ino++;
                     ProgressCompletionOfConstruction.Update();
                 }
-                // 行や列を追加したり、セルに値を設定するときは、自動サイズ設定しない。
-                dgvCompletionOfConstruction.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
-                dgvCompletionOfConstruction.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
-                dgvCompletionOfConstruction.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
 
-                // ProgressBarの値を変更する
-                ProgressCompletionOfConstruction.Value = ProgressCompletionOfConstruction.Maximum;
-                ProgressCompletionOfConstruction.Update();
-                ProgressCompletionOfConstruction.Visible = false;
-
-                // 金額表示
-                long[] Total01 = CalcOrdersDecisionPrice((numUDCompletion.Value - 1));
-                long[] Total02 = CalcOrdersDecisionPrice(numUDCompletion.Value);
-                lblCompTotal01.Text = @"\" + (Total01[0] + Total01[1]).ToString("#,0") + "-";
-                lblCompTotal02.Text = @"\" + (Total02[0] + Total02[1]).ToString("#,0") + "-";
-                lblCompTotal03.Text = @"\" + Total02[0].ToString("#,0") + "-";
-                lblCompTotal04.Text = @"\" + Total02[1].ToString("#,0") + "-";
-
-                // 最高機密管理者のみ金額が表示される
-                bool bSelFlg = false;
-                // 新セキュリティデータ対応済みかを確認する
-                if (CommonMotions.LoginUserData.SecCode == 0)
-                {
-                    if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement ||
-                        CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key)
-                        bSelFlg = true;
-                }
-                else
-                {
-                    if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode
-                        || CommonMotions.LoginUserSecurity.SecRank == CommonDefine.SecurityRankList[(int)CommonDefine.SecurityRankPos.SpecialAuthority].Key)
-                        bSelFlg = true;
-                }
-
-                if (bSelFlg)
-                {
-                    lblCompTitle01.Visible = true;
-                    lblCompTitle02.Visible = true;
-                    lblCompTitle03.Visible = true;
-                    lblCompTitle04.Visible = true;
-                    lblCompTotal01.Visible = true;
-                    lblCompTotal02.Visible = true;
-                    lblCompTotal03.Visible = true;
-                    lblCompTotal04.Visible = true;
-                }
             }
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
             }
-            finally
-            {
-                // 読込時データカウント取得
-                if (CommonDefine.s_MaxInitLineCount > dgvCompletionOfConstruction.RowCount)
-                    dgvCompletionOfConstruction.RowCount += (CommonDefine.s_MaxInitLineCount - dgvCompletionOfConstruction.RowCount);
-                foreach (DataGridViewColumn wrkCol in dgvCompletionOfConstruction.Columns)
-                    wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
-
-                // グリッドソート実行
-                GridSortExcute(dgvCompletionOfConstruction);
-                dgvCompletionOfConstruction.ResumeLayout();
-
-                cbiDB.close(); cbiDB = null;
-                picDB.close(); picDB = null;
-            }
         }
         #endregion
 
@@ -5160,9 +5182,9 @@
 
                 // --------------- 会社休日データの表示(会社カレンダーは必ずあることが前提、無ければ休日が出ない)
                 //string strCalender = string.Format(" Where TO_DATE('{0}','YYYY/MM/DD') <= Holiday", ColenderStartDate.ToShortDateString());
-                string strCalender = string.Format(" Where STR_TO_DATE('{0}','%Y/%m/%d') <= Holiday", ColenderStartDate.ToShortDateString());
+                string strCalender = string.Format(" Where STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(Holiday)", ColenderStartDate.ToShortDateString());
                 //strCalender += string.Format(" And Holiday <= TO_DATE('{0}','YYYY/MM/DD')", ColenderEndDate.ToShortDateString());
-                strCalender += string.Format(" And Holiday <= STR_TO_DATE('{0}','%Y/%m/%d')", ColenderEndDate.ToShortDateString());
+                strCalender += string.Format(" And DATE(Holiday) <= STR_TO_DATE('{0}','%Y/%m/%d')", ColenderEndDate.ToShortDateString());
                 List<HolidayCalenderMaster> hcList = new List<HolidayCalenderMaster>();
                 if (!hcDB.SelectAction(strCalender, ref hcList)) return false;
                 if (hcList.Count == 0) return false;
@@ -5238,7 +5260,7 @@
 
                 // --------------- 行動予定の表示
                 List<ActionScheduleData> asdList = new List<ActionScheduleData>();
-                string strSQL = String.Format(" Where (STR_TO_DATE('{0}','%Y/%m/%d') <= TargetDate AND TargetDate <= STR_TO_DATE('{1}','%Y/%m/%d'))"
+                string strSQL = String.Format(" Where (STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(TargetDate) AND DATE(TargetDate) <= STR_TO_DATE('{1}','%Y/%m/%d'))"
                                         , ColenderStartDate.ToShortDateString(), ColenderEndDate.ToShortDateString());
                 strSQL += string.Format(" And PersonCode = {0}", iCode);
                 strSQL += " ORDER BY TargetDate ASC";
@@ -5438,7 +5460,7 @@
                 strSQL += " FROM DEPARTMENTMASTER A, PERSONINCHARGEMASTER B";
                 strSQL += " LEFT OUTER JOIN ACTIONSCHEDULEDATA C ON B.PERSONCODE = C.PERSONCODE";
                 //strSQL += String.Format(" AND (TO_DATE('{0}','YYYY/MM/DD') <= TargetDate AND TargetDate <= TO_DATE('{1}','YYYY/MM/DD'))"
-                strSQL += String.Format(" AND (STR_TO_DATE('{0}','%Y/%m/%d') <= TargetDate AND TargetDate <= STR_TO_DATE('{1}','%Y/%m/%d'))"
+                strSQL += String.Format(" AND (STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(TargetDate) AND DATE(TargetDate) <= STR_TO_DATE('{1}','%Y/%m/%d'))"
                                         , ColenderStartDate.ToShortDateString(), ColenderEndDate.ToShortDateString());
                 strSQL += " Where A.ACTIONSCHEDULEFLG = 0";
                 strSQL += " AND A.DEPARTMENTCODE = B.DEPARTMENTCODE";
@@ -5635,7 +5657,7 @@
                 strSQL += " FROM PERSONINCHARGEMASTER B";
                 strSQL += " LEFT OUTER JOIN ACTIONSCHEDULEDATA C ON B.PERSONCODE = C.PERSONCODE";
                 //strSQL += String.Format(" AND (TO_DATE('{0}','YYYY/MM/DD') <= TargetDate AND TargetDate <= TO_DATE('{1}','YYYY/MM/DD'))"
-                strSQL += String.Format(" AND (STR_TO_DATE('{0}','%Y/%m/%d') <= TargetDate AND TargetDate <= STR_TO_DATE('{1}','%Y/%m/%d'))"
+                strSQL += String.Format(" AND (STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(TargetDate) AND DATE(TargetDate) <= STR_TO_DATE('{1}','%Y/%m/%d'))"
                                         , ColenderStartDate.ToShortDateString(), ColenderEndDate.ToShortDateString());
                 strSQL += string.Format(" Where B.EmployeeClassFlg = {0}", (int)CommonDefine.EmployeeClassFlg.OutSource);
                 strSQL += " AND B.DELETEFLG = 0";
@@ -5887,7 +5909,7 @@
                 string strSQL = "SELECT * FROM VEHICLEMASTER A";
                 strSQL += " LEFT JOIN VEHICLESCHEDULEDATA B ON A.VEHICLECODE = B.VEHICLECODE";
                 //strSQL += String.Format(" AND (TO_DATE('{0}','YYYY/MM/DD') <= TargetDate AND TargetDate <= TO_DATE('{1}','YYYY/MM/DD'))"
-                strSQL += String.Format(" AND (STR_TO_DATE('{0}','%Y/%m/%d') <= TargetDate AND TargetDate <= STR_TO_DATE('{1}','%Y/%m/%d'))"
+                strSQL += String.Format(" AND (STR_TO_DATE('{0}','%Y/%m/%d') <= DATE(TargetDate) AND DATE(TargetDate) <= STR_TO_DATE('{1}','%Y/%m/%d'))"
                                         , ColenderStartDate.ToShortDateString(), ColenderEndDate.ToShortDateString());
                 strSQL += " LEFT JOIN PERSONINCHARGEMASTER C ON B.PERSONCODE = C.PERSONCODE";
                 strSQL += " WHERE VehicleScheduleFlg = 0";
Index: branches/src/ProcessManagement/ProcessManagement/ProcessManage.xlsx
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 92)
+++ branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 93)
@@ -87,14 +87,11 @@
       <SpecificVersion>False</SpecificVersion>
       <HintPath>lib\log4net.dll</HintPath>
     </Reference>
-    <Reference Include="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
-      <EmbedInteropTypes>True</EmbedInteropTypes>
+    <Reference Include="Microsoft.VisualBasic" />
+    <Reference Include="Microsoft.VisualBasic.PowerPacks, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v12.0\Microsoft.VisualBasic.PowerPacks.dll</HintPath>
     </Reference>
-    <Reference Include="Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
-      <EmbedInteropTypes>True</EmbedInteropTypes>
-    </Reference>
-    <Reference Include="Microsoft.VisualBasic" />
-    <Reference Include="Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
     <Reference Include="MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
       <SpecificVersion>False</SpecificVersion>
       <HintPath>lib\MySql.Data.dll</HintPath>
@@ -1719,6 +1716,44 @@
     <Content Include="Resources\kanriIcon.ico" />
     <Content Include="rinen.jpg" />
   </ItemGroup>
+  <ItemGroup>
+    <COMReference Include="Microsoft.Office.Core">
+      <Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid>
+      <VersionMajor>2</VersionMajor>
+      <VersionMinor>7</VersionMinor>
+      <Lcid>0</Lcid>
+      <WrapperTool>primary</WrapperTool>
+      <Isolated>False</Isolated>
+      <EmbedInteropTypes>True</EmbedInteropTypes>
+    </COMReference>
+    <COMReference Include="Microsoft.Office.Interop.Excel">
+      <Guid>{00020813-0000-0000-C000-000000000046}</Guid>
+      <VersionMajor>1</VersionMajor>
+      <VersionMinor>8</VersionMinor>
+      <Lcid>0</Lcid>
+      <WrapperTool>primary</WrapperTool>
+      <Isolated>False</Isolated>
+      <EmbedInteropTypes>True</EmbedInteropTypes>
+    </COMReference>
+    <COMReference Include="Microsoft.Office.Interop.Word">
+      <Guid>{00020905-0000-0000-C000-000000000046}</Guid>
+      <VersionMajor>8</VersionMajor>
+      <VersionMinor>6</VersionMinor>
+      <Lcid>0</Lcid>
+      <WrapperTool>primary</WrapperTool>
+      <Isolated>False</Isolated>
+      <EmbedInteropTypes>True</EmbedInteropTypes>
+    </COMReference>
+    <COMReference Include="VBIDE">
+      <Guid>{0002E157-0000-0000-C000-000000000046}</Guid>
+      <VersionMajor>5</VersionMajor>
+      <VersionMinor>3</VersionMinor>
+      <Lcid>0</Lcid>
+      <WrapperTool>primary</WrapperTool>
+      <Isolated>False</Isolated>
+      <EmbedInteropTypes>True</EmbedInteropTypes>
+    </COMReference>
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
Index: branches/src/ProcessManagement/ProcessManagement.v12.suo
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
