Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 369)
@@ -14,7 +14,7 @@
         /// <summary>
         /// 本体バージョン
         /// </summary>
-        public static int s_SystemVersion = 227;
+        public static int s_SystemVersion = 228;
 
         /// <summary>
         /// コピー・環境バージョン
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeBaseInfoData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeBaseInfoData.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeBaseInfoData.cs	(revision 369)
@@ -153,51 +153,54 @@
                 DB25.beginTran(); DB26.beginTran(); DB27.beginTran(); DB28.beginTran(); DB29.beginTran();
 
                 bool ProcSuccess = true;
-                string strRemove = string.Empty;
-                string strRemove2 = string.Empty;
+                StringBuilder strRemove = new StringBuilder();
+                StringBuilder strRemove2 = new StringBuilder();
+                StringBuilder strSQL = new StringBuilder();
                 for (int i = 0; i < RemoveList.Count; i++)
                 {
-                    strRemove = DB01.CreatePrimarykeyString(RemoveList[i]);
-                    if (!DB01.DeleteAction(strRemove, false)) { ProcSuccess = false; break; }
-                    if (!DB02.DeleteAction(strRemove, false)) { ProcSuccess = false; break; }
+                    strRemove.Clear();
+                    strRemove.Append(DB01.CreatePrimarykeyString(RemoveList[i]));
+                    if (!DB01.DeleteAction(strRemove.ToString(), false)) { ProcSuccess = false; break; }
+                    if (!DB02.DeleteAction(strRemove.ToString(), false)) { ProcSuccess = false; break; }
 
-                    DB04.DeleteAction(strRemove, false);
-                    DB05.DeleteAction(strRemove, false);
-                    DB06.DeleteAction(strRemove, false);
-                    DB07.DeleteAction(strRemove, false);
-                    DB08.DeleteAction(strRemove, false);
-                    DB09.DeleteAction(strRemove, false);
-                    DB10.DeleteAction(strRemove, false);
-                    DB11.DeleteAction(strRemove, false);
-                    DB12.DeleteAction(strRemove, false);
-                    DB13.DeleteAction(strRemove, false);
-                    DB14.DeleteAction(strRemove, false);
-                    DB15.DeleteAction(strRemove, false);
-                    DB16.DeleteAction(strRemove, false);
-                    DB17.DeleteAction(strRemove, false);
-                    DB18.DeleteAction(strRemove, false);
-                    DB19.DeleteAction(strRemove, false);
-                    DB20.DeleteAction(strRemove, false);
-                    DB21.DeleteAction(strRemove, false);
-                    DB22.DeleteAction(strRemove, false);
-                    DB23.DeleteAction(strRemove, false);
-                    DB24.DeleteAction(strRemove, false);
-                    DB25.DeleteAction(strRemove, false);
-                    DB26.DeleteAction(strRemove, false);
-                    DB27.DeleteAction(strRemove, false);
-                    DB28.DeleteAction(strRemove, false);
-                    DB29.DeleteAction(strRemove, false);
+                    DB04.DeleteAction(strRemove.ToString(), false);
+                    DB05.DeleteAction(strRemove.ToString(), false);
+                    DB06.DeleteAction(strRemove.ToString(), false);
+                    DB07.DeleteAction(strRemove.ToString(), false);
+                    DB08.DeleteAction(strRemove.ToString(), false);
+                    DB09.DeleteAction(strRemove.ToString(), false);
+                    DB10.DeleteAction(strRemove.ToString(), false);
+                    DB11.DeleteAction(strRemove.ToString(), false);
+                    DB12.DeleteAction(strRemove.ToString(), false);
+                    DB13.DeleteAction(strRemove.ToString(), false);
+                    DB14.DeleteAction(strRemove.ToString(), false);
+                    DB15.DeleteAction(strRemove.ToString(), false);
+                    DB16.DeleteAction(strRemove.ToString(), false);
+                    DB17.DeleteAction(strRemove.ToString(), false);
+                    DB18.DeleteAction(strRemove.ToString(), false);
+                    DB19.DeleteAction(strRemove.ToString(), false);
+                    DB20.DeleteAction(strRemove.ToString(), false);
+                    DB21.DeleteAction(strRemove.ToString(), false);
+                    DB22.DeleteAction(strRemove.ToString(), false);
+                    DB23.DeleteAction(strRemove.ToString(), false);
+                    DB24.DeleteAction(strRemove.ToString(), false);
+                    DB25.DeleteAction(strRemove.ToString(), false);
+                    DB26.DeleteAction(strRemove.ToString(), false);
+                    DB27.DeleteAction(strRemove.ToString(), false);
+                    DB28.DeleteAction(strRemove.ToString(), false);
+                    DB29.DeleteAction(strRemove.ToString(), false);
 
                     if (BaseRec.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.JoinParent
                         || BaseRec.TyingFlg == (int)ConstructionBaseInfo.TyingFlgDef.Parent)
                     {
-                        DB03.DeleteAction(strRemove, false);
+                        DB03.DeleteAction(strRemove.ToString(), false);
                     }
                     else if (BaseRec.TyingFlg == (int)ConstructionBaseInfo.TyingFlgDef.Tying)
                     {
-                        strRemove2 = string.Format(" Where FluctuationCode = {0}", RemoveList[i]);
-                        strRemove2 += string.Format(" AND LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.FluctuationType);
-                        DB03.DeleteAction(strRemove2, false);
+                        strRemove2.Clear();
+                        strRemove2.AppendFormat(" Where FluctuationCode = {0}", RemoveList[i]);
+                        strRemove2.AppendFormat(" AND LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.FluctuationType);
+                        DB03.DeleteAction(strRemove2.ToString(), false);
                     }
                     else if (BaseRec.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.JoinChildren)
                     {
@@ -225,7 +228,7 @@
                     // 結合工事親確認
                     if (BaseRec.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.JoinParent)
                     {
-                        string strSQL = string.Empty;
+                        strSQL.Clear();
                         for (int i = 0; i < UpdateLinkList.Count; i++)
                         {
                             if (!DB01.UpdateFeild(UpdateLinkList[i]
@@ -236,11 +239,11 @@
                                 ProcSuccess = false;
                                 break;
                             }
-                            strSQL = string.Format("UPDATE CONSTRUCTIONBASEINFO A SET A.JOINFLG = {0}", (int)ConstructionBaseInfo.JoinFlgDef.Standard);
-                            strSQL += " WHERE A.CONSTRUCTIONCODE IN (SELECT AA.FLUCTUATIONCODE FROM CONSTRUCTIONLINK AA";
-                            strSQL += string.Format(" WHERE AA.CONSTRUCTIONCODE = {0}",UpdateLinkList[i]);
-                            strSQL += string.Format(" AND AA.LINKTYPE = {0})", (int)ConstructionLink.DataTypeDef.FluctuationType);
-                            DB01.ExecuteNonQuery(strSQL, false);
+                            strSQL.AppendFormat("UPDATE CONSTRUCTIONBASEINFO A SET A.JOINFLG = {0}", (int)ConstructionBaseInfo.JoinFlgDef.Standard);
+                            strSQL.Append(" WHERE A.CONSTRUCTIONCODE IN (SELECT AA.FLUCTUATIONCODE FROM CONSTRUCTIONLINK AA");
+                            strSQL.AppendFormat(" WHERE AA.CONSTRUCTIONCODE = {0}",UpdateLinkList[i]);
+                            strSQL.AppendFormat(" AND AA.LINKTYPE = {0})", (int)ConstructionLink.DataTypeDef.FluctuationType);
+                            DB01.ExecuteNonQuery(strSQL.ToString(), false);
                         }
                     }
                 }
@@ -293,14 +296,15 @@
         {
             try
             {
-                string strSQL = "SELECT FLUCTUATIONCODE FROM CONSTRUCTIONLINK";
-                strSQL += LinkDB.CreatePrimarykeyString(RemoveCode);
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append("SELECT FLUCTUATIONCODE FROM CONSTRUCTIONLINK");
+                strSQL.Append(LinkDB.CreatePrimarykeyString(RemoveCode));
                 if (bJoin)
-                    strSQL += string.Format(" AND LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.JoinType);
+                    strSQL.AppendFormat(" AND LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.JoinType);
                 else
-                    strSQL += string.Format(" AND LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.FluctuationType);
+                    strSQL.AppendFormat(" AND LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.FluctuationType);
                 ArrayList arList = new ArrayList();
-                if (!LinkDB.ExecuteReader(strSQL, ref arList)) return;
+                if (!LinkDB.ExecuteReader(strSQL.ToString(), ref arList)) return;
                 foreach (object[] CurRec in arList)
                 {
                     RemoveList.Add(CommonMotions.cnvInt(CurRec[0]));
@@ -321,14 +325,15 @@
         {
             try
             {
-                string strSQL = "SELECT B.CONSTRUCTIONCODE, COUNT(*) FROM CONSTRUCTIONLINK A, CONSTRUCTIONLINK B";
-                strSQL += string.Format(" WHERE A.FLUCTUATIONCODE = {0}", RemoveCode);
-                strSQL += string.Format(" AND A.LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.FluctuationType);
-                strSQL += " AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE";
-                strSQL += " GROUP BY B.CONSTRUCTIONCODE";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append("SELECT B.CONSTRUCTIONCODE, COUNT(*) FROM CONSTRUCTIONLINK A, CONSTRUCTIONLINK B");
+                strSQL.AppendFormat(" WHERE A.FLUCTUATIONCODE = {0}", RemoveCode);
+                strSQL.AppendFormat(" AND A.LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.FluctuationType);
+                strSQL.Append(" AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE");
+                strSQL.Append(" GROUP BY B.CONSTRUCTIONCODE");
 
                 ArrayList arList = new ArrayList();
-                if (!LinkDB.ExecuteReader(strSQL, ref arList)) return 0;
+                if (!LinkDB.ExecuteReader(strSQL.ToString(), ref arList)) return 0;
 
                 object[] CurRec = (object[])arList[0];
 
@@ -358,13 +363,14 @@
 
                 DataList.Clear();
                 // 結合工事表示
-                string strParent = "SELECT DISTINCT(A.CONSTRUCTIONCODE), B.REQUESTEDDATE, 0, 0, 0, 0, F.DETAILSTRING, B.JOINFLG";
-                strParent += " FROM CONSTRUCTIONLINK A";
-                strParent += " LEFT OUTER JOIN CONSTRUCTIONBASEINFODETAIL F ON F.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE";
-                strParent += string.Format(" AND F.DETAILNO = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstructionName);
-                strParent += ", CONSTRUCTIONBASEINFO B";
+                StringBuilder strParent = new StringBuilder();
+                strParent.Append("SELECT DISTINCT(A.CONSTRUCTIONCODE), B.REQUESTEDDATE, 0, 0, 0, 0, F.DETAILSTRING, B.JOINFLG");
+                strParent.Append(" FROM CONSTRUCTIONLINK A");
+                strParent.Append(" LEFT OUTER JOIN CONSTRUCTIONBASEINFODETAIL F ON F.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE");
+                strParent.AppendFormat(" AND F.DETAILNO = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstructionName);
+                strParent.Append(", CONSTRUCTIONBASEINFO B");
 
-                strParent += string.Format(" WHERE A.FLUCTUATIONCODE = {0}", SearchCode);
+                strParent.AppendFormat(" WHERE A.FLUCTUATIONCODE = {0}", SearchCode);
 
                 switch (FuncCnt)
                 {
@@ -371,18 +377,18 @@
                     case 0:
                     case 2:
                         // 結合タイプよりデータを検索
-                        strParent += string.Format(" AND A.LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.JoinType);
+                        strParent.AppendFormat(" AND A.LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.JoinType);
                         break;
                     case 1:
                         // 増減タイプよりデータを検索
-                        strParent += string.Format(" AND A.LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.FluctuationType);
+                        strParent.AppendFormat(" AND A.LINKTYPE = {0}", (int)ConstructionLink.DataTypeDef.FluctuationType);
                         break;
                 }
 
-                strParent += " AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE";
-                strParent += string.Format(" AND B.CONSTRUCTIONSTATUSFLG != {0}", iStatus);
+                strParent.Append(" AND B.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE");
+                strParent.AppendFormat(" AND B.CONSTRUCTIONSTATUSFLG != {0}", iStatus);
 
-                if (!BaseDB.ExecuteReader(strParent, ref DataList))
+                if (!BaseDB.ExecuteReader(strParent.ToString(), ref DataList))
                 {
                     FuncCnt = 3;
                     return;
@@ -428,9 +434,10 @@
             try
             {
                 // 対象の工事情報を取得する
-                string strSQL = BaseDB.CreatePrimarykeyString(TargetCode);
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(BaseDB.CreatePrimarykeyString(TargetCode));
                 ConstructionBaseInfo BaseRec = new ConstructionBaseInfo();
-                if (!BaseDB.SelectAction(strSQL, ref BaseRec, false)) return false;
+                if (!BaseDB.SelectAction(strSQL.ToString(), ref BaseRec, false)) return false;
 
                 // 結合工事では無ければ処理しない
                 if (BaseRec.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.Standard) return true;
@@ -439,16 +446,17 @@
                 int ParentCode = ClsProcessExist.GetParentConstrCode(TargetCode);
 
                 // 結合している工事番号をすべて取得する
-                strSQL = "SELECT A.CONSTRUCTIONCODE, A.FLUCTUATIONCODE, D.JOINFLG, B.FLUCTUATIONCODE, C.JOINFLG FROM CONSTRUCTIONLINK A";
-                strSQL += " LEFT JOIN CONSTRUCTIONLINK B ON B.CONSTRUCTIONCODE = A.FLUCTUATIONCODE";
-                strSQL += " LEFT JOIN CONSTRUCTIONBASEINFO C ON C.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
-                strSQL += ", CONSTRUCTIONBASEINFO D";
-                strSQL += string.Format(" WHERE A.CONSTRUCTIONCODE = {0}", ParentCode);
-                strSQL += " AND D.CONSTRUCTIONCODE = A.FLUCTUATIONCODE";
-                strSQL += " ORDER BY D.JOINFLG ASC, C.JOINFLG ASC";
+                strSQL.Clear();
+                strSQL.Append("SELECT A.CONSTRUCTIONCODE, A.FLUCTUATIONCODE, D.JOINFLG, B.FLUCTUATIONCODE, C.JOINFLG FROM CONSTRUCTIONLINK A");
+                strSQL.Append(" LEFT JOIN CONSTRUCTIONLINK B ON B.CONSTRUCTIONCODE = A.FLUCTUATIONCODE");
+                strSQL.Append(" LEFT JOIN CONSTRUCTIONBASEINFO C ON C.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
+                strSQL.Append(", CONSTRUCTIONBASEINFO D");
+                strSQL.AppendFormat(" WHERE A.CONSTRUCTIONCODE = {0}", ParentCode);
+                strSQL.Append(" AND D.CONSTRUCTIONCODE = A.FLUCTUATIONCODE");
+                strSQL.Append(" ORDER BY D.JOINFLG ASC, C.JOINFLG ASC");
 
                 ArrayList arList = new ArrayList();
-                if (!BaseDB.ExecuteReader(strSQL, ref arList, false)) return false;
+                if (!BaseDB.ExecuteReader(strSQL.ToString(), ref arList, false)) return false;
                 if (arList.Count == 0) return false;
 
                 List<int> CodeList = new List<int>();
@@ -464,18 +472,19 @@
                 }
 
                 // 工事進捗を取得する
-                strSQL = "SELECT MIN(CONSTRUCTIONSTATUSFLG), MAX(CONSTRUCTIONSTATUSFLG)";
-                strSQL += " FROM CONSTRUCTIONBASEINFO";
-                strSQL += " WHERE CONSTRUCTIONCODE IN (";
+                strSQL.Clear();
+                strSQL.Append("SELECT MIN(CONSTRUCTIONSTATUSFLG), MAX(CONSTRUCTIONSTATUSFLG)");
+                strSQL.Append(" FROM CONSTRUCTIONBASEINFO");
+                strSQL.Append(" WHERE CONSTRUCTIONCODE IN (");
                 for (int i = 0; i < CodeList.Count; i++)
                 {
-                    if (i != 0) strSQL += ", ";
-                    strSQL += CodeList[i].ToString();
+                    if (i != 0) strSQL.Append(", ");
+                    strSQL.Append(CodeList[i].ToString());
                 }
-                strSQL += ")";
+                strSQL.Append(")");
                 
                 arList.Clear();
-                if (!BaseDB.ExecuteReader(strSQL, ref arList, false)) return false;
+                if (!BaseDB.ExecuteReader(strSQL.ToString(), ref arList, false)) return false;
                 if (arList.Count == 0) return false;
                 object[] StatRec = (object[])arList[0];
 
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsCommonApproval.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsCommonApproval.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsCommonApproval.cs	(revision 369)
@@ -392,17 +392,15 @@
         /// <summary>
         /// 最終承認確認（工事承認）
         /// </summary>
-        /// <param name="ConstructionCode"></param>
-        /// <param name="ApprovalCode"></param>
         /// <returns></returns>
-        public static bool CheckProcessApproval(int ConstructionCode, int ApprovalCode, int Approvalcount)
+        public static bool CheckProcessApproval(int ConstructionCode, int ApprovalCode, int OrderNo)
         {
             IOMApproval mApprDB = new IOMApproval();
             IOProcessApproval ApprDB = new IOProcessApproval();
             try
             {
-                // 承認データを取得する（申請データを除く）
-                string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, Approvalcount, s_PrimartyRecord);
+                // 承認データを取得する
+                string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo, s_PrimartyRecord);
                 ProcessApproval DataRec = new ProcessApproval();
                 if (!ApprDB.SelectAction(strData, ref DataRec)) return false;
 
@@ -456,14 +454,12 @@
         }
         #endregion
 
-        #region 承認確認（工事承認）
+        #region 承認時確認（工事承認）
         /// <summary>
-        /// 工事案件に対して最終承認がされているかを確認する
+        /// 工事案件に対して承認ＯＫかを確認する
         /// </summary>
-        /// <param name="ConstructionCode"></param>
-        /// <param name="ApprovalCode"></param>
         /// <returns></returns>
-        public static bool CheckProcessApprovalData(int ConstructionCode, int ApprovalCode, int OrderNo)
+        public static bool CheckProcessApprovalFinal(int ConstructionCode, int ApprovalCode, int OrderNo)
         {
             IOConstructionBaseInfo cbiDB = new IOConstructionBaseInfo();
             IOMApproval mApprDB = new IOMApproval();
@@ -488,11 +484,11 @@
                 if (MasterList.Count == 0) return false;
 
                 // 承認データを取得する
-                string strData = ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo);
-                //strData += string.Format(" And SeqNo != {0} And ApprovalStatus = {1}", s_PrimartyRecord, (int)CommonDefine.ApprovalStatus.Approval);
-                strData += " Order By SeqNo ASC";
+                StringBuilder strData = new StringBuilder();
+                strData.Append(ApprDB.CreatePrimarykeyString(ConstructionCode, ApprovalCode, OrderNo));
+                strData.Append(" Order By SeqNo ASC");
                 List<ProcessApproval> DataList = new List<ProcessApproval>();
-                if (!ApprDB.SelectAction(strData, ref DataList)) return false;
+                if (!ApprDB.SelectAction(strData.ToString(), ref DataList)) return false;
                 if (DataList.Count == 0) return false;
 
                 // 申請データを取得する
@@ -499,6 +495,9 @@
                 ProcessApproval RequestData = DataList.Find(x => x.SeqNo == s_PrimartyRecord);
                 if (RequestData == null) return false;
 
+                // 承認されている場合はそのまま終了
+                //if (RequestData.ApprovalStatus == (int)CommonDefine.ApprovalStatus.Approval) return true;
+
                 int NoCnt = MasterList.Count;
                 foreach (ProcessApproval DataRec in DataList)
                 {
@@ -1249,7 +1248,7 @@
                 if (bPetition)
                 {
                     // 未申請ボタン
-                    PetitionButtonDisplay(btnPetition, btnApproval, lblAppCnt, bNone);
+                    PetitionButtonDisplay(AppPnls, btnPetition, btnApproval, lblAppCnt, bNone);
                 }
                 else
                 {
@@ -1268,7 +1267,7 @@
         /// <summary>
         /// 申請パネル：申請ボタン表示
         /// </summary>
-        private static void PetitionButtonDisplay(Button btnPetition, Button btnApproval, Label lblAppCnt, bool bNone)
+        private static void PetitionButtonDisplay(List<Panel> AppPnls, Button btnPetition, Button btnApproval, Label lblAppCnt, bool bNone)
         {
             try
             {
@@ -1277,7 +1276,7 @@
                 btnApproval.Visible = false;
                 lblAppCnt.Visible = false;
 
-                int nWidth = btnPetition.Width + btnApproval.Width + lblAppCnt.Width;
+                int nWidth = AppPnls[(int)AppPnlDef.Normal].Width - 12;
                 btnPetition.Size = new Size(nWidth, btnPetition.Size.Height);
 
                 btnPetition.BackColor = Color.White;
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs	(revision 369)
@@ -205,7 +205,7 @@
                                                                                 { (int)ProcessExecuteNo.SafetyPatrol,           "安全パトロール申請"},
                                                                                 { (int)ProcessExecuteNo.ReqSumTotalList,        "手間・通常業者一覧－表示"},
                                                                                 { (int)ProcessExecuteNo.RequestPrintList,       "請求書印刷一覧－表示"},
-                                                                                { (int)ProcessExecuteNo.DepartmentCost,         "部署出納帳" },
+                                                                                { (int)ProcessExecuteNo.DepartmentCost,         "部署出納帳－入力" },
         };
 
         #endregion
@@ -298,7 +298,7 @@
             /// <summary>
             ///  5:請求承認
             /// </summary>
-            OrderBillingApproval,
+            OrderRequestApproval,
             /// <summary>
             ///  6:工事日報承認
             /// </summary>
@@ -2243,8 +2243,8 @@
 
                 // パラメータセット
                 frm.ConstructionCode = CurrentPara.IntExecParameter[0];
-                frm.ApprovalCode = 0;
-                frm.OrderNo = CurrentPara.IntExecParameter[1];
+                if (CurrentPara.IntExecParameter.Count > 1) frm.ApprovalCode = CurrentPara.IntExecParameter[1];
+                if (CurrentPara.IntExecParameter.Count > 2) frm.OrderNo = CurrentPara.IntExecParameter[2];
 
                 if (EditFlg == (int)CommonDefine.ProcessDataEdit.Reference) frm.EditFlg = false;
 
@@ -2323,13 +2323,14 @@
                 // 次起動プロセスセット
                 frm.ExecuteFlg = CurrentPara.IntExecParameter[0];
                 frm.ExecuteSubFlg = CurrentPara.IntExecParameter[1];
-
-                frm.EditFlg = true;
                 frm.RequestMonth = CurrentPara.IntExecParameter[2];
                 frm.OrderersDivision = CurrentPara.IntExecParameter[3];
                 frm.OrderersCode = CurrentPara.IntExecParameter[4];
+
                 frm.OrderersName = CurrentPara.StringExecParameter[0];
 
+                frm.EditFlg = true;
+
                 // フォーム表示
                 frm.ShowDialog();
             }
@@ -2616,7 +2617,7 @@
         /// <param name="CurrentPara"></param>
         public static void ProcessExecuteNo_ReqBillingStatus(ProcessParameter CurrentPara)
         {
-            //　請求選択一覧
+            //　請求状況一覧
             FrmReqBillingStatus frm = new FrmReqBillingStatus();
             try
             {
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsOtherProc.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsOtherProc.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsOtherProc.cs	(revision 369)
@@ -693,7 +693,6 @@
                 ExecFormEntry(ProcessNo, CurProcNo, (Form)frm);
 
                 // 請求書印刷起動
-                frm.ConstructionCode = ClsProcessExist.GetParentConstrCode(ConstrCode);
                 frm.SubForm = true;
                 frm.ShowInTaskbar = true;
 
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORemInvoiceData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORemInvoiceData.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORemInvoiceData.cs	(revision 369)
@@ -0,0 +1,423 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Collections;
+
+using log4net;
+using MySql.Data.MySqlClient;
+
+using ProcessManagement.DB.MySql;
+using ProcessManagement.DB.Core;
+using ProcessManagement.DataModel;
+
+using ProcessManagement.Common;
+
+namespace ProcessManagement.DB.IOAccess
+{
+    /// <summary>
+    /// 請求書削除データアクセスクラス
+    /// </summary>
+    public class IORemInvoiceData : MySqlProcess
+    {
+        #region 定義部
+        /// <summary>
+        /// log4netログを使用する
+        /// </summary>
+        private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+        /// <summary>
+        /// 請求データフィールド並び
+        /// </summary>
+        public enum NameColumn
+        {
+            InvoiceNo = 0,
+            RemPerson,
+            RemDate,
+            RemComment,
+            EntryDate,
+            UpdateDate,
+        }
+        #endregion
+
+        #region コンストラクタ
+        /// <summary>
+        /// コンストラクタ
+        /// </summary>
+        /// <param name="connectionString"></param>
+        public IORemInvoiceData()
+                : base(DBCommon.Instance.DBConnectString)
+        {
+        }
+
+        #endregion
+
+
+        #region SELECT　SQL作成
+        private string CreateSelectSQL()
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.Append("SELECT ");
+
+                bool bColFirst = true;
+                string strWork = string.Empty;
+                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
+                {
+                    strWork = gender.ToString();
+                    if (!bColFirst) strcmd.Append(",");
+                    if (strWork.Equals("EntryDate") || strWork.Equals("UpdateDate"))
+                    {
+                        strcmd.AppendFormat(" DATE_FORMAT({0}, '%Y/%m/%d %H:%i:%s')", strWork);
+                    }
+                    else
+                    {
+                        strcmd.AppendFormat(" {0}", strWork);
+                    }
+                    bColFirst = false;
+                }
+
+                strcmd.Append(" FROM RemInvoiceData");
+
+                return strcmd.ToString();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return string.Empty;
+            }
+        }
+        #endregion
+
+        #region 請求書削除データ検索(１件取得)
+        /// <summary>
+        /// 請求書削除データ検索(複数件取得)
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool SelectAction(string AddSQLString, ref RemInvoiceData data, bool bConnect = true)
+        {
+            // インターフェース
+            StringBuilder strcmd = new StringBuilder();
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                // SQL作成（DateTime型が変換できないのでCharに変換しておく）
+                strcmd.Append(CreateSelectSQL());
+                strcmd.Append(AddSQLString);
+
+                // SQL実行
+                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    Reader2Struct(objwrk, ref data);
+                    break;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除データ検索(複数件取得)
+        /// <summary>
+        /// 請求書削除データ検索(複数件取得)
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool SelectAction(string AddSQLString, ref List<RemInvoiceData> data, bool bConnect = true)
+        {
+            // インターフェース
+            StringBuilder strcmd = new StringBuilder();
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                // SQL作成（DateTime型が変換できないのでCharに変換しておく）
+                strcmd.Append(CreateSelectSQL());
+                strcmd.Append(AddSQLString);
+
+                // SQL実行
+                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    RemInvoiceData work = new RemInvoiceData();
+                    Reader2Struct(objwrk, ref work);
+                    data.Add(work);
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除データ１件追加
+        /// <summary>
+        /// 請求書削除データ１件追加
+        /// </summary>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool InsertAction(RemInvoiceData data, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+
+                strcmd.Append("INSERT INTO RemInvoiceData");
+
+                strcmd.Append("(");
+                bool bFirst = true;
+                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
+                {
+                    if (!bFirst) strcmd.Append(", ");
+                    strcmd.Append(gender.ToString());
+                    bFirst = false;
+                }
+                strcmd.Append(") VALUES (");
+
+                strcmd.AppendFormat(" {0}", data.InvoiceNo);
+                strcmd.AppendFormat(", {0}", data.RemPerson);
+                strcmd.AppendFormat(", DATE('{0}')", data.RemDate.ToShortDateString());
+                strcmd.AppendFormat(",'{0}'", data.RemComment);
+
+                strcmd.Append(", NOW()");
+                strcmd.Append(", NOW()");
+                strcmd.Append(")");
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除データ複数追加
+        /// <summary>
+        /// 請求書削除データ複数追加
+        /// </summary>
+        /// <param name="data">請求データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool InsertAction(List<RemInvoiceData> data, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                bool bColFirst = true;
+                strcmd.Append("INSERT INTO RemInvoiceData");
+                strcmd.Append(" (");
+                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
+                {
+                    if (!bColFirst) strcmd.Append(", ");
+                    strcmd.Append(gender.ToString());
+                    bColFirst = false;
+                }
+                strcmd.Append(") VALUES (");
+
+                bool bDataFirst = true;
+                foreach (RemInvoiceData work in data)
+                {
+                    if (!bDataFirst) strcmd.Append(", (");
+
+                    strcmd.AppendFormat(" {0}", work.InvoiceNo);
+                    strcmd.AppendFormat(", {0}", work.RemPerson);
+                    strcmd.AppendFormat(", {0}", work.RemDate);
+                    strcmd.AppendFormat(",'{0}'", work.RemComment);
+
+                    strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.EntryDate);
+                    strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.UpdateDate);
+                    strcmd.Append(")");
+
+                    bDataFirst = false;
+                }
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除データ更新
+        /// <summary>
+        /// 請求データ更新
+        /// </summary>
+        /// <param name="AddSQLString">更新条件SQL文字列</param>
+        /// <param name="data">請求書削除データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool UpdateAction(string AddSQLString, RemInvoiceData data, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+
+                strcmd.Append("UPDATE RemInvoiceData");
+
+                strcmd.Append(" SET");
+
+                strcmd.AppendFormat(" InvoiceNo = {0}", data.InvoiceNo);
+                strcmd.AppendFormat(", RemPerson = {0}", data.RemPerson);
+                strcmd.AppendFormat(", RemDate = {0}", data.RemDate);
+                strcmd.AppendFormat(", RemComment = '{0}'", data.RemComment);
+
+                strcmd.Append(", UpdateDate = NOW()");
+
+                strcmd.Append(AddSQLString);
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除データ削除
+        /// <summary>
+        /// 請求データ削除
+        /// </summary>
+        /// <param name="AddSQLString">削除条件SQL文字列</param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool DeleteAction(string AddSQLString, bool bConnect = true)
+        {
+            // インターフェース
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.AppendFormat("{0}{1}", "DELETE FROM RemInvoiceData", AddSQLString);
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region MySQLDataReaderより構造体へセットする
+        /// <summary>
+        /// MySQLDataReaderより構造体へセットする
+        /// </summary>
+        /// <param name="reader">MySQLDataReader</param>
+        /// <param name="wrk">構造体</param>
+        public void Reader2Struct(object[] objwrk, ref RemInvoiceData wrk)
+        {
+            try
+            {
+                // データ取得
+                wrk.InvoiceNo = int.Parse(objwrk[(int)NameColumn.InvoiceNo].ToString());
+                wrk.RemPerson = int.Parse(objwrk[(int)NameColumn.RemPerson].ToString());
+                wrk.RemDate = DateTime.Parse(objwrk[(int)NameColumn.RemDate].ToString());
+                wrk.RemComment = objwrk[(int)NameColumn.RemComment].ToString();
+
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)NameColumn.EntryDate].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)NameColumn.UpdateDate].ToString());
+            }
+            catch (MySqlException myex)
+            {
+                logger.ErrorFormat("ＭｙＳＱＬエラー：{0}：{1}", CommonMotions.GetMethodName(2), myex.Message);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 構造体クリア
+        /// <summary>
+        /// 構造体クリア
+        /// </summary>
+        /// <param name="wrk"></param>
+        public void ClearStruct(ref RemInvoiceData wrk)
+        {
+            try
+            {
+                // データ取得
+                wrk.InvoiceNo = 0;
+                wrk.RemPerson = 0;
+                wrk.RemDate = DateTime.Today;
+                wrk.RemComment = string.Empty;
+
+                wrk.EntryDate = DateTime.Now;
+                wrk.UpdateDate = DateTime.Now;
+            }
+            catch (MySqlException myex)
+            {
+                logger.ErrorFormat("ＭｙＳＱＬエラー：{0}：{1}", CommonMotions.GetMethodName(2), myex.Message);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 主キー検索の文字列を返す
+        /// <summary>
+        /// 主キー検索の文字列を返す
+        /// </summary>
+        /// <param name="InvoiceNo">請求書No</param>
+        /// <returns>Where文字列</returns>
+        public string CreatePrimarykeyString(int InvoiceNo)
+        {
+            StringBuilder strWork = new StringBuilder();
+            try
+            {
+                strWork.AppendFormat(" Where InvoiceNo = {0}", InvoiceNo.ToString());
+
+                return strWork.ToString();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strWork.ToString());
+                return string.Empty;
+            }
+        }
+        #endregion
+    }
+
+}
+
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORemInvoiceDataDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORemInvoiceDataDetail.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IORemInvoiceDataDetail.cs	(revision 369)
@@ -0,0 +1,420 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Collections;
+
+using log4net;
+using MySql.Data.MySqlClient;
+
+using ProcessManagement.DB.MySql;
+using ProcessManagement.DB.Core;
+using ProcessManagement.DataModel;
+
+using ProcessManagement.Common;
+
+namespace ProcessManagement.DB.IOAccess
+{
+    /// <summary>
+    /// 請求書削除明細データアクセスクラス
+    /// </summary>
+    public class IORemInvoiceDataDetail : MySqlProcess
+    {
+        #region 定義部
+        /// <summary>
+        /// log4netログを使用する
+        /// </summary>
+        private static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+        /// <summary>
+        /// 請求データフィールド並び
+        /// </summary>
+        public enum NameColumn
+        {
+            InvoiceNo = 0,
+            SeqNo,
+            RequestNo,
+            EntryDate,
+            UpdateDate,
+        }
+        #endregion
+
+        #region コンストラクタ
+        /// <summary>
+        /// コンストラクタ
+        /// </summary>
+        /// <param name="connectionString"></param>
+        public IORemInvoiceDataDetail()
+                : base(DBCommon.Instance.DBConnectString)
+        {
+        }
+
+        #endregion
+
+
+        #region SELECT　SQL作成
+        private string CreateSelectSQL()
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.Append("SELECT ");
+
+                bool bColFirst = true;
+                string strWork = string.Empty;
+                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
+                {
+                    strWork = gender.ToString();
+                    if (!bColFirst) strcmd.Append(",");
+                    if (strWork.Equals("EntryDate") || strWork.Equals("UpdateDate"))
+                    {
+                        strcmd.AppendFormat(" DATE_FORMAT({0}, '%Y/%m/%d %H:%i:%s')", strWork);
+                    }
+                    else
+                    {
+                        strcmd.AppendFormat(" {0}", strWork);
+                    }
+                    bColFirst = false;
+                }
+
+                strcmd.Append(" FROM RemInvoiceDataDetail");
+
+                return strcmd.ToString();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return string.Empty;
+            }
+        }
+        #endregion
+
+        #region 請求書削除明細データ検索(１件取得)
+        /// <summary>
+        /// 請求書削除明細データ検索(複数件取得)
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool SelectAction(string AddSQLString, ref RemInvoiceDataDetail data, bool bConnect = true)
+        {
+            // インターフェース
+            StringBuilder strcmd = new StringBuilder();
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                // SQL作成（DateTime型が変換できないのでCharに変換しておく）
+                strcmd.Append(CreateSelectSQL());
+                strcmd.Append(AddSQLString);
+
+                // SQL実行
+                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    Reader2Struct(objwrk, ref data);
+                    break;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除明細データ検索(複数件取得)
+        /// <summary>
+        /// 請求書削除明細データ検索(複数件取得)
+        /// </summary>
+        /// <param name="AddSQLString"></param>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool SelectAction(string AddSQLString, ref List<RemInvoiceDataDetail> data, bool bConnect = true)
+        {
+            // インターフェース
+            StringBuilder strcmd = new StringBuilder();
+            ArrayList arData = new ArrayList();
+
+            try
+            {
+                // SQL作成（DateTime型が変換できないのでCharに変換しておく）
+                strcmd.Append(CreateSelectSQL());
+                strcmd.Append(AddSQLString);
+
+                // SQL実行
+                if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
+
+                // データセット
+                foreach (object[] objwrk in arData)
+                {
+                    RemInvoiceDataDetail work = new RemInvoiceDataDetail();
+                    Reader2Struct(objwrk, ref work);
+                    data.Add(work);
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除明細データ１件追加
+        /// <summary>
+        /// 請求書削除明細データ１件追加
+        /// </summary>
+        /// <param name="data"></param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool InsertAction(RemInvoiceDataDetail data, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+
+                strcmd.Append("INSERT INTO RemInvoiceDataDetail");
+
+                strcmd.Append("(");
+                bool bFirst = true;
+                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
+                {
+                    if (!bFirst) strcmd.Append(", ");
+                    strcmd.Append(gender.ToString());
+                    bFirst = false;
+                }
+                strcmd.Append(") VALUES (");
+
+                strcmd.AppendFormat(" {0}", data.InvoiceNo);
+                strcmd.AppendFormat(", {0}", data.SeqNo);
+                strcmd.AppendFormat(", {0}", data.RequestNo);
+
+                strcmd.Append(", NOW()");
+                strcmd.Append(", NOW()");
+                strcmd.Append(")");
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除明細データ複数追加
+        /// <summary>
+        /// 請求書削除明細データ複数追加
+        /// </summary>
+        /// <param name="data">請求データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool InsertAction(List<RemInvoiceDataDetail> data, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                bool bColFirst = true;
+                strcmd.Append("INSERT INTO RemInvoiceDataDetail");
+                strcmd.Append(" (");
+                foreach (var gender in Enum.GetValues(typeof(NameColumn)))
+                {
+                    if (!bColFirst) strcmd.Append(", ");
+                    strcmd.Append(gender.ToString());
+                    bColFirst = false;
+                }
+                strcmd.Append(") VALUES (");
+
+                bool bDataFirst = true;
+                foreach (RemInvoiceDataDetail work in data)
+                {
+                    if (!bDataFirst) strcmd.Append(", (");
+
+                    strcmd.AppendFormat(" {0}", work.InvoiceNo);
+                    strcmd.AppendFormat(", {0}", work.SeqNo);
+                    strcmd.AppendFormat(", {0}", work.RequestNo);
+
+                    strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.EntryDate);
+                    strcmd.AppendFormat(", STR_TO_DATE('{0}','%Y/%m/%d %H:%i:%s')", work.UpdateDate);
+                    strcmd.Append(")");
+
+                    bDataFirst = false;
+                }
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除明細データ更新
+        /// <summary>
+        /// 請求データ更新
+        /// </summary>
+        /// <param name="AddSQLString">更新条件SQL文字列</param>
+        /// <param name="data">請求書削除明細データ</param>
+        /// <returns>true：成功 false：失敗</returns>
+        public bool UpdateAction(string AddSQLString, RemInvoiceDataDetail data, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+
+                strcmd.Append("UPDATE RemInvoiceDataDetail");
+
+                strcmd.Append(" SET");
+
+                strcmd.AppendFormat(" InvoiceNo = {0}", data.InvoiceNo);
+                strcmd.AppendFormat(", SeqNo = {0}", data.SeqNo);
+                strcmd.AppendFormat(", RequestNo = {0}", data.RequestNo);
+
+                strcmd.Append(", UpdateDate = NOW()");
+
+                strcmd.Append(AddSQLString);
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書削除明細データ削除
+        /// <summary>
+        /// 請求データ削除
+        /// </summary>
+        /// <param name="AddSQLString">削除条件SQL文字列</param>
+        /// <param name="bConnect"></param>
+        /// <returns></returns>
+        public bool DeleteAction(string AddSQLString, bool bConnect = true)
+        {
+            // インターフェース
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.AppendFormat("{0}{1}", "DELETE FROM RemInvoiceDataDetail", AddSQLString);
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region MySQLDataReaderより構造体へセットする
+        /// <summary>
+        /// MySQLDataReaderより構造体へセットする
+        /// </summary>
+        /// <param name="reader">MySQLDataReader</param>
+        /// <param name="wrk">構造体</param>
+        public void Reader2Struct(object[] objwrk, ref RemInvoiceDataDetail wrk)
+        {
+            try
+            {
+                // データ取得
+                wrk.InvoiceNo = int.Parse(objwrk[(int)NameColumn.InvoiceNo].ToString());
+
+                wrk.SeqNo = int.Parse(objwrk[(int)NameColumn.SeqNo].ToString());
+                wrk.RequestNo = int.Parse(objwrk[(int)NameColumn.RequestNo].ToString());
+
+                wrk.EntryDate = DateTime.Parse(objwrk[(int)NameColumn.EntryDate].ToString());
+                wrk.UpdateDate = DateTime.Parse(objwrk[(int)NameColumn.UpdateDate].ToString());
+            }
+            catch (MySqlException myex)
+            {
+                logger.ErrorFormat("ＭｙＳＱＬエラー：{0}：{1}", CommonMotions.GetMethodName(2), myex.Message);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 構造体クリア
+        /// <summary>
+        /// 構造体クリア
+        /// </summary>
+        /// <param name="wrk"></param>
+        public void ClearStruct(ref RemInvoiceDataDetail wrk)
+        {
+            try
+            {
+                // データ取得
+                wrk.InvoiceNo = 0;
+                wrk.SeqNo = 0;
+                wrk.RequestNo = 0;
+
+                wrk.EntryDate = DateTime.Now;
+                wrk.UpdateDate = DateTime.Now;
+            }
+            catch (MySqlException myex)
+            {
+                logger.ErrorFormat("ＭｙＳＱＬエラー：{0}：{1}", CommonMotions.GetMethodName(2), myex.Message);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 主キー検索の文字列を返す
+        /// <summary>
+        /// 主キー検索の文字列を返す
+        /// </summary>
+        /// <param name="InvoiceNo">請求書No</param>
+        /// <returns>Where文字列</returns>
+        public string CreatePrimarykeyString(int InvoiceNo, int SeqNo = 0)
+        {
+            StringBuilder strWork = new StringBuilder();
+            try
+            {
+                strWork.AppendFormat(" Where InvoiceNo = {0}", InvoiceNo);
+                if (SeqNo > 0)
+                    strWork.AppendFormat(" And SeqNo = {0}", SeqNo);
+
+                return strWork.ToString();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}：{2}", CommonMotions.GetMethodName(2), ex.Message, strWork.ToString());
+                return string.Empty;
+            }
+        }
+        #endregion
+    }
+
+}
+
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/InvoiceData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/InvoiceData.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/InvoiceData.cs	(revision 369)
@@ -11,6 +11,24 @@
     /// </summary>
     public class InvoiceData
     {
+        #region 定数
+        public enum CompleteFlgDef
+        {
+            /// <summary>
+            /// 削除済み
+            /// </summary>
+            Deleted = -1,
+            /// <summary>
+            /// 未印刷
+            /// </summary>
+            NoPrint = 0,
+            /// <summary>
+            /// 印刷済み
+            /// </summary>
+            Printed,
+        }
+        #endregion
+
         #region メンバ変数
         private int         m_InvoiceNo = 0;                    // 請求書No
         private int         m_OrderersDivision = 0;             // 発注者区分
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/RemInvoiceData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/RemInvoiceData.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/RemInvoiceData.cs	(revision 369)
@@ -0,0 +1,99 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProcessManagement.DataModel
+{
+    /// <summary>
+    /// 請求書削除データ
+    /// </summary>
+    public class RemInvoiceData
+    {
+        #region メンバ変数
+        /// <summary>
+        ///  請求書No
+        /// </summary>
+        private int         m_InvoiceNo = 0;
+        /// <summary>
+        /// 削除担当者コード
+        /// </summary>
+        private int         m_RemPerson = 0;
+        /// <summary>
+        /// 削除日付
+        /// </summary>
+        private DateTime    m_RemDate = DateTime.Today;
+        /// <summary>
+        /// 削除理由
+        /// </summary>
+        private string      m_RemComment = string.Empty;
+        /// <summary>
+        /// 登録日付
+        /// </summary>
+        private DateTime    m_EntryDate = DateTime.Now;
+        /// <summary>
+        /// 更新日付
+        /// </summary>
+        private DateTime    m_UpdateDate = DateTime.Now;
+        #endregion
+
+        #region コンストラクタ
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        ///  請求書No
+        /// </summary>
+        public int InvoiceNo
+        {
+            get { return m_InvoiceNo; }
+            set { m_InvoiceNo = value; }
+        }
+        /// <summary>
+        /// 削除担当者コード
+        /// </summary>
+        public int RemPerson
+        {
+            get { return m_RemPerson; }
+            set { m_RemPerson = value; }
+        }
+        /// <summary>
+        /// 削除日付
+        /// </summary>
+        public DateTime RemDate
+        {
+            get { return m_RemDate; }
+            set { m_RemDate = value; }
+        }
+        /// <summary>
+        /// 削除理由
+        /// </summary>
+        public string RemComment
+        {
+            get { return m_RemComment; }
+            set { m_RemComment = value; }
+        }
+
+        /// <summary>
+        /// 登録日付
+        /// </summary>
+        public DateTime EntryDate
+        {
+            get { return m_EntryDate; }
+            set { m_EntryDate = value; }
+        }
+
+        /// <summary>
+        /// 更新日付
+        /// </summary>
+        public DateTime UpdateDate
+        {
+            get { return m_UpdateDate; }
+            set { m_UpdateDate = value; }
+        }
+
+        #endregion
+
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/RemInvoiceDataDetail.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/RemInvoiceDataDetail.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/RemInvoiceDataDetail.cs	(revision 369)
@@ -0,0 +1,87 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ProcessManagement.DataModel
+{
+    /// <summary>
+    /// 請求書削除明細データ
+    /// </summary>
+    public class RemInvoiceDataDetail
+    {
+        #region メンバ変数
+        /// <summary>
+        ///  請求書No
+        /// </summary>
+        private int         m_InvoiceNo = 0;
+        /// <summary>
+        /// 連番
+        /// </summary>
+        private int         m_SeqNo = 0;
+        /// <summary>
+        /// 請求No
+        /// </summary>
+        private int         m_RequestNo = 0;
+        /// <summary>
+        /// 登録日付
+        /// </summary>
+        private DateTime    m_EntryDate = DateTime.Now;
+        /// <summary>
+        /// 更新日付
+        /// </summary>
+        private DateTime    m_UpdateDate = DateTime.Now;
+        #endregion
+
+        #region コンストラクタ
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        ///  請求書No
+        /// </summary>
+        public int InvoiceNo
+        {
+            get { return m_InvoiceNo; }
+            set { m_InvoiceNo = value; }
+        }
+        /// <summary>
+        /// 連番
+        /// </summary>
+        public int SeqNo
+        {
+            get { return m_SeqNo; }
+            set { m_SeqNo = value; }
+        }
+        /// <summary>
+        /// 請求No
+        /// </summary>
+        public int RequestNo
+        {
+            get { return m_RequestNo; }
+            set { m_RequestNo = value; }
+        }
+
+        /// <summary>
+        /// 登録日付
+        /// </summary>
+        public DateTime EntryDate
+        {
+            get { return m_EntryDate; }
+            set { m_EntryDate = value; }
+        }
+
+        /// <summary>
+        /// 更新日付
+        /// </summary>
+        public DateTime UpdateDate
+        {
+            get { return m_UpdateDate; }
+            set { m_UpdateDate = value; }
+        }
+
+        #endregion
+
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs	(revision 369)
@@ -166,7 +166,7 @@
                 // �������̕\��
                 lblProcessTitil.Text = ClsExcute.AppovalList[m_ApprovalCode];
                 // �����f�[�^���F�͏o�����Ɗ����オ����
-                if ((int)ClsExcute.ApprovalListNo.OrderBillingApproval == m_ApprovalCode)
+                if ((int)ClsExcute.ApprovalListNo.OrderRequestApproval == m_ApprovalCode)
                 {
                     switch (m_AllPurposeKinds)
                     {
@@ -495,22 +495,23 @@
                     nDepCode = CommonMotions.cnvInt(objwrk[(int)GetDataColumns.DepartmentCode]);
                     nPersonDisp = CommonMotions.cnvInt(objwrk[(int)GetDataColumns.PersontDispNo]);
 
-                    if (m_ApprovalCode != (int)ClsExcute.ApprovalListNo.PurchaseOrderEntryApproval)
-                    {   // ���������F���ȊO
-                        ConstrName = CommonMotions.cnvString(objwrk[(int)GetDataColumns.ConstructionName]);
+                    switch (m_ApprovalCode)
+                    {
+                        case (int)ClsExcute.ApprovalListNo.PurchaseOrderEntryApproval:
+                            // ���������F��
+                        case (int)ClsExcute.ApprovalListNo.OrderRequestApproval:
+                            // ���������F��
+                            int AppCnt = CommonMotions.cnvInt(objwrk[(int)GetDataColumns.OrderNo]);
+                            string strCount = string.Empty;
+                            if (AppCnt > 0) strCount = string.Format("{0}���", AppCnt);
+                            else strCount = "���\��";
+                            ConstrName = string.Format("{0}�F{1}", CommonMotions.cnvString(objwrk[(int)GetDataColumns.ConstructionName]), strCount);
+                            break;
+                        default:
+                            // �ʏ�
+                            ConstrName = CommonMotions.cnvString(objwrk[(int)GetDataColumns.ConstructionName]);
+                            break;
                     }
-                    else
-                    {   // ���������F��
-                        int AppCnt = CommonMotions.cnvInt(objwrk[(int)GetDataColumns.OrderNo]);
-                        if (AppCnt > 0)
-                        {
-                            ConstrName = string.Format("{0}�F{1}���", CommonMotions.cnvString(objwrk[(int)GetDataColumns.ConstructionName]), AppCnt);
-                        }
-                        else
-                        {
-                            ConstrName = string.Format("{0}�F���\��", CommonMotions.cnvString(objwrk[(int)GetDataColumns.ConstructionName]));
-                        }
-                    }
                     // �s�f�[�^�Z�b�g
                     int AddRowCnt = dgvMaster.Rows.Add(CommonMotions.cnvInt(objwrk[(int)GetDataColumns.ConstructionCode])
                                                         , CommonMotions.cnvInt(objwrk[(int)GetDataColumns.ApprovalCode])
@@ -581,37 +582,27 @@
                     int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("���ϒ�o")).Key;
                     int iStatus2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�������p")).Key;
 
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+                    strSQL.Append(" And (");
 
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
+                    strSQL.AppendFormat("(B.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or B.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSQL.AppendFormat("                   WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" And (B.SalesPersonCode IN (Select B1.PersonCode From PersonInChargeMaster B1");
-                    strSQL.AppendFormat(" And (B.SalesPersonCode IN (Select B1.PersonCode From {0} As B1", strChgDep.ToString());
-                    strSQL.Append("                                  Where B1.DepartmentCode IN (SELECT B2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER B2");
-                    strSQL.AppendFormat("                                                        WHERE B2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
                     strSQL.AppendFormat(" Or (B.ConstructionStatusFlg >= {0}", iStatus);
 
-                    // strSQL.Append(" And (B.ConstructionPersonCode IN (Select B3.PersonCode From PersonInChargeMaster B3");
-                    strSQL.AppendFormat(" And (B.ConstructionPersonCode IN (Select B3.PersonCode From {0} As B3", strChgDep.ToString());
-                    strSQL.Append("                                         Where B3.DepartmentCode IN (SELECT B4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER B4");
-                    strSQL.AppendFormat("                                                               WHERE B4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" And (");
+                    strSQL.AppendFormat("(B.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or B.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSQL.AppendFormat("                    WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or B.CONSTRSUBPERSONCODE IN (Select B5.PersonCode From PersonInChargeMaster B5");
-                    strSQL.AppendFormat(" OR B.CONSTRSUBPERSONCODE IN (Select B5.PersonCode From {0} As B5", strChgDep.ToString());
-                    strSQL.Append("                                    Where B5.DepartmentCode IN (SELECT B6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER B6");
-                    strSQL.AppendFormat("                                                          WHERE B6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (B.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or B.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3");
+                    strSQL.AppendFormat("                          WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or B.ConstructionInstructor IN (Select B7.PersonCode From PersonInChargeMaster B7");
-                    strSQL.AppendFormat(" OR B.ConstructionInstructor IN (Select B7.PersonCode From {0} As B7", strChgDep.ToString());
-                    strSQL.Append("                                       Where B7.DepartmentCode IN (SELECT B8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER B8");
-                    strSQL.AppendFormat("                                                             WHERE B8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (B.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or B.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
+                    strSQL.AppendFormat("                          WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("))");
 
                     strSQL.AppendFormat(" Or (B.ConstructionStatusFlg >= {0} And B.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
                     strSQL.AppendFormat(" Or (B.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
@@ -695,13 +686,21 @@
                 strSQL.Append(" B.SalesDepCode,");
                 strSQL.Append(" ifnull(DEP.DISPLAYORDER, 99999),");
                 strSQL.Append(" PERSON.DISPLAYORDER");
+
                 strSQL.Append(" FROM ESTIMATEDATA A");
+
                 strSQL.Append(", CONSTRUCTIONBASEINFO B");
+
                 strSQL.Append(" Left Join DEPARTMENTMASTER DEP On DEP.DepartmentCode = B.SalesDepCode");
-                strSQL.Append(" Left Join CONSTRUCTIONBASEINFODETAIL DepName On DepName.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
+
+                strSQL.Append(" Left Join CONSTRUCTIONBASEINFODETAIL DepName");
+                strSQL.Append("       On DepName.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
                 strSQL.AppendFormat(" And DepName.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.SalesDepartmentName);
+
                 strSQL.Append(", CONSTRUCTIONBASEINFODETAIL C");
+
                 strSQL.Append(", PERSONINCHARGEMASTER PERSON");
+
                 strSQL.Append(" WHERE A.LINECOUNT = 1");
                 strSQL.AppendFormat(" AND NOT EXISTS(SELECT * FROM PROCESSAPPROVAL APP WHERE APP.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE AND APP.ApprovalCode = {0})", m_ApprovalCode);
                 strSQL.Append(" AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
@@ -863,14 +862,14 @@
                 logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
             }
         }
-#endregion
+        #endregion
 
         #region ����SQL�쐬:�H���\�Z���F
-/// <summary>
-/// �H���\�Z���F����SQL�쐬
-/// </summary>
-/// <param name="strSQL"></param>
-private void CreateSQL03(ref StringBuilder strSQL)
+        /// <summary>
+        /// �H���\�Z���F����SQL�쐬
+        /// </summary>
+        /// <param name="strSQL"></param>
+        private void CreateSQL03(ref StringBuilder strSQL)
         {
             try
             {
@@ -1110,9 +1109,10 @@
             CreateSecuritySQL(ref wrkSec);
 
             strSQL.Append("SELECT");
-            strSQL.Append(" A.CONSTRUCTIONCODE,");
+            strSQL.Append(" A.REQCONSTRUCTIONCODE,");
             strSQL.AppendFormat(" {0},", m_ApprovalCode);
-            strSQL.AppendFormat(" {0},", CommonDefine.s_Default_OrderNo);
+            //strSQL.AppendFormat(" {0},", CommonDefine.s_Default_OrderNo);
+            strSQL.Append(" A.ORDERNO,");
             strSQL.Append(" C.DetailString,");
             strSQL.AppendFormat("{0},", (int)CommonDefine.ApprovalStatus.Unclaimed);
             strSQL.Append(" PERSON.PERSONNAME,");
@@ -1122,7 +1122,8 @@
             strSQL.Append(" B.ConstrDepCode,");
             strSQL.Append(" ifnull(DEP.DISPLAYORDER, 99999),");
             strSQL.Append(" PERSON.DISPLAYORDER");
-            strSQL.Append(" FROM PURCHASEORDER A");
+            // strSQL.Append(" FROM PURCHASEORDER A");
+            strSQL.Append(" FROM requesthead A");
             strSQL.Append(", CONSTRUCTIONBASEINFO B");
             strSQL.Append(" LEFT JOIN DEPARTMENTMASTER DEP  On DEP.DepartmentCode = B.ConstrDepCode");
             strSQL.Append(" Left Join CONSTRUCTIONBASEINFODETAIL DepName On DepName.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
@@ -1130,14 +1131,14 @@
             strSQL.Append(", CONSTRUCTIONBASEINFODETAIL C");
             strSQL.Append(", PERSONINCHARGEMASTER PERSON");
             strSQL.Append(", requestdata AS Req");
-            strSQL.AppendFormat(" WHERE NOT EXISTS(SELECT * FROM PROCESSAPPROVAL APP WHERE APP.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE AND APP.ApprovalCode = {0})", m_ApprovalCode);
-            strSQL.Append(" AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
+            strSQL.AppendFormat(" WHERE NOT EXISTS(SELECT * FROM PROCESSAPPROVAL APP WHERE APP.CONSTRUCTIONCODE = A.REQCONSTRUCTIONCODE AND APP.ApprovalCode = {0})", m_ApprovalCode);
+            strSQL.Append(" AND A.REQCONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
             strSQL.AppendFormat(" AND B.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
             strSQL.AppendFormat(" AND B.CONSTRUCTIONSTATUSFLG >= {0}", ProgressComplete);
             strSQL.AppendFormat(" AND B.BillingSplitFlg = {0}", m_AllPurposeKinds);
-            strSQL.AppendFormat(" AND (A.CONSTRUCTIONCODE = C.CONSTRUCTIONCODE AND C.DetailNo = {0})", (int)ConstructionBaseInfoDetail.DataNoDef.ConstructionName);
+            strSQL.AppendFormat(" AND (A.REQCONSTRUCTIONCODE = C.CONSTRUCTIONCODE AND C.DetailNo = {0})", (int)ConstructionBaseInfoDetail.DataNoDef.ConstructionName);
             strSQL.Append(" AND B.CONSTRUCTIONPERSONCODE = PERSON.PERSONCODE");
-            strSQL.Append(" AND Req.MAINCONSTRUCTIONCODE = A.ConstructionCode");
+            strSQL.Append(" AND Req.MAINCONSTRUCTIONCODE = A.REQCONSTRUCTIONCODE");
             if (DepartmentCode != 0)
             {
                 strSQL.AppendFormat(" AND (B.ConstrDepCode = {0}", DepartmentCode);
@@ -1181,9 +1182,9 @@
             }
             if (PersonCode != 0) strSQL.AppendFormat(" AND B.ConstructionPersonCode = {0}", PersonCode);
             strSQL.Append(wrkSec.ToString());
-            strSQL.AppendFormat(" ORDER BY {0} ASC, {1} ASC, {2} ASC, {3} ASC",
-                                                ((int)GetDataColumns.ApprovalCode + 1),
-                                                ((int)GetDataColumns.ConstructionStatus + 1),
+            strSQL.AppendFormat(" ORDER BY {0} DESC, {1} ASC, {2} ASC, {3} ASC, {4} ASC",
+                                                ((int)GetDataColumns.ConstructionCode + 1),
+                                                ((int)GetDataColumns.OrderNo + 1),
                                                 ((int)GetDataColumns.DepartmentDispNo + 1),
                                                 ((int)GetDataColumns.PersontDispNo + 1),
                                                 ((int)GetDataColumns.ConstructionName + 1));
@@ -1218,7 +1219,7 @@
                         // ���������F
                         CreateSQL04(ref strSQL);
                         break;
-                    case (int)ClsExcute.ApprovalListNo.OrderBillingApproval:
+                    case (int)ClsExcute.ApprovalListNo.OrderRequestApproval:
                         //  �������F
                         CreateSQL05(ref strSQL);
                         break;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmAppScrnAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmAppScrnAux.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmAppScrnAux.cs	(revision 369)
@@ -44,7 +44,7 @@
                         CaretaLedgerData();
                         break;
 
-                    case (int)ClsExcute.ApprovalListNo.OrderBillingApproval:
+                    case (int)ClsExcute.ApprovalListNo.OrderRequestApproval:
                         //  請求承認を承認時に請求データを作成する
                         // 請求データ作成
                         CaretaBillingData();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreen.cs	(revision 369)
@@ -712,7 +712,7 @@
                         break;
 
                     // 5:�������F
-                    case (int)ClsExcute.ApprovalListNo.OrderBillingApproval:
+                    case (int)ClsExcute.ApprovalListNo.OrderRequestApproval:
                     // 6:�H�����񏳔F
                     case (int)ClsExcute.ApprovalListNo.DRConstructionApproval:
                     default:
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalScreen/FrmApprovalScreenAuxiliary.cs	(revision 369)
@@ -98,7 +98,7 @@
                     if (RecPara.ProcNo == (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry) bAns = true;
                     break;
                 // 5:請求承認
-                case (int)ClsExcute.ApprovalListNo.OrderBillingApproval:
+                case (int)ClsExcute.ApprovalListNo.OrderRequestApproval:
                     if (RecPara.ProcNo == (int)ClsExcute.ProcessExecuteNo.ConstructionBudget) bAns = true;
                     break;
                 // 6:工事日報承認
@@ -317,18 +317,19 @@
                     case (int)CommonDefine.ApprovalStatus.Approval:
                         // ----- 承認
                         // 案件に対して最終承認がされているかを確認する
-                        if (ClsCommonApproval.CheckProcessApprovalData(m_ConstructionCode, m_ApprovalCode, m_OrderNo))
-                        {
-                            // 最終承認がされていれば申請レコードを承認へ変更する
-                            if (!ClsCommonApproval.SetPrimaryRecStatus(m_ConstructionCode,
-                                                                            m_ApprovalCode,
-                                                                            m_OrderNo,
-                                                                            statusCode)) return false;
-                            
-                            // 承認完了後に処理があるものは処理する
-                            ApprovalNextProcess();
-                        }
+                        if (!ClsCommonApproval.CheckProcessApprovalFinal(m_ConstructionCode, m_ApprovalCode, m_OrderNo)) break;
+
+                        // 最終承認がされていれば申請レコードを承認へ変更する
+                        if (!ClsCommonApproval.SetPrimaryRecStatus(m_ConstructionCode,
+                                                                        m_ApprovalCode,
+                                                                        m_OrderNo,
+                                                                        statusCode)) return false;
+
+                        // 承認完了後に処理があるものは処理する
+                        ApprovalNextProcess();
+
                         break;
+
                     default:
                         // ----- 承認以外
                         if (!ClsCommonApproval.SetPrimaryRecStatus(m_ConstructionCode,
@@ -1109,7 +1110,7 @@
                     case (int)ClsExcute.ApprovalListNo.PurchaseOrderEntryApproval:              // 4:注文書承認
                         iNextProcessNo = (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry;
                         break;
-                    case (int)ClsExcute.ApprovalListNo.OrderBillingApproval:                    // 5:請求承認
+                    case (int)ClsExcute.ApprovalListNo.OrderRequestApproval:                    // 5:請求承認
                         iNextProcessNo = (int)ClsExcute.ProcessExecuteNo.RequestInput;
                         break;
                     case (int)ClsExcute.ApprovalListNo.DRConstructionApproval:                  // 6:工事日報承認
@@ -1146,7 +1147,7 @@
                         ClsExcute.ProcControlPara[NowPoint].BoolExecParameter.Add(true);        // ----- 直接表示フラグ
                         SetPurchaseData(NowPoint);                                              // ----- 対象データセット
                         break;
-                    case (int)ClsExcute.ApprovalListNo.OrderBillingApproval:                    // 5:請求承認
+                    case (int)ClsExcute.ApprovalListNo.OrderRequestApproval:                    // 5:請求承認
                         ClsExcute.ProcControlPara[NowPoint].BoolExecParameter.Add(true);        // ----- 直接表示フラグ
                         break;
                     case (int)ClsExcute.ApprovalListNo.DRConstructionApproval:                  // 6:工事日報承認
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 369)
@@ -60,9 +60,9 @@
                                                             " FROM",
                                                             " CONSTRUCTIONBASEINFO CA",
                                                             " LEFT JOIN PERSONINCHARGEMASTER CB",
-                                                            "      ON CA.SALESPERSONCODE = CB.PERSONCODE",
+                                                            "      ON CB.PERSONCODE = CA.SALESPERSONCODE",
                                                             " LEFT JOIN DEPARTMENTMASTER CC",
-                                                            "      ON CA.SalesDepCode = CC.DEPARTMENTCODE",
+                                                            "      ON CC.DepartmentCode = CA.SalesDepCode",
                                                             " LEFT JOIN constructionbaseinfodetail As CD",
                                                             "      ON CD.ConstructionCode = CA.ConstructionCode",
                                                             string.Format(" And CD.DetailNo = {0}",(int)ConstructionBaseInfoDetail.DataNoDef.SalesDepartmentName),
@@ -79,9 +79,9 @@
                                                             " FROM",
                                                             " CONSTRUCTIONBASEINFO DA",
                                                             " LEFT JOIN PERSONINCHARGEMASTER DB",
-                                                            "      ON DA.CONSTRUCTIONPERSONCODE = DB.PERSONCODE",
+                                                            "      ON DB.PERSONCODE = DA.CONSTRUCTIONPERSONCODE",
                                                             " LEFT JOIN DEPARTMENTMASTER DC",
-                                                            "      ON DA.ConstrDepCode = DC.DEPARTMENTCODE",
+                                                            "      ON DC.DepartmentCode = DA.ConstrDepCode",
                                                             " LEFT JOIN constructionbaseinfodetail As DD",
                                                             "      ON DD.ConstructionCode = DA.ConstructionCode",
                                                             string.Format(" And DD.DetailNo = {0}",(int)ConstructionBaseInfoDetail.DataNoDef.ConstrDepartmentName),
@@ -174,6 +174,7 @@
                 int NowPoint = ClsExcute.GetNowProcessPoint();
                 // ���ݐݒ�l�N���A
                 ClsExcute.ClearSaveParameter(NowPoint);
+
                 // ----- ��ʏ��ޔ�
                 // �����N
                 ClsExcute.ProcControlPara[NowPoint].StringSaveParameter.Add(numUDConstPro.Value.ToString());
@@ -197,6 +198,7 @@
                     ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add((int)dgv.SortOrder);
                 }
 
+                // ----- �N���p�����[�^�Z�b�g
                 // ���N���v���Z�X�Z�b�g
                 NowPoint = ClsExcute.NextProcess(m_ExecuteFlg);
                 // �I���H���ԍ��Z�b�g
@@ -255,37 +257,27 @@
                     int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("���ϒ�o")).Key;
                     int iStatus2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�������p")).Key;
 
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+                    strSQL.Append(" And (");
 
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
+                    strSQL.AppendFormat("(A.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSQL.AppendFormat("                   WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" And (A.SalesPersonCode IN (Select A1.PersonCode From PersonInChargeMaster A1");
-                    strSQL.AppendFormat(" And (A.SalesPersonCode IN (Select A1.PersonCode From {0} As A1", strChgDep.ToString());
-                    strSQL.Append("                                  Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
-                    strSQL.AppendFormat("                                                        WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0}", iStatus);
 
-                    // strSQL.Append(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From PersonInChargeMaster A3");
-                    strSQL.AppendFormat(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From {0} As A3", strChgDep.ToString());
-                    strSQL.Append("                                         Where A3.DepartmentCode IN (SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
-                    strSQL.AppendFormat("                                                               WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" And (");
+                    strSQL.AppendFormat("(A.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSQL.AppendFormat("                    WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From PersonInChargeMaster A5");
-                    strSQL.AppendFormat(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From {0} As A5", strChgDep.ToString());
-                    strSQL.Append("                                    Where A5.DepartmentCode IN (SELECT A6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A6");
-                    strSQL.AppendFormat("                                                          WHERE A6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3");
+                    strSQL.AppendFormat("                          WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.ConstructionInstructor IN (Select A7.PersonCode From PersonInChargeMaster A7");
-                    strSQL.AppendFormat(" Or A.ConstructionInstructor IN (Select A7.PersonCode From {0} As A7", strChgDep.ToString());
-                    strSQL.Append("                                       Where A7.DepartmentCode IN (SELECT A8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A8");
-                    strSQL.AppendFormat("                                                             WHERE A8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
+                    strSQL.AppendFormat("                          WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("))");
 
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0} And A.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 369)
@@ -670,7 +670,7 @@
                 strSQL.Append(" AND D.InvoiceNo = C.INVOICENO");
                 strSQL.Append(" WHERE");
                 strSQL.AppendFormat(" TRUNCATE ((A.ConstructionCode / 100), 0) = {0}", CommonMotions.cnvTruncate(m_ConstructionCode / 100));
-                strSQL.AppendFormat(" AND A.ApprovalCode = {0}", (int)ClsExcute.ApprovalListNo.OrderBillingApproval);
+                strSQL.AppendFormat(" AND A.ApprovalCode = {0}", (int)ClsExcute.ApprovalListNo.OrderRequestApproval);
                 strSQL.Append(" AND A.SeqNo = 1");
                 strSQL.Append(" GROUP BY");
                 strSQL.Append(" A.ApprovalCode");
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 369)
@@ -294,32 +294,27 @@
                     int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("���ϒ�o")).Key;
                     int iStatus2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�������p")).Key;
 
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+                    strSecurity.Append(" And (");
 
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
+                    strSecurity.AppendFormat("(D.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSecurity.Append("    Or D.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSecurity.AppendFormat("                   WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    strSecurity.AppendFormat(" And (D.SalesPersonCode IN (Select A1.PersonCode From {0} As A1", strChgDep.ToString());
-                    strSecurity.Append("                            Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
-                    strSecurity.AppendFormat("                                                  WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
                     strSecurity.AppendFormat(" Or (D.ConstructionStatusFlg >= {0}", iStatus);
 
-                    strSecurity.AppendFormat("       And (D.ConstructionPersonCode IN (Select A3.PersonCode From {0} As A3", strChgDep.ToString());
-                    strSecurity.Append("                                         Where A3.DepartmentCode IN (SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
-                    strSecurity.AppendFormat("                                                               WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSecurity.Append(" And (");
+                    strSecurity.AppendFormat("(D.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSecurity.Append("    Or D.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSecurity.AppendFormat("                    WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    strSecurity.AppendFormat("       Or D.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From {0} As A5", strChgDep.ToString());
-                    strSecurity.Append("                                    Where A5.DepartmentCode IN (SELECT A6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A6");
-                    strSecurity.AppendFormat("                                                          WHERE A6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSecurity.AppendFormat(" Or (D.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSecurity.Append("        Or D.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3");
+                    strSecurity.AppendFormat("                          WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    strSecurity.AppendFormat("       Or D.ConstructionInstructor IN (Select A7.PersonCode From {0} As A7", strChgDep.ToString());
-                    strSecurity.Append("                                       Where A7.DepartmentCode IN (SELECT A8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A8");
-                    strSecurity.AppendFormat("                                                             WHERE A8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
+                    strSecurity.AppendFormat(" Or (D.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSecurity.Append("        Or D.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
+                    strSecurity.AppendFormat("                          WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSecurity.Append("))");
 
                     strSecurity.AppendFormat(" Or (D.ConstructionStatusFlg >= {0} And D.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
                     strSecurity.AppendFormat(" Or (D.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
@@ -1189,8 +1184,8 @@
                 string strdtMin = DateTime.MinValue.ToShortDateString();
                 string strdtMax = DateTime.MaxValue.ToShortDateString();
 
+                // �����J�n�I���N����
                 int nTargetYear = (int)numUDConstPro.Value;
-                // �����J�n�I���N����
                 string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
                 string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
 
@@ -1241,10 +1236,6 @@
 
                 strSQL.Append(" LEFT JOIN CONSTRUCTIONBASEINFO AS D");
                 strSQL.Append("       ON A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE");
-                if (DepartmentCode > 0)
-                {
-                    strSQL.AppendFormat("       AND D.ConstrDepCode = {0}", DepartmentCode);
-                }
                 strSQL.AppendFormat(" AND D.TyingFlg != {0}", (int)ConstructionBaseInfo.TyingFlgDef.Tying);
                 strSQL.AppendFormat(" AND D.CONSTRUCTIONPERIOD = {0}", nTargetYear);
                 strSQL.AppendFormat(" AND D.CONSTRUCTIONSTATUSFLG != {0}", NotOrder);
@@ -1271,7 +1262,7 @@
                 if (strSecurity.Length > 0) strSQL.Append(strSecurity.ToString());
                 if (DepartmentCode > 0)
                 {
-                    strSQL.AppendFormat(" AND I.DepartmentCode = {0}", DepartmentCode);
+                    strSQL.AppendFormat(" AND D.ConstrDepCode = {0}", DepartmentCode);
                 }
                 if (PersonCode > 0)
                 {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs	(revision 369)
@@ -322,34 +322,6 @@
         }
         #endregion
 
-        #region ������SQL�쐬
-        /// <summary>
-        /// ������SQL�쐬
-        /// </summary>
-        private string CreateSerchSQL()
-        {
-            string strSubSQL = "";
-            try
-            {
-                // �J�n�N
-                strSubSQL = string.Format(" And  ({0} = A.ConstructionPeriod)", numUDConstPro.Value);
-
-                // �������I������Ă���ꍇ
-                strSubSQL += GetDepartmentString();
-
-                // �S���҂��I������Ă���ꍇ
-                strSubSQL += GetPersonString();
-
-                return strSubSQL;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", ex.Message, strSubSQL);
-                return string.Empty;
-            }
-        }
-        #endregion
-
         #region �\���f�[�^�Ǎ��ݏ�
         /// <summary>
         /// �\���f�[�^�Ǎ��ݏ�
@@ -371,28 +343,41 @@
         /// <summary>
         /// �\���p�f�[�^�擾SQL�쐬
         /// </summary>
-        private void CreateInitSQL(ref string strSQL)
+        private void CreateInitSQL(ref StringBuilder strSQL)
         {
             try
             {
-                strSQL = "SELECT DISTINCT A.ConstructionCode";
-                strSQL += ", A.ConstructionPeriod";
-                strSQL += ", B.DetailString";
-                strSQL += ", A.SalesPersonCode";
-                strSQL += ", A.ConstructionPersonCode";
-                strSQL += ", A.ConstructionStatusFlg";
-                strSQL += ", E.PERSONNAME";
-                strSQL += ", F.PERSONNAME";
-                strSQL += " FROM ConstructionBaseInfo A";
-                strSQL += " LEFT JOIN PERSONINCHARGEMASTER E ON A.SalesPersonCode = E.PersonCode";
-                strSQL += " LEFT JOIN PERSONINCHARGEMASTER F ON A.ConstructionPersonCode = F.PersonCode";
-                strSQL += ", ConstructionBaseInfoDetail B";
-                strSQL += ", PERSONINCHARGEMASTER D";
-                strSQL += " WHERE (A.ConstructionCode = B.ConstructionCode";
-                strSQL += string.Format(" AND B.DETAILNO = {0})", (int)ConstructionBaseInfoDetail.DataNoDef.ConstructionName);
-                strSQL += " AND (A.SalesPersonCode = D.PersonCode OR A.ConstructionPersonCode = D.PersonCode";
-                strSQL += " OR A.ConstrSubPersonCode = D.PersonCode OR A.ConstructionInstructor = D.PersonCode)";
+                // �����J�n�I���N����
+                int nTargetYear = (int)numUDConstPro.Value;
+                string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
+                string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
 
+                strSQL.Append("SELECT DISTINCT A.ConstructionCode");
+                strSQL.Append(", A.ConstructionPeriod");
+                strSQL.Append(", B.DetailString");
+                strSQL.Append(", A.SalesPersonCode");
+                strSQL.Append(", A.ConstructionPersonCode");
+                strSQL.Append(", A.ConstructionStatusFlg");
+                strSQL.Append(", E.PERSONNAME");
+                strSQL.Append(", F.PERSONNAME");
+                strSQL.Append(" FROM ConstructionBaseInfo A");
+
+                strSQL.Append(" LEFT JOIN PERSONINCHARGEMASTER E ON A.SalesPersonCode = E.PersonCode");
+
+                strSQL.Append(" LEFT JOIN PERSONINCHARGEMASTER F ON A.ConstructionPersonCode = F.PersonCode");
+
+                strSQL.Append(" INNER JOIN ConstructionBaseInfoDetail B");
+                strSQL.Append("        On (A.ConstructionCode = B.ConstructionCode");
+                strSQL.AppendFormat("  AND B.DETAILNO = {0})", (int)ConstructionBaseInfoDetail.DataNoDef.ConstructionName);
+
+                strSQL.Append(" Left Join chgchargedep D");
+                strSQL.Append("       On D.PersonCode IN (A.SalesPersonCode");
+                strSQL.Append("                         , A.ConstructionPersonCode");
+                strSQL.Append("                         , A.ConstrSubPersonCode");
+                strSQL.Append("                         , A.ConstructionInstructor)");
+                strSQL.AppendFormat(" And (DATE(D.StartDate) <= DATE('{0}')", strdtEnd);
+                strSQL.AppendFormat(" And DATE('{0}') <= DATE(D.CompDate))", strdtStart);
+
                 List<int> paraList = new List<int>();
                 bool paraSw = false;
                 bool allSW = false;
@@ -445,11 +430,18 @@
                         break;
                 }
 
-                // SQL�擾
-                strSQL += CreateSerchSQL();
-                if (!allSW) strSQL += CreateListSQL(paraList, paraSw);
+                // �J�n�N
+                strSQL.AppendFormat(" Where ({0} = A.ConstructionPeriod)", numUDConstPro.Value);
 
-                strSQL += " Order By A.ConstructionCode Desc";
+                // �������I������Ă���ꍇ
+                strSQL.Append(GetDepartmentString());
+
+                // �S���҂��I������Ă���ꍇ
+                strSQL.Append(GetPersonString());
+
+                if (!allSW) strSQL.Append(CreateListSQL(paraList, paraSw));
+
+                strSQL.Append(" Order By A.ConstructionCode Desc");
             }
             catch (Exception ex)
             {
@@ -515,13 +507,13 @@
             try
             {
                 dgvMaster.Rows.Clear();
-                string strSQL = "";
+                StringBuilder strSQL = new StringBuilder();
                 // SQL�쐬
                 CreateInitSQL(ref strSQL);
                 ArrayList arData = new ArrayList();
 
                 // �H����{���擾
-                if (!cbiDB.ExecuteReader(strSQL, ref arData)) goto DspBlankRow;
+                if (!cbiDB.ExecuteReader(strSQL.ToString(), ref arData)) goto DspBlankRow;
 
                 // �f�[�^�\��
                 int ino = 1;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistListAuxiliary.cs	(revision 369)
@@ -176,7 +176,7 @@
         /// ����SQL�̃Z�L�����e�B���蕔�����쐬����
         /// </summary>
         /// <param name="strSQL"></param>
-        private void CreateNewSecuritySQL(ref string strSQL)
+        private void CreateNewSecuritySQL(ref StringBuilder strSQL)
         {
             try
             {
@@ -197,13 +197,13 @@
                 {
                     // �ꕔ�����L
                     // �@���Ǘ��ҁi�������̂݁j
-                    strSQL += " And (A.PERSONCODE IN (Select A1.PersonCode From PersonInChargeMaster A1";
-                    strSQL += string.Format(" WHERE A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2 WHERE A2.PERSONCODE = {0})))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" And (A.PERSONCODE IN (Select A1.PersonCode From PersonInChargeMaster A1");
+                    strSQL.AppendFormat(" WHERE A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2 WHERE A2.PERSONCODE = {0})))", CommonMotions.LoginUserData.PersonCode);
 
                 }
                 else if (CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[None].Key)
                 {
-                    strSQL += string.Format(" And (A.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" And (A.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
                 }
             }
             catch (Exception ex)
@@ -270,29 +270,29 @@
         /// <summary>
         /// �\���p�f�[�^�擾SQL�쐬
         /// </summary>
-        private void CreateInitSQL(ref string strSQL)
+        private void CreateInitSQL(ref StringBuilder strSQL)
         {
             try
             {
-                strSQL = "SELECT";
-                strSQL += " A.PersonName";
-                strSQL += ", A.CORPORATESTATUSNAME";
-                strSQL += ", A.CORPORATESTATUSPOINT";
-                strSQL += ", A.ORDERERSNAME1";
-                strSQL += ", A.ORDERERSNAME2";
-                strSQL += ", C.NAMESTRING";
-                strSQL += ", DATE_FORMAT(A.CREATEDATE,'%Y/%m/%d')";
-                strSQL += ", A.CreatePersonCode";
-                strSQL += ", A.SEQNO";
-                strSQL += ", A.DepartmentName";
-                strSQL += ", A.DATAMODE";
-                strSQL += " FROM COSTOMERREGIST A";
-                strSQL += " LEFT JOIN DIVISIONMASTER C ON C.DIVISIONCODE = 1 AND C.NAMECODE = A.ORDERCOTEGORY";
-                strSQL += string.Format(" WHERE A.PETITIONPERIOD = {0}", numUDConstPro.Value);
-                strSQL += GetDepartmentString();
-                strSQL += GetPersonString();
+                strSQL.Append("SELECT");
+                strSQL.Append(" A.PersonName");
+                strSQL.Append(", A.CORPORATESTATUSNAME");
+                strSQL.Append(", A.CORPORATESTATUSPOINT");
+                strSQL.Append(", A.ORDERERSNAME1");
+                strSQL.Append(", A.ORDERERSNAME2");
+                strSQL.Append(", C.NAMESTRING");
+                strSQL.Append(", DATE_FORMAT(A.CREATEDATE,'%Y/%m/%d')");
+                strSQL.Append(", A.CreatePersonCode");
+                strSQL.Append(", A.SEQNO");
+                strSQL.Append(", A.DepartmentName");
+                strSQL.Append(", A.DATAMODE");
+                strSQL.Append(" FROM COSTOMERREGIST A");
+                strSQL.Append(" LEFT JOIN DIVISIONMASTER C ON C.DIVISIONCODE = 1 AND C.NAMECODE = A.ORDERCOTEGORY");
+                strSQL.AppendFormat(" WHERE A.PETITIONPERIOD = {0}", numUDConstPro.Value);
+                strSQL.Append(GetDepartmentString());
+                strSQL.Append(GetPersonString());
                 CreateNewSecuritySQL(ref strSQL);
-                strSQL += " ORDER BY A.CREATEDATE DESC, A.SEQNO DESC";
+                strSQL.Append(" ORDER BY A.CREATEDATE DESC, A.SEQNO DESC");
             }
             catch (Exception ex)
             {
@@ -374,12 +374,12 @@
             {
                 foreach (DataGridViewColumn wrkCol in dgvMaster.Columns) wrkCol.SortMode = DataGridViewColumnSortMode.NotSortable;
                 dgvMaster.Rows.Clear();
-                string strSQL = "";
+                StringBuilder strSQL = new StringBuilder();
                 // SQL�쐬
                 CreateInitSQL(ref strSQL);
                 ArrayList arData = new ArrayList();
                 // �����ғo�^�\���f�[�^�擾
-                if (RegDB.ExecuteReader(strSQL, ref arData))
+                if (RegDB.ExecuteReader(strSQL.ToString(), ref arData))
                 {
                     // �O���b�h�փZ�b�g�Ƃ���
                     SetToGridData(arData);
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstruction.cs	(revision 369)
@@ -388,8 +388,15 @@
         private ContextMenuStrip m_ExecMenuStrip = new ContextMenuStrip();
         #endregion
 
+        #region ���F�p�l�����X�g
+        /// <summary>
+        /// ���F�p�l�����X�g
+        /// </summary>
+        private List<Panel> m_ApplPnlList = new List<Panel>();
         #endregion
 
+        #endregion
+
         #region �v���p�e�B
         /// <summary>
         /// �S���҃R�[�h
@@ -584,26 +591,26 @@
                 DataLoadAll();
 
                 // �\���E���F�\������
-                InitApprovalDisplay();
+                // ----- ���F�ς̏ꍇ���F�ς݃t���OON
+                if (ClsCommonApproval.CheckProcessApproval(m_ConstructionCode
+                                                                , (int)ClsExcute.ApprovalListNo.DRConstructionApproval
+                                                                , CommonDefine.s_Default_OrderNo))
+                {
+                    //m_ApprovalFlag = true;
+                    m_EditLock = true;
+                }
 
                 // *-----* �����ړ��{�^���ݒ� *-----*
                 CreateProcessContextMenu(m_SubForm);
                 // *-----* �����ړ��{�^���ݒ� *-----*
 
-                // ���F��ʂ́u���F�Ώۃf�[�^������v����̋N�����͏��F�{�^���̕\��������
-                bool bApproval = ClsCommonApproval.ExceApprovalScreen();
-                if (bApproval && !m_SubForm)
-                {
-                    // �H���Č��̊Ǘ��������擾����
-                    int DepartmentCode = ClsCommonApproval.GetFromConstructionTheDepartment(m_ConstructionCode);
-                    // ���F�ΏۃR�[�h���擾����
-                    int ApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals("�H�����񏳔F")).Key;
-                    // �Č��ɑ΂��Đ\��������Ă��邩���m�F����
-                    bool Pettition = ClsCommonApproval.CheckProcessPetition(m_ConstructionCode, ApprovalCode, CommonDefine.s_Default_OrderNo);
-                    // ���O�C���҂����F�҂����m�F����
-                    bool Approvaler = ClsCommonApproval.CheckUserForApprover(ApprovalCode, DepartmentCode);
-                }
 
+                // �\���E���F�\������
+                ClsCommonApproval.CtrlConstrAppPanel((int)ClsExcute.ApprovalListNo.DRConstructionApproval
+                                                        , m_ConstructionCode
+                                                        , 1
+                                                        , m_ApplPnlList);
+
                 // �Q�ƃ��[�h
                 if (m_EditLock)
                 {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRConstruction/FrmDRConstructionAuxiliary.cs	(revision 369)
@@ -221,6 +221,9 @@
                     m_Grid5CtrlPoint[i] = m_Grid5Control[i].Location;
                     m_Grid5CtrlSize[i] = m_Grid5Control[i].Size;
                 }
+
+                m_ApplPnlList.Add(pnlApproval);
+                m_ApplPnlList.Add(pnlApprovalButton);
             }
             catch (Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRList/FrmDRListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRList/FrmDRListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRList/FrmDRListAuxiliary.cs	(revision 369)
@@ -205,37 +205,27 @@
                     int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("���ϒ�o")).Key;
                     int iStatus2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�������p")).Key;
 
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+                    strSQL.Append(" And (");
 
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
+                    strSQL.AppendFormat("(A.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSQL.AppendFormat("                   WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" And (A.SalesPersonCode IN (Select A1.PersonCode From PersonInChargeMaster A1");
-                    strSQL.AppendFormat(" And (A.SalesPersonCode IN (Select A1.PersonCode From {0} As A1", strChgDep.ToString());
-                    strSQL.Append("                                  Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
-                    strSQL.AppendFormat("                                                        WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0}", iStatus);
 
-                    // strSQL.Append(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From PersonInChargeMaster A3");
-                    strSQL.AppendFormat(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From {0} As A3", strChgDep.ToString());
-                    strSQL.Append("                                         Where A3.DepartmentCode IN (SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
-                    strSQL.AppendFormat("                                                               WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" And (");
+                    strSQL.AppendFormat("(A.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSQL.AppendFormat("                    WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From PersonInChargeMaster A5");
-                    strSQL.AppendFormat(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From {0} As A5", strChgDep.ToString());
-                    strSQL.Append("                                    Where A5.DepartmentCode IN (SELECT A6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A6");
-                    strSQL.AppendFormat("                                                          WHERE A6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3");
+                    strSQL.AppendFormat("                          WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.ConstructionInstructor IN (Select A7.PersonCode From PersonInChargeMaster A7");
-                    strSQL.AppendFormat(" Or A.ConstructionInstructor IN (Select A7.PersonCode From {0} As A7", strChgDep.ToString());
-                    strSQL.Append("                                       Where A7.DepartmentCode IN (SELECT A8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A8");
-                    strSQL.AppendFormat("                                                             WHERE A8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
+                    strSQL.AppendFormat("                          WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("))");
 
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0} And A.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostAux.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostAux.cs	(revision 369)
@@ -152,94 +152,6 @@
         }
         #endregion
 
-        #region ����SQL�̃Z�L�����e�B���蕔�����쐬����
-        /// <summary>
-        /// ����SQL�̃Z�L�����e�B���蕔�����쐬����
-        /// </summary>
-        /// <param name="strSQL"></param>
-        private void CreateSecuritySQL(ref StringBuilder strSecurity)
-        {
-            try
-            {
-                // �L�[�l�擾
-                int AllPath = (int)CommonDefine.SecurityRangePos.AllPath;           // �S����
-                int Multiple = (int)CommonDefine.SecurityRangePos.Multiple;         // ��������
-                int Only = (int)CommonDefine.SecurityRangePos.Only;                 // �������̂�
-                int None = (int)CommonDefine.SecurityRangePos.None;                 // ���S���҂̂�
-
-                // �f�[�^�A�N�Z�X�Ɍ����ɂ�萧��������
-                if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode
-                || CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[AllPath].Key)
-                {
-                    // ���ׂđΏہi����SQL���j
-                }
-                else if (CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[Multiple].Key
-                        || CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[Only].Key)
-                {
-                    // �ꕔ�����L
-                    // �@���Ǘ��ҁi�������̂݁j
-                    int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("���ϒ�o")).Key;
-                    int iStatus2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�������p")).Key;
-
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
-
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
-
-                    // strSecurity.Append(" And (D.SalesPersonCode IN (Select A1.PersonCode From PersonInChargeMaster A1");
-                    strSecurity.AppendFormat(" And (D.SalesPersonCode IN (Select A1.PersonCode From {0} As A1", strChgDep.ToString());
-                    strSecurity.Append("                                  Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
-                    strSecurity.AppendFormat("                                                        WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
-                    strSecurity.AppendFormat(" Or (D.ConstructionStatusFlg >= {0}", iStatus);
-
-                    // strSecurity.Append(" And (D.ConstructionPersonCode IN (Select A3.PersonCode From PersonInChargeMaster A3");
-                    strSecurity.AppendFormat(" And (D.ConstructionPersonCode IN (Select A3.PersonCode From {0} As A3", strChgDep.ToString());
-                    strSecurity.Append("                                         Where A3.DepartmentCode IN (SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
-                    strSecurity.AppendFormat("                                                               WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
-                    // strSecurity.Append(" Or D.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From PersonInChargeMaster A5");
-                    strSecurity.AppendFormat(" Or D.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From {0} As A5", strChgDep.ToString());
-                    strSecurity.Append("                                       Where A5.DepartmentCode IN (SELECT A6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A6");
-                    strSecurity.AppendFormat("                                                             WHERE A6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
-                    // strSecurity.Append(" Or D.ConstructionInstructor IN (Select A7.PersonCode From PersonInChargeMaster A7");
-                    strSecurity.AppendFormat(" Or D.ConstructionInstructor IN (Select A7.PersonCode From {0} As A7", strChgDep.ToString());
-                    strSecurity.Append("                                       Where A7.DepartmentCode IN (SELECT A8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A8");
-                    strSecurity.AppendFormat("                                                             WHERE A8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
-
-                    strSecurity.AppendFormat(" Or (D.ConstructionStatusFlg >= {0} And D.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
-                    strSecurity.AppendFormat(" Or (D.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
-                    strSecurity.AppendFormat(" And D.TransferConstruction = {0}))", CommonMotions.LoginUserData.DepartmentCode);
-                }
-                else if (CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[None].Key)
-                {
-                    // ��ʎg�p��
-                    int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("���ϒ�o")).Key;
-
-                    strSecurity.AppendFormat(" And (D.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
-
-                    strSecurity.AppendFormat(" Or (D.ConstructionStatusFlg > {0}", iStatus);
-
-                    strSecurity.AppendFormat(" And (D.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
-
-                    strSecurity.AppendFormat(" Or D.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
-
-                    strSecurity.AppendFormat(" Or D.ConstructionInstructor = {0})))", CommonMotions.LoginUserData.PersonCode);
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("�V�X�e���G���[�F{0}�F{1}", ex.Message, strSecurity);
-            }
-        }
-        #endregion
-
         #region �������f�[�^�擾
         /// <summary>
         /// �������f�[�^�擾
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudgetAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudgetAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateBudget/FrmEstimateBudgetAuxiliary.cs	(revision 369)
@@ -3191,7 +3191,7 @@
             {
                 // 承認済の場合は終了
                 int iCode1 = ClsExcute.AppovalList.First(x => x.Value.Equals("積算予算書承認")).Key;
-                if (ClsCommonApproval.CheckProcessApprovalData(m_ConstructionCode, iCode1, CommonDefine.s_Default_OrderNo)) return true;
+                if (ClsCommonApproval.CheckProcessApproval(m_ConstructionCode, iCode1, CommonDefine.s_Default_OrderNo)) return true;
 
                 foreach (int[] wrkData in m_ChangeOutSourceList)
                 {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.designer.cs	(revision 369)
@@ -28,13 +28,13 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle 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();
             this.label1 = new System.Windows.Forms.Label();
             this.btnDataDelete = new System.Windows.Forms.Button();
             this.btnDataEntry = new System.Windows.Forms.Button();
@@ -175,11 +175,11 @@
             this.panel1.AutoSize = true;
             this.panel1.BackColor = System.Drawing.Color.RoyalBlue;
             this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.panel1.Controls.Add(this.pnlApproval);
+            this.panel1.Controls.Add(this.pnlApprovalButton);
             this.panel1.Controls.Add(this.lblLabel07);
             this.panel1.Controls.Add(this.label5);
             this.panel1.Controls.Add(this.panel3);
-            this.panel1.Controls.Add(this.pnlApproval);
-            this.panel1.Controls.Add(this.pnlApprovalButton);
             this.panel1.Controls.Add(this.panel2);
             this.panel1.Controls.Add(this.label7);
             this.panel1.Controls.Add(this.lblDispCnt03);
@@ -780,14 +780,14 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dgvEntryData.BackgroundColor = System.Drawing.Color.White;
             this.dgvEntryData.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.ControlDark;
-            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, 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.dgvEntryData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.ControlDark;
+            dataGridViewCellStyle8.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvEntryData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
             this.dgvEntryData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvEntryData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Column03,
@@ -827,8 +827,8 @@
             // Column03
             // 
             this.Column03.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column03.DefaultCellStyle = dataGridViewCellStyle2;
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column03.DefaultCellStyle = dataGridViewCellStyle9;
             this.Column03.Frozen = true;
             this.Column03.HeaderText = "№";
             this.Column03.Name = "Column03";
@@ -878,8 +878,8 @@
             // 
             // Column07
             // 
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column07.DefaultCellStyle = dataGridViewCellStyle3;
+            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column07.DefaultCellStyle = dataGridViewCellStyle10;
             this.Column07.Frozen = true;
             this.Column07.HeaderText = "名　　称";
             this.Column07.Name = "Column07";
@@ -898,10 +898,10 @@
             // 
             // Column09
             // 
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle4.Format = "N2";
-            dataGridViewCellStyle4.NullValue = null;
-            this.Column09.DefaultCellStyle = dataGridViewCellStyle4;
+            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle11.Format = "N2";
+            dataGridViewCellStyle11.NullValue = null;
+            this.Column09.DefaultCellStyle = dataGridViewCellStyle11;
             this.Column09.Frozen = true;
             this.Column09.HeaderText = "数　量";
             this.Column09.Name = "Column09";
@@ -911,8 +911,8 @@
             // 
             // Column10
             // 
-            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column10.DefaultCellStyle = dataGridViewCellStyle5;
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column10.DefaultCellStyle = dataGridViewCellStyle12;
             this.Column10.Frozen = true;
             this.Column10.HeaderText = "単　位";
             this.Column10.Name = "Column10";
@@ -922,10 +922,10 @@
             // 
             // Column11
             // 
-            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle6.Format = "N2";
-            dataGridViewCellStyle6.NullValue = null;
-            this.Column11.DefaultCellStyle = dataGridViewCellStyle6;
+            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle13.Format = "N2";
+            dataGridViewCellStyle13.NullValue = null;
+            this.Column11.DefaultCellStyle = dataGridViewCellStyle13;
             this.Column11.Frozen = true;
             this.Column11.HeaderText = "単　価";
             this.Column11.Name = "Column11";
@@ -935,10 +935,10 @@
             // 
             // Column12
             // 
-            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle7.Format = "N0";
-            dataGridViewCellStyle7.NullValue = null;
-            this.Column12.DefaultCellStyle = dataGridViewCellStyle7;
+            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle14.Format = "N0";
+            dataGridViewCellStyle14.NullValue = null;
+            this.Column12.DefaultCellStyle = dataGridViewCellStyle14;
             this.Column12.Frozen = true;
             this.Column12.HeaderText = "金　額";
             this.Column12.Name = "Column12";
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.resx	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.resx	(revision 369)
@@ -120,6 +120,9 @@
   <metadata name="lblCellTotal.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="lblCellTotal.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs	(revision 369)
@@ -5,6 +5,7 @@
 using System.Text;
 using System.Windows.Forms;
 using System.Drawing;
+using System.Diagnostics;
 
 using ProcessManagement.Forms.ControlsAction;
 using ProcessManagement.Forms.CustomControls;
@@ -2190,7 +2191,7 @@
         /// <param name="wrkRow"></param>
         /// <param name="iLength"></param>
         /// <returns></returns>
-        private bool RowFeildCheck(DataGridViewRow wrkRow, ref int iLength)
+        private bool RowFeildCheck(DataGridViewRow wrkRow, ref int iLength, bool ComplexChk = true)
         {
             try
             {
@@ -2279,7 +2280,32 @@
                     CommonMotions.chgBackColor(wrkRow.Cells[iDNo], bAns);
                     bRet &= bAns;
                 }
-                return bRet;
+                // 複合チェックをしない場合は以下処理しない（大項目頁）
+                if (!ComplexChk) return bRet;
+
+                // 金額がある行は数量と単位があるかをチェックする
+                double dCnt = CommonMotions.cnvDouble(wrkRow.Cells[(int)GridItemColumn.UnitCount].Value);
+                long lAmount = CommonMotions.cnvLong(wrkRow.Cells[(int)GridItemColumn.LineTotal].Value);
+                string strUnitName = CommonMotions.cnvString(wrkRow.Cells[(int)GridItemColumn.UnitName].Value);
+
+                // チェック有ページでも金額が無ければ処理しない
+                if (lAmount == 0) return bRet;
+
+                if (dCnt > 0 && strUnitName.Length > 0)
+                {
+                    // 両方とも入っていれば正常
+                }
+                else
+                {
+                    // どちらかが無ければエラー
+                    // 背景色変更
+                    CommonMotions.chgBackColor(wrkRow.Cells[(int)GridItemColumn.UnitCount], false);
+                    CommonMotions.chgBackColor(wrkRow.Cells[(int)GridItemColumn.LineTotal], false);
+                    CommonMotions.chgBackColor(wrkRow.Cells[(int)GridItemColumn.UnitName], false);
+                    return false;
+                }
+
+                return true;
             }
             catch (System.Exception ex)
             {
@@ -2302,8 +2328,13 @@
             try
             {
                 // 全頁チェック
+                bool bCompChk = false;
                 foreach (EstimateInputPage chkPage in m_EntryPage)
                 {
+                    // 大項目頁は複合チェックをしない
+                    if(chkPage.Cotegory == CommonDefine.TabCotegory.Total) bCompChk = false;
+                    else bCompChk = true;
+
                     bool bAns = true;
                     // グリッドチェック
                     foreach (DataGridViewRow wrkRow in chkPage.EntryDGV.Rows)
@@ -2311,7 +2342,7 @@
                         // 空白行チェック
                         if (!ChkGridLineEffectiveness(wrkRow)) continue;
                         // 行毎のチェック
-                        bAns = RowFeildCheck(wrkRow, ref iLength);
+                        bAns &= RowFeildCheck(wrkRow, ref iLength, bCompChk);
                     }
                     if (!bAns) errPage = chkPage;
                     bRet &= bAns;
@@ -4061,7 +4092,7 @@
                     if (!(bool)(wrkRow.Cells[(int)GridItemColumn.MasterIn].Value) == true) continue;
                     // 行の論理チェック
                     int iLength = 0;
-                    bRet &= RowFeildCheck(wrkRow, ref iLength);
+                    bRet &= RowFeildCheck(wrkRow, ref iLength, false);
 
                     bAns = true;
                     // 名称
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/ConstrMATLList/FrmConstrMATLListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/ConstrMATLList/FrmConstrMATLListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/ConstrMATLList/FrmConstrMATLListAuxiliary.cs	(revision 369)
@@ -175,9 +175,14 @@
                 int Only = (int)CommonDefine.SecurityRangePos.Only;                 // �������̂�
                 int None = (int)CommonDefine.SecurityRangePos.None;                 // ���S���҂̂�
 
+                int AffairsFlg = CommonMotions.LoginUserSecurity.GeneralAffairs;    // �����t���O�擾
+
                 int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�˗��󂯒�")).Key;
                 int iStatus2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�������p")).Key;
 
+                // �����Ɩ��\�҂͑S�ăf�[�^�������
+                if (AffairsFlg == (int)SecurityMaster.GeneAffDef.GeneralDep) return;
+                
                 // �f�[�^�A�N�Z�X�Ɍ����ɂ�萧��������
                 if (CommonMotions.LoginUserData.PersonCode == CommonDefine.AdminCode
                 || CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[AllPath].Key)
@@ -190,37 +195,27 @@
                     // �ꕔ�����L
                     // �@���Ǘ��ҁi�������̂݁j
 
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+                    strSQL.Append(" And (");
 
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
+                    strSQL.AppendFormat("(A.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSQL.AppendFormat("                   WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" And (A.SalesPersonCode IN (Select A1.PersonCode From PersonInChargeMaster A1");
-                    strSQL.AppendFormat(" And (A.SalesPersonCode IN (Select A1.PersonCode From {0} As A1", strChgDep.ToString());
-                    strSQL.Append("                                  Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
-                    strSQL.AppendFormat("                                                        WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0}", iStatus);
 
-                    // strSQL.Append(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From PersonInChargeMaster A3");
-                    strSQL.AppendFormat(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From {0} As A3", strChgDep.ToString());
-                    strSQL.Append("                                         Where A3.DepartmentCode IN (SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
-                    strSQL.AppendFormat("                                                               WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" And (");
+                    strSQL.AppendFormat("(A.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSQL.AppendFormat("                    WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From PersonInChargeMaster A5");
-                    strSQL.AppendFormat(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From {0} As A5", strChgDep.ToString());
-                    strSQL.Append("                                      Where A5.DepartmentCode IN (SELECT A6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A6");
-                    strSQL.AppendFormat("                                                            WHERE A6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3");
+                    strSQL.AppendFormat("                          WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.ConstructionInstructor IN (Select A7.PersonCode From PersonInChargeMaster A7");
-                    strSQL.AppendFormat(" Or A.ConstructionInstructor IN (Select A7.PersonCode From {0} As A7", strChgDep.ToString());
-                    strSQL.Append("                                         Where A7.DepartmentCode IN (SELECT A8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A8");
-                    strSQL.AppendFormat("                                                               WHERE A8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
+                    strSQL.AppendFormat("                          WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("))");
 
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0} And A.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
@@ -362,10 +357,10 @@
 
                     strSQL.Append(" LEFT JOIN(");
                     strSQL.Append(" SELECT");
-                    strSQL.Append(" CA.CONSTRUCTIONCODE");
-                    strSQL.Append("     , CA.SALESPERSONCODE As PERSONCODE");
-                    strSQL.Append("     , CB.PERSONNAME As PERSONNAME");
-                    strSQL.Append("     , ifnull(CA.SalesDepCode, 0) As DEPARTMENTCODE");
+                    strSQL.Append("   CA.CONSTRUCTIONCODE");
+                    strSQL.Append("   , CA.SALESPERSONCODE As PERSONCODE");
+                    strSQL.Append("   , CB.PERSONNAME As PERSONNAME");
+                    strSQL.Append("   , ifnull(CA.SalesDepCode, 0) As DEPARTMENTCODE");
                     strSQL.Append(", ifnull(CD.DetailString, '') As DEPARTMENTNAME");
                     strSQL.Append(", ifnull(CB.DISPLAYORDER, 99999) As MANDISPORDER");
                     strSQL.Append(", ifnull(CC.DISPLAYORDER, 99999) As DEPDISPORDER");
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudgetAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudgetAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudgetAuxiliary.cs	(revision 369)
@@ -826,10 +826,6 @@
             try
             {
                 int SelectPeriod = (int)numUDConstPro.Value;
-                // �R���{�{�b�N�X���I�𕔏����擾����
-                int DepartmantCode = GetDepartmentCode();
-                // �R���{�{�b�N�X���I��S���҂��擾����
-                int PersonCode = GetConstructionPersonCode();
 
                 int iCode1 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�� �� ��")).Key;
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedings.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedings.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedings.cs	(revision 369)
@@ -293,8 +293,15 @@
         private bool m_ParentEnd = false;
         // *-----* ���ʏ����ݒ� *-----*
 
+        #region ���F�p�l�����X�g
+        /// <summary>
+        /// ���F�p�l�����X�g
+        /// </summary>
+        private List<Panel> m_ApplPnlList = new List<Panel>();
         #endregion
 
+        #endregion
+
         #region �v���p�e�B
         /// <summary>
         /// �H���ԍ�
@@ -518,25 +525,24 @@
                 InitDataLoad();
 
                 // �\���E���F�\������
-                InitApprovalDisplay();
+                // ----- ���F�ς̏ꍇ���F�ς݃t���OON
+                if (ClsCommonApproval.CheckProcessApproval(m_ConstructionCode
+                                                                , (int)ClsExcute.ApprovalListNo.DRProceedingsApproval
+                                                                , CommonDefine.s_Default_OrderNo))
+                {
+                    //m_ApprovalFlag = true;
+                    m_EditLock = true;
+                }
 
                 // *-----* �����ړ��{�^���ݒ� *-----*
                 CreateProcessContextMenu(m_SubForm);
                 // *-----* �����ړ��{�^���ݒ� *-----*
 
-                // ���F��ʂ́u���F�Ώۃf�[�^������v����̋N�����͏��F�{�^���̕\��������
-                bool bApproval = ClsCommonApproval.ExceApprovalScreen();
-                if (bApproval && !m_SubForm)
-                {
-                    // �H���Č��̊Ǘ��������擾����
-                    int DepartmentCode = ClsCommonApproval.GetFromConstructionTheDepartment(m_ConstructionCode);
-                    // ���F�ΏۃR�[�h���擾����
-                    int ApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals("�c���^���F")).Key;
-                    // �Č��ɑ΂��Đ\��������Ă��邩���m�F����
-                    bool Pettition = ClsCommonApproval.CheckProcessPetition(m_ConstructionCode, ApprovalCode, CommonDefine.s_Default_OrderNo);
-                    // ���O�C���҂����F�҂����m�F����
-                    bool Approvaler = ClsCommonApproval.CheckUserForApprover(ApprovalCode, DepartmentCode);
-                }
+                // �\���E���F�\������
+                ClsCommonApproval.CtrlConstrAppPanel((int)ClsExcute.ApprovalListNo.DRProceedingsApproval
+                                                        , m_ConstructionCode
+                                                        , 1
+                                                        , m_ApplPnlList);
 
                 // �Q�ƃ��[�h
                 if (m_EditLock)
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs	(revision 369)
@@ -131,6 +131,9 @@
             m_DspLabelCtrl[(int)DspLblCtrlName.Palce2] = radioButton2;          // 場所（その他）
             m_DspLabelCtrl[(int)DspLblCtrlName.PalceName] = textBox1;           // 場所名
             m_DspLabelCtrl[(int)DspLblCtrlName.ConstructionType] = label17;     // 工事種別
+
+            m_ApplPnlList.Add(pnlApproval);
+            m_ApplPnlList.Add(pnlApprovalButton);
         }
         #endregion
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs	(revision 369)
@@ -825,11 +825,10 @@
                     if (GetRow.Index == CurRowCnt) continue;
 
                     CompWork = CommonMotions.cnvString(GetRow.Cells[(int)GridColumn.RequestCount].Value);
+                    if (!CompWork.Equals(strExecCnt)) continue;
+
                     // 同一申請回数ならばチェックする
-                    if (CompWork.Equals(strExecCnt))
-                    {
-                        GetRow.Cells[(int)GridColumn.SelectExec].Value = bSelect;
-                    }
+                    GetRow.Cells[(int)GridColumn.SelectExec].Value = bSelect;
                 }
             }
             catch (Exception ex)
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs	(revision 369)
@@ -191,37 +191,27 @@
                     int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("���ϒ�o")).Key;
                     int iStatus2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�������p")).Key;
 
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+                    strSQL.Append(" And (");
 
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
+                    strSQL.AppendFormat("(A.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSQL.AppendFormat("                   WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" And (A.SalesPersonCode IN (Select A1.PersonCode From PersonInChargeMaster A1");
-                    strSQL.AppendFormat(" And (A.SalesPersonCode IN (Select A1.PersonCode From {0} As A1", strChgDep.ToString());
-                    strSQL.Append("                                  Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
-                    strSQL.AppendFormat("                                                        WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0}", iStatus);
 
-                    // strSQL.Append(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From PersonInChargeMaster A3");
-                    strSQL.AppendFormat(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From {0} As A3", strChgDep.ToString());
-                    strSQL.AppendFormat("                                   Where A3.DepartmentCode IN (SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
-                    strSQL.AppendFormat("                                                               WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" And (");
+                    strSQL.AppendFormat("(A.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSQL.AppendFormat("                    WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From PersonInChargeMaster A5");
-                    strSQL.AppendFormat(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From {0} As A5", strChgDep.ToString());
-                    strSQL.Append("                                      Where A5.DepartmentCode IN (SELECT A6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A6");
-                    strSQL.AppendFormat("                                                            WHERE A6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3");
+                    strSQL.AppendFormat("                          WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.ConstructionInstructor IN (Select A7.PersonCode From PersonInChargeMaster A7");
-                    strSQL.AppendFormat(" Or A.ConstructionInstructor IN (Select A7.PersonCode From {0} As A7", strChgDep.ToString());
-                    strSQL.Append("                                         Where A7.DepartmentCode IN (SELECT A8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A8");
-                    strSQL.AppendFormat("                                                               WHERE A8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
+                    strSQL.AppendFormat("                          WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("))");
 
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0} And A.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInput.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInput.designer.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInput.designer.cs	(revision 369)
@@ -365,7 +365,7 @@
             dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
             this.Column4.DefaultCellStyle = dataGridViewCellStyle4;
             this.Column4.Frozen = true;
-            this.Column4.HeaderText = "工　事　名";
+            this.Column4.HeaderText = "工　事　名　称";
             this.Column4.Name = "Column4";
             this.Column4.ReadOnly = true;
             this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInputAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInputAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqBillingStatInput/FrmBillingStatInputAuxiliary.cs	(revision 369)
@@ -132,7 +132,7 @@
                 strSQL.Append(" LEFT JOIN requesthead as B ON B.INVOICENO = A.INVOICENO");
                 strSQL.Append(" LEFT JOIN processapproval as C");
                 strSQL.Append(" ON C.ConstructionCode = B.REQCONSTRUCTIONCODE");
-                strSQL.AppendFormat(" AND C.ApprovalCode = {0}", (int)ClsExcute.ApprovalListNo.OrderBillingApproval);
+                strSQL.AppendFormat(" AND C.ApprovalCode = {0}", (int)ClsExcute.ApprovalListNo.OrderRequestApproval);
 	            strSQL.Append(" AND C.OrderNo= B.ORDERNO ");
                 strSQL.Append(" AND C.SeqNo = 1");
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqbillingStatus/FrmReqBillingStatusAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqbillingStatus/FrmReqBillingStatusAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqbillingStatus/FrmReqBillingStatusAuxiliary.cs	(revision 369)
@@ -183,37 +183,27 @@
                     // �ꕔ�����L
                     // �@���Ǘ��ҁi�������̂݁j
 
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+                    strSQL.Append(" And (");
 
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
+                    strSQL.AppendFormat("(B.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or B.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSQL.AppendFormat("                   WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" And (B.SalesPersonCode IN (Select A1.PersonCode From PersonInChargeMaster A1");
-                    strSQL.AppendFormat(" And (B.SalesPersonCode IN (Select A1.PersonCode From {0} As A1", strChgDep.ToString());
-                    strSQL.Append("                                  Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
-                    strSQL.AppendFormat("                                                        WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
                     strSQL.AppendFormat(" Or (B.ConstructionStatusFlg >= {0}", iStatus);
 
-                    // strSQL.Append(" And (B.ConstructionPersonCode IN (Select A3.PersonCode From PersonInChargeMaster A3");
-                    strSQL.AppendFormat(" And (B.ConstructionPersonCode IN (Select A3.PersonCode From {0} As A3", strChgDep.ToString());
-                    strSQL.Append("                                         Where A3.DepartmentCode IN (SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
-                    strSQL.AppendFormat("                                                               WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" And (");
+                    strSQL.AppendFormat("(B.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or B.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSQL.AppendFormat("                    WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or B.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From PersonInChargeMaster A5");
-                    strSQL.AppendFormat(" Or B.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From {0} As A5", strChgDep.ToString());
-                    strSQL.Append("                                    Where A5.DepartmentCode IN (SELECT A6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A6");
-                    strSQL.AppendFormat("                                                          WHERE A6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (B.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or B.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3");
+                    strSQL.AppendFormat("                          WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or B.ConstructionInstructor IN (Select A7.PersonCode From PersonInChargeMaster A7");
-                    strSQL.AppendFormat(" Or B.ConstructionInstructor IN (Select A7.PersonCode From {0} As A7", strChgDep.ToString());
-                    strSQL.Append("                                       Where A7.DepartmentCode IN (SELECT A8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A8");
-                    strSQL.AppendFormat("                                                             WHERE A8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (B.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or B.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
+                    strSQL.AppendFormat("                          WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("))");
 
                     strSQL.AppendFormat(" Or (B.ConstructionStatusFlg >= {0} And B.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
                     strSQL.AppendFormat(" Or (B.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrint.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrint.Designer.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrint.Designer.cs	(nonexistent)
@@ -1,292 +0,0 @@
-﻿namespace ProcessManagement.Forms.DataEntry
-{
-    partial class FrmRequestPrint
-    {
-        /// <summary>
-        /// Required designer variable.
-        /// </summary>
-        private System.ComponentModel.IContainer components = null;
-
-        /// <summary>
-        /// Clean up any resources being used.
-        /// </summary>
-        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
-        protected override void Dispose(bool disposing)
-        {
-            if (disposing && (components != null))
-            {
-                components.Dispose();
-            }
-            base.Dispose(disposing);
-        }
-
-        #region Windows Form Designer generated code
-
-        /// <summary>
-        /// Required method for Designer support - do not modify
-        /// the contents of this method with the code editor.
-        /// </summary>
-        private void InitializeComponent()
-        {
-            this.btnExecProc1 = new System.Windows.Forms.Button();
-            this.btnCancel = new System.Windows.Forms.Button();
-            this.btnExecProc2 = new System.Windows.Forms.Button();
-            this.panel1 = new System.Windows.Forms.Panel();
-            this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
-            this.groupBox2 = new System.Windows.Forms.GroupBox();
-            this.rdNoPrint = new System.Windows.Forms.RadioButton();
-            this.rdPrint = new System.Windows.Forms.RadioButton();
-            this.groupBox3 = new System.Windows.Forms.GroupBox();
-            this.txtComment5 = new System.Windows.Forms.TextBox();
-            this.txtComment4 = new System.Windows.Forms.TextBox();
-            this.txtComment3 = new System.Windows.Forms.TextBox();
-            this.txtComment2 = new System.Windows.Forms.TextBox();
-            this.txtComment1 = new System.Windows.Forms.TextBox();
-            this.groupBox4 = new System.Windows.Forms.GroupBox();
-            this.lblOrderersName = new System.Windows.Forms.Label();
-            this.label1 = new System.Windows.Forms.Label();
-            this.panel1.SuspendLayout();
-            this.groupBox2.SuspendLayout();
-            this.groupBox3.SuspendLayout();
-            this.groupBox4.SuspendLayout();
-            this.SuspendLayout();
-            // 
-            // btnExecProc1
-            // 
-            this.btnExecProc1.BackColor = System.Drawing.Color.Green;
-            this.btnExecProc1.FlatStyle = System.Windows.Forms.FlatStyle.System;
-            this.btnExecProc1.ForeColor = System.Drawing.Color.White;
-            this.btnExecProc1.Location = new System.Drawing.Point(185, 10);
-            this.btnExecProc1.Name = "btnExecProc1";
-            this.btnExecProc1.Size = new System.Drawing.Size(140, 40);
-            this.btnExecProc1.TabIndex = 0;
-            this.btnExecProc1.Text = "印刷のみ";
-            this.btnExecProc1.UseVisualStyleBackColor = false;
-            this.btnExecProc1.Click += new System.EventHandler(this.btnExecProc1_Click);
-            // 
-            // btnCancel
-            // 
-            this.btnCancel.BackColor = System.Drawing.Color.Red;
-            this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
-            this.btnCancel.ForeColor = System.Drawing.Color.White;
-            this.btnCancel.Location = new System.Drawing.Point(477, 10);
-            this.btnCancel.Name = "btnCancel";
-            this.btnCancel.Size = new System.Drawing.Size(140, 40);
-            this.btnCancel.TabIndex = 3;
-            this.btnCancel.Text = "キャンセル";
-            this.btnCancel.UseVisualStyleBackColor = false;
-            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
-            // 
-            // btnExecProc2
-            // 
-            this.btnExecProc2.BackColor = System.Drawing.Color.Green;
-            this.btnExecProc2.FlatStyle = System.Windows.Forms.FlatStyle.System;
-            this.btnExecProc2.ForeColor = System.Drawing.Color.White;
-            this.btnExecProc2.Location = new System.Drawing.Point(331, 10);
-            this.btnExecProc2.Name = "btnExecProc2";
-            this.btnExecProc2.Size = new System.Drawing.Size(140, 40);
-            this.btnExecProc2.TabIndex = 1;
-            this.btnExecProc2.Text = "保存のみ";
-            this.btnExecProc2.UseVisualStyleBackColor = false;
-            this.btnExecProc2.Click += new System.EventHandler(this.btnExecProc2_Click);
-            // 
-            // panel1
-            // 
-            this.panel1.BackColor = System.Drawing.Color.WhiteSmoke;
-            this.panel1.Controls.Add(this.btnCancel);
-            this.panel1.Controls.Add(this.btnExecProc1);
-            this.panel1.Controls.Add(this.btnExecProc2);
-            this.panel1.Location = new System.Drawing.Point(16, 429);
-            this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(620, 60);
-            this.panel1.TabIndex = 3;
-            // 
-            // dateTimePicker1
-            // 
-            this.dateTimePicker1.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.dateTimePicker1.Location = new System.Drawing.Point(312, 18);
-            this.dateTimePicker1.Name = "dateTimePicker1";
-            this.dateTimePicker1.Size = new System.Drawing.Size(179, 28);
-            this.dateTimePicker1.TabIndex = 5;
-            this.dateTimePicker1.TabStop = false;
-            // 
-            // groupBox2
-            // 
-            this.groupBox2.BackColor = System.Drawing.Color.WhiteSmoke;
-            this.groupBox2.Controls.Add(this.rdNoPrint);
-            this.groupBox2.Controls.Add(this.rdPrint);
-            this.groupBox2.Controls.Add(this.dateTimePicker1);
-            this.groupBox2.Location = new System.Drawing.Point(16, 67);
-            this.groupBox2.Name = "groupBox2";
-            this.groupBox2.Size = new System.Drawing.Size(620, 101);
-            this.groupBox2.TabIndex = 7;
-            this.groupBox2.TabStop = false;
-            this.groupBox2.Text = "請求日";
-            // 
-            // rdNoPrint
-            // 
-            this.rdNoPrint.AutoSize = true;
-            this.rdNoPrint.Location = new System.Drawing.Point(175, 58);
-            this.rdNoPrint.Name = "rdNoPrint";
-            this.rdNoPrint.Size = new System.Drawing.Size(363, 23);
-            this.rdNoPrint.TabIndex = 14;
-            this.rdNoPrint.Text = "印字しない（　　年　　月　　日）";
-            this.rdNoPrint.UseVisualStyleBackColor = true;
-            this.rdNoPrint.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged);
-            // 
-            // rdPrint
-            // 
-            this.rdPrint.AutoSize = true;
-            this.rdPrint.Checked = true;
-            this.rdPrint.Location = new System.Drawing.Point(175, 22);
-            this.rdPrint.Name = "rdPrint";
-            this.rdPrint.Size = new System.Drawing.Size(111, 23);
-            this.rdPrint.TabIndex = 15;
-            this.rdPrint.TabStop = true;
-            this.rdPrint.Text = "印字する";
-            this.rdPrint.UseVisualStyleBackColor = true;
-            // 
-            // groupBox3
-            // 
-            this.groupBox3.BackColor = System.Drawing.Color.WhiteSmoke;
-            this.groupBox3.Controls.Add(this.txtComment5);
-            this.groupBox3.Controls.Add(this.txtComment4);
-            this.groupBox3.Controls.Add(this.txtComment3);
-            this.groupBox3.Controls.Add(this.txtComment2);
-            this.groupBox3.Controls.Add(this.txtComment1);
-            this.groupBox3.Location = new System.Drawing.Point(15, 179);
-            this.groupBox3.Name = "groupBox3";
-            this.groupBox3.Size = new System.Drawing.Size(621, 200);
-            this.groupBox3.TabIndex = 14;
-            this.groupBox3.TabStop = false;
-            this.groupBox3.Text = "コメント";
-            // 
-            // txtComment5
-            // 
-            this.txtComment5.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtComment5.Location = new System.Drawing.Point(17, 161);
-            this.txtComment5.MaxLength = 60;
-            this.txtComment5.Name = "txtComment5";
-            this.txtComment5.Size = new System.Drawing.Size(587, 26);
-            this.txtComment5.TabIndex = 4;
-            // 
-            // txtComment4
-            // 
-            this.txtComment4.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtComment4.Location = new System.Drawing.Point(17, 127);
-            this.txtComment4.MaxLength = 60;
-            this.txtComment4.Name = "txtComment4";
-            this.txtComment4.Size = new System.Drawing.Size(587, 26);
-            this.txtComment4.TabIndex = 3;
-            // 
-            // txtComment3
-            // 
-            this.txtComment3.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtComment3.Location = new System.Drawing.Point(17, 94);
-            this.txtComment3.MaxLength = 60;
-            this.txtComment3.Name = "txtComment3";
-            this.txtComment3.Size = new System.Drawing.Size(587, 26);
-            this.txtComment3.TabIndex = 2;
-            // 
-            // txtComment2
-            // 
-            this.txtComment2.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtComment2.Location = new System.Drawing.Point(17, 61);
-            this.txtComment2.MaxLength = 60;
-            this.txtComment2.Name = "txtComment2";
-            this.txtComment2.Size = new System.Drawing.Size(587, 26);
-            this.txtComment2.TabIndex = 1;
-            // 
-            // txtComment1
-            // 
-            this.txtComment1.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtComment1.Location = new System.Drawing.Point(17, 27);
-            this.txtComment1.MaxLength = 60;
-            this.txtComment1.Name = "txtComment1";
-            this.txtComment1.Size = new System.Drawing.Size(587, 26);
-            this.txtComment1.TabIndex = 0;
-            // 
-            // groupBox4
-            // 
-            this.groupBox4.BackColor = System.Drawing.Color.WhiteSmoke;
-            this.groupBox4.Controls.Add(this.lblOrderersName);
-            this.groupBox4.Controls.Add(this.label1);
-            this.groupBox4.Location = new System.Drawing.Point(16, 0);
-            this.groupBox4.Name = "groupBox4";
-            this.groupBox4.Size = new System.Drawing.Size(620, 60);
-            this.groupBox4.TabIndex = 17;
-            this.groupBox4.TabStop = false;
-            // 
-            // lblOrderersName
-            // 
-            this.lblOrderersName.BackColor = System.Drawing.Color.White;
-            this.lblOrderersName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
-            this.lblOrderersName.Location = new System.Drawing.Point(112, 21);
-            this.lblOrderersName.Name = "lblOrderersName";
-            this.lblOrderersName.Size = new System.Drawing.Size(485, 26);
-            this.lblOrderersName.TabIndex = 17;
-            this.lblOrderersName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // label1
-            // 
-            this.label1.AutoSize = true;
-            this.label1.Location = new System.Drawing.Point(15, 25);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(93, 19);
-            this.label1.TabIndex = 16;
-            this.label1.Text = "請求先名";
-            // 
-            // FrmRequestPrint
-            // 
-            this.AcceptButton = this.btnExecProc1;
-            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
-            this.BackColor = System.Drawing.Color.White;
-            this.ClientSize = new System.Drawing.Size(652, 502);
-            this.Controls.Add(this.groupBox4);
-            this.Controls.Add(this.groupBox3);
-            this.Controls.Add(this.groupBox2);
-            this.Controls.Add(this.panel1);
-            this.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
-            this.KeyPreview = true;
-            this.MaximizeBox = false;
-            this.MinimizeBox = false;
-            this.Name = "FrmRequestPrint";
-            this.ShowIcon = false;
-            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "実　行　確　認";
-            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmStatusAndDate_FormClosed);
-            this.Load += new System.EventHandler(this.FrmCostStructureDiag_Load);
-            this.panel1.ResumeLayout(false);
-            this.groupBox2.ResumeLayout(false);
-            this.groupBox2.PerformLayout();
-            this.groupBox3.ResumeLayout(false);
-            this.groupBox3.PerformLayout();
-            this.groupBox4.ResumeLayout(false);
-            this.groupBox4.PerformLayout();
-            this.ResumeLayout(false);
-
-        }
-
-        #endregion
-
-        private System.Windows.Forms.Button btnExecProc1;
-        private System.Windows.Forms.Button btnCancel;
-        private System.Windows.Forms.Button btnExecProc2;
-        private System.Windows.Forms.Panel panel1;
-        private System.Windows.Forms.DateTimePicker dateTimePicker1;
-        private System.Windows.Forms.GroupBox groupBox2;
-        private System.Windows.Forms.RadioButton rdNoPrint;
-        private System.Windows.Forms.RadioButton rdPrint;
-        private System.Windows.Forms.GroupBox groupBox3;
-        private System.Windows.Forms.TextBox txtComment5;
-        private System.Windows.Forms.TextBox txtComment4;
-        private System.Windows.Forms.TextBox txtComment3;
-        private System.Windows.Forms.TextBox txtComment2;
-        private System.Windows.Forms.TextBox txtComment1;
-        private System.Windows.Forms.GroupBox groupBox4;
-        private System.Windows.Forms.Label lblOrderersName;
-        private System.Windows.Forms.Label label1;
-    }
-}
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrint.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrint.resx	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrint.resx	(nonexistent)
@@ -1,120 +0,0 @@
-﻿<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" use="required" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-</root>
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSel.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSel.resx	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSel.resx	(nonexistent)
@@ -1,141 +0,0 @@
-﻿<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" use="required" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="col1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="col2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="col3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="col4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="col5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="col6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-</root>
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSelAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSelAux.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSelAux.cs	(nonexistent)
@@ -1,1263 +0,0 @@
-﻿using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-using ProcessManagement.Common;
-using ProcessManagement.DataModel;
-using ProcessManagement.DB;
-using ProcessManagement.DB.IOAccess;
-using ProcessManagement.Forms.SubForms;
-using ProcessManagement.Forms.ControlsAction;
-
-
-namespace ProcessManagement.Forms.DataEntry
-{
-    public partial class FrmRequestPrintSel
-    {
-        #region フォームの初期スタイル設定
-        /// <summary>
-        /// フォームの初期スタイル設定
-        /// </summary>
-        private void InitSetFormStyle()
-        {
-            try
-            {
-                dgv1.EnableHeadersVisualStyles = false;
-                dgv1.AutoGenerateColumns = false;
-                dgv1.ColumnHeadersHeight = 28;
-                dgv1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
-                dgv1.AllowUserToAddRows = false;
-                dgv1.RowTemplate.Height = 24;
-                dgv1.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-                dgv1.ColumnHeadersDefaultCellStyle.BackColor = Color.Aquamarine;
-
-                int yyyy = CommonMotions.cnvTruncate((double)m_nRequestMonth / 100);
-                int mm = m_nRequestMonth % 100;
-                lbReqMonth.Text = string.Format("{0}/{1}", yyyy, mm.ToString("D2"));
-                lbOrderersName.Text = m_strOrderersName;
-
-                string strSubTitle = string.Empty;
-                switch (m_ExecuteSubFlg)
-                {
-                    case (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling:
-                        strSubTitle = "（出来高）";
-                        break;
-                    case (int)ConstructionBaseInfo.BillingSplitFlgDef.AllOnBilling:
-                        strSubTitle = "（完了後）";
-                        break;
-                }
-                // 処理名称表示
-                lblProcessTitil.Text = string.Format("{0}{1}", ClsExcute.ProcessExecuteName[m_ExecuteFlg].Replace("－", ""), strSubTitle);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region 一覧の更新
-        /// <summary>
-        /// 一覧の更新
-        /// </summary>
-        /// <param name="nInvoiceNo"></param>
-        private void RefleshRequestList(int nInvoiceNo)
-        {
-            try
-            {
-                bool bEnabled = false;
-
-                // 新規以外が選択された場合
-                if (nInvoiceNo != 0)
-                {
-                    InvoiceData InvData = null;
-                    if (m_dicInvData.TryGetValue(nInvoiceNo, out InvData) == true)
-                    {
-                        if (InvData.CompleteFlg == 0)
-                        {
-                            bEnabled = true;
-                        }
-                    }
-                }
-
-                btnDel.Enabled = bEnabled;
-
-                foreach (DataGridViewRow CurRow in dgv1.Rows)
-                {
-                    // 請求ヘッダが紐づいていない行はダミー
-                    if (CurRow.Cells[(int)DispColumn.RequestNo].Value == null)
-                    {
-                        break;
-                    }
-
-                    // 新規請求書が選択された場合は全OFF
-                    if (nInvoiceNo == 0)
-                    {
-                        CurRow.Cells[(int)DispColumn.CheckFlg].Value = false;
-                        CurRow.Cells[(int)DispColumn.CheckFlg].ReadOnly = false;
-                    }
-                    else
-                    {
-                        // 請求書が選択された場合は該当設計書のみON
-                        if ((CurRow.Cells[(int)DispColumn.InvoiceNo].Value != null)
-                                && (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value) == nInvoiceNo))
-                        {
-                            CurRow.Cells[(int)DispColumn.CheckFlg].Value = true;
-                            CurRow.Cells[(int)DispColumn.CheckFlg].ReadOnly = true;
-
-                        }
-                        else
-                        {
-                            CurRow.Cells[(int)DispColumn.CheckFlg].Value = false;
-                            CurRow.Cells[(int)DispColumn.CheckFlg].ReadOnly = false;
-                        }
-                    }
-                }
-                // 選択数、選択金額の更新
-                UpdateCheckValue();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region 選択数、選択金額の更新
-        /// <summary>
-        /// 選択数、選択金額の更新
-        /// </summary>
-        void UpdateCheckValue()
-        {
-            try
-            {
-                int cnt = 0;
-                long val;
-                long amount = 0;
-
-                foreach (DataGridViewRow CurRow in dgv1.Rows)
-                {
-                    if (CurRow.Cells[(int)DispColumn.CheckFlg].EditedFormattedValue.Equals(true) == true)
-                    {
-                        cnt++;
-
-                        if (CurRow.Cells[(int)DispColumn.ReqValue].Value != null)
-                        {
-                            val = CommonMotions.cnvLong(CurRow.Cells[(int)DispColumn.ReqValue].Value.ToString().Replace(",", string.Empty));
-                        }
-                        else
-                        {
-                            val = 0;
-                        }
-
-                        amount += val;
-                    }
-                }
-
-                lbSelect.Text = cnt.ToString("#,0");
-                lbTotalAmount.Text = amount.ToString("#,0");
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region 請求書データの取得
-        /// <summary>
-        /// 請求書データの取得
-        /// </summary>
-        private void GetInvData()
-        {
-            IOInvoiceData ioInvData = new IOInvoiceData();
-            try
-            {
-                ArrayList arData = new ArrayList();
-
-                StringBuilder sql = new StringBuilder();
-                sql.Append("SELECT");
-                sql.Append(" InvData.InvoiceNo");
-                sql.Append(", InvData.OrderersDivision");
-                sql.Append(", InvData.OrderersCode");
-                sql.Append(", InvData.RequestMonth");
-                sql.Append(", InvData.SeqNo");
-                sql.Append(", DATE_FORMAT(InvData.CretateDate, '%Y/%m/%d')");
-                sql.Append(", DATE_FORMAT(InvData.RequestDate, '%Y/%m/%d')");
-                sql.Append(", InvData.RequestName");
-                sql.Append(", InvData.TotalAmount");
-                sql.Append(", InvData.TaxAmount");
-                sql.Append(", InvData.Comment1");
-                sql.Append(", InvData.Comment2");
-                sql.Append(", InvData.Comment3");
-                sql.Append(", InvData.Comment4");
-                sql.Append(", InvData.Comment5");
-                sql.Append(", InvData.CompleteFlg");
-                sql.Append(", DATE_FORMAT(InvData.EntryDate, '%Y/%m/%d %H:%i:%s')");
-                sql.Append(", DATE_FORMAT(InvData.UpdateDate, '%Y/%m/%d %H:%i:%s')");
-                sql.Append(" FROM");
-                sql.Append(" InvoiceData InvData");
-                sql.AppendFormat(" WHERE InvData.OrderersDivision = {0}", m_nOrderersDivision);
-                sql.AppendFormat(" AND InvData.OrderersCode = {0} ", m_nOrderersCode);
-                sql.AppendFormat(" AND InvData.RequestMonth = {0} ", m_nRequestMonth);
-                sql.Append(" AND EXISTS( SELECT * FROM RequestHead ReqHead WHERE ReqHead.InvoiceNo = InvData.InvoiceNo )");
-                sql.Append(" ORDER BY InvData.CretateDate Asc, InvData.SeqNo Asc");
-
-                // SQL実行
-                if (!ioInvData.ExecuteReader(sql.ToString(), ref arData, true)) return;
-
-                // データセット
-                foreach (object[] objwrk in arData)
-                {
-                    InvoiceData work = new InvoiceData();
-                    ioInvData.Reader2Struct(objwrk, ref work);
-
-                    m_dicInvData.Add(work.InvoiceNo, work);
-                }
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                ioInvData.close();
-                ioInvData = null;
-            }
-            return;
-        }
-        #endregion
-
-        #region 請求データの取得
-        /// <summary>
-        /// 請求データの取得
-        /// </summary>
-        private void GetReqestData()
-        {
-
-            IORequestHead ioReqHead = new IORequestHead();
-
-            try
-            {
-                List<RequestHead> lstWork = new List<RequestHead>();
-
-                StringBuilder sql = new StringBuilder();
-                sql.AppendFormat(" Where RequestMonth = {0}", m_nRequestMonth);
-                sql.AppendFormat(" And OrderersDivision = {0}", m_nOrderersDivision);
-                sql.AppendFormat(" And OrderersCode = {0}", m_nOrderersCode);
-                sql.Append(" Order by ReqConstructionCode Asc, OrderNo Asc");
-
-                if (ioReqHead.SelectAction(sql.ToString(), ref lstWork) == false)
-                {
-                    return;
-                }
-
-                m_lstReqHead.Clear();
-                foreach (RequestHead ReqHead in lstWork)
-                {
-                    // 最終承認済
-                    if (ClsCommonApproval.CheckProcessApprovalData(ReqHead.ReqConstructionCode, (int)ClsExcute.ApprovalListNo.OrderBillingApproval, ReqHead.OrderNo) == false)
-                    {
-                        continue;
-                    }
-
-                    // 請求ヘッダの追加
-                    m_lstReqHead.Add(ReqHead);
-
-                }
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                ioReqHead.close();
-                ioReqHead = null;
-            }
-        }
-        #endregion
-
-        #region 請求データの表示
-        /// <summary>
-        /// 請求データの表示
-        /// </summary>
-        private void DispRequestData()
-        {
-            try
-            {
-                int nCount = m_lstReqHead.Count;
-                // グリッド一杯の行が16行
-                if (nCount < 16) nCount = 16;
-
-                // 行を追加
-                dgv1.Rows.Add(nCount + 1);
-
-                int trow = 0;
-                foreach (RequestHead ReqHead in m_lstReqHead)
-                {
-                    DataGridViewRow CurRow = dgv1.Rows[trow];
-                    CurRow.Cells[(int)DispColumn.DataNo].Value = (trow + 1);
-                    // 請求書Noが指定されている場合は、チェックボックスの変更不可
-                    if (m_nInvoiceNo == 0)
-                    {
-                        CurRow.Cells[(int)DispColumn.CheckFlg].ReadOnly = false;
-                    }
-
-                    CurRow.Cells[(int)DispColumn.RequestTitle].Value = ReqHead.ReqConstructionName;
-                    CurRow.Cells[(int)DispColumn.ReqValue].Value = ReqHead.RequestTotalAmount.ToString("#,0");
-                    CurRow.Cells[(int)DispColumn.RequestNo].Value = ReqHead.RequestNo;
-
-                    if (ReqHead.InvoiceNo > 0)
-                    {
-                        InvoiceData InvData = null;
-
-                        if (m_dicInvData.TryGetValue(ReqHead.InvoiceNo, out InvData) == true)
-                        {
-                            CurRow.Cells[(int)DispColumn.CreateDate].Value = InvData.CretateDate.ToString("yyyy/MM/dd");
-                            CurRow.Cells[(int)DispColumn.InvoiceNo].Value = InvData.InvoiceNo;
-                        }
-
-                    }
-                    trow++;
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region 作成日コンボの設定（対象全て）
-        /// <summary>
-        /// 作成日コンボの設定（対象全て）
-        /// </summary>
-        private void SetRequestCreateDateAll()
-        {
-            try
-            {
-                List<int> lstKeyInvNo = new List<int>(m_dicInvData.Keys);
-                Dictionary<string, List<InvoiceData>> dicWork = new Dictionary<string, List<InvoiceData>>();
-                List<KeyValuePair<int, string>> lstKeyVal = new List<KeyValuePair<int, string>>();
-
-                foreach (int nInvoiceNo in lstKeyInvNo)
-                {
-                    InvoiceData InvData = null;
-                    if (m_dicInvData.TryGetValue(nInvoiceNo, out InvData) == true)
-                    {
-                        string strDate = InvData.CretateDate.ToString("yyyy/MM/dd");
-
-                        List<InvoiceData> lstWork = null;
-
-                        if (dicWork.TryGetValue(strDate, out lstWork) == false)
-                        {
-                            lstWork = new List<InvoiceData>();
-
-                            dicWork.Add(strDate, lstWork);
-                        }
-                        lstWork.Add(InvData);
-                    }
-                }
-
-                List<string> lstKeyDate = new List<string>(dicWork.Keys);
-
-                KeyValuePair<int, string> KeyValNew = new KeyValuePair<int, string>(0, "新規");
-                lstKeyVal.Add(KeyValNew);
-
-                foreach (string strDate in lstKeyDate)
-                {
-                    List<InvoiceData> lstWork = null;
-
-                    if (dicWork.TryGetValue(strDate, out lstWork) == true)
-                    {
-                        for (int i = 0; i < lstWork.Count; i++)
-                        {
-                            string strValue;
-
-                            strValue = strDate;
-                            if (i > 0)
-                            {
-                                strValue += string.Format("({0})", i);
-                            }
-
-                            KeyValuePair<int, string> KeyVal = new KeyValuePair<int, string>(lstWork[i].InvoiceNo, strValue);
-
-                            lstKeyVal.Add(KeyVal);
-                        }
-                    }
-                }
-
-                cbCreateDate.ValueMember = "Key";
-                cbCreateDate.DisplayMember = "Value";
-
-                // コンボボックス初期表示
-                ComboBoxAction.InitDataSetCombBox(cbCreateDate, lstKeyVal, false);
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region 作成日コンボの設定（1件）
-        /// <summary>
-        /// 作成日コンボの設定（1件）
-        /// </summary>
-        private void SetRequestCreateDateOnly()
-        {
-
-            List<KeyValuePair<int, string>> lstKeyVal = new List<KeyValuePair<int, string>>();
-            InvoiceData InvData = null;
-
-            if (m_dicInvData.TryGetValue(m_nInvoiceNo, out InvData) == true)
-            {
-                string strDate = InvData.CretateDate.ToString("yyyy/MM/dd");
-
-                KeyValuePair<int, string> KeyVal = new KeyValuePair<int, string>(InvData.InvoiceNo, strDate);
-
-                lstKeyVal.Add(KeyVal);
-            }
-
-            cbCreateDate.ValueMember = "Key";
-            cbCreateDate.DisplayMember = "Value";
-
-            // コンボボックス初期表示
-            ComboBoxAction.InitDataSetCombBox(cbCreateDate, lstKeyVal, false);
-
-            return;
-        }
-        #endregion
-
-        #region 作成チェック
-        /// <summary>
-        /// 作成チェック
-        /// </summary>
-        /// <param name="msg"></param>
-        /// <returns></returns>
-        private int CheckGenerate(ref string msg)
-        {
-            try
-            {
-                int nInvoiceNo = CommonMotions.cnvInt(cbCreateDate.SelectedValue);
-
-                int nSelect = CommonMotions.cnvInt(lbSelect.Text);
-                int nRet = (int)CheckState.Ok;
-
-                // 選択なし
-                if (nSelect == 0)
-                {
-                    msg = "請求件名が選択されていません";
-
-                    return (int)CheckState.Error;
-                }
-
-                foreach (DataGridViewRow CurRow in dgv1.Rows)
-                {
-                    // 請求ヘッダが紐づいていない行はダミー
-                    if (CurRow.Cells[(int)DispColumn.RequestNo].Value == null)
-                    {
-                        break;
-                    }
-
-                    // 選択されている場合
-                    if (CurRow.Cells[(int)DispColumn.CheckFlg].EditedFormattedValue.Equals(true) == true)
-                    {
-                        if (CurRow.Cells[(int)DispColumn.InvoiceNo].Value == null)
-                        {
-                            continue;
-                        }
-
-                        if (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value) != nInvoiceNo)
-                        {
-                            nRet = (int)CheckState.Warning;
-                            break;
-                        }
-                    }
-                }
-
-                if (nRet == (int)CheckState.Warning)
-                {
-                    msg = "他で請求されている請求件名が選択されています。\nこの内容で請求書を作成してよろしいですか？";
-                    return nRet;
-                }
-
-                foreach (DataGridViewRow CurRow in dgv1.Rows)
-                {
-                    // 請求ヘッダが紐づいていない行はダミー
-                    if (CurRow.Cells[(int)DispColumn.RequestNo].Value == null)
-                    {
-                        break;
-                    }
-
-
-                    // 選択れている場合
-                    if (CurRow.Cells[(int)DispColumn.CheckFlg].EditedFormattedValue.Equals(true) == true)
-                    {
-                        if (CurRow.Cells[(int)DispColumn.InvoiceNo].Value != null)
-                        {
-                            continue;
-                        }
-
-                        if (m_nInvoiceNo == 0)
-                        {
-                            msg = "既に作成済の請求書に新規請求件名を追加します。\nこの内容で請求書を作成してよろしいですか？";
-                            nRet = (int)CheckState.Warning;
-                            break;
-                        }
-                    }
-
-                }
-
-
-                if (nRet == (int)CheckState.Ok)
-                {
-                    msg = "この内容で請求書を作成してよろしいですか？";
-                }
-
-                return nRet;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return (int)CheckState.Error;
-            }
-        }
-        #endregion
-
-        #region 請求書データ登録
-        /// <summary>
-        /// 請求書データ登録
-        /// </summary>
-        /// <returns></returns>
-        private int EntryData()
-        {
-            try
-            {
-                int nInvoiceNo = CommonMotions.cnvInt(cbCreateDate.SelectedValue);
-
-                List<RequestHead> lstReqHead = new List<RequestHead>();
-
-                foreach (DataGridViewRow CurRow in dgv1.Rows)
-                {
-                    // 請求ヘッダが紐づいていない行はダミー
-                    if (CurRow.Cells[(int)DispColumn.RequestNo].Value == null)
-                    {
-                        break;
-                    }
-
-                    // 選択れている場合
-                    if (CurRow.Cells[(int)DispColumn.CheckFlg].EditedFormattedValue.Equals(true) == true)
-                    {
-                        lstReqHead.Add(m_lstReqHead[CurRow.Index]);
-                    }
-                }
-
-                // 請求書データの登録
-                nInvoiceNo = AddInvoiceData(nInvoiceNo, lstReqHead);
-
-                return nInvoiceNo;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return -1;
-            }
-        }
-
-        #endregion
-
-        #region 請求書データの登録
-        /// <summary>
-        /// 請求書データの登録
-        /// </summary>
-        /// <param name="nInvoiceNo"></param>
-        /// <param name="lstReqHead"></param>
-        /// <returns></returns>
-        private int AddInvoiceData(int nInvoiceNo, List<RequestHead> lstReqHead)
-        {
-            IOInvoiceData ioInvData = new IOInvoiceData();
-            IORequestHead ioReqHead = new IORequestHead();
-
-            try
-            {
-                InvoiceData InvData = null;
-
-                ioInvData.connect(); ioInvData.beginTran();
-                ioReqHead.connect(); ioReqHead.beginTran();
-
-                // 請求書Noが指定されていない場合
-                if (nInvoiceNo == 0)
-                {
-                    // 請求書Noの採番
-                    nInvoiceNo = ioInvData.NumberingInvoiceNo(m_nRequestMonth, false);
-                    if (nInvoiceNo < 0)
-                    {
-                        // DBロールバック
-                        ioInvData.rollback();
-                        ioReqHead.rollback();
-
-                        return -1;
-                    }
-
-                    // 請求書データ構築
-                    InvData = new InvoiceData();
-
-                    InvData.InvoiceNo = nInvoiceNo;
-                    InvData.OrderersDivision = m_nOrderersDivision;
-                    InvData.OrderersCode = m_nOrderersCode;
-                    InvData.RequestMonth = m_nRequestMonth;
-                    InvData.SeqNo = ioInvData.NumberingSeqNo(m_nOrderersDivision, m_nOrderersCode, m_nRequestMonth, false);
-                    InvData.CretateDate = DateTime.Now;
-                    InvData.RequestDate = DateTime.MinValue;
-                    InvData.RequestName = m_strOrderersName;
-                    InvData.TotalAmount = 0;
-                    InvData.TaxAmount = 0;
-
-                    // 請求書データの挿入
-                    if (!ioInvData.InsertAction(InvData, false))
-                    {
-                        // DBロールバック
-                        ioInvData.rollback();
-                        ioReqHead.rollback();
-
-                        return -1;
-                    }
-                }
-                else
-                {
-                    // 請求書データの取得
-                    if (!m_dicInvData.TryGetValue(nInvoiceNo, out InvData))
-                    {
-                        // DBロールバック
-                        ioInvData.rollback();
-                        ioReqHead.rollback();
-                        return -1;
-                    }
-
-                    // 作成日のみ更新
-                    InvData.CretateDate = DateTime.Now;
-                    InvData.TotalAmount = 0;
-                    InvData.TaxAmount = 0;
-
-                    // 請求書データの更新
-                    string sql = string.Format(" Where InvoiceNo = {0}", nInvoiceNo);
-                    if (!ioInvData.UpdateAction(sql, InvData, false))
-                    {
-                        // DBロールバック
-                        ioInvData.rollback();
-                        ioReqHead.rollback();
-
-                        return -1;
-                    }
-                }
-
-                // 選択されている請求ヘッダの請求書Noを更新
-                foreach (RequestHead ReqHead in lstReqHead)
-                {
-                    ReqHead.InvoiceNo = nInvoiceNo;
-                }
-                if (!ioReqHead.UpdateAction(lstReqHead, false))
-                {
-                    // DBロールバック
-                    ioInvData.rollback();
-                    ioReqHead.rollback();
-
-                    return -1;
-                }
-
-                // DBコミット
-                ioInvData.commit();
-                ioReqHead.commit();
-
-                return nInvoiceNo;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return -1;
-            }
-            finally
-            {
-                ioInvData.close(); ioInvData = null;
-                ioReqHead.close(); ioReqHead = null;
-            }
-        }
-        #endregion
-
-        #region 請求書配下の金額を取得
-        /// <summary>
-        /// 請求書配下の金額を取得
-        /// </summary>
-        /// <param name="lstReqHead"></param>
-        /// <param name="lTotalAmount"></param>
-        /// <param name="lTaxAmount"></param>
-        private void GetReqHeadAmount(List<RequestHead> lstReqHead, ref long lTotalAmount, ref long lTaxAmount)
-        {
-            foreach (RequestHead ReqHead in lstReqHead)
-            {
-                lTotalAmount += ReqHead.RequestTotalAmount;
-                lTaxAmount += ReqHead.TaxAmount;
-            }
-            return;
-        }
-        #endregion
-
-        #region 請求データの削除
-        /// <summary>
-        /// 請求データの削除
-        /// </summary>
-        /// <param name="nInvoiceNo"></param>
-        /// <returns></returns>
-        private bool DeleteInvoiceData(int nInvoiceNo)
-        {
-            IOInvoiceData ioInvData = new IOInvoiceData();
-            IORequestHead ioReqHead = new IORequestHead();
-            try
-            {
-                ioInvData.connect(); ioInvData.beginTran();
-                ioReqHead.connect(); ioReqHead.beginTran();
-
-                // 請求書データの削除
-                StringBuilder sql = new StringBuilder();
-                sql.AppendFormat(" Where InvoiceNo = {0}", nInvoiceNo);
-                if (!ioInvData.DeleteAction(sql.ToString(), false))
-                {
-                    ioInvData.rollback();
-                    ioReqHead.rollback();
-
-                    return false;
-                }
-
-                List<RequestHead> lstReqHead = new List<RequestHead>();
-
-                sql.Clear();
-                sql.AppendFormat(" Where InvoiceNo = {0}", nInvoiceNo);
-                if (!ioReqHead.SelectAction(sql.ToString(), ref lstReqHead, false))
-                {
-                    ioInvData.rollback();
-                    ioReqHead.rollback();
-
-                    return false;
-                }
-
-                // 請求ヘッダの請求書Noをクリア
-                foreach (RequestHead ReqHead in lstReqHead)
-                {
-                    ReqHead.InvoiceNo = 0;
-                }
-
-                // 請求ヘッダを更新
-                if (!ioReqHead.UpdateAction(lstReqHead, false))
-                {
-                    ioInvData.rollback();
-                    ioReqHead.rollback();
-
-                    return false;
-                }
-
-                ioInvData.commit();
-                ioReqHead.commit();
-
-                return true;
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                ioInvData.close();
-                ioInvData = null;
-                ioReqHead.close();
-                ioReqHead = null;
-            }
-
-        }
-        #endregion
-
-        #region 請求書作成処理
-        /// <summary>
-        /// 請求書作成処理
-        /// </summary>
-        private bool GenerateProc()
-        {
-            try
-            {
-                int ret;
-                string msg = "";
-
-                // 作成チェック
-                ret = CheckGenerate(ref msg);
-                bool bError = false;
-                switch (ret)
-                {
-                    case (int)CheckState.Ok:
-                        if (MessageBox.Show(msg, "登録確認"
-                                , MessageBoxButtons.YesNo
-                                , MessageBoxIcon.Question) != DialogResult.Yes) return false;
-                        break;
-                    case (int)CheckState.Warning:
-                        if (MessageBox.Show(msg, "登録確認"
-                                , MessageBoxButtons.YesNo
-                                , MessageBoxIcon.Warning) != DialogResult.Yes) return false;
-                        break;
-                    default:
-                        MessageBox.Show(msg, "登録確認", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                        bError = true;
-                        break;
-                }
-                if (bError) return false;
-
-                // データの登録
-                m_nInvoiceNo = EntryData();
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-        #endregion
-
-        #region 印刷実行
-        /// <summary>
-        /// 印刷実行
-        /// </summary>
-        private void EntryPrintProc()
-        {
-            FrmSaveFilePath frm = new FrmSaveFilePath();
-            FrmRequestPrint frmPrint = new FrmRequestPrint();
-            IOInvoiceData ioInvData = new IOInvoiceData();
-            IOConstructionBaseInfo ioInfo = new IOConstructionBaseInfo();
-            IOConstructionProgressDate ioPrgDate = new IOConstructionProgressDate();
-            try
-            {
-                frmPrint.InvoiceNo = m_nInvoiceNo;
-                frmPrint.ExcuteDate = DateTime.Today.Date;
-
-                // 印刷確認画面表示
-                DialogResult drRet = frmPrint.ShowDialog();
-                if (drRet == DialogResult.Cancel) return;
-
-                // 印刷データ取得処理
-                if (!GetPrintData()) return;
-
-                //　日付印刷フラグ
-                m_bDatePrintFlg = frmPrint.DatePrintFlg;
-
-                //　印刷日付
-                m_DatePrintOut = frmPrint.ExcuteDate;
-
-                // EXCEL保存時選択
-                if (drRet == DialogResult.No)
-                {
-                    // 保存先を選択する
-                    frm.SaveType = (int)CommonDefine.SaveFileType.ExcelFile;
-                    //frm.ShowInTaskbar = false;
-                    frm.ShowDialog();
-                    if (frm.EndButton == DialogResult.Cancel) return;
-                    m_SelectSaveExcel = frm.SelectPath;
-                }
-
-                // DBトランザクション開始
-                ioInvData.connect(); ioInvData.beginTran();
-                ioInfo.connect(); ioInfo.beginTran();
-                ioPrgDate.connect(); ioPrgDate.beginTran();
-
-                // 請求書データの反映
-                if(!EntryInvoiceData(ioInvData, frmPrint.CommentData))
-                {
-                    ioInvData.rollback();
-                    ioInfo.rollback();
-                    ioPrgDate.rollback();
-                    return;
-                }
-
-                // 工事基本情報を更新する
-                if(!UpdateConstructionBaseInfo(ioInfo, ioPrgDate))
-                {
-                    ioInvData.rollback();
-                    ioInfo.rollback();
-                    ioPrgDate.rollback();
-                    return;
-                }
-
-                ioInvData.commit();
-                ioInfo.commit();
-                ioPrgDate.commit();
-
-                // 印刷プロセス数取得
-                m_ProcessCount = m_lstReqHead.Count + 5;       // 明細枚数＋ＥＸＣＥＬオブジェクト取得(2)＋表紙(2)＋一覧(1)
-                PrintProgress.Visible = true;
-                PrintProgress.Minimum = 0;
-                PrintProgress.Maximum = m_ProcessCount;
-                PrintProgress.Value = 0;
-                panel1.Update();
-
-                m_Canceled = false;
-                // ボタンの変更
-                PrintButtonVisbleControl(true);
-
-                //印刷を別スレッドで実行する
-                m_ProgressCount = 0;
-
-                // 印刷・保存の判定フラグ
-                object[] obj = new object[1];
-                if (drRet == DialogResult.Yes) obj[0] = true;
-                else obj[0] = false;
-
-                workerThread = new Thread(new ParameterizedThreadStart(PrintMain));
-                workerThread.IsBackground = true;
-                workerThread.Start(obj);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                ioInvData.close(); ioInvData = null;
-                ioInfo.close(); ioInfo = null;
-                ioPrgDate.close(); ioPrgDate = null;
-
-                frmPrint.Dispose(); frmPrint = null;
-                frm.Dispose(); frm = null;
-            }
-        }
-        #endregion
-
-        #region 印刷データ取得処理
-        /// <summary>
-        /// 印刷データ取得処理
-        /// </summary>
-        /// <returns></returns>
-        private bool GetPrintData()
-        {
-            try
-            {
-                bool bRet = true;
-
-                InvoiceData InvData = new InvoiceData();
-                List<RequestHead> lstReqHead = new List<RequestHead>();
-                // 請求書データの取得
-                if (!GetInvoiceData(ref InvData, ref lstReqHead)) return false;
-
-                // 本工事の工事情報の取得
-                if (!GetMainConstructionBaseInfo(lstReqHead)) return false;
-
-                return bRet;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-        #endregion
-
-        #region 請求金額退避エリア
-        /// <summary>
-        /// 請求金額退避エリア
-        /// </summary>
-        private long m_lTotalAmount = 0;    // 合計金額
-        private long m_lTaxAmount = 0;      // 合計税金
-        #endregion
-
-        #region 請求書データの取得
-        /// <summary>
-        /// 請求書データの取得
-        /// </summary>
-        private bool GetInvoiceData(ref InvoiceData InvData, ref List<RequestHead> lstReqHead)
-        {
-            IOInvoiceData ioInvData = new IOInvoiceData();
-            IORequestHead ioReqHead = new IORequestHead();
-            IORequestData ioReqData = new IORequestData();
-
-            try
-            {
-                StringBuilder sql = new StringBuilder();
-
-                // 請求書データの取得
-                sql.Append(ioInvData.CreatePrimarykeyString(m_nInvoiceNo));
-                if (!ioInvData.SelectAction(sql.ToString(), ref InvData)) return false;
-
-                // 請求ヘッダの取得
-                sql.Clear();
-                sql.AppendFormat(" WHERE InvoiceNo = {0} ORDER BY ReqConstructionCode", m_nInvoiceNo);
-                if (!ioReqHead.SelectAction(sql.ToString(), ref lstReqHead)) return false;
-
-                foreach (RequestHead ReqHead in lstReqHead)
-                {
-                    // 請求ヘッダの取得
-                    sql.Clear();
-                    sql.AppendFormat(" WHERE RequestNo = {0} ORDER BY MainConstructionCode", ReqHead.RequestNo);
-                    List<RequestData> lstReqData = new List<RequestData>();
-                    if (!ioReqData.SelectAction(sql.ToString(), ref lstReqData)) return false;
-
-                    m_dicReqData.Add(ReqHead.RequestNo, lstReqData);
-
-                    // 請求金額集計
-                    m_lTotalAmount += ReqHead.RequestTotalAmount;
-                    m_lTaxAmount += ReqHead.TaxAmount;
-                }
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-
-                return false;
-            }
-            finally
-            {
-                ioInvData.close(); ioInvData = null;
-                ioReqHead.close(); ioReqHead = null;
-                ioReqData.close(); ioReqData = null;
-            }
-
-        }
-        #endregion
-
-        #region 工事基本情報の追加
-        /// <summary>
-        /// 工事基本情報の追加
-        /// </summary>
-        /// <param name="Info"></param>
-        private void AddConstructionBaseInfoDic(ConstructionBaseInfo Info)
-        {
-            ConstructionBaseInfo wrk = null;
-
-            if (!m_dicConstructionBaseInfo.TryGetValue(Info.ConstructionCode, out wrk))
-            {
-                m_dicConstructionBaseInfo.Add(Info.ConstructionCode, Info);
-            }
-        }
-        #endregion
-
-        #region 工事基本情報の取得
-        /// <summary>
-        /// 工事基本情報の取得
-        /// </summary>
-        private bool GetMainConstructionBaseInfo(List<RequestHead> lstReqHead)
-        {
-            IOConstructionBaseInfo ioInfo = new IOConstructionBaseInfo();
-
-            try
-            {
-                StringBuilder sql = new StringBuilder();
-                foreach (RequestHead ReqHead in lstReqHead)
-                {
-                    sql.Clear();
-                    sql.Append(ioInfo.CreatePrimarykeyString(ReqHead.ReqConstructionCode));
-                    ConstructionBaseInfo info = new ConstructionBaseInfo();
-                    if (!ioInfo.SelectAction(sql.ToString(), ref info)) return false;
-
-                    AddConstructionBaseInfoDic(info);
-                }
-
-                List<int> lstKey = new List<int>(m_dicReqData.Keys);
-                foreach (int nRequestNo in lstKey)
-                {
-                    List<RequestData> lstReqData = null;
-
-                    if (!m_dicReqData.TryGetValue(nRequestNo, out lstReqData)) return false;
-
-                    foreach (RequestData ReqData in lstReqData)
-                    {
-                        sql.Clear();
-                        sql.Append(ioInfo.CreatePrimarykeyString(ReqData.MainConstructionCode));
-                        ConstructionBaseInfo info = new ConstructionBaseInfo();
-                        if (!ioInfo.SelectAction(sql.ToString(), ref info)) return false;
-
-                        AddConstructionBaseInfoDic(info);
-                    }
-                }
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                ioInfo.close(); ioInfo = null;
-            }
-
-        }
-        #endregion
-
-        #region 請求書データの反映
-        /// <summary>
-        /// 請求書データの反映
-        /// </summary>
-        /// <returns></returns>
-        private bool EntryInvoiceData(IOInvoiceData ioInvData, string[] CommentData)
-        {
-            try
-            {
-                InvoiceData invoiceData = new InvoiceData();
-
-                StringBuilder sql = new StringBuilder();
-                sql.Append(ioInvData.CreatePrimarykeyString(m_nInvoiceNo));
-                if (!ioInvData.SelectAction(sql.ToString(), ref invoiceData, false)) return false;
-
-                invoiceData.TotalAmount = m_lTotalAmount;
-                invoiceData.TaxAmount = m_lTaxAmount;
-                invoiceData.RequestDate = m_DatePrintOut;
-
-                invoiceData.Comment1 = CommentData[0];
-                invoiceData.Comment2 = CommentData[1];
-                invoiceData.Comment3 = CommentData[2];
-                invoiceData.Comment4 = CommentData[3];
-                invoiceData.Comment5 = CommentData[4];
-
-                invoiceData.CompleteFlg = 1;
-
-                return ioInvData.UpdateAction(sql.ToString(), invoiceData, false);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-
-                return false;
-            }
-        }
-
-        #endregion
-
-        #region 工事データ更新
-        /// <summary>
-        /// 工事基本情報を更新する
-        /// </summary>
-        /// <returns></returns>
-        private bool UpdateConstructionBaseInfo(IOConstructionBaseInfo ioInfo
-                                                ,IOConstructionProgressDate ioPrgDate)
-        {
-            try
-            {
-                List<int> lstKeyInfo = new List<int>(m_dicConstructionBaseInfo.Keys);
-                Dictionary<int, int> dicCodeWork = new Dictionary<int, int>();
-
-                StringBuilder sql = new StringBuilder();
-
-                foreach (int nConstructionCode in lstKeyInfo)
-                {
-                    int nOldStatus = 0;
-                    ConstructionBaseInfo Info = null;
-
-                    // 工事基本情報の取得
-                    if (!m_dicConstructionBaseInfo.TryGetValue(nConstructionCode, out Info))
-                    {
-                        ioInfo.rollback();
-                        ioPrgDate.rollback();
-                        return false;
-                    }
-
-                    nOldStatus = Info.ConstructionStatusFlg;
-
-                    // 工事状態が「請求準備」ではない場合は対象外
-                    if (nOldStatus != (int)CommonDefine.StatNumArray.Status9) continue;
-
-                    // 工事基本情報で請求一括でない場合は対象外
-                    if (Info.BillingSplitFlg != (int)ConstructionBaseInfo.BillingSplitFlgDef.AllOnBilling) continue;
-
-                    // 工事状態フラグを「請求確認」に変更
-                    Info.ConstructionStatusFlg = (int)CommonDefine.StatNumArray.Status10;
-
-                    // 工事基本情報を更新
-                    sql.Clear();
-                    sql.Append(ioInfo.CreatePrimarykeyString(nConstructionCode));
-                    if (!ioInfo.UpdateAction(sql.ToString(), Info, false)) return false;
-
-                    // 既にデータが存在しないか一度検索しておく
-                    sql.Clear();
-                    sql.Append(ioPrgDate.CreatePrimarykeyString(nConstructionCode));
-                    sql.AppendFormat(" And ConstructionStatusFlg = {0}", Info.ConstructionStatusFlg);
-                    List<ConstructionProgressDate> lstPrgDate = new List<ConstructionProgressDate>();
-                    if (!ioPrgDate.SelectAction(sql.ToString(), ref lstPrgDate, false)) return false;
-
-                    // データがある場合は、当該データを削除する
-                    if (lstPrgDate.Count > 0)
-                    {
-                        // 該当データを削除
-                        sql.Clear();
-                        sql.Append(ioPrgDate.CreatePrimarykeyString(nConstructionCode));
-                        sql.AppendFormat(" And ConstructionStatusFlg = {0}", Info.ConstructionStatusFlg);
-                        if (!ioPrgDate.DeleteAction(sql.ToString(), false)) return false;
-                    }
-
-                    // 案件進捗日付データの構築
-                    ConstructionProgressDate PrgDate = new ConstructionProgressDate();
-
-                    // 案件進捗日付データの設定
-                    PrgDate.ConstructionCode = nConstructionCode;
-                    PrgDate.ConstructionStatusFlg = (int)CommonDefine.StatNumArray.Status10;
-                    PrgDate.PreviousStatusFlg = nOldStatus;
-                    PrgDate.ChangeDate = DateTime.Now;
-                    PrgDate.ChangePersonCode = CommonMotions.LoginUserData.PersonCode;
-
-                    // 案件進捗日付データを挿入
-                    if (!ioPrgDate.InsertAction(PrgDate, false)) return false;
-
-                    // 対象工事が結合（子）工事の場合
-                    if (Info.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.JoinChildren)
-                    {
-                        // 結合（親）工事番号の取得
-                        int nParentCode = GetJoinParentConstructionCode(nConstructionCode);
-
-                        int nChildCode = 0;
-
-                        // 親工事番号が登録されていない場合は登録する
-                        if (!dicCodeWork.TryGetValue(nParentCode, out nChildCode))
-                        {
-                            // 結合（親）の工事状態を更新するために工事番号を退避
-                            dicCodeWork.Add(nParentCode, nConstructionCode);
-                        }
-                    }
-                }
-
-                List<int> lstKeyLink = new List<int>(dicCodeWork.Keys);
-
-                foreach (int nParentCode in lstKeyLink)
-                {
-                    int nChildCode = 0;
-
-                    if (dicCodeWork.TryGetValue(nParentCode, out nChildCode))
-                    {
-                        // 結合（親）の工事状態を変更
-                        ClsChangeBaseInfoData.SetParentConstrStatus(ioInfo, nChildCode);
-                    }
-                }
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-
-        #endregion
-    }
-}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSel.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSel.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSel.cs	(nonexistent)
@@ -1,516 +0,0 @@
-﻿using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-using ProcessManagement.Common;
-using ProcessManagement.DataModel;
-using ProcessManagement.DB;
-using ProcessManagement.DB.IOAccess;
-using ProcessManagement.Forms.SubForms;
-using ProcessManagement.Forms.ControlsAction;
-
-
-namespace ProcessManagement.Forms.DataEntry
-{
-    public partial class FrmRequestPrintSel : Form
-    {
-        #region 使用定義
-        //log4netログを使用する
-        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
-        #endregion
-
-        #region 定数
-
-        /// <summary>
-        /// チェック結果
-        /// </summary>
-        private enum CheckState
-        {
-            Ok = 0,
-            Warning,
-            Error,
-        }
-
-        /// <summary>
-        /// グリッドカラム
-        /// </summary>
-        private enum DispColumn
-        {
-            DataNo=0,
-            CheckFlg,
-            RequestTitle,
-            ReqValue,
-            CreateDate,
-            RequestNo,
-            InvoiceNo,
-        }
-        #endregion
-
-        #region 変数
-
-        /// <summary>
-        /// 起動フラグ
-        /// </summary>
-        private int m_ExecuteFlg = 0;
-        /// <summary>
-        /// 起動時補助フラグ
-        /// </summary>
-        private int m_ExecuteSubFlg = 0;
-
-        /// <summary>
-        /// 編集モード
-        /// </summary>
-        private bool m_bEditFlg = true;
-        /// <summary>
-        //// 請求書No
-        /// </summary>
-        private int m_nInvoiceNo = 0;
-        /// <summary>
-        /// 請求月
-        /// </summary>
-        private int m_nRequestMonth = 0;
-        /// <summary>
-        /// 発注者区分
-        /// </summary>
-        private int m_nOrderersDivision = 0;
-        /// <summary>
-        /// 発注者コード
-        /// </summary>
-        private int m_nOrderersCode = 0;
-        /// <summary>
-        /// 発注者名
-        /// </summary>
-        private string m_strOrderersName = "";
-
-        /// <summary>
-        /// 請求ヘッダ
-        /// </summary>
-        private List<RequestHead> m_lstReqHead = new List<RequestHead>();
-
-        /// <summary>
-        /// 請求書データ
-        /// </summary>
-        private Dictionary<int, InvoiceData> m_dicInvData = new Dictionary<int, InvoiceData>();
-
-        /// <summary>
-        /// 終了ボタン押下フラグ
-        /// </summary>
-        private bool m_CloseingProcessOff = false;
-        #endregion
-
-        #region プロパティ
-        /// <summary>
-        /// 起動フラグ
-        /// </summary>
-        public int ExecuteFlg
-        {
-            get { return m_ExecuteFlg; }
-            set { m_ExecuteFlg = value; }
-        }
-        /// <summary>
-        /// 起動時補助フラグ
-        /// </summary>
-        public int ExecuteSubFlg
-        {
-            get { return m_ExecuteSubFlg; }
-            set { m_ExecuteSubFlg = value; }
-        }
-        /// <summary>
-        /// 編集モード
-        /// </summary>
-        public bool EditFlg
-        {
-            get { return m_bEditFlg; }
-            set { m_bEditFlg = value; }
-        }
-        /// <summary>
-        //// 請求書No
-        /// </summary>
-        public int InvoiceNo
-        {
-            get { return m_nInvoiceNo; }
-            set { m_nInvoiceNo = value; }
-        }
-        /// <summary>
-        /// 請求月
-        /// </summary>
-        public int RequestMonth
-        {
-            get { return m_nRequestMonth; }
-            set { m_nRequestMonth = value; }
-        }
-        /// <summary>
-        /// 発注者区分
-        /// </summary>
-        public int OrderersDivision
-        {
-            get { return m_nOrderersDivision; }
-            set { m_nOrderersDivision = value; }
-        }
-        /// <summary>
-        /// 発注者コード
-        /// </summary>
-        public int OrderersCode
-        {
-            get { return m_nOrderersCode; }
-            set { m_nOrderersCode = value; }
-        }
-        /// <summary>
-        /// 発注者名
-        /// </summary>
-        public string OrderersName
-        {
-            get { return m_strOrderersName; }
-            set { m_strOrderersName = value; }
-        }
-
-        #endregion
-
-        #region コンストラクタ
-        public FrmRequestPrintSel()
-        {
-            InitializeComponent();
-        }
-        #endregion
-
-        #region フォームのロード
-        /// <summary>
-        /// フォームのロード
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmRequestPrintSel_Load(object sender, EventArgs e)
-        {
-            // フォームの初期スタイル設定
-            InitSetFormStyle();
-
-            // 請求書データ取得
-            GetInvData();
-
-            if (m_nInvoiceNo == 0)
-            {
-                // 作成日コンボの取得
-                SetRequestCreateDateAll();
-            }
-            else
-            {
-                // 作成日コンボの取得
-                SetRequestCreateDateOnly();
-            }
-
-            cbCreateDate.SelectedIndex = 0;
-
-            // 請求データ取得
-            GetReqestData();
-
-            // 請求データ表示
-            DispRequestData();
-
-            // 請求書が指定されている場合は、チェックボックス変更に関わる操作は許可しない
-            if (m_nInvoiceNo > 0)
-            {
-                btnAllSelect.Enabled = false;
-                btnAllUnselect.Enabled = false;
-            }
-            UpdateCheckValue();
-
-        }
-        #endregion
-
-        #region [全選択]ボタン押下
-        /// <summary>
-        /// [全選択]ボタン押下
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnAllSelect_Click(object sender, EventArgs e)
-        {
-            dgv1.CellContentClick -= dgv1_CellContentClick;
-            dgv1.CellContentDoubleClick -= dgv1_CellContentDoubleClick;
-
-            try
-            {
-                int nInvoiceNo = CommonMotions.cnvInt(cbCreateDate.SelectedValue);
-
-                foreach (DataGridViewRow CurRow in dgv1.Rows)
-                {
-                    // 請求ヘッダが紐づいていない行はダミー
-                    if (CurRow.Cells[(int)DispColumn.RequestNo].Value == null)
-                    {
-                        break;
-                    }
-
-                    // 請求書が紐づいていないものはON
-                    if (CurRow.Cells[(int)DispColumn.InvoiceNo].Value == null)
-                    {
-                        CurRow.Cells[(int)DispColumn.CheckFlg].Value = true;
-                    }
-                    // 請求書が紐づいていても選択されている請求書のものはON
-                    else if (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value) == nInvoiceNo)
-                    {
-                        CurRow.Cells[(int)DispColumn.CheckFlg].Value = true;
-                    }
-                }
-
-                // 選択数、選択金額の更新
-                UpdateCheckValue();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                dgv1.CellContentClick += dgv1_CellContentClick;
-                dgv1.CellContentDoubleClick += dgv1_CellContentDoubleClick;
-            }
-        }
-        #endregion
-
-        #region [全選択解除]ボタン押下
-        /// <summary>
-        /// [全選択解除]ボタン押下
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnAllUnselect_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                int nInvoiceNo = CommonMotions.cnvInt(cbCreateDate.SelectedValue);
-
-                foreach (DataGridViewRow CurRow in dgv1.Rows)
-                {
-                    // 請求ヘッダが紐づいていない行はダミー
-                    if (CurRow.Cells[(int)DispColumn.RequestNo].Value == null)
-                    {
-                        break;
-                    }
-
-                    // 請求書が紐づいていないものはOFF
-                    if (CurRow.Cells[(int)DispColumn.InvoiceNo].Value == null)
-                    {
-                        CurRow.Cells[(int)DispColumn.CheckFlg].Value = false;
-                    }
-                    // 請求書が紐づいていても選択されていない請求書のものはOFF
-                    else if (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value) != nInvoiceNo)
-                    {
-                        CurRow.Cells[(int)DispColumn.CheckFlg].Value = false;
-                    }
-                }
-                // 選択数、選択金額の更新
-                UpdateCheckValue();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region [削除]ボタン押下
-        /// <summary>
-        /// [削除]ボタン押下
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnDel_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                if (MessageBox.Show("表示されている請求書を削除しますがよろしいですか？", "削除確認"
-                                        , MessageBoxButtons.YesNo
-                                        , MessageBoxIcon.Information) == DialogResult.No)
-                {
-                    return;
-                }
-
-                int nInvoiceNo = CommonMotions.cnvInt(cbCreateDate.SelectedValue);
-
-                // 請求書データの削除
-                if (!DeleteInvoiceData(nInvoiceNo))
-                {
-                    return;
-                }
-
-                foreach (RequestHead ReqHead in m_lstReqHead)
-                {
-                    if (ReqHead.InvoiceNo == nInvoiceNo)
-                    {
-                        ReqHead.InvoiceNo = 0;
-                    }
-                }
-
-                foreach (DataGridViewRow CurRow in dgv1.Rows)
-                {
-                    // 請求ヘッダが紐づいていない行はダミー
-                    if (CurRow.Cells[(int)DispColumn.RequestNo].Value == null)
-                    {
-                        break;
-                    }
-
-                    // 削除対象の設計書データが紐づいている場合
-                    if ((CurRow.Cells[(int)DispColumn.InvoiceNo].Value != null)
-                        && (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value) == nInvoiceNo))
-                    {
-                        CurRow.Cells[(int)DispColumn.RequestNo].Value = null;
-                        CurRow.Cells[(int)DispColumn.CreateDate].Value = null;
-                    }
-
-                }
-
-                // 請求データから該当請求書を削除
-                m_dicInvData.Remove(nInvoiceNo);
-
-                cbCreateDate.SelectedIndexChanged -= cbCreateDate_SelectedIndexChanged;
-
-                cbCreateDate.DataSource = null;
-                cbCreateDate.Items.Clear();
-
-                // 作成日コンボの取得
-                SetRequestCreateDateAll();
-
-                cbCreateDate.SelectedIndexChanged += cbCreateDate_SelectedIndexChanged;
-
-                cbCreateDate.SelectedIndex = 0;
-
-
-                RefleshRequestList(nInvoiceNo);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region [請求書作成]ボタン押下
-        /// <summary>
-        /// [請求書作成]ボタン押下
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnGenerate_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                // 請求書作成処理
-                if (!GenerateProc()) return;
-
-                // 印刷実行
-                EntryPrintProc();
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region セル内容のWクリック
-        /// <summary>
-        /// セル内容のWクリック
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void dgv1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
-        {
-            DataGridViewRow CurRow = dgv1.CurrentRow;
-            if (CurRow.Cells[(int)DispColumn.CheckFlg].EditedFormattedValue.Equals(true) == true)
-            {
-                CurRow.Cells[(int)DispColumn.CheckFlg].Value = false;
-            }
-            else
-            {
-                CurRow.Cells[(int)DispColumn.CheckFlg].Value = true;
-            }
-
-            UpdateCheckValue();
-        }
-        #endregion
-
-        #region 印刷中断
-        /// <summary>
-        /// 印刷中断
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnCancel_Click(object sender, EventArgs e)
-        {
-            //キャンセルのフラッグを立てる
-            m_Canceled = true;
-        }
-        #endregion
-
-        #region ×ボタン
-        /// <summary>
-        /// ×ボタン押下処理
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmRequestPrintSel_FormClosing(object sender, FormClosingEventArgs e)
-        {
-            if (m_CloseingProcessOff) return;
-
-            // 前プロセスに戻る
-            ClsExcute.BackProcess();
-        }
-        #endregion
-
-        #region [終了]ボタン押下
-        /// <summary>
-        /// [終了]ボタン押下
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnEnd_Click(object sender, EventArgs e)
-        {
-            // 画面クローズ
-            this.Close();
-        }
-        #endregion
-
-        #region 作成日コンボの選択変更
-        /// <summary>
-        /// 作成日コンボの選択変更
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private int m_nOldSelectedValue = 0;
-        private void cbCreateDate_SelectedIndexChanged(object sender, EventArgs e)
-        {
-            int nInvoiceNo = CommonMotions.cnvInt(cbCreateDate.SelectedValue);
-
-            if (m_nOldSelectedValue == nInvoiceNo)
-            {
-                return;
-            }
-
-            m_nOldSelectedValue = nInvoiceNo;
-
-            RefleshRequestList(nInvoiceNo);
-        }
-
-        #endregion
-
-        #region セル内容のクリック
-        /// <summary>
-        /// セル内容のクリック
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void dgv1_CellContentClick(object sender, DataGridViewCellEventArgs e)
-        {
-            dgv1_CellContentDoubleClick(sender, e);
-        }
-        #endregion
-    }
-}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSelPrtOut.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSelPrtOut.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSelPrtOut.cs	(nonexistent)
@@ -1,1368 +0,0 @@
-﻿using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-using ProcessManagement.Common;
-using ProcessManagement.DataModel;
-using ProcessManagement.DB;
-using ProcessManagement.DB.IOAccess;
-using ProcessManagement.Forms.SubForms;
-using ProcessManagement.Forms.ControlsAction;
-
-
-namespace ProcessManagement.Forms.DataEntry
-{
-    public partial class FrmRequestPrintSel
-    {
-        #region 定数
-
-        /// <summary>
-        /// Excelテンプレートファイル名
-        /// </summary>
-        //private static string s_ExcelRequestSheetFileName = @"\RequestSheet.xlsx";
-        private static string s_ExcelRequestSheetFileName = CommonDefine.s_ExcelOriginalFileName;
-
-        /// <summary>
-        /// デスクトップフォルダ名
-        /// </summary>
-        private static string s_ExecCurrentDirName = System.Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
-
-        /// <summary>
-        /// シート名称カウント
-        /// </summary>
-        enum enumSheetName
-        {
-            Cover = 0,
-            List,
-            Detail,
-        }
-
-        /// <summary>
-        /// Excel シート名称
-        /// </summary>
-        private static readonly Dictionary<enumSheetName, string> s_DicSheetName = new Dictionary<enumSheetName, string>()
-        {
-            { enumSheetName.Cover, "請求書（表紙）" },
-            { enumSheetName.List, "請求書（一覧）" },
-            { enumSheetName.Detail, "請求書（内訳）" },
-        };
-
-        /// <summary>
-        /// 図形置き場シート
-        /// </summary>
-        private const string s_shapeSheetName = "図形シート";
-        /// <summary>
-        /// 図形名称
-        /// </summary>
-        private const string s_shapeName = "EstimateSeal1";                                    // 積算見積表紙判子
-        /// <summary>
-        /// 図形サイズ【縦・横】（図形名称順）
-        /// </summary>
-        private static float[,] s_ShapeSize = new float[1, 2] { { 25.51f, 25.51f } };         // 積算見積表紙判子
-        /// <summary>
-        /// 積算見積表紙判子フォントサイズ
-        /// </summary>
-        private static float[] s_EstimateSeal1FontSize = { 16f, 8f, 8f, 8f, 6f };
-        /// <summary>
-        /// 表紙判子位置(Key:X Value:Y)
-        /// </summary>
-        private static float[,] s_CoverSealPoint = new float[4, 2] {{592.50f, 555.25f},    // 社長
-                                                                    {657.25f, 555.25f},    // 所属長
-                                                                    {721.00f, 555.25f},    // 営業
-                                                                    {784.00f, 555.25f} };  // 担当
-
-        #endregion
-
-        #region 変数
-
-        #region スレッド使用定義
-        //コントロールの値を変更するためのデリゲート
-        private delegate void SetProgressValueDelegate(int num);
-        //バックグラウンド処理が終わった時にコントロールの値を変更するためのデリゲート
-        private delegate void ThreadCompletedDelegate();
-        //処理がキャンセルされた時にコントロールの値を変更するためのデリゲート
-        private delegate void ThreadCanceledDelegate();
-
-        //別処理をするためのスレッド
-        private System.Threading.Thread workerThread;
-
-        //デリゲートの作成
-        SetProgressValueDelegate m_progressDlg = null;
-        ThreadCompletedDelegate m_completeDlg = null;
-        ThreadCanceledDelegate m_canceledDlg = null;
-        #endregion
-
-        /// <summary>
-        /// Excel印刷クラスオブジェクト
-        /// </summary>
-        private UsedExcel m_UsedExcel = null;
-
-        /// <summary>
-        /// 保存時Excelパス
-        /// </summary>
-        private string m_SelectSaveExcel = "";
-
-        /// <summary>
-        /// 請求書データ
-        /// </summary>
-        private InvoiceData m_InvData = new InvoiceData();
-
-        /// <summary>
-        /// 請求データ
-        /// </summary>
-        private Dictionary<int, List<RequestData>> m_dicReqData = new Dictionary<int, List<RequestData>>();
-
-        /// <summary>
-        /// 工事基本情報データ
-        /// </summary>
-        private Dictionary<int, ConstructionBaseInfo> m_dicConstructionBaseInfo = new Dictionary<int, ConstructionBaseInfo>();
-
-        /// <summary>
-        /// 日付印刷
-        /// </summary>
-        private bool m_bDatePrintFlg = true;
-
-        /// <summary>
-        /// 印刷日付
-        /// </summary>
-        private DateTime m_DatePrintOut = DateTime.Now;
-
-        /// <summary>
-        /// 印刷処理プロセス数カウント
-        /// </summary>
-        private int m_ProcessCount = 0;
-
-        /// <summary>
-        /// プログレスバー使用カウント
-        /// </summary>
-        private int m_ProgressCount = 0;
-
-        /// <summary>
-        /// キャンセルボタンがクリックされたかを示すフラグ
-        /// </summary>
-        private volatile bool m_Canceled = false;
-        /// <summary>
-        /// 実行ダイアログ選択値
-        /// </summary>
-        private DialogResult m_PrintresRet = DialogResult.Cancel;
-
-        /// <summary>
-        /// 終了コード
-        /// </summary>
-        private CommonDefine.RetunAnswer m_rtAns = CommonDefine.RetunAnswer.Answer0;
-
-        #endregion
-
-        #region プロパティ
-
-        #endregion
-
-        #region 工事基本情報取得
-        /// <summary>
-        /// 工事基本情報取得
-        /// </summary>
-        /// <param name="constructionCode"></param>
-        /// <param name="data"></param>
-        /// <returns></returns>
-        private bool GetConstructionBaseInfo(int constructionCode, ref ConstructionBaseInfo data)
-        {
-            var cbDB = new IOConstructionBaseInfo();
-            try
-            {
-                // 工事基本情報取得クラス領域
-                var wrk = new ConstructionBaseInfo();
-
-                // 工事基本情報取得SQL
-                string strSQL = cbDB.CreatePrimarykeyString(constructionCode);
-
-                // 工事基本情報取得
-                if (!cbDB.SelectAction(strSQL, ref wrk)) return false;
-
-                // 工事基本情報取得クラス領域
-                data = wrk;
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                cbDB.close(); cbDB = null;
-            }
-            return true;
-        }
-        #endregion
-
-        #region 結合親工事番号の取得
-        /// <summary>
-        /// 結合親工事番号の取得
-        /// </summary>
-        /// <param name="nConstructionCode"></param>
-        /// <returns></returns>
-        private int GetJoinParentConstructionCode(int nConstructionCode)
-        {
-            int nParentCode = -1;
-            IOConstructionLink ioLink = new IOConstructionLink();
-
-            try
-            {
-                string sql = string.Format(" WHERE FluctuationCode = {0} AND LinkType = 1 ", nConstructionCode);
-                List<ConstructionLink> lstWork = new List<ConstructionLink>();
-
-                if (ioLink.SelectAction(sql, ref lstWork) == false)
-                {
-                    return nParentCode;
-                }
-
-                foreach (ConstructionLink Link in lstWork)
-                {
-                    nParentCode = Link.ConstructionCode;
-                    break;
-                }
-                return nParentCode;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return -1;
-            }
-            finally
-            {
-                ioLink.close();
-                ioLink = null;
-            }
-
-        }
-        #endregion
-
-        #region 工事基本情報明細
-        /// <summary>
-        /// 工事基本情報明細を工事基本情報明細テーブルから工事番号をキーに取得する関数
-        /// </summary>
-        /// <param name="datas"></param>
-        /// <returns></returns>
-        private bool GetConstructionBaseInfoDetail(List<int> lstConstCode, ref Dictionary<int, Dictionary<int, string>> datas)
-        {
-            var sbDB = new IOConstructionBaseInfoDetail();
-            try
-            {
-                // 工事基本情報明細取得クラス領域
-                var wrk = new List<ConstructionBaseInfoDetail>();
-
-                // 工事基本情報明細取得SQL
-                StringBuilder strSQL = new StringBuilder();
-                strSQL.Append(" Where ConstructionCode in ( ");
-                foreach (int constCode in lstConstCode)
-                {
-                    strSQL.AppendFormat((lstConstCode.IndexOf(constCode) == 0) ? " {0}" : ", {0}", constCode);
-                }
-                strSQL.Append(" )");
-
-                // 工事基本情報明細取得
-                if (!sbDB.SelectAction(strSQL.ToString(), ref wrk)) return false;
-
-                datas.Clear();
-
-                foreach (var record in wrk)
-                {
-                    if (!datas.ContainsKey(record.ConstructionCode))
-                        datas[record.ConstructionCode] = new Dictionary<int, string>();
-                    datas[record.ConstructionCode][record.DetailNo] = record.DetailString;
-                }
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                sbDB.close();
-                sbDB = null;
-            }
-
-            return true;
-        }
-        #endregion
-
-        #region 工事増減情報取得
-        /// <summary>
-        /// 工事増減情報取得
-        /// </summary>
-        /// <param name="constructionCode"></param>
-        /// <param name="datas"></param>
-        /// <returns></returns>
-        private bool GetConstructionLink(int constructionCode, ref List<int> datas)
-        {
-            var sbDB = new IOConstructionLink();
-            try
-            {
-                // 工事増減情報取得クラス領域
-                var wrk = new List<ConstructionLink>();
-
-                // 工事増減情報取得SQL
-                string strSQL = sbDB.CreatePrimarykeyString(constructionCode);
-
-                // ソート条件追加
-                strSQL += " ORDER BY FLUCTUATIONCODE";
-
-                // 工事増減情報取得
-                if (!sbDB.SelectAction(strSQL, ref wrk)) return false;
-
-                foreach (var record in wrk)
-                {
-                    datas.Add(record.FluctuationCode);
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                sbDB.close();
-                sbDB = null;
-            }
-
-            return true;
-        }
-        #endregion
-
-        #region 工事詳細台帳データ取得
-        /// <summary>
-        /// 工事詳細台帳データ取得
-        /// </summary>
-        /// <param name="constructionCode"></param>
-        /// <param name="data"></param>
-        /// <returns></returns>
-        private bool GetConstructionLedger(int constructionCode, ref ConstructionLedger data)
-        {
-            var sbDB = new IOConstructionLedger();
-            try
-            {
-                // 工事詳細台帳データ取得クラス領域
-                var wrk = new ConstructionLedger();
-
-                // 工事詳細台帳データ取得SQL
-                string strSQL = sbDB.CreatePrimarykeyString(constructionCode);
-
-                // 工事詳細台帳データ取得
-                if (!sbDB.SelectAction(strSQL, ref wrk)) return false;
-
-                data = wrk;
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                sbDB.close();
-                sbDB = null;
-            }
-
-            return true;
-        }
-        #endregion
-
-        #region プログレスバーの値を変更する
-        /// <summary>
-        /// プログレスバーの値を変更する
-        /// </summary>
-        /// <param name="num"></param>
-        private void SetProgressValue(int num)
-        {
-            // ProgressBarの値を変更する
-            PrintProgress.Value = num;
-            PrintProgress.Update();
-        }
-        #endregion
-
-        #region 処理が完了した時にコントロールの値を変更する
-        /// <summary>
-        /// 処理が完了した時にコントロールの値を変更する
-        /// </summary>
-        private void ThreadCompleted()
-        {
-            try
-            {
-                // コントロールの変更
-                PrintProgress.Visible = false;
-                panel2.Update();
-
-                // ボタンの変更
-                PrintButtonVisbleControl(false);
-
-                // 印刷
-                if (m_rtAns == CommonDefine.RetunAnswer.Answer0)
-                {
-                    if (m_PrintresRet == DialogResult.No)
-                    {
-                        MessageBox.Show("保存が終了しました。", "終　了", MessageBoxButtons.OK, MessageBoxIcon.Information);
-                    }
-                    return;
-                }
-
-                string strMessage = "";
-                switch ((int)m_rtAns)
-                {
-                    case (int)CommonDefine.RetunAnswer.Answer1:
-                        strMessage = "システムエラー";
-                        break;
-                    case (int)CommonDefine.RetunAnswer.Answer2:
-                        strMessage = "工事基本情報取得エラー";
-                        break;
-                }
-                MessageBox.Show(strMessage, "印刷エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                m_rtAns = CommonDefine.RetunAnswer.Answer1;
-            }
-        }
-        #endregion
-
-        #region 印刷時ボタン制御
-        /// <summary>
-        /// 印刷時ボタン制御
-        /// </summary>
-        /// <param name="bprint"></param>
-        private void PrintButtonVisbleControl(bool bprint)
-        {
-            if (bprint)
-            {
-                cbCreateDate.Enabled = false;
-                btnAllSelect.Visible = false;
-                btnAllUnselect.Visible = false;
-                btnGenerate.Visible = false;
-                btnDel.Visible = false;
-                btnEnd.Visible = false;
-                btnCancel.Visible = true;
-                PrintProgress.Visible = true;
-            }
-            else
-            {
-                cbCreateDate.Enabled = true;
-                btnAllSelect.Visible = true;
-                btnAllUnselect.Visible = true;
-                btnGenerate.Visible = true;
-                btnDel.Visible = true;
-                btnEnd.Visible = true;
-                btnCancel.Visible = false;
-                PrintProgress.Visible = false;
-            }
-
-        }
-        #endregion
-
-        #region 処理がキャンセルされた時にコントロールの値を変更する
-        /// <summary>
-        /// 処理がキャンセルされた時にコントロールの値を変更する
-        /// </summary>
-        private void ThreadCanceled()
-        {
-            // コントロールの変更
-            PrintProgress.Visible = false;
-            panel2.Update();
-
-            // ボタンの変更
-            PrintButtonVisbleControl(false);
-        }
-        #endregion
-
-        #region 印刷メイン
-        /// <summary>
-        /// 印刷メイン
-        /// </summary>
-        /// <param name="bPrint">true:印刷のみ,false:保存のみ</param>
-        public void PrintMain(object args)
-        {
-            try
-            {
-                object[] argsTmp = (object[])args;
-                bool bPrint = true;
-                for (int i = 0; i < argsTmp.Length; i++)
-                {
-                    bPrint = (bool)argsTmp[i];
-                }
-
-                //デリゲートの作成
-                m_progressDlg = new SetProgressValueDelegate(SetProgressValue);
-                m_completeDlg = new ThreadCompletedDelegate(ThreadCompleted);
-                m_canceledDlg = new ThreadCanceledDelegate(ThreadCanceled);
-
-                // 印刷クラス
-                m_UsedExcel = new UsedExcel();
-                m_ProgressCount = 0;
-
-                // コントロールの表示を変更する
-                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
-                // エクセルブックオープン
-                if (!m_UsedExcel.ExcelBookOpen(System.Environment.CurrentDirectory + s_ExcelRequestSheetFileName))
-                {
-                    m_rtAns = CommonDefine.RetunAnswer.Answer5;
-                    return;
-                }
-
-                // 中断処理
-                if (m_Canceled) return;
-
-                // コントロールの表示を変更する
-                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
-
-                // 表紙印刷
-                CommonDefine.RetunAnswer rtAns = PrintCover();
-                if (rtAns != CommonDefine.RetunAnswer.Answer0)
-                {
-                    m_rtAns = rtAns;
-                    return;
-                }
-
-                // 中断処理
-                if (m_Canceled) return;
-
-                // コントロールの表示を変更する
-                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
-
-                // 一覧印刷
-                rtAns = PrintList();
-                if (rtAns != CommonDefine.RetunAnswer.Answer0)
-                {
-                    m_rtAns = rtAns;
-                    return;
-                }
-
-                // 中断処理
-                if (m_Canceled) return;
-
-                // コントロールの表示を変更する
-                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
-
-                int no = 1;
-                foreach (RequestHead ReqHead in m_lstReqHead)
-                {
-                    List<RequestData> lstReqData = null;
-                    if (m_dicReqData.TryGetValue(ReqHead.RequestNo, out lstReqData) == false)
-                    {
-                        m_rtAns = rtAns;
-                        return;
-                    }
-
-                    foreach (RequestData ReqData in lstReqData)
-                    {
-                        ConstructionBaseInfo Info = null;
-
-                        if (m_dicConstructionBaseInfo.TryGetValue(ReqData.MainConstructionCode, out Info) == false)
-                        {
-                            m_rtAns = CommonDefine.RetunAnswer.Answer2;
-                            return;
-                        }
-
-                        long lRequestAmount = ReqData.RequestAmount0;
-                        lRequestAmount += ReqData.RequestAmount1;
-                        lRequestAmount += ReqData.RequestAmount2;
-                        lRequestAmount += ReqData.RequestAmount3;
-                        lRequestAmount += ReqData.RequestAmount4;
-                        lRequestAmount += ReqData.RequestAmount5;
-                        lRequestAmount += ReqData.RequestAmount6;
-                        lRequestAmount += ReqData.UnpaidAmount;
-
-                        if (lRequestAmount == 0)
-                        {
-                            continue;
-                        }
-
-                        rtAns = PrintDetail(no, ReqHead, ReqData, Info);
-                        if (rtAns != CommonDefine.RetunAnswer.Answer0)
-                        {
-                            m_rtAns = rtAns;
-                            return;
-                        }
-                        // 中断処理
-                        if (m_Canceled) return;
-
-                        // コントロールの表示を変更する
-                        this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
-                    }
-                }
-
-                if (bPrint)
-                {
-                    // 印刷処理
-                    m_UsedExcel.ExcelSheetPrint();
-                }
-                else
-                {
-                    // 保存処理
-                    SaveExcelFile();
-                }
-
-                // コントロールの表示を変更する
-                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // 完了したときにコントロールの値を変更する
-                this.Invoke(m_completeDlg);
-
-                //デリゲートの廃棄
-                m_progressDlg = null;
-                m_completeDlg = null;
-                m_canceledDlg = null;
-
-                // Excel開放
-                if (m_UsedExcel != null)
-                {
-                    m_UsedExcel.ExcelBookClose();
-                }
-                m_UsedExcel = null;
-
-                // ガーベージコレクト
-                GC.Collect();
-            }
-        }
-        #endregion
-
-        #region Excelファイル保存処理
-        /// <summary>
-        /// Excelファイル保存処理
-        /// </summary>
-        private void SaveExcelFile()
-        {
-            try
-            {
-                string filePath = @m_SelectSaveExcel;
-
-                // ファイルパスの存在をチェック
-                if (CommonMotions.ChkDirPath(filePath, true))
-                {
-                    // ファイル名を作成
-                    string wrkFile = m_InvData.RequestName + "様 請求書";
-
-                    // ファイル名に使用できない文字を取り除く
-                    foreach (var badCh in m_UsedExcel.ExcelBadCharcter)
-                    {
-                        wrkFile = wrkFile.Replace(badCh, "");
-                    }
-
-                    // ファイル名作成
-                    filePath += @"\" + @wrkFile;
-
-                    // ファイル保存
-                    m_UsedExcel.SaveSwitch = true;
-                    m_UsedExcel.ExcelSaveBook(filePath);
-
-                }
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
-        #region エリアスを付けた担当者マスタのフィールド文を作成する
-        /// <summary>
-        /// エリアスを付けた担当者マスタのフィールド文を作成する
-        /// </summary>
-        /// <param name="Alias"></param>
-        /// <param name="strSQL"></param>
-        private string CreatePersonSQL(string Alias)
-        {
-            try
-            {
-                StringBuilder strcmd = new StringBuilder();
-
-                bool bColFirst = true;
-                string strWork = string.Empty;
-                foreach (var gender in Enum.GetValues(typeof(IOMPersonInCharge.ColumnCnt)))
-                {
-                    strWork = gender.ToString();
-                    if (!bColFirst) strcmd.Append(", ");
-                    if (strWork.Equals("StartDate") || strWork.Equals("EndDate"))
-                    {
-                        strcmd.AppendFormat(" DATE_FORMAT({0}{1}, '%Y/%m/%d')", Alias, strWork);
-                    }
-                    else if (strWork.Equals("EntryDate") || strWork.Equals("UpdateDate"))
-                    {
-                        strcmd.AppendFormat(" DATE_FORMAT({0}{1}, '%Y/%m/%d %H:%i:%s')", Alias, strWork);
-                    }
-                    else
-                    {
-                        strcmd.AppendFormat(" {0}{1}", Alias, strWork);
-                    }
-                    bColFirst = false;
-                }
-
-                return strcmd.ToString();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return string.Empty;
-            }
-        }
-        #endregion
-
-        #region 表紙印鑑表示
-        /// <summary>
-        ///  表紙印鑑表示
-        /// </summary>
-        private void PrintCoverSeal(int PersonCode)
-        {
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
-            IOProcessApproval paDB = new IOProcessApproval();
-            try
-            {
-                ArrayList arlist = new ArrayList();
-
-                // 承認データ読込
-                StringBuilder strSQLSeal = new StringBuilder();
-                strSQLSeal.Append("SELECT");
-                strSQLSeal.Append(CreatePersonSQL("B."));
-                strSQLSeal.Append(", C.SECRANK FROM PROCESSAPPROVAL A, PERSONINCHARGEMASTER B, SECURITYMASTER C");
-                strSQLSeal.Append(paDB.CreatePrimarykeyString(m_lstReqHead[0].ReqConstructionCode, (int)ClsExcute.ApprovalListNo.OrderBillingApproval, m_lstReqHead[0].OrderNo));
-                strSQLSeal.Append(" AND A.PERSONCODE = B.PERSONCODE");
-                strSQLSeal.Append(" AND C.SECCODE = B.SECCODE");
-                strSQLSeal.Append(" Order By C.SecRank ASC");
-                if (!paDB.ExecuteReader(strSQLSeal.ToString(), ref arlist)) return;
-
-                // 印刷テーブル作成
-                int[] PorsonCode = new int[4] { 0, 0, 0, 0 };
-                List<string> NameTable = new List<string>();
-                for (int i = 0; i < PorsonCode.Length; i++) NameTable.Add("");
-                string[] OrderOfPrecedenceTable = new string[4];
-
-                int PersonDataCnt = Enum.GetNames(typeof(IOMPersonInCharge.ColumnCnt)).Length;
-                // 承認データより担当者その他を取得する
-                for (int i = 0; i < arlist.Count; i++)
-                {
-                    // エクセルの枠より多い場合は処理を抜ける
-                    if (i > 3) break;
-
-                    object[] readObj = (object[])arlist[i];
-                    PersonInChargeMaster PersonRec = new PersonInChargeMaster();
-                    picDB.Reader2Struct(readObj, ref PersonRec);
-
-                    // セキュリティデータチェック
-                    int SecRank = CommonMotions.cnvInt(readObj[PersonDataCnt]);
-                    int SRank = (int)CommonDefine.SecurityRankPos.SpecialAuthority;     // 特別権限
-                    int FRank = (int)CommonDefine.SecurityRankPos.FreeAuthority;        // 統括者権限
-                    int LRank = (int)CommonDefine.SecurityRankPos.LimitedAuthority;     // 所属長権限
-
-                    // 担当者以外は役職がある
-                    if (SecRank == CommonDefine.SecurityRankList[SRank].Key
-                        || SecRank == CommonDefine.SecurityRankList[FRank].Key
-                        || SecRank == CommonDefine.SecurityRankList[LRank].Key)
-                    {
-                        // コードと名前と役職を取得する
-                        PorsonCode[i] = PersonRec.PersonCode;
-                        NameTable[i] = PersonRec.SealPrintName;
-                        // 7文字以上は文字が見えないので省略
-                        if (PersonRec.DisplayString.Length > 7)
-                        {
-                            OrderOfPrecedenceTable[i] = PersonRec.DisplayString.Substring(0, 7);
-                        }
-                        else if (PersonRec.DisplayString.Length < 1)
-                        {
-                            OrderOfPrecedenceTable[i] = "担　当";
-                        }
-                        else
-                        {
-                            OrderOfPrecedenceTable[i] = PersonRec.DisplayString;
-                        }
-                    }
-                    else
-                    {   // 担当者
-                        // コードと名前を取得する
-                        PorsonCode[3] = PersonRec.PersonCode;
-                        NameTable[3] = PersonRec.SealPrintName;
-                        OrderOfPrecedenceTable[3] = "担　当";
-                    }
-                }
-                // テーブル内に同じコードが無いか後から調べる
-                for (int i = 0; i < PorsonCode.Length - 1; i++)
-                {
-                    if (PorsonCode[i] == 0) continue;
-                    for (int ii = 0; ii < PorsonCode.Length; ii++)
-                    {
-                        if (i == ii) continue;
-                        if (PorsonCode[i] != PorsonCode[ii]) continue;
-
-                        PorsonCode[ii] = 0;
-                        NameTable[ii] = string.Empty;
-                        OrderOfPrecedenceTable[ii] = string.Empty;
-                        break;
-                    }
-                }
-
-                // 印鑑を描画する
-                OfficeShapeDefine shapedef = new OfficeShapeDefine();
-                shapedef.ShapeSheetName = s_shapeSheetName;     // 図形シート名称
-                shapedef.ShapeName = s_shapeName;               // 図形名称
-                shapedef.ShapeWidth = s_ShapeSize[0, 0];        // 図形描画サイズ Width
-                shapedef.ShapeHeight = s_ShapeSize[0, 1];       // 図形描画サイズ Height
-
-                for (int i = 0; i < 4; i++)
-                {
-                    // 
-                    if (PorsonCode[i] != 0)
-                    {
-                        shapedef.ShapeDrowPointX = s_CoverSealPoint[i, 0];          // 図形描画位置 X
-                        shapedef.ShapeDrowPointY = s_CoverSealPoint[i, 1];          // 図形描画位置 Y
-                        shapedef.DrowText = NameTable[i];                           // 描画文字列
-                        int ifontSize = NameTable[i].Length - 1;
-                        if (ifontSize > 4) ifontSize = 4;
-                        shapedef.FontSize = s_EstimateSeal1FontSize[ifontSize];     // フォントサイズ
-                        // 図形描画
-                        m_UsedExcel.ExcelCopyShape(shapedef);
-                    }
-                    // 役職を印字する(M～)
-                    int orgNumber = 11 + i;
-                    string strAlpha = CommonMotions.cnvNumberToAlphaCharacter(orgNumber);
-                    m_UsedExcel.ExcelCellSet(string.Format("{0}25", strAlpha), OrderOfPrecedenceTable[i]);
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                paDB.close(); paDB = null;
-                picDB.close(); picDB = null;
-            }
-        }
-        #endregion
-
-        #region 請求書(表紙)作成
-        /// <summary>
-        /// 請求書(表紙)作成
-        /// </summary>
-        /// <returns></returns>
-        private CommonDefine.RetunAnswer PrintCover()
-        {
-            try
-            {
-                //// 請求書表紙シートの取得
-                m_UsedExcel.ExcelSheetGet(s_DicSheetName[enumSheetName.Cover]);
-
-                //// 請求書No(4行目 N列)
-                string strInvNo = (m_InvData.InvoiceNo / 1000).ToString();
-                strInvNo += "-";
-                strInvNo += (m_InvData.InvoiceNo % 1000).ToString("00");
-
-                ExcelPrintData InvNoData = new ExcelPrintData();
-                InvNoData.AddPrintData("N", 3, strInvNo).ExcelCellSet(m_UsedExcel);
-
-
-                //// ③ 請求日(5行目 M列)
-                if (m_bDatePrintFlg == true)
-                {
-                    ExcelPrintData reqDate = new ExcelPrintData();
-                    reqDate.AddPrintData("M", 4, m_DatePrintOut.ToString("yyyy/MM/dd")).ExcelCellSet(m_UsedExcel);
-                }
-                else
-                {
-                    ExcelPrintData reqDate = new ExcelPrintData();
-                    reqDate.AddPrintData("M", 4, "　　年　　月　　日").ExcelCellSet(m_UsedExcel);
-                }
-
-                //// ④ 請求先名称(9行目 C列)
-                ExcelPrintData nameData = new ExcelPrintData();
-                string str = m_InvData.RequestName + "　様";
-                nameData.AddPrintData("C", 8, str).ExcelCellSet(m_UsedExcel);
-
-                //// ⑤ 請求金額(13行目 C列)
-                ExcelPrintData priceData = new ExcelPrintData();
-                priceData.AddPrintData("C", 12, m_InvData.TotalAmount.ToString("#,0")).ExcelCellSet(m_UsedExcel);
-
-                //// ⑥ 消費税(14行目 C列)
-                ExcelPrintData taxData = new ExcelPrintData();
-                taxData.AddPrintData("C", 13, m_InvData.TaxAmount.ToString("#,0")).ExcelCellSet(m_UsedExcel);
-
-                //// 工事名(16行目 D列)
-                //                ExcelPrintData cnstnameData = new ExcelPrintData();
-                //                cnstnameData.AddPrintData("D", 15, m_lstReqHead[0].ReqConstructionName).ExcelCellSet(m_UsedExcel);
-
-                //// 会社名
-                string strCompany = CommonMotions.SystemMasterData.CompanyName1;
-                if (CommonMotions.SystemMasterData.CompanyName2 != string.Empty)
-                {
-                    strCompany += "　" + CommonMotions.SystemMasterData.CompanyName2;
-                }
-
-                // 代表者名
-                string strPresident = string.Format("{0} {1}", CommonMotions.SystemMasterData.CEOPositionName.Trim()
-                                                                , CommonMotions.SystemMasterData.CEOName.Trim());
-
-                //// 郵便番号
-                string strZip = "〒" + CommonMotions.SystemMasterData.ZipCode;
-
-                //// 住所
-                string strAddr = CommonMotions.SystemMasterData.Address1;
-                if (CommonMotions.SystemMasterData.Address2 != string.Empty)
-                {
-                    strAddr += CommonMotions.SystemMasterData.Address2;
-                }
-                if (CommonMotions.SystemMasterData.Address3 != string.Empty)
-                {
-                    strAddr += CommonMotions.SystemMasterData.Address3;
-                }
-
-                //// TEL/FAX
-
-                string strTelFax = "";
-
-                if (CommonMotions.SystemMasterData.PhoneNumber != string.Empty)
-                {
-                    strTelFax = "TEL " + CommonMotions.SystemMasterData.PhoneNumber + "(代)";
-                }
-                if (CommonMotions.SystemMasterData.FaxNumber != string.Empty)
-                {
-                    if (strTelFax.Length > 0)
-                    {
-                        strTelFax += " ";
-                    }
-                    strTelFax += "FAX " + CommonMotions.SystemMasterData.FaxNumber;
-                }
-                //// URL
-                string strUrl = CommonMotions.SystemMasterData.HomePageURL;
-
-                ExcelPrintData companyData = new ExcelPrintData();
-                companyData.AddPrintData("L", 17, strCompany);                              // 会社名(18行目 L列)           
-                companyData.AddPrintData("L", 18, strPresident);                            // 代表者名(19行目 L列)           
-                companyData.AddPrintData("L", 19, strZip);                                  // 郵便番号(20行目 L列) 
-                companyData.AddPrintData("L", 20, strAddr);                                 // 住所(21行目 L列)           
-                companyData.AddPrintData("L", 21, strTelFax);                               // TEL/FAX(22行目 L列)           
-                companyData.AddPrintData("L", 22, strUrl);                                  // URL(23行目 L列)           
-                companyData.ExcelCellSet(m_UsedExcel);
-
-                ExcelPrintData commentData = new ExcelPrintData();
-                commentData.AddPrintData("C", 17, m_InvData.Comment1);                              // コメント1(18行目 C列)           
-                commentData.AddPrintData("C", 18, m_InvData.Comment2);                              // コメント2(19行目 C列)           
-                commentData.AddPrintData("C", 19, m_InvData.Comment3);                              // コメント3(20行目 C列)           
-                commentData.AddPrintData("C", 20, m_InvData.Comment4);                              // コメント4(21行目 C列)           
-                commentData.AddPrintData("C", 21, m_InvData.Comment5);                              // コメント5(22行目 C列)           
-                commentData.ExcelCellSet(m_UsedExcel);
-
-                ConstructionBaseInfo Info = null;
-                m_dicConstructionBaseInfo.TryGetValue(m_lstReqHead[0].ReqConstructionCode, out Info);
-
-                // 印鑑描画
-                PrintCoverSeal(Info.ConstructionPersonCode);
-
-                return CommonDefine.RetunAnswer.Answer0;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return CommonDefine.RetunAnswer.Answer1;
-            }
-        }
-        #endregion
-
-        #region 請求書(一覧)作成
-        /// <summary>
-        /// 請求書(一覧)作成
-        /// </summary>
-        /// <returns></returns>
-        private CommonDefine.RetunAnswer PrintList()
-        {
-            try
-            {
-                int trow = 4;
-                ExcelPrintData ExcelPrnData = null;
-
-                //// 請求書表紙シートの取得
-                m_UsedExcel.ExcelSheetGet(s_DicSheetName[enumSheetName.List]);
-
-                List<int> lstKey = new List<int>(m_dicReqData.Keys);
-
-                foreach (int nReqNo in lstKey)
-                {
-                    List<RequestData> lstData = null;
-
-                    if (m_dicReqData.TryGetValue(nReqNo, out lstData) == false)
-                    {
-                        continue;
-                    }
-
-                    foreach (RequestData ReqData in lstData)
-                    {
-                        ConstructionBaseInfo Info = null;
-
-                        if (m_dicConstructionBaseInfo.TryGetValue(ReqData.MainConstructionCode, out Info) == false)
-                        {
-                            continue;
-                        }
-
-                        string strname = (ReqData.MainConstructionCode / 100).ToString();
-                        strname += "-";
-                        strname += (ReqData.MainConstructionCode % 100).ToString("00");
-                        strname += "\r\n";
-                        strname += ReqData.ConstructionName;
-
-                        ExcelPrnData = new ExcelPrintData();
-                        ExcelPrnData.AddPrintData("B", trow, strname);             // 工事件名
-                        ExcelPrnData.AddPrintData("C", trow, string.Format("{0}年{1}月{2}日"
-                                                                        , Info.ConstructionPeriodStart.Year
-                                                                        , Info.ConstructionPeriodStart.Month.ToString("00")
-                                                                        , Info.ConstructionPeriodStart.Day.ToString("00")));    // 工期開始
-
-                        string EndDate = string.Empty;
-                        string DateDescription = string.Empty;
-                        if (Info.RevCompleteDate != DateTime.MinValue)
-                        {   // 検査是正完了日
-                            EndDate = string.Format("{0}年{1}月{2}日"
-                                                                    , Info.RevCompleteDate.Year
-                                                                    , Info.RevCompleteDate.Month.ToString("00")
-                                                                    , Info.RevCompleteDate.Day.ToString("00"));
-                            DateDescription = "（現場是正完了日）";
-                        }
-                        else
-                        {   // 請求確認日
-                            EndDate = string.Format("{0}年{1}月{2}日"
-                                                                    , Info.BillingDate.Year
-                                                                    , Info.BillingDate.Month.ToString("00")
-                                                                    , Info.BillingDate.Day.ToString("00"));
-                            DateDescription = "（請求書確認日）";
-                        }
-                        ExcelPrnData.AddPrintData("C", trow + 1, string.Format("～ {0}", EndDate));                 // 工期終了
-                        ExcelPrnData.AddPrintData("C", trow + 2, DateDescription);                                  // 終了日説明
-
-                        long lAmount = ReqData.RequestAmount0;
-                        lAmount += ReqData.RequestAmount1;
-                        lAmount += ReqData.RequestAmount2;
-                        lAmount += ReqData.RequestAmount3;
-                        lAmount += ReqData.RequestAmount4;
-                        lAmount += ReqData.RequestAmount5;
-                        lAmount += ReqData.RequestAmount6;
-                        lAmount += ReqData.TaxAmount;
-                        lAmount += ReqData.UnpaidAmount;
-
-                        ExcelPrnData.AddPrintData("D", trow, lAmount.ToString("#,0"));                                  // 請求金額
-
-                        ExcelPrnData.AddPrintData("E", trow, ReqData.Note);                                             // 備考
-                        ExcelPrnData.ExcelCellSet(m_UsedExcel);
-
-                        trow += 3;
-
-                    }
-                }
-
-                return CommonDefine.RetunAnswer.Answer0;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return CommonDefine.RetunAnswer.Answer1;
-            }
-        }
-        #endregion
-
-        #region 請求書(内訳)作成
-        /// <summary>
-        /// 請求書(内訳)作成
-        /// </summary>
-        /// <param name="dicReqDetail"></param>
-        /// <param name="constLedger"></param>
-        /// <param name="lstConstLink"></param>
-        /// <returns></returns>
-        private CommonDefine.RetunAnswer PrintDetail(int no
-                                                    , RequestHead ReqHead
-                                                    , RequestData ReqData
-                                                    , ConstructionBaseInfo Info)
-        {
-            try
-            {
-                // 請求書内訳シートの取得
-                m_UsedExcel.ExcelSheetGet(s_DicSheetName[enumSheetName.Detail]);
-
-                ExcelPrintData ExcelPrnData = null;
-
-                // ------------------------------- 工事名 -------------------------------
-                // ① 工事件名
-                ExcelPrnData = new ExcelPrintData();
-                ExcelPrnData.AddPrintData("C", 2, ReqData.ConstructionName).ExcelCellSet(m_UsedExcel);
-
-                // ------------------------------- 請負金額 -------------------------------
-                ExcelPrnData = new ExcelPrintData();
-                ExcelPrnData.AddPrintData("A", 5, no.ToString());
-                ExcelPrnData.AddPrintData("G", 5, ReqData.ContractAmount.ToString("#,0"));
-                ExcelPrnData.ExcelCellSet(m_UsedExcel);
-
-                // ------------------------------- 前回ご請求分 -------------------------------
-                // 分割払いの場合
-                if (Info.BillingSplitFlg == (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling)
-                {
-                    ExcelPrnData = new ExcelPrintData();
-                    ExcelPrnData.AddPrintData("B", 7, "前回ご請求済分");
-                    ExcelPrnData.AddPrintData("C", 7, "前回請求書参照※増減補正済み");
-                    ExcelPrnData.AddPrintData("D", 7, "1");
-                    ExcelPrnData.AddPrintData("E", 7, "式");
-                    ExcelPrnData.AddPrintData("G", 7, ReqData.PaidAmount.ToString("#,0"));
-                    ExcelPrnData.ExcelCellSet(m_UsedExcel);
-                }
-
-                long lTotalAmount = 0;
-
-                // ------------------------------- 見積金額（本工事） -------------------------------
-                ExcelPrnData = new ExcelPrintData();
-                ExcelPrnData.AddPrintData("G", 9, ReqData.RequestAmount0.ToString("#,0"));
-                ExcelPrnData.ExcelCellSet(m_UsedExcel);
-
-                lTotalAmount += ReqData.RequestAmount0;
-
-                // ------------------------------- 見積金額（増減工事） -------------------------------
-                long[] lAmount = new long[] { ReqData.RequestAmount1
-                                            , ReqData.RequestAmount2
-                                            , ReqData.RequestAmount3
-                                            , ReqData.RequestAmount4
-                                            , ReqData.RequestAmount5
-                                            , ReqData.RequestAmount6 };
-                string[] strTitle = new string[] { "増減工事１"
-                                                    , "増減工事２"
-                                                    , "増減工事３"
-                                                    , "増減工事４"
-                                                    , "増減工事５"
-                                                    , "増減工事６" };
-
-                for (int i = 0; i < 6; i++)
-                {
-                    if (lAmount[i] > 0)
-                    {
-                        ExcelPrnData = new ExcelPrintData();
-                        ExcelPrnData.AddPrintData("B", 10 + i, strTitle[i]);
-                        ExcelPrnData.AddPrintData("C", 10 + i, "追加増減見積もり参照");
-                        ExcelPrnData.AddPrintData("D", 10 + i, "1");
-                        ExcelPrnData.AddPrintData("E", 10 + i, "式");
-                        ExcelPrnData.AddPrintData("G", 10 + i, lAmount[i].ToString("#,0"));
-                        ExcelPrnData.ExcelCellSet(m_UsedExcel);
-
-                        lTotalAmount += lAmount[i];
-                    }
-                }
-
-                // ------------------------------- 今回ご請求分 -------------------------------
-                ExcelPrnData = new ExcelPrintData();
-                ExcelPrnData.AddPrintData("G", 17, lTotalAmount.ToString("#,0"));
-                ExcelPrnData.ExcelCellSet(m_UsedExcel);
-
-                // ------------------------------- 請負金額残金 -------------------------------
-                // 分割払いの場合
-                if (Info.BillingSplitFlg == (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling)
-                {
-                    ExcelPrnData = new ExcelPrintData();
-                    ExcelPrnData.AddPrintData("B", 19, "請負金額残金");
-                    ExcelPrnData.AddPrintData("D", 19, "1");
-                    ExcelPrnData.AddPrintData("E", 19, "式");
-                    ExcelPrnData.AddPrintData("G", 19, ReqData.UnclaimedAmount.ToString("#,0"));
-                    ExcelPrnData.ExcelCellSet(m_UsedExcel);
-                }
-
-                // ------------------------------- 未入金分 -------------------------------
-                if (ReqData.UnpaidAmount > 0)
-                {
-                    ExcelPrnData = new ExcelPrintData();
-                    ExcelPrnData.AddPrintData("B", 21, "未入金分");
-                    ExcelPrnData.AddPrintData("G", 21, ReqData.UnpaidAmount.ToString("#,0"));
-                    ExcelPrnData.ExcelCellSet(m_UsedExcel);
-
-                    lTotalAmount += ReqData.UnpaidAmount;
-                }
-
-                // ------------------------------- 小計 -------------------------------
-                ExcelPrnData = new ExcelPrintData();
-                ExcelPrnData.AddPrintData("G", 23, lTotalAmount.ToString("#,0"));
-                ExcelPrnData.ExcelCellSet(m_UsedExcel);
-
-                // ------------------------------- 消費税 -------------------------------
-                ExcelPrnData = new ExcelPrintData();
-                ExcelPrnData.AddPrintData("C", 24, string.Format("{0}%", CommonMotions.SystemMasterData.ConsumptionTax));
-                ExcelPrnData.AddPrintData("G", 24, ReqData.TaxAmount.ToString("#,0"));
-                ExcelPrnData.ExcelCellSet(m_UsedExcel);
-                lTotalAmount += ReqData.TaxAmount;
-
-                // ------------------------------- 税込金額合計 -------------------------------
-                ExcelPrnData = new ExcelPrintData();
-                ExcelPrnData.AddPrintData("G", 25, lTotalAmount.ToString("#,0"));
-                ExcelPrnData.ExcelCellSet(m_UsedExcel);
-
-                return CommonDefine.RetunAnswer.Answer0;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return CommonDefine.RetunAnswer.Answer1;
-            }
-
-        }
-        #endregion
-
-        #region Excelデータ出力用内部クラス定義
-        /// <summary>
-        /// Excelデータ出力用内部クラス定義
-        /// </summary>
-        private class ExcelPrintData
-        {
-            // Excelデータ保持用用ディクショナリ
-            private Dictionary<int, Dictionary<int, object>> m_DicPrintData = new Dictionary<int, Dictionary<int, object>>();
-
-            // Excelカラム名取得用
-            private static char[] s_Asc = { 'A', 'B', 'C', 'D', 'E'
-                                            , 'F', 'G', 'H', 'I', 'J'
-                                            , 'K', 'L', 'M', 'N', 'O'
-                                            , 'P', 'Q', 'R', 'S', 'T'
-                                            , 'U', 'V', 'W', 'X', 'Y'
-                                            , 'Z' };
-
-            private int m_RowMin = int.MaxValue;
-            private int m_RowMax = int.MinValue;
-            private int m_ColMin = int.MaxValue;
-            private int m_ColMax = int.MinValue;
-
-            /// <summary>
-            /// エクセルカラム名とインデックス番号のディクショナリ
-            /// </summary>
-            private static Dictionary<string, int> s_IndexOfExcelColumn = InitDicColumnIndex();
-
-            #region Excelカラムインデックスディクショナリ作成メソッド
-            /// <summary>
-            /// Excelカラムインデックスディクショナリ作成メソッド
-            /// </summary>
-            /// <returns></returns>
-            private static Dictionary<string, int> InitDicColumnIndex()
-            {
-                var result = new Dictionary<string, int>();
-
-                for (int indx = 0; indx < 256; indx++)
-                {
-                    string res = GetColumnString(indx);
-
-                    result.Add(res, indx);
-
-                }
-                return result;
-            }
-            #endregion
-
-            #region カラム英字名を取得
-            /// <summary>
-            /// カラム英字名を取得
-            /// </summary>
-            /// <param name="colIndex"></param>
-            /// <returns></returns>
-            private static string GetColumnString(int colIndex)
-            {
-                string res = "";
-
-                int court = colIndex;
-                while (court >= s_Asc.Count())
-                {
-                    res = s_Asc[court % s_Asc.Count()] + res;
-                    court = (int)Math.Truncate((double)court / (double)s_Asc.Count() - 1);
-                }
-                res = s_Asc[court % s_Asc.Count()] + res;
-
-                return res;
-            }
-            #endregion
-
-            #region データ追加
-            /// <summary>
-            /// データ追加
-            /// </summary>
-            /// <param name="colName">カラム名文字(※ "A", "B", 等...</param>
-            /// <param name="rowNo">行インデックス番号 0オリジン</param>
-            /// <param name="data">出力データオブジェクト</param>
-            /// <returns></returns>
-            public ExcelPrintData AddPrintData(string colName, int rowNo, object data)
-            {
-                return AddPrintData(s_IndexOfExcelColumn[colName], rowNo, data);
-            }
-            #endregion
-
-            #region データ追加
-            /// <summary>
-            /// データ追加
-            /// </summary>
-            /// <param name="colIndex">カラムインデックス 0オリジン</param>
-            /// <param name="rowNo">行インデックス番号 0オリジン</param>
-            /// <param name="data">出力データオブジェクト</param>
-            /// <returns></returns>
-            public ExcelPrintData AddPrintData(int colIndex, int rowNo, object data)
-            {
-                if (!m_DicPrintData.ContainsKey(rowNo))
-                    m_DicPrintData[rowNo] = new Dictionary<int, object>();
-
-                m_DicPrintData[rowNo][colIndex] = data;
-
-                if (m_RowMin > rowNo) m_RowMin = rowNo;
-                if (m_RowMax < rowNo) m_RowMax = rowNo;
-                if (m_ColMin > colIndex) m_ColMin = colIndex;
-                if (m_ColMax < colIndex) m_ColMax = colIndex;
-
-                return this;
-            }
-            #endregion
-
-            #region UsedExcelオブジェクトにデータをセットする
-            /// <summary>
-            /// UsedExcelオブジェクトにデータをセットする
-            /// </summary>
-            /// <param name="usedExcel">UsedExcelオブジェクト(シート取得済みであること)</param>
-            public void ExcelCellSet(UsedExcel usedExcel)
-            {
-                if (m_RowMin == int.MaxValue ||
-                    m_RowMax == int.MinValue ||
-                    m_ColMin == int.MaxValue ||
-                    m_ColMax == int.MinValue)
-                {
-                    return;
-                }
-
-                // オブジェクト配列を宣言
-                object[,] objCells = new object[m_RowMax - m_RowMin + 1, m_ColMax - m_ColMin + 1];
-
-                // 配列にデータを移し替える
-                foreach (int row in m_DicPrintData.Keys)
-                {
-                    foreach (int col in m_DicPrintData[row].Keys)
-                    {
-                        objCells[row - m_RowMin, col - m_ColMin] = m_DicPrintData[row][col];
-                    }
-                }
-
-                // セル名を取得
-                string startCell = GetColumnString(m_ColMin) + string.Format("{0}", m_RowMin + 1);
-                string endCell = GetColumnString(m_ColMax) + string.Format("{0}", m_RowMax + 1);
-
-                // セルにセット
-                usedExcel.ExcelCellSet(startCell, objCells, endCell);
-
-            }
-            #endregion
-        }
-        #endregion
-    }
-}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSel.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSel.Designer.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrintSel.Designer.cs	(nonexistent)
@@ -1,538 +0,0 @@
-﻿namespace ProcessManagement.Forms.DataEntry
-{
-
-    partial class FrmRequestPrintSel
-    {
-        /// <summary>
-        /// Required designer variable.
-        /// </summary>
-        private System.ComponentModel.IContainer components = null;
-
-        /// <summary>
-        /// Clean up any resources being used.
-        /// </summary>
-        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
-        protected override void Dispose(bool disposing)
-        {
-            if (disposing && (components != null))
-            {
-                components.Dispose();
-            }
-            base.Dispose(disposing);
-        }
-
-        #region Windows Form Designer generated code
-
-        /// <summary>
-        /// Required method for Designer support - do not modify
-        /// the contents of this method with the code editor.
-        /// </summary>
-        private void InitializeComponent()
-        {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
-            this.label4 = new System.Windows.Forms.Label();
-            this.lbReqMonth = new System.Windows.Forms.Label();
-            this.label2 = new System.Windows.Forms.Label();
-            this.lbOrderersName = new System.Windows.Forms.Label();
-            this.btnEnd = new System.Windows.Forms.Button();
-            this.btnGenerate = new System.Windows.Forms.Button();
-            this.panel1 = new System.Windows.Forms.Panel();
-            this.btnAllUnselect = new System.Windows.Forms.Button();
-            this.btnAllSelect = new System.Windows.Forms.Button();
-            this.lbTotalAmount = new System.Windows.Forms.Label();
-            this.dgv1 = new CustomControls.DataGridViewEX();
-            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.col1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.col2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.col3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.col4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.col5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.col6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.label8 = new System.Windows.Forms.Label();
-            this.label7 = new System.Windows.Forms.Label();
-            this.lbSelect = new System.Windows.Forms.Label();
-            this.label5 = new System.Windows.Forms.Label();
-            this.PrintProgress = new System.Windows.Forms.ProgressBar();
-            this.label10 = new System.Windows.Forms.Label();
-            this.cbCreateDate = new System.Windows.Forms.ComboBox();
-            this.btnDel = new System.Windows.Forms.Button();
-            this.panel2 = new System.Windows.Forms.Panel();
-            this.label1 = new System.Windows.Forms.Label();
-            this.lblProcessTitil = new System.Windows.Forms.Label();
-            this.btnCancel = new System.Windows.Forms.Button();
-            this.panel1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit();
-            this.panel2.SuspendLayout();
-            this.SuspendLayout();
-            // 
-            // label4
-            // 
-            this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label4.CausesValidation = false;
-            this.label4.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label4.Location = new System.Drawing.Point(5, 5);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(114, 25);
-            this.label4.TabIndex = 23;
-            this.label4.Text = "請求月";
-            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // lbReqMonth
-            // 
-            this.lbReqMonth.BackColor = System.Drawing.Color.White;
-            this.lbReqMonth.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.lbReqMonth.Location = new System.Drawing.Point(127, 5);
-            this.lbReqMonth.Name = "lbReqMonth";
-            this.lbReqMonth.Size = new System.Drawing.Size(103, 24);
-            this.lbReqMonth.TabIndex = 24;
-            this.lbReqMonth.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // label2
-            // 
-            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label2.CausesValidation = false;
-            this.label2.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label2.Location = new System.Drawing.Point(5, 38);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(114, 25);
-            this.label2.TabIndex = 25;
-            this.label2.Text = "請求先";
-            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // lbOrderersName
-            // 
-            this.lbOrderersName.BackColor = System.Drawing.Color.White;
-            this.lbOrderersName.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.lbOrderersName.Location = new System.Drawing.Point(127, 38);
-            this.lbOrderersName.Name = "lbOrderersName";
-            this.lbOrderersName.Size = new System.Drawing.Size(591, 24);
-            this.lbOrderersName.TabIndex = 26;
-            this.lbOrderersName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            // 
-            // btnEnd
-            // 
-            this.btnEnd.BackColor = System.Drawing.Color.Blue;
-            this.btnEnd.Cursor = System.Windows.Forms.Cursors.Default;
-            this.btnEnd.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnEnd.ForeColor = System.Drawing.Color.White;
-            this.btnEnd.Location = new System.Drawing.Point(1152, 620);
-            this.btnEnd.Name = "btnEnd";
-            this.btnEnd.Size = new System.Drawing.Size(120, 30);
-            this.btnEnd.TabIndex = 34;
-            this.btnEnd.Text = "終　了";
-            this.btnEnd.UseVisualStyleBackColor = false;
-            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
-            // 
-            // btnGenerate
-            // 
-            this.btnGenerate.BackColor = System.Drawing.Color.DarkSeaGreen;
-            this.btnGenerate.Cursor = System.Windows.Forms.Cursors.Default;
-            this.btnGenerate.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnGenerate.ForeColor = System.Drawing.Color.Black;
-            this.btnGenerate.Location = new System.Drawing.Point(896, 620);
-            this.btnGenerate.Name = "btnGenerate";
-            this.btnGenerate.Size = new System.Drawing.Size(120, 30);
-            this.btnGenerate.TabIndex = 33;
-            this.btnGenerate.Text = "作成・印刷";
-            this.btnGenerate.UseVisualStyleBackColor = false;
-            this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
-            // 
-            // panel1
-            // 
-            this.panel1.BackColor = System.Drawing.Color.LightGray;
-            this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.panel1.Controls.Add(this.btnAllUnselect);
-            this.panel1.Controls.Add(this.btnAllSelect);
-            this.panel1.Controls.Add(this.lbTotalAmount);
-            this.panel1.Controls.Add(this.dgv1);
-            this.panel1.Controls.Add(this.label8);
-            this.panel1.Controls.Add(this.label7);
-            this.panel1.Controls.Add(this.lbSelect);
-            this.panel1.Controls.Add(this.label5);
-            this.panel1.Controls.Add(this.PrintProgress);
-            this.panel1.ForeColor = System.Drawing.Color.Black;
-            this.panel1.Location = new System.Drawing.Point(10, 122);
-            this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(1260, 492);
-            this.panel1.TabIndex = 37;
-            // 
-            // btnAllUnselect
-            // 
-            this.btnAllUnselect.BackColor = System.Drawing.Color.Lime;
-            this.btnAllUnselect.Cursor = System.Windows.Forms.Cursors.Default;
-            this.btnAllUnselect.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnAllUnselect.ForeColor = System.Drawing.Color.Black;
-            this.btnAllUnselect.Location = new System.Drawing.Point(135, 455);
-            this.btnAllUnselect.Name = "btnAllUnselect";
-            this.btnAllUnselect.Size = new System.Drawing.Size(120, 30);
-            this.btnAllUnselect.TabIndex = 38;
-            this.btnAllUnselect.Text = "全選択解除";
-            this.btnAllUnselect.UseVisualStyleBackColor = false;
-            this.btnAllUnselect.Click += new System.EventHandler(this.btnAllUnselect_Click);
-            // 
-            // btnAllSelect
-            // 
-            this.btnAllSelect.BackColor = System.Drawing.Color.Yellow;
-            this.btnAllSelect.Cursor = System.Windows.Forms.Cursors.Default;
-            this.btnAllSelect.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnAllSelect.ForeColor = System.Drawing.Color.Black;
-            this.btnAllSelect.Location = new System.Drawing.Point(9, 455);
-            this.btnAllSelect.Name = "btnAllSelect";
-            this.btnAllSelect.Size = new System.Drawing.Size(120, 30);
-            this.btnAllSelect.TabIndex = 37;
-            this.btnAllSelect.Text = "全選択";
-            this.btnAllSelect.UseVisualStyleBackColor = false;
-            this.btnAllSelect.Click += new System.EventHandler(this.btnAllSelect_Click);
-            // 
-            // lbTotalAmount
-            // 
-            this.lbTotalAmount.BackColor = System.Drawing.Color.White;
-            this.lbTotalAmount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lbTotalAmount.ForeColor = System.Drawing.Color.Black;
-            this.lbTotalAmount.Location = new System.Drawing.Point(366, 9);
-            this.lbTotalAmount.Name = "lbTotalAmount";
-            this.lbTotalAmount.Size = new System.Drawing.Size(185, 24);
-            this.lbTotalAmount.TabIndex = 42;
-            this.lbTotalAmount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // dgv1
-            // 
-            this.dgv1.AllowUserToAddRows = false;
-            this.dgv1.AllowUserToDeleteRows = false;
-            this.dgv1.AllowUserToResizeColumns = false;
-            this.dgv1.AllowUserToResizeRows = false;
-            this.dgv1.BackgroundColor = System.Drawing.Color.White;
-            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, 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.dgv1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
-            this.dgv1.ColumnHeadersHeight = 24;
-            this.dgv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            this.dgv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.Column1,
-            this.col1,
-            this.col2,
-            this.col3,
-            this.col4,
-            this.col5,
-            this.col6});
-            this.dgv1.EnableHeadersVisualStyles = false;
-            this.dgv1.Location = new System.Drawing.Point(8, 50);
-            this.dgv1.Name = "dgv1";
-            this.dgv1.RowHeadersVisible = false;
-            this.dgv1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dgv1.RowTemplate.Height = 20;
-            this.dgv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.dgv1.Size = new System.Drawing.Size(1240, 392);
-            this.dgv1.TabIndex = 43;
-            this.dgv1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv1_CellContentClick);
-            this.dgv1.CellContentDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv1_CellContentDoubleClick);
-            // 
-            // Column1
-            // 
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle2.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
-            this.Column1.Frozen = true;
-            this.Column1.HeaderText = "№";
-            this.Column1.Name = "Column1";
-            this.Column1.ReadOnly = true;
-            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column1.Width = 60;
-            // 
-            // col1
-            // 
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle3.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Black;
-            dataGridViewCellStyle3.NullValue = false;
-            this.col1.DefaultCellStyle = dataGridViewCellStyle3;
-            this.col1.Frozen = true;
-            this.col1.HeaderText = "";
-            this.col1.Name = "col1";
-            this.col1.ReadOnly = true;
-            this.col1.Width = 30;
-            // 
-            // col2
-            // 
-            this.col2.Frozen = true;
-            this.col2.HeaderText = "請　求　案　件";
-            this.col2.Name = "col2";
-            this.col2.ReadOnly = true;
-            this.col2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.col2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.col2.Width = 830;
-            // 
-            // col3
-            // 
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle4.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black;
-            this.col3.DefaultCellStyle = dataGridViewCellStyle4;
-            this.col3.Frozen = true;
-            this.col3.HeaderText = "請　求　金　額";
-            this.col3.Name = "col3";
-            this.col3.ReadOnly = true;
-            this.col3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.col3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.col3.Width = 160;
-            // 
-            // col4
-            // 
-            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle5.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black;
-            this.col4.DefaultCellStyle = dataGridViewCellStyle5;
-            this.col4.Frozen = true;
-            this.col4.HeaderText = "請求書作成日";
-            this.col4.Name = "col4";
-            this.col4.ReadOnly = true;
-            this.col4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.col4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.col4.Width = 140;
-            // 
-            // col5
-            // 
-            this.col5.HeaderText = "RequestNo";
-            this.col5.Name = "col5";
-            this.col5.ReadOnly = true;
-            this.col5.Visible = false;
-            // 
-            // col6
-            // 
-            this.col6.HeaderText = "InvoiceNo";
-            this.col6.Name = "col6";
-            this.col6.ReadOnly = true;
-            this.col6.Visible = false;
-            // 
-            // label8
-            // 
-            this.label8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label8.CausesValidation = false;
-            this.label8.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label8.ForeColor = System.Drawing.Color.Black;
-            this.label8.Location = new System.Drawing.Point(252, 9);
-            this.label8.Name = "label8";
-            this.label8.Size = new System.Drawing.Size(114, 25);
-            this.label8.TabIndex = 41;
-            this.label8.Text = "金額合計";
-            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label7
-            // 
-            this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label7.CausesValidation = false;
-            this.label7.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label7.ForeColor = System.Drawing.Color.Black;
-            this.label7.Location = new System.Drawing.Point(178, 9);
-            this.label7.Name = "label7";
-            this.label7.Size = new System.Drawing.Size(42, 24);
-            this.label7.TabIndex = 40;
-            this.label7.Text = "件";
-            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // lbSelect
-            // 
-            this.lbSelect.BackColor = System.Drawing.Color.White;
-            this.lbSelect.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lbSelect.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.lbSelect.Location = new System.Drawing.Point(123, 9);
-            this.lbSelect.Name = "lbSelect";
-            this.lbSelect.Size = new System.Drawing.Size(55, 24);
-            this.lbSelect.TabIndex = 39;
-            this.lbSelect.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label5
-            // 
-            this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label5.CausesValidation = false;
-            this.label5.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label5.ForeColor = System.Drawing.Color.Black;
-            this.label5.Location = new System.Drawing.Point(9, 9);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(114, 25);
-            this.label5.TabIndex = 38;
-            this.label5.Text = "選択";
-            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // PrintProgress
-            // 
-            this.PrintProgress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.PrintProgress.Location = new System.Drawing.Point(8, 450);
-            this.PrintProgress.Name = "PrintProgress";
-            this.PrintProgress.Size = new System.Drawing.Size(1240, 36);
-            this.PrintProgress.TabIndex = 44;
-            this.PrintProgress.Visible = false;
-            // 
-            // label10
-            // 
-            this.label10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            this.label10.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label10.CausesValidation = false;
-            this.label10.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label10.Location = new System.Drawing.Point(246, 5);
-            this.label10.Name = "label10";
-            this.label10.Size = new System.Drawing.Size(114, 25);
-            this.label10.TabIndex = 38;
-            this.label10.Text = "作成日";
-            this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // cbCreateDate
-            // 
-            this.cbCreateDate.BackColor = System.Drawing.Color.White;
-            this.cbCreateDate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cbCreateDate.FormattingEnabled = true;
-            this.cbCreateDate.Location = new System.Drawing.Point(368, 6);
-            this.cbCreateDate.Name = "cbCreateDate";
-            this.cbCreateDate.Size = new System.Drawing.Size(150, 23);
-            this.cbCreateDate.TabIndex = 39;
-            this.cbCreateDate.SelectedIndexChanged += new System.EventHandler(this.cbCreateDate_SelectedIndexChanged);
-            // 
-            // btnDel
-            // 
-            this.btnDel.BackColor = System.Drawing.Color.Red;
-            this.btnDel.Cursor = System.Windows.Forms.Cursors.Default;
-            this.btnDel.Enabled = false;
-            this.btnDel.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnDel.ForeColor = System.Drawing.Color.White;
-            this.btnDel.Location = new System.Drawing.Point(1024, 620);
-            this.btnDel.Name = "btnDel";
-            this.btnDel.Size = new System.Drawing.Size(120, 30);
-            this.btnDel.TabIndex = 40;
-            this.btnDel.Text = "削　除";
-            this.btnDel.UseVisualStyleBackColor = false;
-            this.btnDel.Click += new System.EventHandler(this.btnDel_Click);
-            // 
-            // panel2
-            // 
-            this.panel2.BackColor = System.Drawing.Color.Olive;
-            this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.panel2.Controls.Add(this.label4);
-            this.panel2.Controls.Add(this.lbReqMonth);
-            this.panel2.Controls.Add(this.cbCreateDate);
-            this.panel2.Controls.Add(this.label2);
-            this.panel2.Controls.Add(this.label10);
-            this.panel2.Controls.Add(this.lbOrderersName);
-            this.panel2.Location = new System.Drawing.Point(10, 40);
-            this.panel2.Name = "panel2";
-            this.panel2.Size = new System.Drawing.Size(1260, 74);
-            this.panel2.TabIndex = 41;
-            // 
-            // label1
-            // 
-            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top;
-            this.label1.BackColor = System.Drawing.Color.Olive;
-            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label1.ForeColor = System.Drawing.Color.Black;
-            this.label1.Location = new System.Drawing.Point(390, 10);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(500, 20);
-            this.label1.TabIndex = 42;
-            this.label1.Text = "請　求　書　印　刷";
-            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // lblProcessTitil
-            // 
-            this.lblProcessTitil.BackColor = System.Drawing.Color.White;
-            this.lblProcessTitil.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblProcessTitil.Location = new System.Drawing.Point(10, 10);
-            this.lblProcessTitil.Name = "lblProcessTitil";
-            this.lblProcessTitil.Size = new System.Drawing.Size(300, 20);
-            this.lblProcessTitil.TabIndex = 43;
-            this.lblProcessTitil.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // btnCancel
-            // 
-            this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnCancel.BackColor = System.Drawing.Color.Red;
-            this.btnCancel.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnCancel.ForeColor = System.Drawing.Color.White;
-            this.btnCancel.Location = new System.Drawing.Point(1024, 620);
-            this.btnCancel.Name = "btnCancel";
-            this.btnCancel.Size = new System.Drawing.Size(120, 30);
-            this.btnCancel.TabIndex = 44;
-            this.btnCancel.Text = "印刷中止";
-            this.btnCancel.UseVisualStyleBackColor = false;
-            this.btnCancel.Visible = false;
-            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
-            // 
-            // FrmRequestPrintSel
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 15F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.BackColor = System.Drawing.Color.Black;
-            this.ClientSize = new System.Drawing.Size(1280, 657);
-            this.Controls.Add(this.lblProcessTitil);
-            this.Controls.Add(this.label1);
-            this.Controls.Add(this.panel2);
-            this.Controls.Add(this.btnDel);
-            this.Controls.Add(this.btnEnd);
-            this.Controls.Add(this.btnGenerate);
-            this.Controls.Add(this.panel1);
-            this.Controls.Add(this.btnCancel);
-            this.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
-            this.Margin = new System.Windows.Forms.Padding(4);
-            this.Name = "FrmRequestPrintSel";
-            this.ShowIcon = false;
-            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmRequestPrintSel_FormClosing);
-            this.Load += new System.EventHandler(this.FrmRequestPrintSel_Load);
-            this.panel1.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).EndInit();
-            this.panel2.ResumeLayout(false);
-            this.ResumeLayout(false);
-
-        }
-
-        #endregion
-
-        private System.Windows.Forms.Label label4;
-        private System.Windows.Forms.Label lbReqMonth;
-        private System.Windows.Forms.Label label2;
-        private System.Windows.Forms.Label lbOrderersName;
-        private System.Windows.Forms.Button btnEnd;
-        private System.Windows.Forms.Button btnGenerate;
-        private System.Windows.Forms.Panel panel1;
-        private System.Windows.Forms.Button btnAllUnselect;
-        private System.Windows.Forms.Button btnAllSelect;
-        private System.Windows.Forms.Label label5;
-        private System.Windows.Forms.Label lbTotalAmount;
-        private System.Windows.Forms.Label label8;
-        private System.Windows.Forms.Label label7;
-        private System.Windows.Forms.Label lbSelect;
-        private CustomControls.DataGridViewEX dgv1;
-        private System.Windows.Forms.Label label10;
-        private System.Windows.Forms.ComboBox cbCreateDate;
-        private System.Windows.Forms.Button btnDel;
-        private System.Windows.Forms.Panel panel2;
-        private System.Windows.Forms.Label label1;
-        private System.Windows.Forms.Label lblProcessTitil;
-        private System.Windows.Forms.ProgressBar PrintProgress;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
-        private System.Windows.Forms.DataGridViewCheckBoxColumn col1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn col2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn col3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn col4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn col5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn col6;
-        private System.Windows.Forms.Button btnCancel;
-    }
-}
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrint.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrint.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmRequestPrint.cs	(nonexistent)
@@ -1,547 +0,0 @@
-﻿using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-using System.Threading.Tasks;
-
-using ProcessManagement.Common;
-using ProcessManagement.DB.IOAccess;
-using ProcessManagement.DataModel;
-using ProcessManagement.Forms.CustomControls;
-using ProcessManagement.Forms.ControlsAction;
-using ProcessManagement.Forms.SubForms;
-
-namespace ProcessManagement.Forms.DataEntry
-{
-    public partial class FrmRequestPrint : Form
-    {
-        #region ログ使用定義
-        //log4netログを使用する
-        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
-        #endregion
-
-        #region 定数
-        private enum Dispcount
-        {
-            ExeCuteDate = 0,
-            radioButtonA1,
-            radioButtonA2,
-            radioButtonB1,
-            radioButtonB2,
-            radioButtonC1,
-            radioButtonC2,
-        }
-        #endregion
-
-        #region 変数
-
-        // ユーザー情報
-        private ClsSecurityPermission.UserInfo m_UserInfo = new ClsSecurityPermission.UserInfo()
-        {
-            m_Type = CommonDefine.SecurityRankPos.NormalAuthority,
-            m_GeneralAffairsFlg = (int)SecurityMaster.GeneAffDef.OtherDep,
-            m_SecRange = ClsSecurityPermission.SecRangeType.InCharge
-        };
-
-        /// <summary>
-        /// 工事番号
-        /// </summary>
-        private int m_ConstructionCode = 0;
-
-        /// <summary>
-        /// 請求番号
-        /// </summary>
-        private int m_RequestNo = 0;
-
-        /// <summary>
-        /// 実行時日付
-        /// </summary>
-        private DateTime m_ExcuteDate = DateTime.Now;
-        
-        /// <summary>
-        /// 日付印刷
-        /// </summary>
-        private bool m_bDatePrintFlg = true;
-        
-        /// <summary>
-        /// コンロールオブジェクト
-        /// </summary>
-        private Control[] m_dispControl = new Control[9];
-
-        /// <summary>
-        /// 工事基本情報
-        /// </summary>
-        private ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo();
-
-        /// <summary>
-        /// 工事基本情報明細
-        /// </summary>
-        private Dictionary<int, Dictionary<int, string>> m_DicConstructionBaseInfoDetail = new Dictionary<int, Dictionary<int, string>>();
-
-        /// <summary>
-        /// 増減工事情報
-        /// </summary>
-        private List<int> m_LstConstructionLink = new List<int>();
-
-        /// <summary>
-        /// 請求データ
-        /// </summary>
-        private RequestData m_RequestData = new RequestData();
-
-        /// <summary>
-        /// ツールチップ
-        /// </summary>
-        private ToolTip ToolTip1 = new ToolTip();
-
-        /// <summary>
-        /// 請求書No
-        /// </summary>
-        private int m_nInvoiceNo = 0;
-
-        /// <summary>
-        /// コメントデータ
-        /// </summary>
-        private string[] m_CommentData = new string[5];
-
-        /// <summary>
-        /// 請求データ
-        /// </summary>
-        private Dictionary<int, List<RequestData>> m_dicReqData = new Dictionary<int, List<RequestData>>();
-
-        /// <summary>
-        /// 工事基本情報データ
-        /// </summary>
-        private Dictionary<int, ConstructionBaseInfo> m_dicConstructionBaseInfo = new Dictionary<int, ConstructionBaseInfo>();
-        
-        // *-----* 共通処理設定 *-----*
-        /// <summary>
-        /// サブフォームフラグ
-        /// </summary>
-        private bool m_SubForm = false;
-        /// <summary>
-        /// 呼出元終了フラグ
-        /// </summary>
-        private bool m_ParentEnd = false;
-        // *-----* 共通処理設定 *-----*
-
-        #endregion
-
-        #region プロパティ
-        /// <summary>
-        /// 工事番号
-        /// </summary>
-        public int ConstructionCode
-        {
-            get { return m_ConstructionCode; }
-            set { m_ConstructionCode = value; }
-        }
-
-        /// <summary>
-        /// 請求番号
-        /// </summary>
-        public int RequestNo
-        {
-            get { return m_RequestNo; }
-            set { m_RequestNo = value; }
-        }
-
-        /// <summary>
-        /// 実行時時間
-        /// </summary>
-        public DateTime ExcuteDate
-        {
-            get { return m_ExcuteDate; }
-            set { m_ExcuteDate = value; }
-        }
-        /// <summary>
-        /// 日付印刷フラグ
-        /// </summary>
-        public bool DatePrintFlg
-        {
-            get { return m_bDatePrintFlg; }
-            set { m_bDatePrintFlg = value; }
-        }
-
-        /// <summary>
-        /// 請求書No
-        /// </summary>
-        public int InvoiceNo
-        {
-            get { return m_nInvoiceNo; }
-            set { m_nInvoiceNo = value; }
-        }
-
-        /// <summary>
-        /// コメントデータ
-        /// </summary>
-        public string[] CommentData
-        {
-            get { return m_CommentData; }
-            set { m_CommentData = value; }
-        }
-
-        // *-----* 共通処理設定 *-----*
-        /// <summary>
-        /// サブフォームフラグ
-        /// </summary>
-        public bool SubForm
-        {
-            get { return m_SubForm; }
-            set { m_SubForm = value; }
-        }
-        /// <summary>
-        /// 呼出元終了フラグ
-        /// </summary>
-        public bool ParentEnd
-        {
-            get { return m_ParentEnd; }
-            set { m_ParentEnd = value; }
-        }
-
-        // *-----* 共通処理設定 *-----*        
-        
-        #endregion
-
-        #region ×ボタン
-        /// <summary>
-        /// ×ボタン押下処理
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmStatusAndDate_FormClosed(object sender, FormClosedEventArgs e)
-        {
-        }
-        #endregion
-
-        #region コンストラクタ
-        /// <summary>
-        /// フォーム初期化
-        /// </summary>
-        public FrmRequestPrint()
-        {
-            InitializeComponent();
-        }
-        #endregion
-
-        #region フォームロード
-        /// <summary>
-        /// フォームロード
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmCostStructureDiag_Load(object sender, EventArgs e)
-        {
-            // フォームサイズ固定
-            this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height);
-
-            // ユーザ権限設定
-            ClsSecurityPermission.SetUserType(m_UserInfo);
-
-            // コントロールのセット
-            SetDisplayObject();
-            
-            // 初期表示
-            InitDataLoad();
-        }
-        #endregion
-
-        #region キャンセルボタン
-        /// <summary>
-        /// キャンセルボタン追加
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnCancel_Click(object sender, EventArgs e)
-        {
-            DialogResult = DialogResult.Cancel;
-            this.Close();
-        }
-        #endregion
-
-        #region 印刷のみボタン
-        /// <summary>
-        /// 印刷のみボタン押下
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnExecProc1_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                // 状態確認
-                if (!StatusChange()) return;
-
-                // 日付印刷をしない
-                if (rdNoPrint.Checked) m_bDatePrintFlg = false;
-
-                // 選択日付取得
-                m_ExcuteDate = dateTimePicker1.Value;
-
-                // コメントを画面より取り込む
-                SetCommentData();
-
-                DialogResult = DialogResult.Yes;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                this.Close();
-            }
-        }
-        #endregion
-
-        #region 保存のみボタン
-        /// <summary>
-        /// 保存のみボタン押下
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnExecProc2_Click(object sender, EventArgs e)
-        {
-            try
-            {
-                // 状態確認
-                if (!StatusChange()) return;
-
-                // 日付印刷をしない
-                if (rdNoPrint.Checked) m_bDatePrintFlg = false;
-
-                // 選択日付取得
-                m_ExcuteDate = dateTimePicker1.Value;
-
-                // コメントを画面より取り込む
-                SetCommentData();
-
-                DialogResult = DialogResult.No;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                this.Close();
-            }
-        }
-        #endregion
-
-        #region コメントを画面より取り込む
-        /// <summary>
-        /// コメントを画面より取り込む
-        /// </summary>
-        private void SetCommentData()
-        {
-            try
-            {
-                Array.Clear(m_CommentData, 0, m_CommentData.Length);
-                m_CommentData[0] = txtComment1.Text;
-                m_CommentData[1] = txtComment2.Text;
-                m_CommentData[2] = txtComment3.Text;
-                m_CommentData[3] = txtComment4.Text;
-                m_CommentData[4] = txtComment5.Text;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region 提出時ラジオボタンチェック
-        /// <summary>
-        /// 提出日印字ラジオボタン
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void radioButton3_CheckedChanged(object sender, EventArgs e)
-        {
-            if (rdNoPrint.Checked)
-            {
-                dateTimePicker1.Visible = false;
-            }
-            else
-            {
-                dateTimePicker1.Visible = true;
-            }
-        }
-        #endregion
-
-        #region オブジェクトコントロールセット
-        /// <summary>
-        /// 表示オブジェクトの取得
-        /// </summary>
-        private void SetDisplayObject()
-        {
-            m_dispControl[(int)Dispcount.ExeCuteDate] = dateTimePicker1;
-            m_dispControl[(int)Dispcount.radioButtonB1] = rdPrint;
-            m_dispControl[(int)Dispcount.radioButtonB2] = rdNoPrint;
-            btnExecProc2.Visible = false;
-            if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.SpecialAuthority)
-            {
-                btnExecProc2.Visible = true;
-            }
-            if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.FreeAuthority)
-            {
-                btnExecProc2.Visible = true;
-            }
-
-        }
-        #endregion
-
-        #region ステータスチェック
-        /// <summary>
-        /// 工事案件の進捗状態変更の確認
-        /// </summary>
-        /// <returns></returns>
-        private bool StatusChange()
-        {
-            try
-            {
-                if (MessageBox.Show("請求書を出力します、よろしいですか？",
-                                    "出力確認",
-                                    MessageBoxButtons.OKCancel, 
-                                    MessageBoxIcon.Question) == DialogResult.Cancel)
-                {
-                    return false;
-                }
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-        
-        #endregion
-
-        #region 表示関連
-        /// <summary>
-        /// 初期表示処理
-        /// </summary>
-        private void InitDataLoad()
-        {
-            try
-            {
-                if (!DisplayData())
-                {
-                    DialogResult = DialogResult.Cancel;
-                    this.Close();
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region データ表示処理
-        /// <summary>
-        /// データ表示
-        /// </summary>
-        /// <returns></returns>
-        private bool DisplayData()
-        {
-            try
-            {
-                bool bRet = true;
-
-                InvoiceData InvData = new InvoiceData();
-                // 請求書データの取得
-                if (!GetInvoiceData(ref InvData)) return false;
-
-                if (InvData.RequestDate == DateTime.MinValue)
-                {
-                    // 初期時間セット
-                    dateTimePicker1.Value = m_ExcuteDate;
-                }
-                else
-                {
-                    dateTimePicker1.Value = InvData.RequestDate;
-                }
-
-                lblOrderersName.Text = InvData.RequestName;
-
-                txtComment1.Text = InvData.Comment1;
-                txtComment2.Text = InvData.Comment2;
-                txtComment3.Text = InvData.Comment3;
-                txtComment4.Text = InvData.Comment4;
-                txtComment5.Text = InvData.Comment5;
-
-                // ToolTipの設定
-                SetToolTip();
-
-                return bRet;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-        #endregion
-
-        #region ToolTipの設定
-        /// <summary>
-        /// ToolTipの設定
-        /// </summary>
-        private void SetToolTip()
-        {
-            // ToolTipが表示されるまでの時間
-            ToolTip1.InitialDelay = 0;
-            // ToolTipが表示されている時に、別のToolTipを表示するまでの時間
-            ToolTip1.ReshowDelay = 1000;
-            // ToolTipを表示する時間
-            ToolTip1.AutoPopDelay = 10000;
-            // フォームがアクティブでない時はToolTipを表示しない
-            ToolTip1.ShowAlways = false;
-
-            // 文字セット
-            ToolTip1.SetToolTip(dateTimePicker1, "請求日が表示されている日付と違う場合は、変更してください。");
-            ToolTip1.SetToolTip(rdPrint, "請求日を請求書へ「印刷する」場合は、こちらを選択してください。");
-            ToolTip1.SetToolTip(rdNoPrint, "請求日を請求書へ「印刷せずに空白」で印刷する場合は、こちらを選択してください。");
-        }
-        #endregion
-
-        #region 請求書データの取得
-        /// <summary>
-        /// 請求書データの取得
-        /// </summary>
-        private bool GetInvoiceData(ref InvoiceData InvData)
-        {
-            IOInvoiceData ioInvData = new IOInvoiceData();
-
-            try
-            {
-                StringBuilder sql = new StringBuilder();
-
-                // 請求書データの取得
-                sql.Append(ioInvData.CreatePrimarykeyString(m_nInvoiceNo));
-                if (!ioInvData.SelectAction(sql.ToString(), ref InvData)) return false;
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-
-                return false;
-            }
-            finally
-            {
-                ioInvData.close(); ioInvData = null;
-            }
-
-        }
-        #endregion
-    }
-}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmEntryReqSelOrderer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmEntryReqSelOrderer.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmEntryReqSelOrderer.cs	(revision 369)
@@ -269,7 +269,7 @@
 
             FrmRequestPrint frmPrint = new FrmRequestPrint();
 
-            frmPrint.InvoiceNo = nInvoiceNo;
+            //frmPrint.InvoiceNo = nInvoiceNo;
 
             frmPrint.ShowDialog(this);
             
@@ -387,7 +387,9 @@
                         foreach (RequestHead ReqHead in lstReqHead)
                         {
                             // 最終承認済
-                            if (ClsCommonApproval.CheckProcessApprovalData(ReqHead.ReqConstructionCode, (int)ClsExcute.ApprovalListNo.OrderBillingApproval, ReqHead.OrderNo) == true)
+                            if (ClsCommonApproval.CheckProcessApproval(ReqHead.ReqConstructionCode
+                                                                        , (int)ClsExcute.ApprovalListNo.OrderRequestApproval
+                                                                        , ReqHead.OrderNo))
                             {
                                 // 請求月をリストに追加（以降はチェックする必要なし）
                                 lstReqestMonth.Add(nRequestMonth);
@@ -446,7 +448,9 @@
                 foreach (RequestHead ReqHead in lstWork)
                 {
                     // 最終承認されていない場合は対象外
-                    if (ClsCommonApproval.CheckProcessApprovalData(ReqHead.ReqConstructionCode, (int)ClsExcute.ApprovalListNo.OrderBillingApproval, ReqHead.OrderNo) == false)
+                    if (!ClsCommonApproval.CheckProcessApproval(ReqHead.ReqConstructionCode
+                                                                , (int)ClsExcute.ApprovalListNo.OrderRequestApproval
+                                                                , ReqHead.OrderNo))
                     {
                         continue;
                     }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmEntryReqSelRequest.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmEntryReqSelRequest.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestEntry/FrmEntryReqSelRequest.cs	(revision 369)
@@ -530,22 +530,22 @@
             {
                 List<RequestHead> lstWork = new List<RequestHead>();
 
-                string sql = string.Format(" Where RequestMonth = {0}",m_nRequestMonth); 
-                sql += string.Format(" And OrderersDivision = {0}", m_nOrderersDivision);
-                sql += string.Format(" And OrderersCode = {0}", m_nOrderersCode);
+                StringBuilder sql = new StringBuilder();
+                sql.AppendFormat(" Where RequestMonth = {0}", m_nRequestMonth); 
+                sql.AppendFormat(" And OrderersDivision = {0}", m_nOrderersDivision);
+                sql.AppendFormat(" And OrderersCode = {0}", m_nOrderersCode);
                 //sql += string.Format(" And OrderersName = '{0}'", m_strOrderersName);
                 //sql += " And AssignedFlg = 0";
-                sql += " Order by ReqConstructionCode Asc, OrderNo Asc";
+                sql.Append(" Order by ReqConstructionCode Asc, OrderNo Asc");
 
-                if (ioReqHead.SelectAction(sql, ref lstWork) == false)
-                {
-                    return;
-                }
+                if (!ioReqHead.SelectAction(sql.ToString(), ref lstWork)) return;
 
                 foreach (RequestHead ReqHead in lstWork)
                 {
                     // 最終承認済
-                    if (ClsCommonApproval.CheckProcessApprovalData(ReqHead.ReqConstructionCode, (int)ClsExcute.ApprovalListNo.OrderBillingApproval, ReqHead.OrderNo) == false)
+                    if (!ClsCommonApproval.CheckProcessApproval(ReqHead.ReqConstructionCode
+                                                                , (int)ClsExcute.ApprovalListNo.OrderRequestApproval
+                                                                , ReqHead.OrderNo))
                     {
                         continue;
                     }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.Designer.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.Designer.cs	(revision 369)
@@ -28,28 +28,50 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle46 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle47 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle48 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle49 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle50 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle51 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle52 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle61 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle62 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle63 = 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();
+            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();
             this.label3 = new System.Windows.Forms.Label();
+            this.btnEntry = new System.Windows.Forms.Button();
+            this.btnEnd = new System.Windows.Forms.Button();
+            this.btnAdd = new System.Windows.Forms.Button();
+            this.btnOtherProc = new System.Windows.Forms.Button();
+            this.button1 = new System.Windows.Forms.Button();
+            this.SeparateBillingLabel = new System.Windows.Forms.Label();
+            this.CombinedOrderLabel = new System.Windows.Forms.Label();
+            this.groupBoxEx1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
+            this.pnlApproval = new System.Windows.Forms.Panel();
+            this.lblApprovalCount = new System.Windows.Forms.Label();
+            this.btnApproval = new System.Windows.Forms.Button();
+            this.btnPetition = new System.Windows.Forms.Button();
+            this.pnlApprovalButton = new System.Windows.Forms.Panel();
+            this.btnNotApproval = new System.Windows.Forms.Button();
+            this.btnOnHold = new System.Windows.Forms.Button();
+            this.btnOnApproval = new System.Windows.Forms.Button();
+            this.label2 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.cbReqMonth = new System.Windows.Forms.ComboBox();
+            this.label5 = new System.Windows.Forms.Label();
+            this.txtOrderer = new System.Windows.Forms.TextBox();
+            this.lblReqOrder = new System.Windows.Forms.Label();
             this.dgv1 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.col001 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.col002 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -76,32 +98,10 @@
             this.col23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.col098 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.col99 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.btnEntry = new System.Windows.Forms.Button();
-            this.btnEnd = new System.Windows.Forms.Button();
-            this.btnAdd = new System.Windows.Forms.Button();
-            this.btnOtherProc = new System.Windows.Forms.Button();
-            this.button1 = new System.Windows.Forms.Button();
-            this.SeparateBillingLabel = new System.Windows.Forms.Label();
-            this.CombinedOrderLabel = new System.Windows.Forms.Label();
-            this.groupBoxEx1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
-            this.pnlNormal = new System.Windows.Forms.Panel();
-            this.lblApprovalCount = new System.Windows.Forms.Label();
-            this.button2 = new System.Windows.Forms.Button();
-            this.btnApproval = new System.Windows.Forms.Button();
-            this.pnlApproval = new System.Windows.Forms.Panel();
-            this.btnDeny = new System.Windows.Forms.Button();
-            this.btnPend = new System.Windows.Forms.Button();
-            this.btnAgree = new System.Windows.Forms.Button();
-            this.label2 = new System.Windows.Forms.Label();
-            this.label4 = new System.Windows.Forms.Label();
-            this.cbReqMonth = new System.Windows.Forms.ComboBox();
-            this.label5 = new System.Windows.Forms.Label();
-            this.txtOrderer = new System.Windows.Forms.TextBox();
-            this.lblReqOrder = new System.Windows.Forms.Label();
-            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit();
             this.groupBoxEx1.SuspendLayout();
-            this.pnlNormal.SuspendLayout();
             this.pnlApproval.SuspendLayout();
+            this.pnlApprovalButton.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit();
             this.SuspendLayout();
             // 
             // label3
@@ -108,20 +108,307 @@
             // 
             this.label3.BackColor = System.Drawing.Color.Gold;
             this.label3.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label3.Location = new System.Drawing.Point(470, 10);
+            this.label3.Location = new System.Drawing.Point(420, 10);
             this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(400, 20);
+            this.label3.Size = new System.Drawing.Size(500, 20);
             this.label3.TabIndex = 0;
             this.label3.Text = "請　　求　　入　　力";
             this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // btnEntry
+            // 
+            this.btnEntry.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnEntry.BackColor = System.Drawing.Color.Green;
+            this.btnEntry.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnEntry.ForeColor = System.Drawing.Color.White;
+            this.btnEntry.Location = new System.Drawing.Point(1071, 590);
+            this.btnEntry.Name = "btnEntry";
+            this.btnEntry.Size = new System.Drawing.Size(120, 28);
+            this.btnEntry.TabIndex = 13;
+            this.btnEntry.Text = "登　録";
+            this.btnEntry.UseVisualStyleBackColor = false;
+            this.btnEntry.Click += new System.EventHandler(this.btnEntry_Click);
+            // 
+            // btnEnd
+            // 
+            this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnEnd.BackColor = System.Drawing.Color.Blue;
+            this.btnEnd.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnEnd.ForeColor = System.Drawing.Color.White;
+            this.btnEnd.Location = new System.Drawing.Point(1197, 590);
+            this.btnEnd.Name = "btnEnd";
+            this.btnEnd.Size = new System.Drawing.Size(120, 28);
+            this.btnEnd.TabIndex = 14;
+            this.btnEnd.Text = "終　了";
+            this.btnEnd.UseVisualStyleBackColor = false;
+            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
+            // 
+            // btnAdd
+            // 
+            this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.btnAdd.BackColor = System.Drawing.Color.Orange;
+            this.btnAdd.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnAdd.ForeColor = System.Drawing.Color.Black;
+            this.btnAdd.Location = new System.Drawing.Point(173, 590);
+            this.btnAdd.Name = "btnAdd";
+            this.btnAdd.Size = new System.Drawing.Size(160, 30);
+            this.btnAdd.TabIndex = 12;
+            this.btnAdd.Text = "回数追加";
+            this.btnAdd.UseVisualStyleBackColor = false;
+            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
+            // 
+            // btnOtherProc
+            // 
+            this.btnOtherProc.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.btnOtherProc.BackColor = System.Drawing.Color.SpringGreen;
+            this.btnOtherProc.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnOtherProc.ForeColor = System.Drawing.Color.Black;
+            this.btnOtherProc.Location = new System.Drawing.Point(5, 590);
+            this.btnOtherProc.Name = "btnOtherProc";
+            this.btnOtherProc.Size = new System.Drawing.Size(160, 30);
+            this.btnOtherProc.TabIndex = 11;
+            this.btnOtherProc.Text = "他の画面へ";
+            this.btnOtherProc.UseVisualStyleBackColor = false;
+            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
+            // 
+            // button1
+            // 
+            this.button1.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.button1.Location = new System.Drawing.Point(1271, 9);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(45, 23);
+            this.button1.TabIndex = 15;
+            this.button1.Text = "･･･";
+            this.button1.UseVisualStyleBackColor = true;
+            this.button1.Visible = false;
+            this.button1.Click += new System.EventHandler(this.button1_Click_1);
+            // 
+            // SeparateBillingLabel
+            // 
+            this.SeparateBillingLabel.BackColor = System.Drawing.Color.DarkBlue;
+            this.SeparateBillingLabel.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.SeparateBillingLabel.ForeColor = System.Drawing.Color.White;
+            this.SeparateBillingLabel.Location = new System.Drawing.Point(8, 5);
+            this.SeparateBillingLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.SeparateBillingLabel.Name = "SeparateBillingLabel";
+            this.SeparateBillingLabel.Size = new System.Drawing.Size(180, 30);
+            this.SeparateBillingLabel.TabIndex = 16;
+            this.SeparateBillingLabel.Text = "出来高　分割";
+            this.SeparateBillingLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // CombinedOrderLabel
+            // 
+            this.CombinedOrderLabel.BackColor = System.Drawing.Color.DimGray;
+            this.CombinedOrderLabel.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.CombinedOrderLabel.ForeColor = System.Drawing.Color.White;
+            this.CombinedOrderLabel.Location = new System.Drawing.Point(8, 5);
+            this.CombinedOrderLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.CombinedOrderLabel.Name = "CombinedOrderLabel";
+            this.CombinedOrderLabel.Size = new System.Drawing.Size(180, 30);
+            this.CombinedOrderLabel.TabIndex = 17;
+            this.CombinedOrderLabel.Text = "完了後　一括";
+            this.CombinedOrderLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // groupBoxEx1
+            // 
+            this.groupBoxEx1.Anchor = System.Windows.Forms.AnchorStyles.Top;
+            this.groupBoxEx1.BackColor = System.Drawing.Color.Gold;
+            this.groupBoxEx1.BorderColor = System.Drawing.Color.White;
+            this.groupBoxEx1.Controls.Add(this.pnlApproval);
+            this.groupBoxEx1.Controls.Add(this.pnlApprovalButton);
+            this.groupBoxEx1.Controls.Add(this.label2);
+            this.groupBoxEx1.Controls.Add(this.label4);
+            this.groupBoxEx1.Controls.Add(this.cbReqMonth);
+            this.groupBoxEx1.Controls.Add(this.label5);
+            this.groupBoxEx1.Controls.Add(this.txtOrderer);
+            this.groupBoxEx1.Controls.Add(this.lblReqOrder);
+            this.groupBoxEx1.Location = new System.Drawing.Point(5, 52);
+            this.groupBoxEx1.Name = "groupBoxEx1";
+            this.groupBoxEx1.Size = new System.Drawing.Size(1330, 46);
+            this.groupBoxEx1.TabIndex = 18;
+            this.groupBoxEx1.TabStop = false;
+            // 
+            // pnlApproval
+            // 
+            this.pnlApproval.BackColor = System.Drawing.Color.White;
+            this.pnlApproval.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.pnlApproval.Controls.Add(this.lblApprovalCount);
+            this.pnlApproval.Controls.Add(this.btnApproval);
+            this.pnlApproval.Controls.Add(this.btnPetition);
+            this.pnlApproval.Location = new System.Drawing.Point(1053, 5);
+            this.pnlApproval.Name = "pnlApproval";
+            this.pnlApproval.Size = new System.Drawing.Size(262, 34);
+            this.pnlApproval.TabIndex = 8;
+            // 
+            // lblApprovalCount
+            // 
+            this.lblApprovalCount.BackColor = System.Drawing.Color.Black;
+            this.lblApprovalCount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblApprovalCount.ForeColor = System.Drawing.Color.White;
+            this.lblApprovalCount.Location = new System.Drawing.Point(205, 3);
+            this.lblApprovalCount.Name = "lblApprovalCount";
+            this.lblApprovalCount.Size = new System.Drawing.Size(50, 24);
+            this.lblApprovalCount.TabIndex = 14;
+            this.lblApprovalCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // btnApproval
+            // 
+            this.btnApproval.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnApproval.BackColor = System.Drawing.Color.White;
+            this.btnApproval.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnApproval.ForeColor = System.Drawing.Color.Red;
+            this.btnApproval.Location = new System.Drawing.Point(103, 3);
+            this.btnApproval.Name = "btnApproval";
+            this.btnApproval.Size = new System.Drawing.Size(100, 24);
+            this.btnApproval.TabIndex = 13;
+            this.btnApproval.Text = "未承認";
+            this.btnApproval.UseVisualStyleBackColor = false;
+            this.btnApproval.Click += new System.EventHandler(this.btnApproval_Click);
+            // 
+            // btnPetition
+            // 
+            this.btnPetition.BackColor = System.Drawing.Color.White;
+            this.btnPetition.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnPetition.ForeColor = System.Drawing.Color.Red;
+            this.btnPetition.Location = new System.Drawing.Point(3, 3);
+            this.btnPetition.Name = "btnPetition";
+            this.btnPetition.Size = new System.Drawing.Size(100, 24);
+            this.btnPetition.TabIndex = 0;
+            this.btnPetition.Text = "未申請";
+            this.btnPetition.UseVisualStyleBackColor = false;
+            this.btnPetition.Click += new System.EventHandler(this.btnPetition_Click);
+            // 
+            // pnlApprovalButton
+            // 
+            this.pnlApprovalButton.BackColor = System.Drawing.Color.White;
+            this.pnlApprovalButton.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.pnlApprovalButton.Controls.Add(this.btnNotApproval);
+            this.pnlApprovalButton.Controls.Add(this.btnOnHold);
+            this.pnlApprovalButton.Controls.Add(this.btnOnApproval);
+            this.pnlApprovalButton.Location = new System.Drawing.Point(1053, 5);
+            this.pnlApprovalButton.Name = "pnlApprovalButton";
+            this.pnlApprovalButton.Size = new System.Drawing.Size(262, 34);
+            this.pnlApprovalButton.TabIndex = 9;
+            this.pnlApprovalButton.Visible = false;
+            // 
+            // btnNotApproval
+            // 
+            this.btnNotApproval.BackColor = System.Drawing.Color.Red;
+            this.btnNotApproval.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnNotApproval.Location = new System.Drawing.Point(171, 3);
+            this.btnNotApproval.Name = "btnNotApproval";
+            this.btnNotApproval.Size = new System.Drawing.Size(84, 24);
+            this.btnNotApproval.TabIndex = 2;
+            this.btnNotApproval.Text = "不承認";
+            this.btnNotApproval.UseVisualStyleBackColor = false;
+            this.btnNotApproval.Click += new System.EventHandler(this.btnNotApproval_Click);
+            // 
+            // btnOnHold
+            // 
+            this.btnOnHold.BackColor = System.Drawing.Color.Yellow;
+            this.btnOnHold.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnOnHold.Location = new System.Drawing.Point(88, 3);
+            this.btnOnHold.Name = "btnOnHold";
+            this.btnOnHold.Size = new System.Drawing.Size(84, 24);
+            this.btnOnHold.TabIndex = 1;
+            this.btnOnHold.Text = "保留";
+            this.btnOnHold.UseVisualStyleBackColor = false;
+            this.btnOnHold.Click += new System.EventHandler(this.btnOnHold_Click);
+            // 
+            // btnOnApproval
+            // 
+            this.btnOnApproval.BackColor = System.Drawing.Color.MediumSpringGreen;
+            this.btnOnApproval.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnOnApproval.Location = new System.Drawing.Point(3, 3);
+            this.btnOnApproval.Name = "btnOnApproval";
+            this.btnOnApproval.Size = new System.Drawing.Size(84, 24);
+            this.btnOnApproval.TabIndex = 0;
+            this.btnOnApproval.Text = "承認";
+            this.btnOnApproval.UseVisualStyleBackColor = false;
+            this.btnOnApproval.Click += new System.EventHandler(this.btnOnApproval_Click);
+            // 
+            // label2
+            // 
+            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label2.CausesValidation = false;
+            this.label2.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label2.Location = new System.Drawing.Point(5, 10);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(100, 25);
+            this.label2.TabIndex = 2;
+            this.label2.Text = "請求先";
+            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label4
+            // 
+            this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label4.CausesValidation = false;
+            this.label4.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label4.Location = new System.Drawing.Point(599, 10);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(100, 25);
+            this.label4.TabIndex = 4;
+            this.label4.Text = "請求月";
+            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // cbReqMonth
+            // 
+            this.cbReqMonth.BackColor = System.Drawing.Color.White;
+            this.cbReqMonth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cbReqMonth.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
+            this.cbReqMonth.FormattingEnabled = true;
+            this.cbReqMonth.Location = new System.Drawing.Point(707, 10);
+            this.cbReqMonth.Name = "cbReqMonth";
+            this.cbReqMonth.Size = new System.Drawing.Size(109, 24);
+            this.cbReqMonth.TabIndex = 5;
+            // 
+            // label5
+            // 
+            this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label5.CausesValidation = false;
+            this.label5.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label5.Location = new System.Drawing.Point(832, 10);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(100, 25);
+            this.label5.TabIndex = 6;
+            this.label5.Text = "請求回数";
+            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // txtOrderer
+            // 
+            this.txtOrderer.BackColor = System.Drawing.Color.White;
+            this.txtOrderer.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.txtOrderer.Location = new System.Drawing.Point(113, 11);
+            this.txtOrderer.Name = "txtOrderer";
+            this.txtOrderer.ReadOnly = true;
+            this.txtOrderer.Size = new System.Drawing.Size(470, 23);
+            this.txtOrderer.TabIndex = 3;
+            this.txtOrderer.TextChanged += new System.EventHandler(this.txtOrderer_TextChanged);
+            this.txtOrderer.Validating += new System.ComponentModel.CancelEventHandler(this.txtOrderer_Validating);
+            // 
+            // lblReqOrder
+            // 
+            this.lblReqOrder.BackColor = System.Drawing.Color.White;
+            this.lblReqOrder.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblReqOrder.Location = new System.Drawing.Point(940, 10);
+            this.lblReqOrder.Name = "lblReqOrder";
+            this.lblReqOrder.Size = new System.Drawing.Size(85, 24);
+            this.lblReqOrder.TabIndex = 7;
+            this.lblReqOrder.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // dgv1
             // 
             this.dgv1.AllowUserToAddRows = false;
-            this.dgv1.AllowUserToResizeColumns = false;
             this.dgv1.AllowUserToResizeRows = false;
+            this.dgv1.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.dgv1.BackgroundColor = System.Drawing.Color.White;
+            this.dgv1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.dgv1.ColumnHeadersHeight = 34;
             this.dgv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -190,9 +477,9 @@
             // col004
             // 
             this.col004.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle43.BackColor = System.Drawing.SystemColors.Control;
-            this.col004.DefaultCellStyle = dataGridViewCellStyle43;
+            dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control;
+            this.col004.DefaultCellStyle = dataGridViewCellStyle22;
             this.col004.Frozen = true;
             this.col004.HeaderText = "";
             this.col004.Name = "col004";
@@ -203,8 +490,8 @@
             // 
             // col005
             // 
-            dataGridViewCellStyle44.BackColor = System.Drawing.Color.White;
-            this.col005.DefaultCellStyle = dataGridViewCellStyle44;
+            dataGridViewCellStyle23.BackColor = System.Drawing.Color.White;
+            this.col005.DefaultCellStyle = dataGridViewCellStyle23;
             this.col005.Frozen = true;
             this.col005.HeaderText = "";
             this.col005.Name = "col005";
@@ -215,9 +502,9 @@
             // 
             // col006
             // 
-            dataGridViewCellStyle45.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle45.BackColor = System.Drawing.Color.White;
-            this.col006.DefaultCellStyle = dataGridViewCellStyle45;
+            dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle24.BackColor = System.Drawing.Color.White;
+            this.col006.DefaultCellStyle = dataGridViewCellStyle24;
             this.col006.Frozen = true;
             this.col006.HeaderText = "受注金額";
             this.col006.Name = "col006";
@@ -227,9 +514,9 @@
             // 
             // col007
             // 
-            dataGridViewCellStyle46.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle46.BackColor = System.Drawing.SystemColors.Control;
-            this.col007.DefaultCellStyle = dataGridViewCellStyle46;
+            dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle25.BackColor = System.Drawing.SystemColors.Control;
+            this.col007.DefaultCellStyle = dataGridViewCellStyle25;
             this.col007.Frozen = true;
             this.col007.HeaderText = "";
             this.col007.Name = "col007";
@@ -239,8 +526,8 @@
             // 
             // col008
             // 
-            dataGridViewCellStyle47.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col008.DefaultCellStyle = dataGridViewCellStyle47;
+            dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col008.DefaultCellStyle = dataGridViewCellStyle26;
             this.col008.FillWeight = 120F;
             this.col008.Frozen = true;
             this.col008.HeaderText = "合計";
@@ -251,8 +538,8 @@
             // 
             // col009
             // 
-            dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col009.DefaultCellStyle = dataGridViewCellStyle48;
+            dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col009.DefaultCellStyle = dataGridViewCellStyle27;
             this.col009.HeaderText = "1回目";
             this.col009.Name = "col009";
             this.col009.ReadOnly = true;
@@ -261,8 +548,8 @@
             // 
             // col010
             // 
-            dataGridViewCellStyle49.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col010.DefaultCellStyle = dataGridViewCellStyle49;
+            dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col010.DefaultCellStyle = dataGridViewCellStyle28;
             this.col010.HeaderText = "2回目";
             this.col010.Name = "col010";
             this.col010.ReadOnly = true;
@@ -271,8 +558,8 @@
             // 
             // col011
             // 
-            dataGridViewCellStyle50.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col011.DefaultCellStyle = dataGridViewCellStyle50;
+            dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col011.DefaultCellStyle = dataGridViewCellStyle29;
             this.col011.HeaderText = "3回目";
             this.col011.Name = "col011";
             this.col011.ReadOnly = true;
@@ -281,8 +568,8 @@
             // 
             // col12
             // 
-            dataGridViewCellStyle51.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col12.DefaultCellStyle = dataGridViewCellStyle51;
+            dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col12.DefaultCellStyle = dataGridViewCellStyle30;
             this.col12.HeaderText = "4回目";
             this.col12.Name = "col12";
             this.col12.ReadOnly = true;
@@ -292,8 +579,8 @@
             // 
             // col13
             // 
-            dataGridViewCellStyle52.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col13.DefaultCellStyle = dataGridViewCellStyle52;
+            dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col13.DefaultCellStyle = dataGridViewCellStyle31;
             this.col13.HeaderText = "5回目";
             this.col13.Name = "col13";
             this.col13.ReadOnly = true;
@@ -303,8 +590,8 @@
             // 
             // col14
             // 
-            dataGridViewCellStyle53.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col14.DefaultCellStyle = dataGridViewCellStyle53;
+            dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col14.DefaultCellStyle = dataGridViewCellStyle32;
             this.col14.HeaderText = "6回目";
             this.col14.Name = "col14";
             this.col14.ReadOnly = true;
@@ -314,8 +601,8 @@
             // 
             // col15
             // 
-            dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col15.DefaultCellStyle = dataGridViewCellStyle54;
+            dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col15.DefaultCellStyle = dataGridViewCellStyle33;
             this.col15.HeaderText = "7回目";
             this.col15.Name = "col15";
             this.col15.ReadOnly = true;
@@ -325,8 +612,8 @@
             // 
             // col16
             // 
-            dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col16.DefaultCellStyle = dataGridViewCellStyle55;
+            dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col16.DefaultCellStyle = dataGridViewCellStyle34;
             this.col16.HeaderText = "8回目";
             this.col16.Name = "col16";
             this.col16.ReadOnly = true;
@@ -336,8 +623,8 @@
             // 
             // col17
             // 
-            dataGridViewCellStyle56.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col17.DefaultCellStyle = dataGridViewCellStyle56;
+            dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col17.DefaultCellStyle = dataGridViewCellStyle35;
             this.col17.HeaderText = "9回目";
             this.col17.Name = "col17";
             this.col17.ReadOnly = true;
@@ -347,8 +634,8 @@
             // 
             // col18
             // 
-            dataGridViewCellStyle57.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col18.DefaultCellStyle = dataGridViewCellStyle57;
+            dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col18.DefaultCellStyle = dataGridViewCellStyle36;
             this.col18.HeaderText = "10回目";
             this.col18.Name = "col18";
             this.col18.ReadOnly = true;
@@ -358,8 +645,8 @@
             // 
             // col19
             // 
-            dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col19.DefaultCellStyle = dataGridViewCellStyle58;
+            dataGridViewCellStyle37.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col19.DefaultCellStyle = dataGridViewCellStyle37;
             this.col19.HeaderText = "11回目";
             this.col19.Name = "col19";
             this.col19.ReadOnly = true;
@@ -369,8 +656,8 @@
             // 
             // col20
             // 
-            dataGridViewCellStyle59.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col20.DefaultCellStyle = dataGridViewCellStyle59;
+            dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col20.DefaultCellStyle = dataGridViewCellStyle38;
             this.col20.HeaderText = "12回目";
             this.col20.Name = "col20";
             this.col20.ReadOnly = true;
@@ -380,8 +667,8 @@
             // 
             // col21
             // 
-            dataGridViewCellStyle60.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col21.DefaultCellStyle = dataGridViewCellStyle60;
+            dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col21.DefaultCellStyle = dataGridViewCellStyle39;
             this.col21.HeaderText = "13回目";
             this.col21.Name = "col21";
             this.col21.ReadOnly = true;
@@ -391,8 +678,8 @@
             // 
             // col22
             // 
-            dataGridViewCellStyle61.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col22.DefaultCellStyle = dataGridViewCellStyle61;
+            dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col22.DefaultCellStyle = dataGridViewCellStyle40;
             this.col22.HeaderText = "14回目";
             this.col22.Name = "col22";
             this.col22.ReadOnly = true;
@@ -402,8 +689,8 @@
             // 
             // col23
             // 
-            dataGridViewCellStyle62.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col23.DefaultCellStyle = dataGridViewCellStyle62;
+            dataGridViewCellStyle41.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col23.DefaultCellStyle = dataGridViewCellStyle41;
             this.col23.HeaderText = "15回目";
             this.col23.Name = "col23";
             this.col23.ReadOnly = true;
@@ -413,8 +700,8 @@
             // 
             // col098
             // 
-            dataGridViewCellStyle63.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.col098.DefaultCellStyle = dataGridViewCellStyle63;
+            dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.col098.DefaultCellStyle = dataGridViewCellStyle42;
             this.col098.HeaderText = "残り";
             this.col098.Name = "col098";
             this.col098.ReadOnly = true;
@@ -431,284 +718,6 @@
             this.col99.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.col99.Width = 240;
             // 
-            // btnEntry
-            // 
-            this.btnEntry.BackColor = System.Drawing.Color.Green;
-            this.btnEntry.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnEntry.ForeColor = System.Drawing.Color.White;
-            this.btnEntry.Location = new System.Drawing.Point(1071, 590);
-            this.btnEntry.Name = "btnEntry";
-            this.btnEntry.Size = new System.Drawing.Size(120, 28);
-            this.btnEntry.TabIndex = 13;
-            this.btnEntry.Text = "登　録";
-            this.btnEntry.UseVisualStyleBackColor = false;
-            this.btnEntry.Click += new System.EventHandler(this.btnEntry_Click);
-            // 
-            // btnEnd
-            // 
-            this.btnEnd.BackColor = System.Drawing.Color.Blue;
-            this.btnEnd.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnEnd.ForeColor = System.Drawing.Color.White;
-            this.btnEnd.Location = new System.Drawing.Point(1197, 590);
-            this.btnEnd.Name = "btnEnd";
-            this.btnEnd.Size = new System.Drawing.Size(120, 28);
-            this.btnEnd.TabIndex = 14;
-            this.btnEnd.Text = "終　了";
-            this.btnEnd.UseVisualStyleBackColor = false;
-            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
-            // 
-            // btnAdd
-            // 
-            this.btnAdd.BackColor = System.Drawing.Color.Orange;
-            this.btnAdd.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnAdd.ForeColor = System.Drawing.Color.Black;
-            this.btnAdd.Location = new System.Drawing.Point(158, 590);
-            this.btnAdd.Name = "btnAdd";
-            this.btnAdd.Size = new System.Drawing.Size(120, 28);
-            this.btnAdd.TabIndex = 12;
-            this.btnAdd.Text = "回数追加";
-            this.btnAdd.UseVisualStyleBackColor = false;
-            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
-            // 
-            // btnOtherProc
-            // 
-            this.btnOtherProc.BackColor = System.Drawing.Color.Lime;
-            this.btnOtherProc.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnOtherProc.ForeColor = System.Drawing.Color.Black;
-            this.btnOtherProc.Location = new System.Drawing.Point(12, 590);
-            this.btnOtherProc.Name = "btnOtherProc";
-            this.btnOtherProc.Size = new System.Drawing.Size(140, 28);
-            this.btnOtherProc.TabIndex = 11;
-            this.btnOtherProc.Text = "他の画面へ";
-            this.btnOtherProc.UseVisualStyleBackColor = false;
-            this.btnOtherProc.Click += new System.EventHandler(this.btnOtherProc_Click);
-            // 
-            // button1
-            // 
-            this.button1.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.button1.Location = new System.Drawing.Point(1271, 9);
-            this.button1.Name = "button1";
-            this.button1.Size = new System.Drawing.Size(45, 23);
-            this.button1.TabIndex = 15;
-            this.button1.Text = "･･･";
-            this.button1.UseVisualStyleBackColor = true;
-            this.button1.Visible = false;
-            this.button1.Click += new System.EventHandler(this.button1_Click_1);
-            // 
-            // SeparateBillingLabel
-            // 
-            this.SeparateBillingLabel.BackColor = System.Drawing.Color.DarkBlue;
-            this.SeparateBillingLabel.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.SeparateBillingLabel.ForeColor = System.Drawing.Color.White;
-            this.SeparateBillingLabel.Location = new System.Drawing.Point(8, 5);
-            this.SeparateBillingLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.SeparateBillingLabel.Name = "SeparateBillingLabel";
-            this.SeparateBillingLabel.Size = new System.Drawing.Size(180, 30);
-            this.SeparateBillingLabel.TabIndex = 16;
-            this.SeparateBillingLabel.Text = "出来高　分割";
-            this.SeparateBillingLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // CombinedOrderLabel
-            // 
-            this.CombinedOrderLabel.BackColor = System.Drawing.Color.DimGray;
-            this.CombinedOrderLabel.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.CombinedOrderLabel.ForeColor = System.Drawing.Color.White;
-            this.CombinedOrderLabel.Location = new System.Drawing.Point(8, 5);
-            this.CombinedOrderLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.CombinedOrderLabel.Name = "CombinedOrderLabel";
-            this.CombinedOrderLabel.Size = new System.Drawing.Size(180, 30);
-            this.CombinedOrderLabel.TabIndex = 17;
-            this.CombinedOrderLabel.Text = "完了後　一括";
-            this.CombinedOrderLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // groupBoxEx1
-            // 
-            this.groupBoxEx1.BackColor = System.Drawing.Color.Gold;
-            this.groupBoxEx1.BorderColor = System.Drawing.Color.White;
-            this.groupBoxEx1.Controls.Add(this.pnlNormal);
-            this.groupBoxEx1.Controls.Add(this.pnlApproval);
-            this.groupBoxEx1.Controls.Add(this.label2);
-            this.groupBoxEx1.Controls.Add(this.label4);
-            this.groupBoxEx1.Controls.Add(this.cbReqMonth);
-            this.groupBoxEx1.Controls.Add(this.label5);
-            this.groupBoxEx1.Controls.Add(this.txtOrderer);
-            this.groupBoxEx1.Controls.Add(this.lblReqOrder);
-            this.groupBoxEx1.Location = new System.Drawing.Point(5, 52);
-            this.groupBoxEx1.Name = "groupBoxEx1";
-            this.groupBoxEx1.Size = new System.Drawing.Size(1330, 46);
-            this.groupBoxEx1.TabIndex = 18;
-            this.groupBoxEx1.TabStop = false;
-            // 
-            // pnlNormal
-            // 
-            this.pnlNormal.BackColor = System.Drawing.Color.White;
-            this.pnlNormal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.pnlNormal.Controls.Add(this.lblApprovalCount);
-            this.pnlNormal.Controls.Add(this.button2);
-            this.pnlNormal.Controls.Add(this.btnApproval);
-            this.pnlNormal.Location = new System.Drawing.Point(1053, 5);
-            this.pnlNormal.Name = "pnlNormal";
-            this.pnlNormal.Size = new System.Drawing.Size(262, 34);
-            this.pnlNormal.TabIndex = 8;
-            // 
-            // lblApprovalCount
-            // 
-            this.lblApprovalCount.BackColor = System.Drawing.Color.Black;
-            this.lblApprovalCount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblApprovalCount.ForeColor = System.Drawing.Color.White;
-            this.lblApprovalCount.Location = new System.Drawing.Point(205, 3);
-            this.lblApprovalCount.Name = "lblApprovalCount";
-            this.lblApprovalCount.Size = new System.Drawing.Size(50, 24);
-            this.lblApprovalCount.TabIndex = 14;
-            this.lblApprovalCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // button2
-            // 
-            this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.button2.BackColor = System.Drawing.Color.White;
-            this.button2.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.button2.ForeColor = System.Drawing.Color.Red;
-            this.button2.Location = new System.Drawing.Point(99, 3);
-            this.button2.Name = "button2";
-            this.button2.Size = new System.Drawing.Size(100, 24);
-            this.button2.TabIndex = 13;
-            this.button2.Text = "未承認";
-            this.button2.UseVisualStyleBackColor = false;
-            // 
-            // btnApproval
-            // 
-            this.btnApproval.BackColor = System.Drawing.Color.White;
-            this.btnApproval.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnApproval.ForeColor = System.Drawing.Color.Red;
-            this.btnApproval.Location = new System.Drawing.Point(3, 3);
-            this.btnApproval.Name = "btnApproval";
-            this.btnApproval.Size = new System.Drawing.Size(100, 24);
-            this.btnApproval.TabIndex = 0;
-            this.btnApproval.Text = "未申請";
-            this.btnApproval.UseVisualStyleBackColor = false;
-            this.btnApproval.Click += new System.EventHandler(this.btnApproval_Click);
-            // 
-            // pnlApproval
-            // 
-            this.pnlApproval.BackColor = System.Drawing.Color.White;
-            this.pnlApproval.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.pnlApproval.Controls.Add(this.btnDeny);
-            this.pnlApproval.Controls.Add(this.btnPend);
-            this.pnlApproval.Controls.Add(this.btnAgree);
-            this.pnlApproval.Location = new System.Drawing.Point(1053, 5);
-            this.pnlApproval.Name = "pnlApproval";
-            this.pnlApproval.Size = new System.Drawing.Size(262, 34);
-            this.pnlApproval.TabIndex = 9;
-            this.pnlApproval.Visible = false;
-            // 
-            // btnDeny
-            // 
-            this.btnDeny.BackColor = System.Drawing.Color.Red;
-            this.btnDeny.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnDeny.Location = new System.Drawing.Point(171, 3);
-            this.btnDeny.Name = "btnDeny";
-            this.btnDeny.Size = new System.Drawing.Size(84, 24);
-            this.btnDeny.TabIndex = 2;
-            this.btnDeny.Text = "不承認";
-            this.btnDeny.UseVisualStyleBackColor = false;
-            this.btnDeny.Click += new System.EventHandler(this.btnDeny_Click);
-            // 
-            // btnPend
-            // 
-            this.btnPend.BackColor = System.Drawing.Color.Yellow;
-            this.btnPend.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnPend.Location = new System.Drawing.Point(88, 3);
-            this.btnPend.Name = "btnPend";
-            this.btnPend.Size = new System.Drawing.Size(84, 24);
-            this.btnPend.TabIndex = 1;
-            this.btnPend.Text = "保留";
-            this.btnPend.UseVisualStyleBackColor = false;
-            this.btnPend.Click += new System.EventHandler(this.btnPend_Click);
-            // 
-            // btnAgree
-            // 
-            this.btnAgree.BackColor = System.Drawing.Color.Lime;
-            this.btnAgree.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.btnAgree.Location = new System.Drawing.Point(3, 3);
-            this.btnAgree.Name = "btnAgree";
-            this.btnAgree.Size = new System.Drawing.Size(84, 24);
-            this.btnAgree.TabIndex = 0;
-            this.btnAgree.Text = "承認";
-            this.btnAgree.UseVisualStyleBackColor = false;
-            this.btnAgree.Click += new System.EventHandler(this.btnAgree_Click);
-            // 
-            // label2
-            // 
-            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label2.CausesValidation = false;
-            this.label2.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label2.Location = new System.Drawing.Point(5, 10);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(100, 25);
-            this.label2.TabIndex = 2;
-            this.label2.Text = "請求先";
-            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label4
-            // 
-            this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label4.CausesValidation = false;
-            this.label4.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label4.Location = new System.Drawing.Point(599, 10);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(100, 25);
-            this.label4.TabIndex = 4;
-            this.label4.Text = "請求月";
-            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // cbReqMonth
-            // 
-            this.cbReqMonth.BackColor = System.Drawing.Color.White;
-            this.cbReqMonth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cbReqMonth.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cbReqMonth.FormattingEnabled = true;
-            this.cbReqMonth.Location = new System.Drawing.Point(707, 10);
-            this.cbReqMonth.Name = "cbReqMonth";
-            this.cbReqMonth.Size = new System.Drawing.Size(109, 24);
-            this.cbReqMonth.TabIndex = 5;
-            // 
-            // label5
-            // 
-            this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label5.CausesValidation = false;
-            this.label5.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label5.Location = new System.Drawing.Point(832, 10);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(100, 25);
-            this.label5.TabIndex = 6;
-            this.label5.Text = "請求回数";
-            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // txtOrderer
-            // 
-            this.txtOrderer.BackColor = System.Drawing.Color.White;
-            this.txtOrderer.ImeMode = System.Windows.Forms.ImeMode.On;
-            this.txtOrderer.Location = new System.Drawing.Point(113, 11);
-            this.txtOrderer.Name = "txtOrderer";
-            this.txtOrderer.ReadOnly = true;
-            this.txtOrderer.Size = new System.Drawing.Size(470, 23);
-            this.txtOrderer.TabIndex = 3;
-            this.txtOrderer.TextChanged += new System.EventHandler(this.txtOrderer_TextChanged);
-            this.txtOrderer.Validating += new System.ComponentModel.CancelEventHandler(this.txtOrderer_Validating);
-            // 
-            // lblReqOrder
-            // 
-            this.lblReqOrder.BackColor = System.Drawing.Color.White;
-            this.lblReqOrder.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblReqOrder.Location = new System.Drawing.Point(940, 10);
-            this.lblReqOrder.Name = "lblReqOrder";
-            this.lblReqOrder.Size = new System.Drawing.Size(85, 24);
-            this.lblReqOrder.TabIndex = 7;
-            this.lblReqOrder.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // FrmRequestInput
             // 
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -733,11 +742,11 @@
             this.Activated += new System.EventHandler(this.FrmRequestInput_Activated);
             this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmRequestInput_FormClosing);
             this.Load += new System.EventHandler(this.FrmRequestInput_Load);
-            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).EndInit();
             this.groupBoxEx1.ResumeLayout(false);
             this.groupBoxEx1.PerformLayout();
-            this.pnlNormal.ResumeLayout(false);
             this.pnlApproval.ResumeLayout(false);
+            this.pnlApprovalButton.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -755,14 +764,14 @@
         private System.Windows.Forms.ComboBox cbReqMonth;
         private System.Windows.Forms.Label label5;
         private System.Windows.Forms.Label lblReqOrder;
-        private System.Windows.Forms.Button btnApproval;
+        private System.Windows.Forms.Button btnPetition;
         private System.Windows.Forms.TextBox txtOrderer;
         private System.Windows.Forms.Button button1;
-        private System.Windows.Forms.Panel pnlNormal;
         private System.Windows.Forms.Panel pnlApproval;
-        private System.Windows.Forms.Button btnAgree;
-        private System.Windows.Forms.Button btnDeny;
-        private System.Windows.Forms.Button btnPend;
+        private System.Windows.Forms.Panel pnlApprovalButton;
+        private System.Windows.Forms.Button btnOnApproval;
+        private System.Windows.Forms.Button btnNotApproval;
+        private System.Windows.Forms.Button btnOnHold;
         private System.Windows.Forms.DataGridViewTextBoxColumn col001;
         private System.Windows.Forms.DataGridViewTextBoxColumn col002;
         private System.Windows.Forms.DataGridViewTextBoxColumn col003;
@@ -791,7 +800,7 @@
         private System.Windows.Forms.Label SeparateBillingLabel;
         private System.Windows.Forms.Label CombinedOrderLabel;
         private ProcessManagement.Forms.CustomControls.GroupBoxEx groupBoxEx1;
-        private System.Windows.Forms.Button button2;
+        private System.Windows.Forms.Button btnApproval;
         private System.Windows.Forms.Label lblApprovalCount;
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.cs	(revision 369)
@@ -61,10 +61,6 @@
 
         private bool m_CloseingProcessOn = true;
 
-        private bool m_bChengeAns = false;
-
-        //        private List<RequestData> m_RequestData = new List<RequestData>();
-
         private bool m_bDirty = false;
         private bool m_bVisible = false;
         private bool m_bEdit = true;
@@ -76,7 +72,14 @@
         /// 該当工事基本情報
         /// </summary>
         ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo();
+
+        #region 承認パネルリスト
+        /// <summary>
+        /// 承認パネルリスト
+        /// </summary>
+        private List<Panel> m_ApplPnlList = new List<Panel>();
         #endregion
+        #endregion
 
         #region プロパティ
         /// <summary>
@@ -161,33 +164,6 @@
         }
         #endregion
 
-        #region 初期起動チェック
-        /// <summary>
-        /// 初期起動チェック
-        /// </summary>
-        /// <returns></returns>
-        private bool InitExecCheck()
-        {
-            try
-            {
-                string msg = "";
-
-                // 初期起動チェック
-                if (CheckInit(ref msg) == false)
-                {
-                    MessageBox.Show(msg, "起動エラー", MessageBoxButtons.OK);
-                    return false;
-                }
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
-        #endregion
-
         #region フォームのロード
         /// <summary>
         /// フォームのロード
@@ -199,8 +175,6 @@
                 // 初期起動チェック
                 if (!InitExecCheck())
                 {
-                    // 前プロセスに戻る
-                    ClsExcute.BackProcess();
                     this.Close();
                     return;
                 }
@@ -220,27 +194,21 @@
                 // 請求月の設定
                 SetRequestMonth();
 
-                for (int i = 1; i < m_nMaxOrderNo; i++)
-                {
-                    int tcol = (int)ColumnName.Request01 + i;
-
-                    dgv1.Columns[tcol].Visible = true;
-                }
-
                 // [回数追加]ボタンの制御
                 btnAdd.Enabled = GetbtnAddEnabled();
 
                 // 画面左上に分割か一括かを表示
-                if (BillingSplit())
+                BillingLabel();
+
+                // 申請・承認表示処理
+                int nSetOrderNo = (m_OrderNo == 0) ? m_nMaxOrderNo : m_OrderNo;
+                // ----- 承認済の場合承認済みフラグON
+                if (ClsCommonApproval.CheckProcessApproval(m_ConstructionCode
+                                                                , (int)ClsExcute.ApprovalListNo.OrderRequestApproval
+                                                                , nSetOrderNo))
                 {
-                    SeparateBillingLabel.Visible = true;
-                    CombinedOrderLabel.Visible = false;
+                    m_bEdit = true;
                 }
-                else
-                {
-                    SeparateBillingLabel.Visible = false;
-                    CombinedOrderLabel.Visible = true;
-                }
 
                 if (m_bEdit == false)
                 {
@@ -251,23 +219,32 @@
                 CreateProcessContextMenu(m_SubForm);
                 // *-----* 処理移動ボタン設定 *-----*
 
-                // 承認機能番号が0の場合(=承認画面からの呼び出し)
-                if (m_ApprovalCode == 0) return;
 
-                pnlNormal.Visible = false;
+                // 申請・承認表示処理
+                m_ApplPnlList.Add(pnlApproval);
+                m_ApplPnlList.Add(pnlApprovalButton);
+                ClsCommonApproval.CtrlConstrAppPanel((int)ClsExcute.ApprovalListNo.OrderRequestApproval
+                                                        , m_ConstructionCode
+                                                        , nSetOrderNo
+                                                        , m_ApplPnlList);
 
-                ApprovalMaster App = null;
+                //// 承認機能番号が0の場合(=承認画面からの呼び出し)
+                //if (m_ApprovalCode == 0) return;
 
-                // 承認経路上にログインユーザがある場合は、承認の各ボタンを表示
-                if (m_dicApprovalMaster.TryGetValue(CommonMotions.LoginUserData.PersonCode, out App) == true)
-                {
-                    pnlApproval.Visible = true;
-                }
+                //pnlApproval.Visible = false;
 
-                // その他不要なボタンも非表示
-                btnOtherProc.Visible = false;           // その他画面ボタン
-                btnAdd.Visible = false;                 // 回数追加ボタン
-                btnEntry.Visible = false;               // 登録ボタン
+                //ApprovalMaster App = null;
+
+                //// 承認経路上にログインユーザがある場合は、承認の各ボタンを表示
+                //if (m_dicApprovalMaster.TryGetValue(CommonMotions.LoginUserData.PersonCode, out App) == true)
+                //{
+                //    pnlApprovalButton.Visible = true;
+                //}
+
+                //// その他不要なボタンも非表示
+                //btnOtherProc.Visible = false;           // その他画面ボタン
+                //btnAdd.Visible = false;                 // 回数追加ボタン
+                //btnEntry.Visible = false;               // 登録ボタン
             }
             catch (Exception ex)
             {
@@ -301,9 +278,13 @@
                     return;
                 }
             }
+            // サブフォーム起動はプロセスカウンタを変更しない
+            if (m_SubForm) m_CloseingProcessOn = false;
 
-            if (m_CloseingProcessOn)
-                ClsExcute.BackProcess();
+            // フォームがCloseされていなければクローズする
+            TerminatingProcess();
+
+            if (m_CloseingProcessOn) ClsExcute.BackProcess();
         }
         #endregion
 
@@ -346,6 +327,11 @@
 
                 btnAdd.Enabled = false;
 
+                // 承認件数更新
+                ClsCommonApproval.CtrlConstrAppPanel((int)ClsExcute.ApprovalListNo.OrderRequestApproval
+                                                        , m_ConstructionCode
+                                                        , m_nMaxOrderNo
+                                                        , m_ApplPnlList);
             }
             catch (Exception ex)
             {
@@ -355,115 +341,6 @@
         }
         #endregion
 
-        #region [請求書申請]ボタン押下
-        /// <summary>
-        /// [請求書申請]ボタン押下
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnApproval_Click(object sender, EventArgs e)
-        {
-            int ret;
-
-            int nOldState = m_lstOrderState[m_nMaxOrderNo - 1];
-
-            List<int> lstMainConstructionCode = new List<int>();
-
-            // データが変更されている場合
-            if (m_bDirty == true)
-            {
-                if (ShowMessageBox("データが保存されます。よろしいですか？", "保存確認", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
-                {
-                    return;
-                }
-                // データ保存
-                AcceptData();
-            }
-
-            // エラー表示を一旦クリア
-            ClearErrorIndicate();
-
-            // 申請チェック
-            ret = CheckApproval(ref lstMainConstructionCode);
-
-            // 状態が入力中の場合
-            if (nOldState == (int)ApprovalState.Entry)
-            {
-
-                if (ret == (int)CheckResult.ErrorStatus)
-                {
-                    // エラー表示
-                    SetErrorIndicate(lstMainConstructionCode);
-
-                    ShowMessageBox("請求準備ではないため、請求承認の申請はできません。", "申請確認", MessageBoxButtons.OK, MessageBoxIcon.Error);
-
-                    return;
-                }
-
-                if (ret == (int)CheckResult.NoError)
-                {
-                    if (ShowMessageBox("請求承認を申請してよろしいですか？", "申請確認", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
-                    {
-                        return;
-                    }
-                }
-                else if (ret == (int)CheckResult.WarningUnmatch)
-                {
-                    if (ShowMessageBox("工事金額が全て請求されていませんが、\n請求承認を申請してよろしいですか？", "申請確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
-                    {
-                        return;
-                    }
-                }
-                else if (ret == (int)CheckResult.WarningOver)
-                {
-                    if (ShowMessageBox("請求金額が工事金額を超えていますが、\n請求承認を申請してよろしいですか？", "申請確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
-                    {
-                        return;
-                    }
-                }
-                else
-                {
-                    return;
-                }
-            }
-
-            // 承認画面を表示
-            FrmApprovalScreen frmApprovalScreen = new FrmApprovalScreen();
-            frmApprovalScreen.ConstructionCode = m_ConstructionCode;
-            frmApprovalScreen.ApprovalCode = (int)ClsExcute.ApprovalListNo.OrderBillingApproval;
-            frmApprovalScreen.OrderNo = m_nMaxOrderNo;
-            frmApprovalScreen.ShowDialog(this);
-
-            m_dicProcessApproval.Clear();
-
-            // 承認データの再取得
-            GetProcessApproval(m_ConstructionCode, ref m_dicProcessApproval);
-
-            int nNewState = GetApprovalState(m_ConstructionCode, m_nMaxOrderNo);
-
-            int tcol = m_nMaxOrderNo + (int)ColumnName.Sum;
-
-            if (nNewState != nOldState)
-            {
-                m_lstOrderState[m_nMaxOrderNo - 1] = nNewState;
-
-                SetRequestMonthAndApprovalState(m_nMaxOrderNo, 0, nNewState);
-
-                if (nNewState != (int)ApprovalState.End)
-                {
-                    txtOrderer.ReadOnly = false;
-                    cbReqMonth.Enabled = false;
-                }
-                else
-                {
-                    txtOrderer.ReadOnly = true;
-                    cbReqMonth.Enabled = true;
-                }
-            }
-            this.Close();
-        }
-        #endregion
-
         #region [登録]ボタン押下
         /// <summary>
         /// [登録]ボタン押下
@@ -480,9 +357,6 @@
 
             m_EndButton = DialogResult.Cancel;
 
-            // 前プロセスに戻る
-            ClsExcute.BackProcess();
-
             CommonMotions.EntryEndMessage("請求データ");
 
             // Formを閉じる
@@ -516,7 +390,7 @@
         {
             try
             {
-                if (m_bChengeAns)
+                if (m_bDirty)
                 {   // ----- データ変更有時はデータ登録
                     DataEntryProcess();
                 }
@@ -878,12 +752,399 @@
         }
         #endregion
 
-        #region [承認]ボタン押下
+        #region 申請ボタン押下
         /// <summary>
-        /// [承認]ボタン押下
+        /// 申請ボタン押下
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
+        private void btnPetition_Click(object sender, EventArgs e)
+        {
+            IOPurchaseOrder OrderDB = new IOPurchaseOrder();
+            IOProcessApproval ProAppDB = new IOProcessApproval();
+            try
+            {
+                // 申請時チェック
+                if (!CheckPettion()) return;
+
+                // 承認順チェック
+                if (!CheckApprovalOrder()) return;
+
+                // 請求データが無い場合は登録する
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(OrderDB.CreatePrimarykeyString(m_ConstructionCode));
+                PurchaseOrder DataRec = new PurchaseOrder();
+                if (!OrderDB.SelectAction(strSQL.ToString(), ref DataRec)) m_bDirty = true;
+
+                // データ変更有時はデータ登録
+                if (m_bDirty)
+                {
+                    if (ShowMessageBox("データが保存されます。よろしいですか？"
+                                        , "保存確認"
+                                        , MessageBoxButtons.YesNo
+                                        , MessageBoxIcon.Information) == DialogResult.No)
+                    {
+                        return;
+                    }
+                    // データ保存
+                    AcceptData();
+                }
+
+                // 起動番号
+                int NowPoint = ClsExcute.NextProcess((int)ClsExcute.SubFormExecuteNo.ApprovalScreen);
+
+                // 工事番号
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(m_ConstructionCode);
+
+                // 承認機能番号
+                int iApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals("請求承認")).Key;
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(iApprovalCode);
+
+                // 受付番号
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(m_nMaxOrderNo);
+
+                // 親フォーム終了
+                m_ParentEnd = true;
+
+                // 終了処理OFF
+                m_CloseingProcessOn = false;
+                // 自フォーム終了
+                this.Close();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                OrderDB.close(); OrderDB = null;
+                ProAppDB.close(); ProAppDB = null;
+            }
+        }
+        #endregion
+
+        #region 承認ボタン押下
+        /// <summary>
+        /// 承認ボタン押下
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnApproval_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                // データ変更有時はデータ登録
+                if (m_bDirty)
+                {
+                    if (ShowMessageBox("データが保存されます。よろしいですか？"
+                                        , "保存確認"
+                                        , MessageBoxButtons.YesNo
+                                        , MessageBoxIcon.Information) == DialogResult.No)
+                    {
+                        return;
+                    }
+                    // データ保存
+                    AcceptData();
+                }
+
+                // 承認順チェック
+                if (!CheckApprovalOrder()) return;
+
+                // 起動番号
+                int NowPoint = ClsExcute.NextProcess((int)ClsExcute.SubFormExecuteNo.ApprovalScreen);
+
+                // 工事番号
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(m_ConstructionCode);
+
+                // 承認機能番号
+                int iApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals("請求承認")).Key;
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(iApprovalCode);
+
+                // 受付番号
+                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(m_nMaxOrderNo);
+
+                // 親フォーム終了
+                m_ParentEnd = true;
+
+                // 終了処理OFF
+                m_CloseingProcessOn = false;
+                // 自フォーム終了
+                this.Close();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 承認パネル（pnlApproval）承認ボタン
+        /// <summary>
+        /// 承認パネル（pnlApproval）承認ボタン
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnOnApproval_Click(object sender, EventArgs e)
+        {
+            FrmApprovalScreen frm = new FrmApprovalScreen();
+            try
+            {
+                /// 承認順チェック
+                if (!CheckApprovalOrder()) return;
+
+                if (MessageBox.Show("案件を承認します、よろしいですか？。", "承認確認"
+                                , MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return;
+
+                // 工事番号
+                frm.ConstructionCode = m_ConstructionCode;
+                // 承認機能番号セット
+                frm.ApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals("請求承認")).Key;
+                // 受付番号セット
+                frm.OrderNo = m_nMaxOrderNo;
+
+                // 申請・承認レコード更新
+                if (!frm.ApprovalDataUpDate((int)CommonDefine.ApprovalStatus.Approval, false))
+                {
+                    MessageBox.Show("承認に失敗しました。", "承認エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return;
+                }
+
+                // 完了メッセージ
+                CommonMotions.EntryEndMessage("承認", "");
+
+                // メニューへ戻る
+                ClsExcute.ClearProcess();
+                // 終了処理フラグOff
+                m_CloseingProcessOn = false;
+                // 画面クローズ
+                this.Close();
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frm.Dispose(); frm = null;
+            }
+        }
+        #endregion
+
+        #region 承認パネル（pnlApproval）保留ボタン
+        /// <summary>
+        /// 承認パネル（pnlApproval）保留ボタン
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnOnHold_Click(object sender, EventArgs e)
+        {
+            FrmApprovalScreen frm = new FrmApprovalScreen();
+            try
+            {
+                /// 承認順チェック
+                if (!CheckApprovalOrder()) return;
+
+                if (MessageBox.Show("案件を保留とします、よろしいですか？。", "保留確認"
+                                , MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return;
+
+                // 工事番号
+                frm.ConstructionCode = m_ConstructionCode;
+                // 承認機能番号セット
+                frm.ApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals("請求承認")).Key;
+                // 受付番号セット
+                frm.OrderNo = m_nMaxOrderNo;
+
+                // 申請・承認レコード更新
+                if (!frm.ApprovalDataUpDate((int)CommonDefine.ApprovalStatus.Pending, false))
+                {
+                    MessageBox.Show("保留に失敗しました。", "保留エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return;
+                }
+
+                // 完了メッセージ
+                CommonMotions.EntryEndMessage("保留", "");
+
+                // メニューへ戻る
+                ClsExcute.ClearProcess();
+                // 終了処理フラグOff
+                m_CloseingProcessOn = false;
+                // 画面クローズ
+                this.Close();
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frm.Dispose(); frm = null;
+            }
+        }
+        #endregion
+
+        #region 承認パネル（pnlApproval）不承認ボタン
+        /// <summary>
+        /// 承認パネル（pnlApproval）不承認ボタン
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnNotApproval_Click(object sender, EventArgs e)
+        {
+            FrmApprovalScreen frm = new FrmApprovalScreen();
+            try
+            {
+                /// 承認順チェック
+                if (!CheckApprovalOrder()) return;
+
+                if (MessageBox.Show("案件を不承認します、よろしいですか？。", "不承認確認"
+                                , MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No) return;
+
+                // 工事番号
+                frm.ConstructionCode = m_ConstructionCode;
+                // 承認機能番号セット
+                frm.ApprovalCode = ClsExcute.AppovalList.First(x => x.Value.Equals("請求承認")).Key;
+                // 受付番号セット
+                frm.OrderNo = m_nMaxOrderNo;
+
+                // 申請・承認レコード更新
+                if (!frm.ApprovalDataUpDate((int)CommonDefine.ApprovalStatus.NotApproval, false))
+                {
+                    MessageBox.Show("不承認に失敗しました。", "不承認エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return;
+                }
+
+                // 完了メッセージ
+                CommonMotions.EntryEndMessage("不承認", "");
+
+                // メニューへ戻る
+                ClsExcute.ClearProcess();
+                // 終了処理フラグOff
+                m_CloseingProcessOn = false;
+                // 画面クローズ
+                this.Close();
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frm.Dispose(); frm = null;
+            }
+        }
+        #endregion
+
+        #region [請求書申請]ボタン押下（未使用）
+        /// <summary>
+        /// [請求書申請]ボタン押下（未使用）
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnApproval_Click1(object sender, EventArgs e)
+        {
+            // データが変更されている場合
+            if (m_bDirty == true)
+            {
+                if (ShowMessageBox("データが保存されます。よろしいですか？", "保存確認", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
+                {
+                    return;
+                }
+                // データ保存
+                AcceptData();
+            }
+
+            // エラー表示を一旦クリア
+            ClearErrorIndicate();
+
+            List<int> lstMainConstructionCode = new List<int>();
+            int nOldState = m_lstOrderState[m_nMaxOrderNo - 1];
+            // 申請チェック
+            int ret = CheckApprovalMain(ref lstMainConstructionCode);
+
+            // 状態が入力中の場合
+            if (nOldState == (int)ApprovalState.Entry)
+            {
+
+                if (ret == (int)CheckResult.ErrorStatus)
+                {
+                    // エラー表示
+                    SetErrorIndicate(lstMainConstructionCode);
+
+                    ShowMessageBox("請求準備ではないため、請求承認の申請はできません。", "申請確認", MessageBoxButtons.OK, MessageBoxIcon.Error);
+
+                    return;
+                }
+
+                if (ret == (int)CheckResult.NoError)
+                {
+                    if (ShowMessageBox("請求承認を申請してよろしいですか？", "申請確認", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
+                    {
+                        return;
+                    }
+                }
+                else if (ret == (int)CheckResult.WarningUnmatch)
+                {
+                    if (ShowMessageBox("工事金額が全て請求されていませんが、\n請求承認を申請してよろしいですか？", "申請確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
+                    {
+                        return;
+                    }
+                }
+                else if (ret == (int)CheckResult.WarningOver)
+                {
+                    if (ShowMessageBox("請求金額が工事金額を超えていますが、\n請求承認を申請してよろしいですか？", "申請確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
+                    {
+                        return;
+                    }
+                }
+                else
+                {
+                    return;
+                }
+            }
+
+            // 承認画面を表示
+            FrmApprovalScreen frmApprovalScreen = new FrmApprovalScreen();
+            frmApprovalScreen.ConstructionCode = m_ConstructionCode;
+            frmApprovalScreen.ApprovalCode = (int)ClsExcute.ApprovalListNo.OrderRequestApproval;
+            frmApprovalScreen.OrderNo = m_nMaxOrderNo;
+            frmApprovalScreen.ShowDialog(this);
+
+            m_dicProcessApproval.Clear();
+
+            // 承認データの再取得
+            GetProcessApproval(m_ConstructionCode, ref m_dicProcessApproval);
+
+            int nNewState = GetApprovalState(m_ConstructionCode, m_nMaxOrderNo);
+
+            int tcol = m_nMaxOrderNo + (int)ColumnName.Sum;
+
+            if (nNewState != nOldState)
+            {
+                m_lstOrderState[m_nMaxOrderNo - 1] = nNewState;
+
+                SetRequestMonthAndApprovalState(m_nMaxOrderNo, 0, nNewState);
+
+                if (nNewState != (int)ApprovalState.End)
+                {
+                    txtOrderer.ReadOnly = false;
+                    cbReqMonth.Enabled = false;
+                }
+                else
+                {
+                    txtOrderer.ReadOnly = true;
+                    cbReqMonth.Enabled = true;
+                }
+            }
+            this.Close();
+        }
+        #endregion
+
+        #region [承認]ボタン押下（未使用）
+        /// <summary>
+        /// [承認]ボタン押下（未使用）
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
         private void btnAgree_Click(object sender, EventArgs e)
         {
             if (ShowMessageBox("案件を承認します、よろしいですか？。", "承認確認", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
@@ -904,9 +1165,9 @@
         }
         #endregion
 
-        #region [保留]ボタン押下
+        #region [保留]ボタン押下（未使用）
         /// <summary>
-        /// [保留]ボタン押下
+        /// [保留]ボタン押下（未使用）
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
@@ -929,9 +1190,9 @@
         }
         #endregion
 
-        #region [不承認]ボタン押下
+        #region [不承認]ボタン押下（未使用）
         /// <summary>
-        /// [不承認]ボタン押下
+        /// [不承認]ボタン押下（未使用）
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.resx	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInput.resx	(revision 369)
@@ -192,4 +192,79 @@
   <metadata name="col99.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="col001.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col002.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col003.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col004.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col005.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col006.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col007.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col008.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col009.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col010.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col011.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col12.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col13.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col14.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col15.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col16.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col17.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col18.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col19.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col20.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col21.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col22.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col23.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col098.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col99.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
 </root>
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInput/FrmRequestInputAuxiliary.cs	(revision 369)
@@ -265,7 +265,6 @@
 
                 // フッタ部構築
                 cnt = CreateFooter(dgv1, cnt);
-
             }
             catch (Exception ex)
             {
@@ -739,6 +738,33 @@
 
         #region チェック関連メソッド
 
+        #region 初期起動チェック
+        /// <summary>
+        /// 初期起動チェック
+        /// </summary>
+        /// <returns></returns>
+        private bool InitExecCheck()
+        {
+            try
+            {
+                string msg = "";
+
+                // 初期起動チェック
+                if (CheckInit(ref msg) == false)
+                {
+                    MessageBox.Show(msg, "起動エラー", MessageBoxButtons.OK);
+                    return false;
+                }
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
         #region 初期起動時チェック
         /// <summary>
         /// 初期起動時チェック
@@ -752,77 +778,127 @@
             {
                 msg = "起動に失敗しました。";
 
-                string sql = string.Empty;
+                StringBuilder sql = new StringBuilder();
 
                 // 工事基本情報の取得
-                ConstructionBaseInfo Info = new ConstructionBaseInfo();
-                sql = ioInfo.CreatePrimarykeyString(m_ConstructionCode);
-                if (ioInfo.SelectAction(sql, ref Info) == false)
+                if (!GetBaseInfoData()) return false;
+
+                sql.Append("SELECT ReqHead.RequestNo FROM ConstructionLink Link");
+                sql.Append(" INNER JOIN RequestHead ReqHead ON Link.FluctuationCode = ReqHead.ReqConstructionCode");
+                if (m_ConstructionBaseInfo.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.JoinParent)
                 {
-                    return false;
+                    // 結合親工事の場合
+                    // 子工事で既に請求が実施されているか確認
+                    sql.Clear();
+                    sql.AppendFormat(" WHERE Link.ConstructionCode = {0}", m_ConstructionCode);
                 }
+                else if (m_ConstructionBaseInfo.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.JoinChildren)
+                {
+                    // 結合子工事の場合
+                    // 親工事で請求済か確認
+                    sql.Clear();
+                    sql.AppendFormat(" WHERE Link.FluctuationCode = {0}", m_ConstructionCode);
+                }
+                else
+                {
+                    // 対象外が以下処理無
+                    msg = string.Empty;
+                    return true;
+                }
+                sql.AppendFormat(" AND Link.LinkType = {0}", (int)ConstructionLink.DataTypeDef.JoinType);
 
-                // 結合親工事の場合
-                if (Info.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.JoinParent)
+                // データチェック
+                ArrayList ar = new ArrayList();
+                if (!ioReqHead.ExecuteReader(sql.ToString(), ref ar)) return false;
+
+                // 請求データ無は正常
+                if (ar.Count < 1) return true;
+
+                // 既に請求済
+                switch (m_ConstructionBaseInfo.JoinFlg)
                 {
-                    ////////////////////////////////////////////
-                    // 子工事で既に請求が実施されているか確認
-                    ////////////////////////////////////////////
-                    sql = "SELECT";
-                    sql += " ReqHead.RequestNo";
-                    sql += " FROM";
-                    sql += " ConstructionLink Link";
-                    sql += " INNER JOIN RequestHead ReqHead ON Link.FluctuationCode = ReqHead.ReqConstructionCode";
-                    sql += string.Format(" WHERE Link.ConstructionCode = {0} AND Link.LinkType = {1}",
-                                                m_ConstructionCode,
-                                                (int)ConstructionLink.DataTypeDef.JoinType);
+                    case (int)ConstructionBaseInfo.JoinFlgDef.JoinParent:
+                        // 結合親工事の場合
+                        msg = "既に子工事で請求済のため、選択工事での請求はできません。";
+                        break;
+                    case (int)ConstructionBaseInfo.JoinFlgDef.JoinChildren:
+                        msg = "既に親工事で請求済のため、選択工事での請求はできません。";
+                        break;
+                }
 
-                    ArrayList ar = new ArrayList();
+                return false;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
 
-                    if (ioReqHead.ExecuteReader(sql, ref ar) == false)
-                    {
-                        return false;
-                    }
+                return false;
+            }
+            finally
+            {
+                ioInfo.close(); ioInfo = null;
+                ioReqHead.close(); ioReqHead = null;
+            }
+        }
+        #endregion
 
-                    // 既に請求済
-                    if (ar.Count > 0)
+        #region 申請時チェック
+        /// <summary>
+        /// 申請時チェック
+        /// </summary>
+        /// <returns></returns>
+        private bool CheckPettion()
+        {
+            try
+            {
+
+                // エラー表示を一旦クリア
+                ClearErrorIndicate();
+
+                List<int> lstMainConstructionCode = new List<int>();
+                int nOldState = m_lstOrderState[m_nMaxOrderNo - 1];
+
+                // 状態が入力中以外は処理しない
+                if (nOldState != (int)ApprovalState.Entry) return true;
+
+                // 申請チェック
+                int ret = CheckApprovalMain(ref lstMainConstructionCode);
+
+                if (ret == (int)CheckResult.ErrorStatus)
+                {
+                    // エラー表示
+                    SetErrorIndicate(lstMainConstructionCode);
+
+                    ShowMessageBox("請求準備ではないため、請求承認の申請はできません。", "申請確認", MessageBoxButtons.OK, MessageBoxIcon.Error);
+
+                    return false;
+                }
+
+                if (ret == (int)CheckResult.NoError)
+                {
+                    if (ShowMessageBox("請求承認を申請してよろしいですか？", "申請確認", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
                     {
-                        msg = "既に子工事で請求済のため、選択工事での請求はできません。";
-
                         return false;
                     }
                 }
-                // 結合子工事の場合
-                else if (Info.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.JoinChildren)
+                else if (ret == (int)CheckResult.WarningUnmatch)
                 {
-                    ///////////////////////////////////////////
-                    // 親工事で請求済か確認
-                    ///////////////////////////////////////////
-                    sql = "SELECT";
-                    sql += " ReqHead.RequestNo";
-                    sql += " FROM";
-                    sql += " ConstructionLink Link";
-                    sql += " INNER JOIN RequestHead ReqHead ON Link.ConstructionCode = ReqHead.ReqConstructionCode";
-                    sql += string.Format(" WHERE Link.FluctuationCode = {0} AND Link.LinkType = {1}",
-                                                m_ConstructionCode,
-                                                (int)ConstructionLink.DataTypeDef.JoinType);
-
-                    ArrayList ar = new ArrayList();
-
-                    if (ioReqHead.ExecuteReader(sql, ref ar) == false)
+                    if (ShowMessageBox("工事金額が全て請求されていませんが、\n請求承認を申請してよろしいですか？", "申請確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
                     {
                         return false;
                     }
-
-                    // 既に請求済
-                    if (ar.Count > 0)
+                }
+                else if (ret == (int)CheckResult.WarningOver)
+                {
+                    if (ShowMessageBox("請求金額が工事金額を超えていますが、\n請求承認を申請してよろしいですか？", "申請確認", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)
                     {
-                        msg = "既に親工事で請求済のため、選択工事での請求はできません。";
-
                         return false;
                     }
-
                 }
+                else
+                {
+                    return false;
+                }
 
                 return true;
             }
@@ -829,24 +905,16 @@
             catch (Exception ex)
             {
                 logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
-
                 return false;
             }
-            finally
-            {
-                ioInfo.close();
-                ioInfo = null;
-                ioReqHead.close();
-                ioReqHead = null;
-            }
         }
         #endregion
 
-        #region 承認チェック
+        #region 承認チェック（内容チェック）
         /// <summary>
-        /// 承認チェック
+        /// 承認チェック（内容チェック）
         /// </summary>
-        private int CheckApproval(ref List<int> lstMainConstructionCode)
+        private int CheckApprovalMain(ref List<int> lstMainConstructionCode)
         {
             IOConstructionProgressDate ioProg = new IOConstructionProgressDate();
 
@@ -855,7 +923,7 @@
                 int nBalance = 0;
 
                 // 一括請求の場合
-                if (m_BaseConstructionBaseInfo.BillingSplitFlg == 0)
+                if (m_BaseConstructionBaseInfo.BillingSplitFlg == 0) 
                 {
                     Dictionary<int, RequestData> dicReqData = m_lstRequestData[m_nMaxOrderNo - 1];
 
@@ -920,11 +988,41 @@
                 ioProg = null;
             }
 
-
             return (int)CheckResult.NoError;
         }
         #endregion
 
+        #region 承認順チェック
+        /// <summary>
+        /// 承認順チェック
+        /// </summary>
+        /// <returns></returns>
+        private bool CheckApprovalOrder()
+        {
+            try
+            {
+                // 承認順序のチェック
+                if (!ClsCommonApproval.CheckProcessApprovalSequence(m_ConstructionCode
+                                                                        , (int)ClsExcute.ApprovalListNo.PurchaseOrderEntryApproval
+                                                                        , (m_OrderNo == 0) ? m_nMaxOrderNo : m_OrderNo))
+                {
+                    MessageBox.Show("１つ前の承認が確定していません。"
+                                    , "承認順番エラー"
+                                    , MessageBoxButtons.OK
+                                    , MessageBoxIcon.Error);
+                    return false;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
         #region エラー表示セット
         /// <summary>
         /// エラー表示セット
@@ -1001,8 +1099,9 @@
             IOConstructionBaseInfo cbDB = new IOConstructionBaseInfo();
             try
             {
-                string strSQL = cbDB.CreatePrimarykeyString(m_ConstructionCode);
-                if (!cbDB.SelectAction(strSQL, ref m_ConstructionBaseInfo)) return false;
+                StringBuilder strSQL = new StringBuilder();
+                 strSQL.Append(cbDB.CreatePrimarykeyString(m_ConstructionCode));
+                if (!cbDB.SelectAction(strSQL.ToString(), ref m_ConstructionBaseInfo)) return false;
 
                 return true;
             }
@@ -1131,32 +1230,24 @@
             IORequestData ioReqData = new IORequestData();
             IORequestDataDetail ioReqDetail = new IORequestDataDetail();
 
-            string strSQL;
+            StringBuilder strSQL = new StringBuilder();
 
             try
             {
                 // 工事基本情報の取得
-                GetConstructionBaseInfo(m_ConstructionCode, ref m_BaseConstructionBaseInfo);
+                if (GetConstructionBaseInfo(m_ConstructionCode, ref m_BaseConstructionBaseInfo))
+                    AddConstructionBaseInfo(m_ConstructionCode, m_BaseConstructionBaseInfo);
 
-                AddConstructionBaseInfo(m_ConstructionCode, m_BaseConstructionBaseInfo);
-
                 // 工事基本情報明細（文字列）の取得
                 GetConstructionBaseInfoDetail(m_ConstructionCode, ref m_dicBaseConstructionString);
 
-
                 // 請求ヘッダを取得
-                strSQL = ioReqHead.CreateSubkeyString(m_ConstructionCode);
-                strSQL += " Order by OrderNo Asc ";
-                if (ioReqHead.SelectAction(strSQL, ref m_lstRequestHead) == false)
-                {
-                    return;
-                }
+                strSQL.Append(ioReqHead.CreateSubkeyString(m_ConstructionCode));
+                strSQL.Append(" Order by OrderNo Asc ");
+                if (ioReqHead.SelectAction(strSQL.ToString(), ref m_lstRequestHead) == false) return;
 
                 // 請求ヘッダがない場合は請求データがＤＢ上に存在しないため終了
-                if (m_lstRequestHead.Count == 0)
-                {
-                    return;
-                }
+                if (m_lstRequestHead.Count < 1) return;
 
                 // 最新の請求Noおよび受付番号を確保
                 m_nRequestNo = m_lstRequestHead[m_lstRequestHead.Count - 1].RequestNo;
@@ -1166,26 +1257,18 @@
                 foreach (RequestHead ReqHead in m_lstRequestHead)
                 {
                     // 直近受付は、工事情報と絡めて実施
-                    if (ReqHead.OrderNo == m_nMaxOrderNo)
-                    {
-                        break;
-                    }
+                    if (ReqHead.OrderNo == m_nMaxOrderNo) break;
 
                     // 請求データリストの構築（ＤＢ取得用）
                     List<RequestData> lstData = new List<RequestData>();
 
                     // 請求データの取得(検索キーは請求Noのみ)
-                    strSQL = ioReqData.CreatePrimarykeyString(ReqHead.RequestNo);
-                    strSQL += " Order by MainConstructionCode Asc ";
-                    if (ioReqData.SelectAction(strSQL, ref lstData) == false)
-                    {
-                        return;
-                    }
+                    strSQL.Clear();
+                    strSQL.Append(ioReqData.CreatePrimarykeyString(ReqHead.RequestNo));
+                    strSQL.Append(" Order by MainConstructionCode Asc ");
+                    if (ioReqData.SelectAction(strSQL.ToString(), ref lstData) == false) return;
 
-                    if (lstData.Count == 0)
-                    {
-                        return;
-                    }
+                    if (lstData.Count < 1) return;
 
                     // 請求データ辞書（キー：本工事番号）の構築
                     Dictionary<int, RequestData> dicData = new Dictionary<int, RequestData>();
@@ -1200,17 +1283,12 @@
                         List<RequestDataDetail> lstDetail = new List<RequestDataDetail>();
 
                         // 請求データ明細の取得
-                        strSQL = ioReqDetail.CreatePrimarykeyString(ReqData.RequestNo, ReqData.MainConstructionCode);
-                        strSQL += " Order by ConstructionKind Asc, ConstructionCode Asc ";
-                        if (ioReqDetail.SelectAction(strSQL, ref lstDetail) == false)
-                        {
-                            return;
-                        }
+                        strSQL.Clear();
+                        strSQL.Append(ioReqDetail.CreatePrimarykeyString(ReqData.RequestNo, ReqData.MainConstructionCode));
+                        strSQL.Append(" Order by ConstructionKind Asc, ConstructionCode Asc ");
+                        if (ioReqDetail.SelectAction(strSQL.ToString(), ref lstDetail) == false) return;
 
-                        if (lstDetail.Count == 0)
-                        {
-                            return;
-                        }
+                        if (lstDetail.Count < 1) return;
 
                         dicDetail.Add(ReqData.MainConstructionCode, lstDetail);
 
@@ -1227,12 +1305,9 @@
             }
             finally
             {
-                ioReqHead.close();
-                ioReqHead = null;
-                ioReqData.close();
-                ioReqData = null;
-                ioReqDetail.close();
-                ioReqDetail = null;
+                ioReqHead.close(); ioReqHead = null;
+                ioReqData.close(); ioReqData = null;
+                ioReqDetail.close(); ioReqDetail = null;
             }
 
         }
@@ -1244,7 +1319,7 @@
         /// </summary>
         private void GetRequestDataAndDetail(int nRequestNo)
         {
-            string sql = "";
+            StringBuilder sql = new StringBuilder();
             string str = "";
 
             IORequestData ioReqData = new IORequestData();
@@ -1271,10 +1346,10 @@
                 }
 
                 List<RequestData> lstDataWork = new List<RequestData>();
-                sql = ioReqData.CreatePrimarykeyString(nRequestNo);
-                sql += " Order By MainConstructionCode Asc ";
+                sql.Append(ioReqData.CreatePrimarykeyString(nRequestNo));
+                sql.Append(" Order By MainConstructionCode Asc ");
 
-                if (ioReqData.SelectAction(sql, ref lstDataWork) == false)
+                if (ioReqData.SelectAction(sql.ToString(), ref lstDataWork) == false)
                 {
                     return;
                 }
@@ -1298,7 +1373,7 @@
                     info = new ConstructionBaseInfo();
                     dicString = new Dictionary<int, string>();
 
-                    GetConstructionBaseInfo(nMainConstructonCode, ref info);
+                    if (!GetConstructionBaseInfo(nMainConstructonCode, ref info)) continue;
                     AddConstructionBaseInfo(nMainConstructonCode, info);
 
                     GetConstructionBaseInfoDetail(nMainConstructonCode, ref dicString);
@@ -1333,9 +1408,10 @@
 
                     if (bNewMainConstruction == false)
                     {
-                        sql = ioReqDetail.CreatePrimarykeyString(nRequestNo, nMainConstructonCode);
-                        sql += " Order By ConstructionKind Asc, ConstructionCode Asc";
-                        if (ioReqDetail.SelectAction(sql, ref lstDetailWork) == false)
+                        sql.Clear();
+                        sql.Append(ioReqDetail.CreatePrimarykeyString(nRequestNo, nMainConstructonCode));
+                        sql.Append(" Order By ConstructionKind Asc, ConstructionCode Asc");
+                        if (ioReqDetail.SelectAction(sql.ToString(), ref lstDetailWork) == false)
                         {
                             return;
                         }
@@ -1373,7 +1449,7 @@
                         }
 
                         info = new ConstructionBaseInfo();
-                        GetConstructionBaseInfo(nConstructionCode, ref info);
+                        if (!GetConstructionBaseInfo(nConstructionCode, ref info)) continue;
                         AddConstructionBaseInfo(nConstructionCode, info);
 
                         dicString = new Dictionary<int, string>();
@@ -1562,7 +1638,7 @@
 
                     string str;
 
-                    GetConstructionBaseInfo(nConstructionCode, ref info);
+                    if (!GetConstructionBaseInfo(nConstructionCode, ref info)) continue;
                     AddConstructionBaseInfo(nConstructionCode, info);
 
                     GetConstructionBaseInfoDetail(nConstructionCode, ref dic);
@@ -1625,7 +1701,7 @@
                     foreach (int nConstructionCode in lstWork)
                     {
                         ConstructionBaseInfo info = new ConstructionBaseInfo();
-                        GetConstructionBaseInfo(nConstructionCode, ref info);
+                        if (!GetConstructionBaseInfo(nConstructionCode, ref info)) continue;
                         AddConstructionBaseInfo(nConstructionCode, info);
 
                         data = new RequestDataDetail();
@@ -1904,7 +1980,7 @@
                         }
                         else
                         {
-                            string str;
+                            string str = string.Empty;
 
                             // 工事件名は、退避した工事件名から（編集不可）
                             m_dicConstructionName.TryGetValue(ReqDetail.ConstructionCode, out str);
@@ -2097,14 +2173,15 @@
 
                     m_lstOrderState.Add(nState);
 
+                    // セットする回数カラムを表示する
+                    dgv1.Columns[tcol].Visible = true;
+
                     while (true)
                     {
-                        if (dgv1[(int)ColumnName.ConstructionCode, trow].Value == null)
-                        {
-                            break;
-                        }
+                        int nBreakCode = CommonMotions.cnvInt(dgv1[(int)ColumnName.ConstructionCode, trow].Value);
+                        if (nBreakCode == 0) break;
 
-                        string str = dgv1[(int)ColumnName.ConstructionCode, trow].Value.ToString();
+                        string str = CommonMotions.cnvString(dgv1[(int)ColumnName.ConstructionCode, trow].Value);
 
                         int key = CommonMotions.cnvInt(str);
 
@@ -2112,26 +2189,26 @@
 
                         dic.TryGetValue(key, out lst);
 
-                        if (lst != null)
+                        // データが無い場合は次のデータ行へ
+                        if (lst == null)
                         {
-                            for (int j = 0; j < lst.Count; j++)
+                            trow += 2;
+                            continue;
+                        }
+
+                        // 金額セット・カラム状態セット
+                        for (int j = 0; j < lst.Count; j++)
+                        {
+                            setAmount(tcol, trow, lst[j].RequestAmount);
+                            setAmount(tcol, trow + 1, lst[j].TaxAmount);
+
+                            if (nState == (int)ApprovalState.Entry)
                             {
-                                setAmount(tcol, trow, lst[j].RequestAmount);
-                                setAmount(tcol, trow + 1, lst[j].TaxAmount);
-
-                                if (nState == (int)ApprovalState.Entry)
-                                {
-                                    dgv1[tcol, trow].ReadOnly = (m_bEdit == true ? (false) : (true));
-                                    dgv1[tcol, trow + 1].ReadOnly = (m_bEdit == true ? (false) : (true));
-                                }
-                                trow += 2;
+                                dgv1[tcol, trow].ReadOnly = (m_bEdit == true ? (false) : (true));
+                                dgv1[tcol, trow + 1].ReadOnly = (m_bEdit == true ? (false) : (true));
                             }
-                        }
-                        else
-                        {
                             trow += 2;
                         }
-
                     }
                 }
             }
@@ -2489,17 +2566,19 @@
         /// <summary>
         /// 一括か分割かの判定
         /// </summary>
-        private bool BillingSplit()
+        private void BillingLabel()
         {
             // 分割払いの場合
             if (m_BaseConstructionBaseInfo.BillingSplitFlg == 1)
             {
-                return true;
+                SeparateBillingLabel.Visible = true;
+                CombinedOrderLabel.Visible = false;
             }
             // 一括の場合
             else
             {
-                return false;
+                SeparateBillingLabel.Visible = false;
+                CombinedOrderLabel.Visible = true;
             }
         }
         #endregion
@@ -3293,7 +3372,6 @@
         /// </summary>
         private bool UpdateRequestAmount(ref IOConstructionLedgerExcute ioLdgExcute, RequestHead ReqHead)
         {
-            string sql = "";
 
             IOConstructionLedgerDetail ioLdgDetail = new IOConstructionLedgerDetail();
             List<ConstructionLedgerDetail> lstDetail = new List<ConstructionLedgerDetail>();
@@ -3300,9 +3378,10 @@
 
             try
             {
+                StringBuilder sql = new StringBuilder();
                 // 請求金額の行番号を取得
-                sql = ioLdgDetail.CreatePrimarykeyString(m_nLeaderConstructionCode, (int)FrmConstructionLedger.DataGroup.BillingAmount);
-                if (ioLdgDetail.SelectAction(sql, ref lstDetail) == false)
+                sql.Append(ioLdgDetail.CreatePrimarykeyString(m_nLeaderConstructionCode, (int)FrmConstructionLedger.DataGroup.BillingAmount));
+                if (ioLdgDetail.SelectAction(sql.ToString(), ref lstDetail) == false)
                 {
                     return false;
                 }
@@ -3329,10 +3408,11 @@
 
                     dt = new DateTime(yyyy, mm, 1);
 
-                    sql = ioLdgExcute.CreatePrimarykeyString(m_nLeaderConstructionCode, lstDetail[0].GroupCount, lstDetail[0].LineCount);
-                    sql += string.Format(" AND DATE(TargetMonth) = STR_TO_DATE('{0}', '%Y%m%d') ", dt.ToString("yyyyMMdd"));
+                    sql.Clear();
+                    sql.Append(ioLdgExcute.CreatePrimarykeyString(m_nLeaderConstructionCode, lstDetail[0].GroupCount, lstDetail[0].LineCount));
+                    sql.AppendFormat(" AND DATE(TargetMonth) = STR_TO_DATE('{0}', '%Y%m%d') ", dt.ToString("yyyyMMdd"));
 
-                    if (ioLdgExcute.SelectAction(sql, ref lstExcute) == false)
+                    if (ioLdgExcute.SelectAction(sql.ToString(), ref lstExcute) == false)
                     {
                         return false;
                     }
@@ -3347,8 +3427,9 @@
 
                     // 請求金額から旧請求金額を差し引いた金額で更新
                     LdgExcute.PaymentAmount -= (double)m_lOldRequestAmount;
-                    sql = ioLdgExcute.CreatePrimarykeyString(LdgExcute.ConstructionCode, LdgExcute.GroupCount, LdgExcute.LineCount, LdgExcute.ColumnCount);
-                    if (ioLdgExcute.UpdateAction(sql, LdgExcute) == false)
+                    sql.Clear();
+                    sql.Append(ioLdgExcute.CreatePrimarykeyString(LdgExcute.ConstructionCode, LdgExcute.GroupCount, LdgExcute.LineCount, LdgExcute.ColumnCount));
+                    if (ioLdgExcute.UpdateAction(sql.ToString(), LdgExcute) == false)
                     {
                         return false;
                     }
@@ -3363,9 +3444,10 @@
                 dt = new DateTime(yyyy, mm, 1);
 
                 // 当該月の請求金額のレコードがあるか取得してみる
-                sql = ioLdgExcute.CreatePrimarykeyString(m_nLeaderConstructionCode, lstDetail[0].GroupCount, lstDetail[0].LineCount);
-                sql += string.Format(" AND DATE(TargetMonth) = STR_TO_DATE('{0}', '%Y%m%d') ", dt.ToString("yyyyMMdd"));
-                if (ioLdgExcute.SelectAction(sql, ref lstExcute) == false)
+                sql.Clear();
+                sql.Append(ioLdgExcute.CreatePrimarykeyString(m_nLeaderConstructionCode, lstDetail[0].GroupCount, lstDetail[0].LineCount));
+                sql.AppendFormat(" AND DATE(TargetMonth) = STR_TO_DATE('{0}', '%Y%m%d') ", dt.ToString("yyyyMMdd"));
+                if (ioLdgExcute.SelectAction(sql.ToString(), ref lstExcute) == false)
                 {
                     return false;
                 }
@@ -3377,8 +3459,9 @@
 
                     // 請求金額を加算して更新
                     LdgExcute.PaymentAmount += ReqHead.RequestAmount;
-                    sql = ioLdgExcute.CreatePrimarykeyString(LdgExcute.ConstructionCode, LdgExcute.GroupCount, LdgExcute.LineCount, LdgExcute.ColumnCount);
-                    if (ioLdgExcute.UpdateAction(sql, LdgExcute) == false)
+                    sql.Clear();
+                    sql.Append(ioLdgExcute.CreatePrimarykeyString(LdgExcute.ConstructionCode, LdgExcute.GroupCount, LdgExcute.LineCount, LdgExcute.ColumnCount));
+                    if (ioLdgExcute.UpdateAction(sql.ToString(), LdgExcute) == false)
                     {
                         return false;
                     }
@@ -3475,13 +3558,31 @@
             try
             {
                 // 工事基本情報取得クラス領域
-                var wrk = new ConstructionBaseInfo();
 
                 // 工事基本情報取得SQL
-                string strSQL = sbDB.CreatePrimarykeyString(constructionCode);
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(sbDB.CreatePrimarykeyString(constructionCode));
 
+                // 非受注は除く
+                int iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("非 受 注")).Key;
+                strSQL.AppendFormat(" AND CONSTRUCTIONSTATUSFLG != {0}", iStatus);
+
+                // 分割か一括かによって対象データが違う
+                switch (m_BaseConstructionBaseInfo.BillingSplitFlg)
+                {
+                    case (int)ConstructionBaseInfo.BillingSplitFlgDef.AllOnBilling:
+                        iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("請求準備")).Key;
+                        strSQL.AppendFormat(" AND CONSTRUCTIONSTATUSFLG >= {0}", iStatus);
+                        break;
+
+                    case (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling:
+                        iStatus = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("受　　注")).Key;
+                        strSQL.AppendFormat(" AND CONSTRUCTIONSTATUSFLG >= {0}", iStatus);
+                        break;
+                }
                 // 工事基本情報取得
-                if (!sbDB.SelectAction(strSQL, ref wrk)) return false;
+                ConstructionBaseInfo wrk = new ConstructionBaseInfo();
+                if (!sbDB.SelectAction(strSQL.ToString(), ref wrk)) return false;
 
                 data = wrk;
 
@@ -3517,18 +3618,19 @@
                 var wrk = new List<ConstructionBaseInfo>();
 
                 // 工事基本情報取得SQL
-                string strSQL = " WHERE ConstructionCode IN ";
-                strSQL += "( ";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(" WHERE ConstructionCode IN ");
+                strSQL.Append("( ");
                 foreach (int code in lstConstructionCode)
                 {
-                    strSQL += code.ToString();
-                    strSQL += (lstConstructionCode.IndexOf(code) != lstConstructionCode.Count - 1) ? ", " : string.Empty;
+                    strSQL.Append(code.ToString());
+                    strSQL.Append((lstConstructionCode.IndexOf(code) != lstConstructionCode.Count - 1) ? ", " : string.Empty);
                 }
-                strSQL += " ) ";
-                strSQL += "ORDER BY ConstructionCode ";
+                strSQL.Append(" ) ");
+                strSQL.Append(" ORDER BY ConstructionCode ");
 
                 // 工事基本情報取得
-                if (!sbDB.SelectAction(strSQL, ref wrk)) return false;
+                if (!sbDB.SelectAction(strSQL.ToString(), ref wrk)) return false;
 
                 datas = wrk;
             }
@@ -4115,7 +4217,12 @@
         }
         #endregion
 
-        #region 承認データの登録
+        #region 承認データの登録（未使用）
+        /// <summary>
+        /// 承認データの登録（未使用）
+        /// </summary>
+        /// <param name="nStatus"></param>
+        /// <returns></returns>
         private bool SetProcessApproval(int nStatus)
         {
             IOProcessApproval ioPrcApp = new IOProcessApproval();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInputList/FrmReqInputList.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInputList/FrmReqInputList.designer.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInputList/FrmReqInputList.designer.cs	(revision 369)
@@ -93,11 +93,11 @@
             this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label1.ForeColor = System.Drawing.Color.Black;
-            this.label1.Location = new System.Drawing.Point(440, 10);
+            this.label1.Location = new System.Drawing.Point(390, 10);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(400, 20);
+            this.label1.Size = new System.Drawing.Size(500, 20);
             this.label1.TabIndex = 6;
-            this.label1.Text = "工　事　情　報　一　覧";
+            this.label1.Text = "請　求　書　入　力　一　覧";
             this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // groupBox1
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInputList/FrmReqInputListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInputList/FrmReqInputListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInputList/FrmReqInputListAuxiliary.cs	(revision 369)
@@ -192,37 +192,27 @@
                     // �ꕔ�����L
                     // �@���Ǘ��ҁi�������̂݁j
 
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+                    strSQL.Append(" And (");
 
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
+                    strSQL.AppendFormat("(A.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSQL.AppendFormat("                   WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" And (A.SalesPersonCode IN (Select A1.PersonCode From PersonInChargeMaster A1");
-                    strSQL.AppendFormat(" And (A.SalesPersonCode IN (Select A1.PersonCode From {0} As A1", strChgDep.ToString());
-                    strSQL.Append("                                  Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
-                    strSQL.AppendFormat("                                                        WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0}", iStatus);
 
-                    // strSQL.Append(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From PersonInChargeMaster A3");
-                    strSQL.AppendFormat(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From {0} As A3", strChgDep.ToString());
-                    strSQL.Append("                                         Where A3.DepartmentCode IN (SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
-                    strSQL.AppendFormat("                                                               WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" And (");
+                    strSQL.AppendFormat("(A.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSQL.AppendFormat("                    WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From PersonInChargeMaster A5");
-                    strSQL.AppendFormat(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From {0} As A5", strChgDep.ToString());
-                    strSQL.Append("                                    Where A5.DepartmentCode IN (SELECT A6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A6");
-                    strSQL.AppendFormat("                                                          WHERE A6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3");
+                    strSQL.AppendFormat("                          WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.ConstructionInstructor IN (Select A7.PersonCode From PersonInChargeMaster A7");
-                    strSQL.AppendFormat(" Or A.ConstructionInstructor IN (Select A7.PersonCode From {0} As A7", strChgDep.ToString());
-                    strSQL.Append("                                       Where A7.DepartmentCode IN (SELECT A8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A8");
-                    strSQL.AppendFormat("                                                             WHERE A8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
+                    strSQL.AppendFormat("                          WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("))");
 
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0} And A.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
@@ -316,6 +306,11 @@
         {
             try
             {
+                // �����J�n�I���N����
+                int nTargetYear = (int)numUDConstPro.Value;
+                string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
+                string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+
                 int Status1 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("��������")).Key;
                 int Status2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("��@�@��")).Key;
                 int Status3 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�� �� ��")).Key;
@@ -323,16 +318,9 @@
                 strSQL.Append("SELECT * FROM (");
                 for (int i = 0; i < 2; i++)
                 {
-                    switch (i)
-                    {
-                        case 0:
-                            strSQL.Append("SELECT");
-                            break;
-                        case 1:
-                            strSQL.Append(" UNION SELECT");
-                            break;
-                    }
+                    if (i == 1) strSQL.Append(" UNION ");
 
+                    strSQL.Append("SELECT");
                     strSQL.Append(" DISTINCT A.CONSTRUCTIONCODE,");
                     strSQL.Append(" A.CONSTRUCTIONPERIOD,");
                     strSQL.Append(" B.DETAILSTRING,");
@@ -354,31 +342,47 @@
                     strSQL.Append(" FROM CONSTRUCTIONBASEINFO A");
 
                     strSQL.Append(" LEFT JOIN (SELECT CA.CONSTRUCTIONCODE, CA.SALESPERSONCODE PERSONCODE, CB.PERSONNAME PERSONNAME,");
-                    strSQL.Append(" CB.DEPARTMENTCODE DEPARTMENTCODE, CC.DEPARTMENTSTRING DEPARTMENTNAME,");
-                    strSQL.Append(" CB.DISPLAYORDER MANDISPORDER, CC.DISPLAYORDER DEPDISPORDER");
-                    strSQL.Append(" FROM CONSTRUCTIONBASEINFO CA");
-                    strSQL.Append(" LEFT JOIN PERSONINCHARGEMASTER CB ON CA.SALESPERSONCODE = CB.PERSONCODE");
-                    strSQL.Append(" LEFT JOIN DEPARTMENTMASTER CC ON CB.DEPARTMENTCODE = CC.DEPARTMENTCODE");
-                    strSQL.AppendFormat(" WHERE CA.CONSTRUCTIONPERIOD = {0}) C ON A.CONSTRUCTIONCODE = C.CONSTRUCTIONCODE", numUDConstPro.Value);
+                    strSQL.Append("                   ChgCB.DEPARTMENTCODE DEPARTMENTCODE, ChgCB.DepartmentName DEPARTMENTNAME,");
+                    strSQL.Append("                   CB.DISPLAYORDER MANDISPORDER, CC.DISPLAYORDER DEPDISPORDER");
+                    strSQL.Append("            FROM CONSTRUCTIONBASEINFO CA");
 
+                    strSQL.Append("                 Inner Join chgchargedep As ChgCB On CA.SALESPERSONCODE = ChgCB.PERSONCODE");
+                    strSQL.AppendFormat("                 And(DATE(ChgCB.StartDate) <= DATE('{0}')", strdtEnd);
+                    strSQL.AppendFormat("                 And DATE('{0}') <= DATE(ChgCB.CompDate))", strdtStart);
+
+                    strSQL.Append("                 LEFT JOIN PERSONINCHARGEMASTER CB ON ChgCB.PERSONCODE = CB.PERSONCODE");
+
+                    strSQL.Append("                 LEFT JOIN DEPARTMENTMASTER CC ON ChgCB.DEPARTMENTCODE = CC.DEPARTMENTCODE");
+
+                    strSQL.AppendFormat("      WHERE CA.CONSTRUCTIONPERIOD = {0}) C ON A.CONSTRUCTIONCODE = C.CONSTRUCTIONCODE", numUDConstPro.Value);
+
                     strSQL.Append(" LEFT JOIN (SELECT DA.CONSTRUCTIONCODE, DA.CONSTRUCTIONPERSONCODE PERSONCODE, DB.PERSONNAME PERSONNAME,");
-                    strSQL.Append(" DB.DEPARTMENTCODE DEPARTMENTCODE, DC.DEPARTMENTSTRING DEPARTMENTNAME,");
-                    strSQL.Append(" DB.DISPLAYORDER MANDISPORDER, DC.DISPLAYORDER DEPDISPORDER");
-                    strSQL.Append(" FROM CONSTRUCTIONBASEINFO DA");
-                    strSQL.Append(" LEFT JOIN PERSONINCHARGEMASTER DB ON DA.CONSTRUCTIONPERSONCODE = DB.PERSONCODE");
-                    strSQL.Append(" LEFT JOIN DEPARTMENTMASTER DC ON DB.DEPARTMENTCODE = DC.DEPARTMENTCODE");
+                    strSQL.Append("                   ChgDB.DEPARTMENTCODE DEPARTMENTCODE, ChgDB.DepartmentName DEPARTMENTNAME,");
+                    strSQL.Append("                   DB.DISPLAYORDER MANDISPORDER, DC.DISPLAYORDER DEPDISPORDER");
+                    strSQL.Append("            FROM CONSTRUCTIONBASEINFO DA");
 
-                    strSQL.AppendFormat(" WHERE DA.CONSTRUCTIONPERIOD = {0}) D ON A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE", numUDConstPro.Value);
+                    strSQL.Append("                 Inner Join chgchargedep As ChgDB On DA.CONSTRUCTIONPERSONCODE = ChgDB.PERSONCODE");
+                    strSQL.AppendFormat("                 And(DATE(ChgDB.StartDate) <= DATE('{0}')", strdtEnd);
+                    strSQL.AppendFormat("                 And DATE('{0}') <= DATE(ChgDB.CompDate))", strdtStart);
+
+                    strSQL.Append("                 LEFT JOIN PERSONINCHARGEMASTER DB ON ChgDB.PERSONCODE = DB.PERSONCODE");
+
+                    strSQL.Append("                 LEFT JOIN DEPARTMENTMASTER DC ON ChgDB.DEPARTMENTCODE = DC.DEPARTMENTCODE");
+
+                    strSQL.AppendFormat("      WHERE DA.CONSTRUCTIONPERIOD = {0}) D ON A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE", numUDConstPro.Value);
+
+                    strSQL.Append(" INNER JOIN CONSTRUCTIONBASEINFODETAIL B On A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
+
                     switch (i)
                     {
                         case 0:
-                            strSQL.Append(", CONSTRUCTIONBASEINFODETAIL B");
-                            strSQL.Append(" LEFT JOIN REQUESTDATA E ON E.MAINCONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
+                            strSQL.Append(" LEFT");
                             break;
                         case 1:
-                            strSQL.Append(", CONSTRUCTIONBASEINFODETAIL B, REQUESTDATA E");
+                            strSQL.Append(" Inner");
                             break;
                     }
+                    strSQL.Append(" JOIN REQUESTDATA E ON E.MAINCONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
 
                     strSQL.AppendFormat(" WHERE A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
                     strSQL.AppendFormat(" AND A.JOINFLG != {0}", (int)ConstructionBaseInfo.JoinFlgDef.JoinChildren);
@@ -386,30 +390,23 @@
 
                     strSQL.AppendFormat(" AND A.BILLINGSPLITFLG = {0}", m_ExecuteSubFlg);
 
-                    strSQL.Append(" AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
                     strSQL.AppendFormat(" AND B.DETAILNO = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstructionName);
 
                     strSQL.AppendFormat(" AND A.CONSTRUCTIONSTATUSFLG != {0}", Status3);
-                    switch (i)
-                    {
-                        case 0:
-                            switch (m_ExecuteSubFlg)
-                            {
-                                case (int)ConstructionBaseInfo.BillingSplitFlgDef.AllOnBilling:
-                                    // �����ꊇ����
-                                    strSQL.AppendFormat(" AND {0} <= A.CONSTRUCTIONSTATUSFLG", Status1);
-                                    break;
-                                case (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling:
-                                    // ������������
-                                    strSQL.AppendFormat(" AND {0} <= A.CONSTRUCTIONSTATUSFLG", Status2);
-                                    break;
-                                default:
-                                    break;
-                            }
-                            break;
-                        case 1:
-                            strSQL.Append(" AND E.MAINCONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
-                            break;
+                    if (i == 0) {
+                        switch (m_ExecuteSubFlg)
+                        {
+                            case (int)ConstructionBaseInfo.BillingSplitFlgDef.AllOnBilling:
+                                // �����ꊇ����
+                                strSQL.AppendFormat(" AND {0} <= A.CONSTRUCTIONSTATUSFLG", Status1);
+                                break;
+                            case (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling:
+                                // ������������
+                                strSQL.AppendFormat(" AND {0} <= A.CONSTRUCTIONSTATUSFLG", Status2);
+                                break;
+                            default:
+                                break;
+                        }
                     }
 
                     // �������I������Ă���ꍇ
@@ -649,9 +646,6 @@
                 // �������̕\��
                 lblProcessTitil.Text = string.Format("{0}{1}", ClsExcute.ProcessExecuteName[m_ExecuteFlg].Replace("�|", ""), strSubTitle);
 
-                // �O���b�h�̍s��0�ɖ߂�
-                dgv.Rows.Clear();
-
                 // �f�[�^�\��
                 DataDisplay();
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmCancelInvoice.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmCancelInvoice.Designer.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmCancelInvoice.Designer.cs	(revision 369)
@@ -0,0 +1,377 @@
+﻿namespace ProcessManagement.Forms.DataEntry
+{
+    partial class FrmCancelInvoice
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.btnExecProc1 = new System.Windows.Forms.Button();
+            this.btnCancel = new System.Windows.Forms.Button();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.groupBoxEx2 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
+            this.textBox1 = new System.Windows.Forms.TextBox();
+            this.label6 = new System.Windows.Forms.Label();
+            this.lblValue05 = new System.Windows.Forms.Label();
+            this.label5 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.lblValue04 = new System.Windows.Forms.Label();
+            this.groupBoxEx1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
+            this.dgv1 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.label1 = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
+            this.lblValue03 = new System.Windows.Forms.Label();
+            this.lblValue02 = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
+            this.lblValue01 = new System.Windows.Forms.Label();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.col2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.col3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.panel1.SuspendLayout();
+            this.groupBoxEx2.SuspendLayout();
+            this.groupBoxEx1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // btnExecProc1
+            // 
+            this.btnExecProc1.BackColor = System.Drawing.Color.Green;
+            this.btnExecProc1.FlatStyle = System.Windows.Forms.FlatStyle.System;
+            this.btnExecProc1.ForeColor = System.Drawing.Color.White;
+            this.btnExecProc1.Location = new System.Drawing.Point(683, 10);
+            this.btnExecProc1.Name = "btnExecProc1";
+            this.btnExecProc1.Size = new System.Drawing.Size(140, 40);
+            this.btnExecProc1.TabIndex = 0;
+            this.btnExecProc1.Text = "取消実行";
+            this.btnExecProc1.UseVisualStyleBackColor = false;
+            this.btnExecProc1.Click += new System.EventHandler(this.btnExecProc1_Click);
+            // 
+            // btnCancel
+            // 
+            this.btnCancel.BackColor = System.Drawing.Color.Red;
+            this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
+            this.btnCancel.ForeColor = System.Drawing.Color.White;
+            this.btnCancel.Location = new System.Drawing.Point(835, 10);
+            this.btnCancel.Name = "btnCancel";
+            this.btnCancel.Size = new System.Drawing.Size(140, 40);
+            this.btnCancel.TabIndex = 3;
+            this.btnCancel.Text = "キャンセル";
+            this.btnCancel.UseVisualStyleBackColor = false;
+            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.panel1.Controls.Add(this.btnCancel);
+            this.panel1.Controls.Add(this.btnExecProc1);
+            this.panel1.Location = new System.Drawing.Point(-3, 504);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(990, 60);
+            this.panel1.TabIndex = 3;
+            // 
+            // groupBoxEx2
+            // 
+            this.groupBoxEx2.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.groupBoxEx2.BorderColor = System.Drawing.Color.Red;
+            this.groupBoxEx2.Controls.Add(this.textBox1);
+            this.groupBoxEx2.Controls.Add(this.label6);
+            this.groupBoxEx2.Controls.Add(this.lblValue05);
+            this.groupBoxEx2.Controls.Add(this.label5);
+            this.groupBoxEx2.Controls.Add(this.label4);
+            this.groupBoxEx2.Controls.Add(this.lblValue04);
+            this.groupBoxEx2.Location = new System.Drawing.Point(12, 270);
+            this.groupBoxEx2.Name = "groupBoxEx2";
+            this.groupBoxEx2.Size = new System.Drawing.Size(960, 220);
+            this.groupBoxEx2.TabIndex = 20;
+            this.groupBoxEx2.TabStop = false;
+            // 
+            // textBox1
+            // 
+            this.textBox1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.textBox1.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.textBox1.Location = new System.Drawing.Point(10, 41);
+            this.textBox1.MaxLength = 500;
+            this.textBox1.Multiline = true;
+            this.textBox1.Name = "textBox1";
+            this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
+            this.textBox1.Size = new System.Drawing.Size(944, 170);
+            this.textBox1.TabIndex = 13;
+            this.textBox1.Text = "\r\n";
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Location = new System.Drawing.Point(620, 13);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(114, 19);
+            this.label6.TabIndex = 12;
+            this.label6.Text = "取　消　日";
+            // 
+            // lblValue05
+            // 
+            this.lblValue05.BackColor = System.Drawing.Color.White;
+            this.lblValue05.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.lblValue05.Location = new System.Drawing.Point(754, 9);
+            this.lblValue05.Name = "lblValue05";
+            this.lblValue05.Size = new System.Drawing.Size(200, 26);
+            this.lblValue05.TabIndex = 11;
+            this.lblValue05.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label5.ForeColor = System.Drawing.Color.Red;
+            this.label5.Location = new System.Drawing.Point(10, 12);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(171, 21);
+            this.label5.TabIndex = 10;
+            this.label5.Text = "取　消　理　由";
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Location = new System.Drawing.Point(270, 13);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(114, 19);
+            this.label4.TabIndex = 10;
+            this.label4.Text = "取消担当者";
+            // 
+            // lblValue04
+            // 
+            this.lblValue04.BackColor = System.Drawing.Color.White;
+            this.lblValue04.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.lblValue04.Location = new System.Drawing.Point(404, 9);
+            this.lblValue04.Name = "lblValue04";
+            this.lblValue04.Size = new System.Drawing.Size(200, 26);
+            this.lblValue04.TabIndex = 9;
+            this.lblValue04.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // groupBoxEx1
+            // 
+            this.groupBoxEx1.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.groupBoxEx1.BorderColor = System.Drawing.Color.SteelBlue;
+            this.groupBoxEx1.Controls.Add(this.dgv1);
+            this.groupBoxEx1.Controls.Add(this.label1);
+            this.groupBoxEx1.Controls.Add(this.label3);
+            this.groupBoxEx1.Controls.Add(this.lblValue03);
+            this.groupBoxEx1.Controls.Add(this.lblValue02);
+            this.groupBoxEx1.Controls.Add(this.label2);
+            this.groupBoxEx1.Controls.Add(this.lblValue01);
+            this.groupBoxEx1.Location = new System.Drawing.Point(12, 10);
+            this.groupBoxEx1.Name = "groupBoxEx1";
+            this.groupBoxEx1.Size = new System.Drawing.Size(960, 250);
+            this.groupBoxEx1.TabIndex = 19;
+            this.groupBoxEx1.TabStop = false;
+            this.groupBoxEx1.Text = "取消請求書";
+            // 
+            // dgv1
+            // 
+            this.dgv1.AllowUserToAddRows = false;
+            this.dgv1.AllowUserToDeleteRows = false;
+            this.dgv1.AllowUserToResizeColumns = false;
+            this.dgv1.AllowUserToResizeRows = false;
+            this.dgv1.BackgroundColor = System.Drawing.Color.White;
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, 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.dgv1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
+            this.dgv1.ColumnHeadersHeight = 24;
+            this.dgv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1,
+            this.col2,
+            this.col3});
+            this.dgv1.EnableHeadersVisualStyles = false;
+            this.dgv1.Location = new System.Drawing.Point(10, 94);
+            this.dgv1.Name = "dgv1";
+            this.dgv1.RowHeadersVisible = false;
+            this.dgv1.RowHeadersWidth = 20;
+            this.dgv1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dgv1.RowTemplate.Height = 20;
+            this.dgv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+            this.dgv1.Size = new System.Drawing.Size(944, 150);
+            this.dgv1.TabIndex = 44;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(10, 65);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(114, 19);
+            this.label1.TabIndex = 7;
+            this.label1.Text = "請　求　日";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(360, 65);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(126, 19);
+            this.label3.TabIndex = 8;
+            this.label3.Text = "請 求 金 額";
+            // 
+            // lblValue03
+            // 
+            this.lblValue03.BackColor = System.Drawing.Color.White;
+            this.lblValue03.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.lblValue03.Location = new System.Drawing.Point(494, 61);
+            this.lblValue03.Name = "lblValue03";
+            this.lblValue03.Size = new System.Drawing.Size(200, 26);
+            this.lblValue03.TabIndex = 5;
+            this.lblValue03.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // lblValue02
+            // 
+            this.lblValue02.BackColor = System.Drawing.Color.White;
+            this.lblValue02.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.lblValue02.Location = new System.Drawing.Point(144, 61);
+            this.lblValue02.Name = "lblValue02";
+            this.lblValue02.Size = new System.Drawing.Size(200, 26);
+            this.lblValue02.TabIndex = 6;
+            this.lblValue02.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(10, 30);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(126, 19);
+            this.label2.TabIndex = 4;
+            this.label2.Text = "請 求 先 名";
+            // 
+            // lblValue01
+            // 
+            this.lblValue01.BackColor = System.Drawing.Color.White;
+            this.lblValue01.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+            this.lblValue01.Location = new System.Drawing.Point(144, 26);
+            this.lblValue01.Name = "lblValue01";
+            this.lblValue01.Size = new System.Drawing.Size(800, 26);
+            this.lblValue01.TabIndex = 3;
+            this.lblValue01.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // Column1
+            // 
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle6.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle6.ForeColor = System.Drawing.Color.Black;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle6;
+            this.Column1.Frozen = true;
+            this.Column1.HeaderText = "№";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column1.Width = 60;
+            // 
+            // col2
+            // 
+            dataGridViewCellStyle7.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.col2.DefaultCellStyle = dataGridViewCellStyle7;
+            this.col2.Frozen = true;
+            this.col2.HeaderText = "請　求　案　件";
+            this.col2.Name = "col2";
+            this.col2.ReadOnly = true;
+            this.col2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.col2.Width = 664;
+            // 
+            // col3
+            // 
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle8.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle8.ForeColor = System.Drawing.Color.Black;
+            this.col3.DefaultCellStyle = dataGridViewCellStyle8;
+            this.col3.Frozen = true;
+            this.col3.HeaderText = "請　求　金　額";
+            this.col3.Name = "col3";
+            this.col3.ReadOnly = true;
+            this.col3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.col3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.col3.Width = 200;
+            // 
+            // FrmCancelInvoice
+            // 
+            this.AcceptButton = this.btnExecProc1;
+            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(984, 561);
+            this.Controls.Add(this.groupBoxEx2);
+            this.Controls.Add(this.groupBoxEx1);
+            this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+            this.KeyPreview = true;
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "FrmCancelInvoice";
+            this.ShowIcon = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Text = "請　求　書　取　消　処　理";
+            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmStatusAndDate_FormClosed);
+            this.Load += new System.EventHandler(this.FrmCostStructureDiag_Load);
+            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmCancelInvoice_KeyDown);
+            this.panel1.ResumeLayout(false);
+            this.groupBoxEx2.ResumeLayout(false);
+            this.groupBoxEx2.PerformLayout();
+            this.groupBoxEx1.ResumeLayout(false);
+            this.groupBoxEx1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button btnExecProc1;
+        private System.Windows.Forms.Button btnCancel;
+        private System.Windows.Forms.Panel panel1;
+        private CustomControls.GroupBoxEx groupBoxEx1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Label lblValue03;
+        private System.Windows.Forms.Label lblValue02;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Label lblValue01;
+        private CustomControls.GroupBoxEx groupBoxEx2;
+        private System.Windows.Forms.TextBox textBox1;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.Label lblValue05;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.Label lblValue04;
+        private CustomControls.DataGridViewEX dgv1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn col2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn col3;
+    }
+}
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmCancelInvoice.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmCancelInvoice.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmCancelInvoice.cs	(revision 369)
@@ -0,0 +1,349 @@
+﻿using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using System.Threading.Tasks;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+using ProcessManagement.Forms.SubForms;
+
+namespace ProcessManagement.Forms.DataEntry
+{
+    public partial class FrmCancelInvoice : Form
+    {
+        #region ログ使用定義
+        //log4netログを使用する
+        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+        private enum DispColumn
+        {
+            No = 0,
+            Name,
+            Amount,
+        }
+        #endregion
+
+        #region 変数
+        /// <summary>
+        /// 請求書番号
+        /// </summary>
+        private int m_InvoiceNo = 0;
+
+        /// <summary>
+        /// 取消理由
+        /// </summary>
+        private string m_Reason = string.Empty;
+
+        /// <summary>
+        /// 起動時補助フラグ
+        /// </summary>
+        private int m_ExecuteSubFlg = 0;
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        /// 請求書番号
+        /// </summary>
+        public int InvoiceNo
+        {
+            get { return m_InvoiceNo; }
+            set { m_InvoiceNo = value; }
+        }
+
+        /// <summary>
+        /// 起動時補助フラグ
+        /// </summary>
+        public int ExecuteSubFlg
+        {
+            get { return m_ExecuteSubFlg; }
+            set { m_ExecuteSubFlg = value; }
+        }
+
+        /// <summary>
+        /// 取消理由
+        /// </summary>
+        public string Reason
+        {
+            get { return m_Reason; }
+            set { m_Reason = value; }
+        }
+
+        #endregion
+
+        #region ×ボタン
+        /// <summary>
+        /// ×ボタン押下処理
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmStatusAndDate_FormClosed(object sender, FormClosedEventArgs e)
+        {
+        }
+        #endregion
+
+        #region コンストラクタ
+        /// <summary>
+        /// フォーム初期化
+        /// </summary>
+        public FrmCancelInvoice()
+        {
+            InitializeComponent();
+        }
+        #endregion
+
+        #region フォームロード
+        /// <summary>
+        /// フォームロード
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmCostStructureDiag_Load(object sender, EventArgs e)
+        {
+            // フォームサイズ固定
+            this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height);
+
+            // 初期表示
+            SetDisplayData();
+        }
+        #endregion
+
+        #region キャンセルボタン
+        /// <summary>
+        /// キャンセルボタン追加
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnCancel_Click(object sender, EventArgs e)
+        {
+            this.DialogResult = DialogResult.Cancel;
+            this.Close();
+        }
+        #endregion
+
+        #region 取消実行ボタン
+        /// <summary>
+        /// 取消実行ボタン
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnExecProc1_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                // データを画面より取り込む
+                GetEditData();
+
+                this.DialogResult = DialogResult.OK;
+
+                this.Close();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region コメントを画面より取り込む
+        /// <summary>
+        /// コメントを画面より取り込む
+        /// </summary>
+        private void GetEditData()
+        {
+            try
+            {
+                m_Reason = textBox1.Text;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region Entryキーでの移動処理
+        /// <summary>
+        /// Entryキーでの移動処理
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmCancelInvoice_KeyDown(object sender, KeyEventArgs e)
+        {
+            //AltかCtrlキーが押されている時は無視する
+            if (e.Alt || e.Control) return;
+
+            //Enterキーが押されているか確認
+            if (e.KeyCode == Keys.Enter)
+            {
+                //あたかもTabキーが押されたかのようにする。
+                // Shiftが押されている時は前のコントロールへフォーカスを移動
+                this.ProcessTabKey(!e.Shift);
+
+                e.Handled = true;
+                //.NET Framework 2.0以降
+                e.SuppressKeyPress = true;
+            }
+        }
+        #endregion
+
+        #region データ表示処理
+        /// <summary>
+        /// データ表示
+        /// </summary>
+        /// <returns></returns>
+        private void SetDisplayData()
+        {
+            try
+            {
+                // SQL作成
+                StringBuilder strSQL = new StringBuilder();
+                CreateSQL(ref strSQL);
+
+                // データ取得
+                ArrayList arrayList = new ArrayList();
+                if(!GetDispData(strSQL, ref arrayList))
+                {
+                    this.DialogResult = DialogResult.Cancel;
+                    this.Close();
+                    return;
+                }
+
+                // 表示データ画面セット
+                SetDispData(arrayList);
+}
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region データ検索SQL作成
+        /// <summary>
+        /// データ検索SQL作成
+        /// </summary>
+        private void CreateSQL(ref StringBuilder strSQL)
+        {
+            try
+            {
+                strSQL.Clear();
+                strSQL.Append("Select");
+                strSQL.Append(" A.INVOICENO");
+                strSQL.Append(", A.REQUESTNAME");
+                strSQL.Append(", A.REQUESTDATE");
+                strSQL.Append(", A.TOTALAMOUNT");
+                strSQL.Append(", B.REQCONSTRUCTIONNAME");
+                strSQL.Append(", B.ORDERNO");
+                strSQL.Append(", C.RemPerson");
+                strSQL.Append(", D.PersonName");
+                strSQL.Append(", C.RemDate");
+                strSQL.Append(", C.RemComment");
+                strSQL.Append(" From invoicedata As A");
+                strSQL.Append(" Inner Join requesthead As B On B.INVOICENO = A.INVOICENO");
+                strSQL.Append(" Left Join RemInvoiceData As C On C.InvoiceNo = A.INVOICENO");
+                strSQL.Append(" Left Join personinchargemaster As D On D.PersonCode = C.RemPerson");
+                strSQL.AppendFormat(" Where A.INVOICENO = {0}", m_InvoiceNo);
+                strSQL.Append(" Order By B.REQUESTNO");
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 表示データ取得
+        /// <summary>
+        /// 表示データ取得
+        /// </summary>
+        /// <returns></returns>
+        private bool GetDispData(StringBuilder strSQL, ref ArrayList arrayList)
+        {
+            IOInvoiceData InvDB = new IOInvoiceData();
+            try
+            {
+                if (!InvDB.ExecuteReader(strSQL.ToString(), ref arrayList)) return false;
+                if (arrayList.Count < 1) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                InvDB.close(); InvDB = null;
+            }
+        }
+        #endregion
+
+        #region 表示データ画面セット
+        /// <summary>
+        /// 表示データ画面セット
+        /// </summary>
+        private void SetDispData(ArrayList arrayList)
+        {
+            try
+            {
+                object[] objFirst = (object[])arrayList[0];
+
+                lblValue01.Text = CommonMotions.cnvString(objFirst[1]);                 // 請求先名
+                string wrk = string.Empty;
+                if (CommonMotions.cnvDate(objFirst[2]) != DateTime.MinValue)
+                {
+                    wrk = CommonMotions.cnvDate(objFirst[2]).ToShortDateString();
+                }
+                lblValue02.Text = wrk;                                                  // 請求日
+                lblValue03.Text = CommonMotions.cnvInt(objFirst[3]).ToString("#,0");    // 請求金額
+                wrk = CommonMotions.LoginUserData.PersonName;
+                if (CommonMotions.cnvString(objFirst[7]).ToString().Length > 0)
+                {
+                    wrk = CommonMotions.cnvString(objFirst[7]);
+                }
+                lblValue04.Text = wrk;                                                  // 取消担当者
+                wrk = DateTime.Now.ToShortDateString();
+                if (CommonMotions.cnvDate(objFirst[8]) != DateTime.MinValue)
+                {
+                    wrk = CommonMotions.cnvDate(objFirst[8]).ToShortDateString();
+                }
+                lblValue05.Text = wrk;                                                  // 取消日
+                textBox1.Text = CommonMotions.cnvString(objFirst[9]);                   // 取消理由
+
+                int nCnt = 1;
+                foreach (object[] objRec in arrayList)
+                {
+                    if (m_ExecuteSubFlg == (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling)
+                    {
+                        wrk = string.Format("{0}：{1}回目"
+                                            , CommonMotions.cnvString(objRec[4])
+                                            , CommonMotions.cnvInt(objRec[5]));
+                    }
+                    else
+                    {
+                        wrk = CommonMotions.cnvString(objRec[4]);
+                    }
+                    dgv1.Rows.Add(nCnt++, wrk, CommonMotions.cnvLong(objRec[3]).ToString("#,0"));
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmCancelInvoice.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmCancelInvoice.resx	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmCancelInvoice.resx	(revision 369)
@@ -0,0 +1,129 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrint.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrint.Designer.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrint.Designer.cs	(revision 369)
@@ -0,0 +1,282 @@
+﻿namespace ProcessManagement.Forms.DataEntry
+{
+    partial class FrmRequestPrint
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.btnExecProc1 = new System.Windows.Forms.Button();
+            this.btnCancel = new System.Windows.Forms.Button();
+            this.btnExecProc2 = new System.Windows.Forms.Button();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
+            this.groupBox2 = new System.Windows.Forms.GroupBox();
+            this.rdNoPrint = new System.Windows.Forms.RadioButton();
+            this.rdPrint = new System.Windows.Forms.RadioButton();
+            this.groupBox3 = new System.Windows.Forms.GroupBox();
+            this.txtComment5 = new System.Windows.Forms.TextBox();
+            this.txtComment4 = new System.Windows.Forms.TextBox();
+            this.txtComment3 = new System.Windows.Forms.TextBox();
+            this.txtComment2 = new System.Windows.Forms.TextBox();
+            this.txtComment1 = new System.Windows.Forms.TextBox();
+            this.groupBox4 = new System.Windows.Forms.GroupBox();
+            this.txtOrderersName = new System.Windows.Forms.TextBox();
+            this.panel1.SuspendLayout();
+            this.groupBox2.SuspendLayout();
+            this.groupBox3.SuspendLayout();
+            this.groupBox4.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // btnExecProc1
+            // 
+            this.btnExecProc1.BackColor = System.Drawing.Color.Green;
+            this.btnExecProc1.FlatStyle = System.Windows.Forms.FlatStyle.System;
+            this.btnExecProc1.ForeColor = System.Drawing.Color.White;
+            this.btnExecProc1.Location = new System.Drawing.Point(185, 10);
+            this.btnExecProc1.Name = "btnExecProc1";
+            this.btnExecProc1.Size = new System.Drawing.Size(140, 40);
+            this.btnExecProc1.TabIndex = 0;
+            this.btnExecProc1.Text = "印刷のみ";
+            this.btnExecProc1.UseVisualStyleBackColor = false;
+            this.btnExecProc1.Click += new System.EventHandler(this.btnExecProc1_Click);
+            // 
+            // btnCancel
+            // 
+            this.btnCancel.BackColor = System.Drawing.Color.Red;
+            this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
+            this.btnCancel.ForeColor = System.Drawing.Color.White;
+            this.btnCancel.Location = new System.Drawing.Point(477, 10);
+            this.btnCancel.Name = "btnCancel";
+            this.btnCancel.Size = new System.Drawing.Size(140, 40);
+            this.btnCancel.TabIndex = 3;
+            this.btnCancel.Text = "キャンセル";
+            this.btnCancel.UseVisualStyleBackColor = false;
+            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+            // 
+            // btnExecProc2
+            // 
+            this.btnExecProc2.BackColor = System.Drawing.Color.Green;
+            this.btnExecProc2.FlatStyle = System.Windows.Forms.FlatStyle.System;
+            this.btnExecProc2.ForeColor = System.Drawing.Color.White;
+            this.btnExecProc2.Location = new System.Drawing.Point(331, 10);
+            this.btnExecProc2.Name = "btnExecProc2";
+            this.btnExecProc2.Size = new System.Drawing.Size(140, 40);
+            this.btnExecProc2.TabIndex = 1;
+            this.btnExecProc2.Text = "保存のみ";
+            this.btnExecProc2.UseVisualStyleBackColor = false;
+            this.btnExecProc2.Click += new System.EventHandler(this.btnExecProc2_Click);
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.panel1.Controls.Add(this.btnCancel);
+            this.panel1.Controls.Add(this.btnExecProc1);
+            this.panel1.Controls.Add(this.btnExecProc2);
+            this.panel1.Location = new System.Drawing.Point(0, 442);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(652, 60);
+            this.panel1.TabIndex = 3;
+            // 
+            // dateTimePicker1
+            // 
+            this.dateTimePicker1.Font = new System.Drawing.Font("ＭＳ 明朝", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.dateTimePicker1.ImeMode = System.Windows.Forms.ImeMode.Disable;
+            this.dateTimePicker1.Location = new System.Drawing.Point(312, 18);
+            this.dateTimePicker1.Name = "dateTimePicker1";
+            this.dateTimePicker1.Size = new System.Drawing.Size(179, 28);
+            this.dateTimePicker1.TabIndex = 5;
+            this.dateTimePicker1.TabStop = false;
+            // 
+            // groupBox2
+            // 
+            this.groupBox2.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.groupBox2.Controls.Add(this.rdNoPrint);
+            this.groupBox2.Controls.Add(this.rdPrint);
+            this.groupBox2.Controls.Add(this.dateTimePicker1);
+            this.groupBox2.Location = new System.Drawing.Point(16, 80);
+            this.groupBox2.Name = "groupBox2";
+            this.groupBox2.Size = new System.Drawing.Size(620, 101);
+            this.groupBox2.TabIndex = 7;
+            this.groupBox2.TabStop = false;
+            this.groupBox2.Text = "請求日";
+            // 
+            // rdNoPrint
+            // 
+            this.rdNoPrint.AutoSize = true;
+            this.rdNoPrint.Location = new System.Drawing.Point(175, 58);
+            this.rdNoPrint.Name = "rdNoPrint";
+            this.rdNoPrint.Size = new System.Drawing.Size(363, 23);
+            this.rdNoPrint.TabIndex = 14;
+            this.rdNoPrint.Text = "印字しない（　　年　　月　　日）";
+            this.rdNoPrint.UseVisualStyleBackColor = true;
+            this.rdNoPrint.CheckedChanged += new System.EventHandler(this.radioButton3_CheckedChanged);
+            // 
+            // rdPrint
+            // 
+            this.rdPrint.AutoSize = true;
+            this.rdPrint.Checked = true;
+            this.rdPrint.Location = new System.Drawing.Point(175, 22);
+            this.rdPrint.Name = "rdPrint";
+            this.rdPrint.Size = new System.Drawing.Size(111, 23);
+            this.rdPrint.TabIndex = 15;
+            this.rdPrint.TabStop = true;
+            this.rdPrint.Text = "印字する";
+            this.rdPrint.UseVisualStyleBackColor = true;
+            // 
+            // groupBox3
+            // 
+            this.groupBox3.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.groupBox3.Controls.Add(this.txtComment5);
+            this.groupBox3.Controls.Add(this.txtComment4);
+            this.groupBox3.Controls.Add(this.txtComment3);
+            this.groupBox3.Controls.Add(this.txtComment2);
+            this.groupBox3.Controls.Add(this.txtComment1);
+            this.groupBox3.Location = new System.Drawing.Point(15, 190);
+            this.groupBox3.Name = "groupBox3";
+            this.groupBox3.Size = new System.Drawing.Size(621, 200);
+            this.groupBox3.TabIndex = 14;
+            this.groupBox3.TabStop = false;
+            this.groupBox3.Text = "コメント";
+            // 
+            // txtComment5
+            // 
+            this.txtComment5.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.txtComment5.Location = new System.Drawing.Point(17, 161);
+            this.txtComment5.MaxLength = 60;
+            this.txtComment5.Name = "txtComment5";
+            this.txtComment5.Size = new System.Drawing.Size(587, 26);
+            this.txtComment5.TabIndex = 5;
+            // 
+            // txtComment4
+            // 
+            this.txtComment4.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.txtComment4.Location = new System.Drawing.Point(17, 127);
+            this.txtComment4.MaxLength = 60;
+            this.txtComment4.Name = "txtComment4";
+            this.txtComment4.Size = new System.Drawing.Size(587, 26);
+            this.txtComment4.TabIndex = 4;
+            // 
+            // txtComment3
+            // 
+            this.txtComment3.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.txtComment3.Location = new System.Drawing.Point(17, 94);
+            this.txtComment3.MaxLength = 60;
+            this.txtComment3.Name = "txtComment3";
+            this.txtComment3.Size = new System.Drawing.Size(587, 26);
+            this.txtComment3.TabIndex = 3;
+            // 
+            // txtComment2
+            // 
+            this.txtComment2.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.txtComment2.Location = new System.Drawing.Point(17, 61);
+            this.txtComment2.MaxLength = 60;
+            this.txtComment2.Name = "txtComment2";
+            this.txtComment2.Size = new System.Drawing.Size(587, 26);
+            this.txtComment2.TabIndex = 2;
+            // 
+            // txtComment1
+            // 
+            this.txtComment1.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.txtComment1.Location = new System.Drawing.Point(17, 27);
+            this.txtComment1.MaxLength = 60;
+            this.txtComment1.Name = "txtComment1";
+            this.txtComment1.Size = new System.Drawing.Size(587, 26);
+            this.txtComment1.TabIndex = 1;
+            // 
+            // groupBox4
+            // 
+            this.groupBox4.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.groupBox4.Controls.Add(this.txtOrderersName);
+            this.groupBox4.Location = new System.Drawing.Point(16, 10);
+            this.groupBox4.Name = "groupBox4";
+            this.groupBox4.Size = new System.Drawing.Size(620, 60);
+            this.groupBox4.TabIndex = 17;
+            this.groupBox4.TabStop = false;
+            this.groupBox4.Text = "請求先名";
+            // 
+            // txtOrderersName
+            // 
+            this.txtOrderersName.ImeMode = System.Windows.Forms.ImeMode.On;
+            this.txtOrderersName.Location = new System.Drawing.Point(17, 24);
+            this.txtOrderersName.MaxLength = 120;
+            this.txtOrderersName.Name = "txtOrderersName";
+            this.txtOrderersName.Size = new System.Drawing.Size(587, 26);
+            this.txtOrderersName.TabIndex = 0;
+            // 
+            // FrmRequestPrint
+            // 
+            this.AcceptButton = this.btnExecProc1;
+            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(652, 502);
+            this.Controls.Add(this.groupBox4);
+            this.Controls.Add(this.groupBox3);
+            this.Controls.Add(this.groupBox2);
+            this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("ＭＳ 明朝", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+            this.KeyPreview = true;
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "FrmRequestPrint";
+            this.ShowIcon = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Text = "請　求　書　印　刷　実　行";
+            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FrmStatusAndDate_FormClosed);
+            this.Load += new System.EventHandler(this.FrmCostStructureDiag_Load);
+            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmRequestPrint_KeyDown);
+            this.panel1.ResumeLayout(false);
+            this.groupBox2.ResumeLayout(false);
+            this.groupBox2.PerformLayout();
+            this.groupBox3.ResumeLayout(false);
+            this.groupBox3.PerformLayout();
+            this.groupBox4.ResumeLayout(false);
+            this.groupBox4.PerformLayout();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button btnExecProc1;
+        private System.Windows.Forms.Button btnCancel;
+        private System.Windows.Forms.Button btnExecProc2;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.DateTimePicker dateTimePicker1;
+        private System.Windows.Forms.GroupBox groupBox2;
+        private System.Windows.Forms.RadioButton rdNoPrint;
+        private System.Windows.Forms.RadioButton rdPrint;
+        private System.Windows.Forms.GroupBox groupBox3;
+        private System.Windows.Forms.TextBox txtComment5;
+        private System.Windows.Forms.TextBox txtComment4;
+        private System.Windows.Forms.TextBox txtComment3;
+        private System.Windows.Forms.TextBox txtComment2;
+        private System.Windows.Forms.TextBox txtComment1;
+        private System.Windows.Forms.GroupBox groupBox4;
+        private System.Windows.Forms.TextBox txtOrderersName;
+    }
+}
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrint.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrint.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrint.cs	(revision 369)
@@ -0,0 +1,465 @@
+﻿using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using System.Threading.Tasks;
+
+using ProcessManagement.Common;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.DataModel;
+using ProcessManagement.Forms.CustomControls;
+using ProcessManagement.Forms.ControlsAction;
+using ProcessManagement.Forms.SubForms;
+
+namespace ProcessManagement.Forms.DataEntry
+{
+    public partial class FrmRequestPrint : Form
+    {
+        #region ログ使用定義
+        //log4netログを使用する
+        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+        private enum Dispcount
+        {
+            ExeCuteDate = 0,
+            radioButtonA1,
+            radioButtonA2,
+            radioButtonB1,
+            radioButtonB2,
+            radioButtonC1,
+            radioButtonC2,
+        }
+        #endregion
+
+        #region 変数
+
+        // ユーザー情報
+        private ClsSecurityPermission.UserInfo m_UserInfo = new ClsSecurityPermission.UserInfo()
+        {
+            m_Type = CommonDefine.SecurityRankPos.NormalAuthority,
+            m_GeneralAffairsFlg = (int)SecurityMaster.GeneAffDef.OtherDep,
+            m_SecRange = ClsSecurityPermission.SecRangeType.InCharge
+        };
+
+        /// <summary>
+        /// 実行時日付
+        /// </summary>
+        private DateTime m_ExcuteDate = DateTime.Now;
+        
+        /// <summary>
+        /// 日付印刷
+        /// </summary>
+        private bool m_bDatePrintFlg = true;
+        
+        /// <summary>
+        /// コンロールオブジェクト
+        /// </summary>
+        private Control[] m_dispControl = new Control[9];
+
+        /// <summary>
+        /// 工事基本情報
+        /// </summary>
+        private ConstructionBaseInfo m_ConstructionBaseInfo = new ConstructionBaseInfo();
+
+        /// <summary>
+        /// 工事基本情報明細
+        /// </summary>
+        private Dictionary<int, Dictionary<int, string>> m_DicConstructionBaseInfoDetail = new Dictionary<int, Dictionary<int, string>>();
+
+        /// <summary>
+        /// 増減工事情報
+        /// </summary>
+        private List<int> m_LstConstructionLink = new List<int>();
+
+        /// <summary>
+        /// 請求データ
+        /// </summary>
+        private RequestData m_RequestData = new RequestData();
+
+        /// <summary>
+        /// ツールチップ
+        /// </summary>
+        private ToolTip ToolTip1 = new ToolTip();
+
+        /// <summary>
+        /// 発注先名
+        /// </summary>
+        private string m_OrdersName = string.Empty;
+        
+        /// <summary>
+        /// コメントデータ
+        /// </summary>
+        private string[] m_CommentData = new string[5];
+
+        /// <summary>
+        /// 請求データ
+        /// </summary>
+        private Dictionary<int, List<RequestData>> m_dicReqData = new Dictionary<int, List<RequestData>>();
+
+        /// <summary>
+        /// 工事基本情報データ
+        /// </summary>
+        private Dictionary<int, ConstructionBaseInfo> m_dicConstructionBaseInfo = new Dictionary<int, ConstructionBaseInfo>();
+        
+        // *-----* 共通処理設定 *-----*
+        /// <summary>
+        /// サブフォームフラグ
+        /// </summary>
+        private bool m_SubForm = false;
+        /// <summary>
+        /// 呼出元終了フラグ
+        /// </summary>
+        private bool m_ParentEnd = false;
+        // *-----* 共通処理設定 *-----*
+
+        #endregion
+
+        #region プロパティ
+
+        /// <summary>
+        /// 発注先名
+        /// </summary>
+        public string OrdersName
+        {
+            get { return m_OrdersName; }
+            set { m_OrdersName = value; }
+        }
+
+        /// <summary>
+        /// 印刷日付
+        /// </summary>
+        public DateTime ExcuteDate
+        {
+            get { return m_ExcuteDate; }
+            set { m_ExcuteDate = value; }
+        }
+        /// <summary>
+        /// 日付印刷フラグ
+        /// </summary>
+        public bool DatePrintFlg
+        {
+            get { return m_bDatePrintFlg; }
+            set { m_bDatePrintFlg = value; }
+        }
+
+        /// <summary>
+        /// コメントデータ
+        /// </summary>
+        public string[] CommentData
+        {
+            get { return m_CommentData; }
+            set { m_CommentData = value; }
+        }
+
+        // *-----* 共通処理設定 *-----*
+        /// <summary>
+        /// サブフォームフラグ
+        /// </summary>
+        public bool SubForm
+        {
+            get { return m_SubForm; }
+            set { m_SubForm = value; }
+        }
+        /// <summary>
+        /// 呼出元終了フラグ
+        /// </summary>
+        public bool ParentEnd
+        {
+            get { return m_ParentEnd; }
+            set { m_ParentEnd = value; }
+        }
+
+        // *-----* 共通処理設定 *-----*        
+        
+        #endregion
+
+        #region ×ボタン
+        /// <summary>
+        /// ×ボタン押下処理
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmStatusAndDate_FormClosed(object sender, FormClosedEventArgs e)
+        {
+        }
+        #endregion
+
+        #region コンストラクタ
+        /// <summary>
+        /// フォーム初期化
+        /// </summary>
+        public FrmRequestPrint()
+        {
+            InitializeComponent();
+        }
+        #endregion
+
+        #region フォームロード
+        /// <summary>
+        /// フォームロード
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmCostStructureDiag_Load(object sender, EventArgs e)
+        {
+            // フォームサイズ固定
+            this.MaximizedBounds = new Rectangle(this.Left, this.Top, this.Width, this.Height);
+
+            // ユーザ権限設定
+            ClsSecurityPermission.SetUserType(m_UserInfo);
+
+            // コントロールのセット
+            SetDisplayObject();
+
+            // 初期表示
+            SetDisplayData();
+        }
+        #endregion
+
+        #region キャンセルボタン
+        /// <summary>
+        /// キャンセルボタン追加
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnCancel_Click(object sender, EventArgs e)
+        {
+            DialogResult = DialogResult.Cancel;
+            this.Close();
+        }
+        #endregion
+
+        #region 印刷のみボタン
+        /// <summary>
+        /// 印刷のみボタン押下
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnExecProc1_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                // 状態確認
+                if (!StatusChange()) return;
+
+                // データを画面より取り込む
+                GetEditData();
+
+                DialogResult = DialogResult.Yes;
+
+                this.Close();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 保存のみボタン
+        /// <summary>
+        /// 保存のみボタン押下
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnExecProc2_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                // 状態確認
+                if (!StatusChange()) return;
+
+                // データを画面より取り込む
+                GetEditData();
+
+                DialogResult = DialogResult.No;
+
+                this.Close();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region コメントを画面より取り込む
+        /// <summary>
+        /// コメントを画面より取り込む
+        /// </summary>
+        private void GetEditData()
+        {
+            try
+            {
+                // 日付印刷をしない
+                if (rdNoPrint.Checked) m_bDatePrintFlg = false;
+
+                m_OrdersName = txtOrderersName.Text;
+                m_ExcuteDate = dateTimePicker1.Value;
+
+                Array.Clear(m_CommentData, 0, m_CommentData.Length);
+                m_CommentData[0] = txtComment1.Text;
+                m_CommentData[1] = txtComment2.Text;
+                m_CommentData[2] = txtComment3.Text;
+                m_CommentData[3] = txtComment4.Text;
+                m_CommentData[4] = txtComment5.Text;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 提出時ラジオボタンチェック
+        /// <summary>
+        /// 提出日印字ラジオボタン
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void radioButton3_CheckedChanged(object sender, EventArgs e)
+        {
+            if (rdNoPrint.Checked)
+            {
+                dateTimePicker1.Visible = false;
+            }
+            else
+            {
+                dateTimePicker1.Visible = true;
+            }
+        }
+        #endregion
+
+        #region オブジェクトコントロールセット
+        /// <summary>
+        /// 表示オブジェクトの取得
+        /// </summary>
+        private void SetDisplayObject()
+        {
+            m_dispControl[(int)Dispcount.ExeCuteDate] = this.dateTimePicker1;
+            m_dispControl[(int)Dispcount.radioButtonB1] = this.rdPrint;
+            m_dispControl[(int)Dispcount.radioButtonB2] = this.rdNoPrint;
+            this.btnExecProc2.Visible = false;
+            if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.SpecialAuthority)
+            {
+                this.btnExecProc2.Visible = true;
+            }
+            if (m_UserInfo.m_Type == CommonDefine.SecurityRankPos.FreeAuthority)
+            {
+                this.btnExecProc2.Visible = true;
+            }
+
+        }
+        #endregion
+
+        #region ステータスチェック
+        /// <summary>
+        /// 工事案件の進捗状態変更の確認
+        /// </summary>
+        /// <returns></returns>
+        private bool StatusChange()
+        {
+            try
+            {
+                if (MessageBox.Show("請求書を出力します、よろしいですか？",
+                                    "出力確認",
+                                    MessageBoxButtons.OKCancel, 
+                                    MessageBoxIcon.Question) == DialogResult.Cancel)
+                {
+                    return false;
+                }
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        
+        #endregion
+
+        #region データ表示処理
+        /// <summary>
+        /// データ表示
+        /// </summary>
+        /// <returns></returns>
+        private void SetDisplayData()
+        {
+            try
+            {
+                // データセット
+                txtOrderersName.Text = m_OrdersName;
+                dateTimePicker1.Value = m_ExcuteDate;
+
+                txtComment1.Text = m_CommentData[0];
+                txtComment2.Text = m_CommentData[1];
+                txtComment3.Text = m_CommentData[2];
+                txtComment4.Text = m_CommentData[3];
+                txtComment5.Text = m_CommentData[4];
+
+                // ToolTipの設定
+                SetToolTip();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region ToolTipの設定
+        /// <summary>
+        /// ToolTipの設定
+        /// </summary>
+        private void SetToolTip()
+        {
+            // ToolTipが表示されるまでの時間
+            ToolTip1.InitialDelay = 0;
+            // ToolTipが表示されている時に、別のToolTipを表示するまでの時間
+            ToolTip1.ReshowDelay = 1000;
+            // ToolTipを表示する時間
+            ToolTip1.AutoPopDelay = 10000;
+            // フォームがアクティブでない時はToolTipを表示しない
+            ToolTip1.ShowAlways = false;
+
+            // 文字セット
+            ToolTip1.SetToolTip(dateTimePicker1, "請求日が表示されている日付と違う場合は、変更してください。");
+            ToolTip1.SetToolTip(rdPrint, "請求日を請求書へ「印刷する」場合は、こちらを選択してください。");
+            ToolTip1.SetToolTip(rdNoPrint, "請求日を請求書へ「印刷せずに空白」で印刷する場合は、こちらを選択してください。");
+        }
+        #endregion
+
+        #region Entryキーでの移動処理
+        /// <summary>
+        /// Entryキーでの移動処理
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmRequestPrint_KeyDown(object sender, KeyEventArgs e)
+        {
+            //AltかCtrlキーが押されている時は無視する
+            if (e.Alt || e.Control) return;
+
+            //Enterキーが押されているか確認
+            if (e.KeyCode == Keys.Enter)
+            {
+                //あたかもTabキーが押されたかのようにする。
+                // Shiftが押されている時は前のコントロールへフォーカスを移動
+                this.ProcessTabKey(!e.Shift);
+
+                e.Handled = true;
+                //.NET Framework 2.0以降
+                e.SuppressKeyPress = true;
+            }
+        }
+        #endregion
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrint.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrint.resx	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrint.resx	(revision 369)
@@ -0,0 +1,120 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSel.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSel.Designer.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSel.Designer.cs	(revision 369)
@@ -0,0 +1,472 @@
+﻿namespace ProcessManagement.Forms.DataEntry
+{
+
+    partial class FrmRequestPrintSel
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.label4 = new System.Windows.Forms.Label();
+            this.lbReqMonth = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
+            this.lbOrderersName = new System.Windows.Forms.Label();
+            this.btnEnd = new System.Windows.Forms.Button();
+            this.btnGenerate = new System.Windows.Forms.Button();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.PrintProgress = new System.Windows.Forms.ProgressBar();
+            this.lbTotalAmount = new System.Windows.Forms.Label();
+            this.dgv1 = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.label8 = new System.Windows.Forms.Label();
+            this.label7 = new System.Windows.Forms.Label();
+            this.lbSelect = new System.Windows.Forms.Label();
+            this.label5 = new System.Windows.Forms.Label();
+            this.btnDel = new System.Windows.Forms.Button();
+            this.panel2 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.lblProcessTitil = new System.Windows.Forms.Label();
+            this.btnCancel = new System.Windows.Forms.Button();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.col1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.col2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.col3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.col4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.col5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.col6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit();
+            this.panel2.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // label4
+            // 
+            this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label4.CausesValidation = false;
+            this.label4.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label4.Location = new System.Drawing.Point(5, 5);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(114, 25);
+            this.label4.TabIndex = 23;
+            this.label4.Text = "請求月";
+            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // lbReqMonth
+            // 
+            this.lbReqMonth.BackColor = System.Drawing.Color.White;
+            this.lbReqMonth.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.lbReqMonth.Location = new System.Drawing.Point(127, 5);
+            this.lbReqMonth.Name = "lbReqMonth";
+            this.lbReqMonth.Size = new System.Drawing.Size(103, 24);
+            this.lbReqMonth.TabIndex = 24;
+            this.lbReqMonth.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label2
+            // 
+            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label2.CausesValidation = false;
+            this.label2.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label2.Location = new System.Drawing.Point(5, 38);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(114, 25);
+            this.label2.TabIndex = 25;
+            this.label2.Text = "請求先";
+            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // lbOrderersName
+            // 
+            this.lbOrderersName.BackColor = System.Drawing.Color.White;
+            this.lbOrderersName.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.lbOrderersName.Location = new System.Drawing.Point(127, 38);
+            this.lbOrderersName.Name = "lbOrderersName";
+            this.lbOrderersName.Size = new System.Drawing.Size(591, 24);
+            this.lbOrderersName.TabIndex = 26;
+            this.lbOrderersName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            // 
+            // btnEnd
+            // 
+            this.btnEnd.BackColor = System.Drawing.Color.Blue;
+            this.btnEnd.Cursor = System.Windows.Forms.Cursors.Default;
+            this.btnEnd.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnEnd.ForeColor = System.Drawing.Color.White;
+            this.btnEnd.Location = new System.Drawing.Point(1152, 620);
+            this.btnEnd.Name = "btnEnd";
+            this.btnEnd.Size = new System.Drawing.Size(120, 30);
+            this.btnEnd.TabIndex = 34;
+            this.btnEnd.Text = "終　了";
+            this.btnEnd.UseVisualStyleBackColor = false;
+            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
+            // 
+            // btnGenerate
+            // 
+            this.btnGenerate.BackColor = System.Drawing.Color.DarkSeaGreen;
+            this.btnGenerate.Cursor = System.Windows.Forms.Cursors.Default;
+            this.btnGenerate.Enabled = false;
+            this.btnGenerate.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnGenerate.ForeColor = System.Drawing.Color.Black;
+            this.btnGenerate.Location = new System.Drawing.Point(896, 620);
+            this.btnGenerate.Name = "btnGenerate";
+            this.btnGenerate.Size = new System.Drawing.Size(120, 30);
+            this.btnGenerate.TabIndex = 33;
+            this.btnGenerate.Text = "作成・印刷";
+            this.btnGenerate.UseVisualStyleBackColor = false;
+            this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.LightGray;
+            this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.panel1.Controls.Add(this.PrintProgress);
+            this.panel1.Controls.Add(this.lbTotalAmount);
+            this.panel1.Controls.Add(this.dgv1);
+            this.panel1.Controls.Add(this.label8);
+            this.panel1.Controls.Add(this.label7);
+            this.panel1.Controls.Add(this.lbSelect);
+            this.panel1.Controls.Add(this.label5);
+            this.panel1.ForeColor = System.Drawing.Color.Black;
+            this.panel1.Location = new System.Drawing.Point(10, 122);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(1260, 492);
+            this.panel1.TabIndex = 37;
+            // 
+            // PrintProgress
+            // 
+            this.PrintProgress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.PrintProgress.Location = new System.Drawing.Point(8, 450);
+            this.PrintProgress.Name = "PrintProgress";
+            this.PrintProgress.Size = new System.Drawing.Size(1240, 36);
+            this.PrintProgress.TabIndex = 44;
+            this.PrintProgress.Visible = false;
+            // 
+            // lbTotalAmount
+            // 
+            this.lbTotalAmount.BackColor = System.Drawing.Color.White;
+            this.lbTotalAmount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbTotalAmount.ForeColor = System.Drawing.Color.Black;
+            this.lbTotalAmount.Location = new System.Drawing.Point(366, 4);
+            this.lbTotalAmount.Name = "lbTotalAmount";
+            this.lbTotalAmount.Size = new System.Drawing.Size(185, 24);
+            this.lbTotalAmount.TabIndex = 42;
+            this.lbTotalAmount.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // dgv1
+            // 
+            this.dgv1.AllowUserToAddRows = false;
+            this.dgv1.AllowUserToDeleteRows = false;
+            this.dgv1.AllowUserToResizeColumns = false;
+            this.dgv1.AllowUserToResizeRows = false;
+            this.dgv1.BackgroundColor = System.Drawing.Color.White;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, 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.dgv1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgv1.ColumnHeadersHeight = 24;
+            this.dgv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            this.dgv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1,
+            this.col1,
+            this.col2,
+            this.col3,
+            this.col4,
+            this.col5,
+            this.col6});
+            this.dgv1.EnableHeadersVisualStyles = false;
+            this.dgv1.Location = new System.Drawing.Point(8, 34);
+            this.dgv1.Name = "dgv1";
+            this.dgv1.RowHeadersVisible = false;
+            this.dgv1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
+            this.dgv1.RowTemplate.Height = 20;
+            this.dgv1.Size = new System.Drawing.Size(1240, 414);
+            this.dgv1.TabIndex = 43;
+            this.dgv1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgv1_CellContentClick);
+            // 
+            // label8
+            // 
+            this.label8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label8.CausesValidation = false;
+            this.label8.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label8.ForeColor = System.Drawing.Color.Black;
+            this.label8.Location = new System.Drawing.Point(252, 4);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(114, 25);
+            this.label8.TabIndex = 41;
+            this.label8.Text = "金額合計";
+            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label7
+            // 
+            this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label7.CausesValidation = false;
+            this.label7.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label7.ForeColor = System.Drawing.Color.Black;
+            this.label7.Location = new System.Drawing.Point(178, 4);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(42, 24);
+            this.label7.TabIndex = 40;
+            this.label7.Text = "件";
+            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // lbSelect
+            // 
+            this.lbSelect.BackColor = System.Drawing.Color.White;
+            this.lbSelect.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lbSelect.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.lbSelect.Location = new System.Drawing.Point(123, 4);
+            this.lbSelect.Name = "lbSelect";
+            this.lbSelect.Size = new System.Drawing.Size(55, 24);
+            this.lbSelect.TabIndex = 39;
+            this.lbSelect.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            // 
+            // label5
+            // 
+            this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label5.CausesValidation = false;
+            this.label5.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label5.ForeColor = System.Drawing.Color.Black;
+            this.label5.Location = new System.Drawing.Point(9, 4);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(114, 25);
+            this.label5.TabIndex = 38;
+            this.label5.Text = "選択";
+            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // btnDel
+            // 
+            this.btnDel.BackColor = System.Drawing.Color.Red;
+            this.btnDel.Cursor = System.Windows.Forms.Cursors.Default;
+            this.btnDel.Enabled = false;
+            this.btnDel.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnDel.ForeColor = System.Drawing.Color.White;
+            this.btnDel.Location = new System.Drawing.Point(1024, 620);
+            this.btnDel.Name = "btnDel";
+            this.btnDel.Size = new System.Drawing.Size(120, 30);
+            this.btnDel.TabIndex = 40;
+            this.btnDel.Text = "請求取消";
+            this.btnDel.UseVisualStyleBackColor = false;
+            this.btnDel.Click += new System.EventHandler(this.btnDel_Click);
+            // 
+            // panel2
+            // 
+            this.panel2.BackColor = System.Drawing.Color.DarkKhaki;
+            this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.panel2.Controls.Add(this.label4);
+            this.panel2.Controls.Add(this.lbReqMonth);
+            this.panel2.Controls.Add(this.label2);
+            this.panel2.Controls.Add(this.lbOrderersName);
+            this.panel2.Location = new System.Drawing.Point(10, 40);
+            this.panel2.Name = "panel2";
+            this.panel2.Size = new System.Drawing.Size(1260, 74);
+            this.panel2.TabIndex = 41;
+            // 
+            // label1
+            // 
+            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top;
+            this.label1.BackColor = System.Drawing.Color.DarkKhaki;
+            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.label1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label1.ForeColor = System.Drawing.Color.Black;
+            this.label1.Location = new System.Drawing.Point(390, 10);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(500, 20);
+            this.label1.TabIndex = 42;
+            this.label1.Text = "請　求　書　印　刷";
+            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // lblProcessTitil
+            // 
+            this.lblProcessTitil.BackColor = System.Drawing.Color.White;
+            this.lblProcessTitil.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblProcessTitil.Location = new System.Drawing.Point(10, 10);
+            this.lblProcessTitil.Name = "lblProcessTitil";
+            this.lblProcessTitil.Size = new System.Drawing.Size(300, 20);
+            this.lblProcessTitil.TabIndex = 43;
+            this.lblProcessTitil.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // btnCancel
+            // 
+            this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnCancel.BackColor = System.Drawing.Color.Red;
+            this.btnCancel.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.btnCancel.ForeColor = System.Drawing.Color.White;
+            this.btnCancel.Location = new System.Drawing.Point(1024, 620);
+            this.btnCancel.Name = "btnCancel";
+            this.btnCancel.Size = new System.Drawing.Size(120, 30);
+            this.btnCancel.TabIndex = 44;
+            this.btnCancel.Text = "印刷中止";
+            this.btnCancel.UseVisualStyleBackColor = false;
+            this.btnCancel.Visible = false;
+            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+            // 
+            // Column1
+            // 
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
+            this.Column1.Frozen = true;
+            this.Column1.HeaderText = "№";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column1.Width = 60;
+            // 
+            // col1
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Black;
+            dataGridViewCellStyle3.NullValue = false;
+            this.col1.DefaultCellStyle = dataGridViewCellStyle3;
+            this.col1.Frozen = true;
+            this.col1.HeaderText = "";
+            this.col1.Name = "col1";
+            this.col1.Width = 30;
+            // 
+            // col2
+            // 
+            this.col2.Frozen = true;
+            this.col2.HeaderText = "請　求　案　件";
+            this.col2.Name = "col2";
+            this.col2.ReadOnly = true;
+            this.col2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.col2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.col2.Width = 830;
+            // 
+            // col3
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle4.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black;
+            this.col3.DefaultCellStyle = dataGridViewCellStyle4;
+            this.col3.Frozen = true;
+            this.col3.HeaderText = "請　求　金　額";
+            this.col3.Name = "col3";
+            this.col3.ReadOnly = true;
+            this.col3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.col3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.col3.Width = 160;
+            // 
+            // col4
+            // 
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("Century", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black;
+            this.col4.DefaultCellStyle = dataGridViewCellStyle5;
+            this.col4.Frozen = true;
+            this.col4.HeaderText = "請求書作成日";
+            this.col4.Name = "col4";
+            this.col4.ReadOnly = true;
+            this.col4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.col4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.col4.Width = 140;
+            // 
+            // col5
+            // 
+            this.col5.HeaderText = "RequestNo";
+            this.col5.Name = "col5";
+            this.col5.ReadOnly = true;
+            this.col5.Visible = false;
+            // 
+            // col6
+            // 
+            this.col6.HeaderText = "InvoiceNo";
+            this.col6.Name = "col6";
+            this.col6.ReadOnly = true;
+            this.col6.Visible = false;
+            // 
+            // FrmRequestPrintSel
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 15F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.Color.Black;
+            this.ClientSize = new System.Drawing.Size(1280, 657);
+            this.Controls.Add(this.lblProcessTitil);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.panel2);
+            this.Controls.Add(this.btnDel);
+            this.Controls.Add(this.btnEnd);
+            this.Controls.Add(this.btnGenerate);
+            this.Controls.Add(this.panel1);
+            this.Controls.Add(this.btnCancel);
+            this.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
+            this.Margin = new System.Windows.Forms.Padding(4);
+            this.Name = "FrmRequestPrintSel";
+            this.ShowIcon = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmRequestPrintSel_FormClosing);
+            this.Load += new System.EventHandler(this.FrmRequestPrintSel_Load);
+            this.panel1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.dgv1)).EndInit();
+            this.panel2.ResumeLayout(false);
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.Label lbReqMonth;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Label lbOrderersName;
+        private System.Windows.Forms.Button btnEnd;
+        private System.Windows.Forms.Button btnGenerate;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label lbTotalAmount;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.Label lbSelect;
+        private CustomControls.DataGridViewEX dgv1;
+        private System.Windows.Forms.Button btnDel;
+        private System.Windows.Forms.Panel panel2;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Label lblProcessTitil;
+        private System.Windows.Forms.ProgressBar PrintProgress;
+        private System.Windows.Forms.Button btnCancel;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.DataGridViewCheckBoxColumn col1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn col2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn col3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn col4;
+        private System.Windows.Forms.DataGridViewTextBoxColumn col5;
+        private System.Windows.Forms.DataGridViewTextBoxColumn col6;
+    }
+}
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSel.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSel.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSel.cs	(revision 369)
@@ -0,0 +1,310 @@
+﻿using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+using ProcessManagement.Common;
+using ProcessManagement.DataModel;
+using ProcessManagement.DB;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.Forms.SubForms;
+using ProcessManagement.Forms.ControlsAction;
+
+
+namespace ProcessManagement.Forms.DataEntry
+{
+    public partial class FrmRequestPrintSel : Form
+    {
+        #region 使用定義
+        //log4netログを使用する
+        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
+        #endregion
+
+        #region 定数
+
+        /// <summary>
+        /// チェック結果
+        /// </summary>
+        private enum CheckState
+        {
+            Ok = 0,
+            Warning,
+            Error,
+        }
+
+        /// <summary>
+        /// グリッドカラム
+        /// </summary>
+        private enum DispColumn
+        {
+            DataNo=0,
+            CheckFlg,
+            RequestTitle,
+            ReqValue,
+            CreateDate,
+            RequestNo,
+            InvoiceNo,
+        }
+        #endregion
+
+        #region 変数
+
+        /// <summary>
+        /// 起動フラグ
+        /// </summary>
+        private int m_ExecuteFlg = 0;
+        /// <summary>
+        /// 起動時補助フラグ
+        /// </summary>
+        private int m_ExecuteSubFlg = 0;
+
+        /// <summary>
+        /// 編集モード
+        /// </summary>
+        private bool m_bEditFlg = true;
+        /// <summary>
+        //// 請求書No
+        /// </summary>
+        private int m_nInvoiceNo = 0;
+        /// <summary>
+        /// 請求月
+        /// </summary>
+        private int m_nRequestMonth = 0;
+        /// <summary>
+        /// 発注者区分
+        /// </summary>
+        private int m_nOrderersDivision = 0;
+        /// <summary>
+        /// 発注者コード
+        /// </summary>
+        private int m_nOrderersCode = 0;
+        /// <summary>
+        /// 発注者名
+        /// </summary>
+        private string m_strOrderersName = "";
+
+        /// <summary>
+        /// 請求ヘッダ
+        /// </summary>
+        private List<RequestHead> m_lstReqHead = new List<RequestHead>();
+
+        /// <summary>
+        /// 請求書データ
+        /// </summary>
+        private Dictionary<int, InvoiceData> m_dicInvData = new Dictionary<int, InvoiceData>();
+
+        /// <summary>
+        /// 終了ボタン押下フラグ
+        /// </summary>
+        private bool m_CloseingProcessOff = false;
+        #endregion
+
+        #region プロパティ
+        /// <summary>
+        /// 起動フラグ
+        /// </summary>
+        public int ExecuteFlg
+        {
+            get { return m_ExecuteFlg; }
+            set { m_ExecuteFlg = value; }
+        }
+        /// <summary>
+        /// 起動時補助フラグ
+        /// </summary>
+        public int ExecuteSubFlg
+        {
+            get { return m_ExecuteSubFlg; }
+            set { m_ExecuteSubFlg = value; }
+        }
+        /// <summary>
+        /// 編集モード
+        /// </summary>
+        public bool EditFlg
+        {
+            get { return m_bEditFlg; }
+            set { m_bEditFlg = value; }
+        }
+        /// <summary>
+        /// 請求月
+        /// </summary>
+        public int RequestMonth
+        {
+            get { return m_nRequestMonth; }
+            set { m_nRequestMonth = value; }
+        }
+        /// <summary>
+        /// 発注者区分
+        /// </summary>
+        public int OrderersDivision
+        {
+            get { return m_nOrderersDivision; }
+            set { m_nOrderersDivision = value; }
+        }
+        /// <summary>
+        /// 発注者コード
+        /// </summary>
+        public int OrderersCode
+        {
+            get { return m_nOrderersCode; }
+            set { m_nOrderersCode = value; }
+        }
+        /// <summary>
+        /// 発注者名
+        /// </summary>
+        public string OrderersName
+        {
+            get { return m_strOrderersName; }
+            set { m_strOrderersName = value; }
+        }
+
+        #endregion
+
+        #region コンストラクタ
+        public FrmRequestPrintSel()
+        {
+            InitializeComponent();
+        }
+        #endregion
+
+        #region フォームのロード
+        /// <summary>
+        /// フォームのロード
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmRequestPrintSel_Load(object sender, EventArgs e)
+        {
+            // フォームの初期スタイル設定
+            InitSetFormStyle();
+
+            // データ表示
+            DispGridData();
+        }
+        #endregion
+
+        #region [削除]ボタン押下
+        /// <summary>
+        /// [削除]ボタン押下
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnDel_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                // 請求データ取消処理
+                InvoiceRemoveProc();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region [請求書作成]ボタン押下
+        /// <summary>
+        /// [請求書作成]ボタン押下
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnGenerate_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                // 印刷実行
+                EntryPrintProc();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 印刷中断
+        /// <summary>
+        /// 印刷中断
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnCancel_Click(object sender, EventArgs e)
+        {
+            //キャンセルのフラッグを立てる
+            m_Canceled = true;
+        }
+        #endregion
+
+        #region ×ボタン
+        /// <summary>
+        /// ×ボタン押下処理
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FrmRequestPrintSel_FormClosing(object sender, FormClosingEventArgs e)
+        {
+            if (!m_CloseingProcessOff) ClsExcute.BackProcess();
+        }
+        #endregion
+
+        #region [終了]ボタン押下
+        /// <summary>
+        /// [終了]ボタン押下
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnEnd_Click(object sender, EventArgs e)
+        {
+            // 画面クローズ
+            this.Close();
+        }
+        #endregion
+
+        #region 作成日コンボの選択変更
+        /// <summary>
+        /// 作成日コンボの選択変更
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        //private int m_nOldSelectedValue = 0;
+        //private void cbCreateDate_SelectedIndexChanged(object sender, EventArgs e)
+        //{
+        //    int nInvoiceNo = CommonMotions.cnvInt(cbCreateDate.SelectedValue);
+
+        //    if (m_nOldSelectedValue == nInvoiceNo)
+        //    {
+        //        return;
+        //    }
+
+        //    m_nOldSelectedValue = nInvoiceNo;
+
+        //    RefleshRequestList(nInvoiceNo);
+        //}
+        #endregion
+
+        #region セル内容のクリック
+        /// <summary>
+        /// セル内容のクリック
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void dgv1_CellContentClick(object sender, DataGridViewCellEventArgs e)
+        {
+            // 同一番号チェック処理
+            CheckBoxGroupOn();
+
+            // 選択数、選択金額の更新
+            UpdateCheckValue();
+
+            btnGenerate.Enabled = true;
+            btnDel.Enabled = true;
+        }
+        #endregion
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSel.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSel.resx	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSel.resx	(revision 369)
@@ -0,0 +1,141 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="col6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+</root>
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSelAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSelAux.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSelAux.cs	(revision 369)
@@ -0,0 +1,1313 @@
+﻿using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+using ProcessManagement.Common;
+using ProcessManagement.DataModel;
+using ProcessManagement.DB;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.Forms.SubForms;
+using ProcessManagement.Forms.ControlsAction;
+
+
+namespace ProcessManagement.Forms.DataEntry
+{
+    public partial class FrmRequestPrintSel
+    {
+        #region フォームの初期スタイル設定
+        /// <summary>
+        /// フォームの初期スタイル設定
+        /// </summary>
+        private void InitSetFormStyle()
+        {
+            try
+            {
+                dgv1.EnableHeadersVisualStyles = false;
+                dgv1.AutoGenerateColumns = false;
+                dgv1.ColumnHeadersHeight = 28;
+                dgv1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                dgv1.AllowUserToAddRows = false;
+                dgv1.RowTemplate.Height = 24;
+                dgv1.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+                dgv1.ColumnHeadersDefaultCellStyle.BackColor = Color.Aquamarine;
+
+                int yyyy = CommonMotions.cnvTruncate((double)m_nRequestMonth / 100);
+                int mm = m_nRequestMonth % 100;
+                lbReqMonth.Text = string.Format("{0}/{1}", yyyy, mm.ToString("D2"));
+                lbOrderersName.Text = m_strOrderersName;
+
+                string strSubTitle = string.Empty;
+                switch (m_ExecuteSubFlg)
+                {
+                    case (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling:
+                        strSubTitle = "出来高　分割";
+                        break;
+                    case (int)ConstructionBaseInfo.BillingSplitFlgDef.AllOnBilling:
+                        strSubTitle = "完了後　一括";
+                        break;
+                }
+                // 処理名称表示
+                lblProcessTitil.Text = string.Format("{0}　【{1}】", ClsExcute.ProcessExecuteName[m_ExecuteFlg].Replace("－", ""), strSubTitle);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region データ表示
+        /// <summary>
+        /// データ表示
+        /// </summary>
+        private void DispGridData()
+        {
+            // 請求書データ取得
+            GetInvData();
+
+            // 請求データ取得
+            GetReqestData();
+
+            // 請求データ表示
+            DispRequestData();
+
+            // チェックより金額計算
+            UpdateCheckValue();
+        }
+        #endregion
+
+        #region 選択数、選択金額の更新
+        /// <summary>
+        /// 選択数、選択金額の更新
+        /// </summary>
+        void UpdateCheckValue()
+        {
+            try
+            {
+                int cnt = 0;
+                long val;
+                long amount = 0;
+                foreach (DataGridViewRow CurRow in dgv1.Rows)
+                {
+                    bool bCurRowChk = CommonMotions.cnvBool(CurRow.Cells[(int)DispColumn.CheckFlg].Value);
+                    if (!bCurRowChk) continue;
+
+                    cnt++;
+
+                    val = CommonMotions.cnvLong(CurRow.Cells[(int)DispColumn.ReqValue].Value);
+
+                    amount += val;
+                }
+
+                lbSelect.Text = cnt.ToString("#,0");
+                lbTotalAmount.Text = amount.ToString("#,0");
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 請求書データの取得
+        /// <summary>
+        /// 請求書データの取得
+        /// </summary>
+        private void GetInvData()
+        {
+            IOInvoiceData ioInvData = new IOInvoiceData();
+            try
+            {
+                StringBuilder sql = new StringBuilder();
+                sql.Append(" As InvData");
+                sql.AppendFormat(" WHERE InvData.OrderersDivision = {0}", m_nOrderersDivision);
+                sql.AppendFormat(" AND InvData.OrderersCode = {0} ", m_nOrderersCode);
+                sql.AppendFormat(" AND InvData.RequestMonth = {0} ", m_nRequestMonth);
+                sql.AppendFormat(" AND InvData.COMPLETEFLG > {0}", (int)InvoiceData.CompleteFlgDef.Deleted);
+                sql.Append("       AND EXISTS( SELECT * FROM RequestHead ReqHead WHERE ReqHead.InvoiceNo = InvData.InvoiceNo )");
+                sql.Append(" ORDER BY InvData.CretateDate Asc, InvData.SeqNo Asc");
+
+                List<InvoiceData> InvoiceList = new List<InvoiceData>();
+                // SQL実行
+                if (!ioInvData.SelectAction(sql.ToString(), ref InvoiceList)) return;
+
+                // データセット
+                m_dicInvData.Clear();
+                foreach(InvoiceData work in InvoiceList)
+                {
+                    m_dicInvData.Add(work.InvoiceNo, work);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                ioInvData.close();
+                ioInvData = null;
+            }
+            return;
+        }
+        #endregion
+
+        #region 請求データの取得
+        /// <summary>
+        /// 請求データの取得
+        /// </summary>
+        private void GetReqestData()
+        {
+            IORequestHead ioReqHead = new IORequestHead();
+
+            try
+            {
+                StringBuilder sql = new StringBuilder();
+                sql.Append("Select A.* From RequestHead As A");
+                sql.Append("           Inner Join processapproval As B");
+                sql.Append("                  On B.ConstructionCode = A.REQCONSTRUCTIONCODE");
+                sql.AppendFormat("            And B.ApprovalCode = {0}", (int)ClsExcute.ApprovalListNo.OrderRequestApproval);
+                sql.Append("                  And B.OrderNo = A.ORDERNO");
+                sql.AppendFormat("            And B.SeqNo = {0}", CommonDefine.s_Default_OrderNo);
+                sql.AppendFormat("            And B.ApprovalStatus = {0}", (int)CommonDefine.ApprovalStatus.Approval);
+                sql.AppendFormat("     Where A.RequestMonth = {0}", m_nRequestMonth);
+                sql.AppendFormat("     And A.OrderersDivision = {0}", m_nOrderersDivision);
+                sql.AppendFormat("     And A.OrderersCode = {0}", m_nOrderersCode);
+                sql.Append(" Group By A.REQUESTNO");
+                sql.Append(" Order by A.INVOICENO ASC, A.REQUESTNO ASC, A.ReqConstructionCode Asc, a.OrderNo Asc");
+
+                ArrayList lstWork = new ArrayList();
+                if (!ioReqHead.ExecuteReader(sql.ToString(), ref lstWork)) return;
+
+                m_lstReqHead.Clear();
+                foreach (object[] objRec in lstWork)
+                {
+                    RequestHead ReqHead = new RequestHead();
+                    ioReqHead.Reader2Struct(objRec, ref ReqHead);
+
+                    // 請求ヘッダの追加
+                    m_lstReqHead.Add(ReqHead);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                ioReqHead.close(); ioReqHead = null;
+            }
+        }
+        #endregion
+
+        #region 請求データの表示
+        /// <summary>
+        /// 請求データの表示
+        /// </summary>
+        private void DispRequestData()
+        {
+            try
+            {
+                dgv1.Rows.Clear();
+                int BreakKey = m_lstReqHead[0].InvoiceNo;
+                int nDataCnt = 0;
+                foreach (RequestHead ReqHead in m_lstReqHead)
+                {
+                    // 請求書番号が違えば1行空ける
+                    if (BreakKey != ReqHead.InvoiceNo)
+                    {
+                        int BrankRow = dgv1.Rows.Add(1);
+                        BreakKey = ReqHead.InvoiceNo;
+                        dgv1.Rows[BrankRow].Cells[(int)DispColumn.CheckFlg].ReadOnly = true;
+                        dgv1.Rows[BrankRow].Cells[(int)DispColumn.CheckFlg].Style.BackColor = Color.White;
+                        dgv1.Rows[BrankRow].Cells[(int)DispColumn.CheckFlg].Style.ForeColor = Color.White;
+                    }
+
+                    // 行を追加
+                    int trow = dgv1.Rows.Add(1);
+                    DataGridViewRow CurRow = dgv1.Rows[trow];
+                    CurRow.Cells[(int)DispColumn.CheckFlg].ReadOnly = false;
+                    CurRow.Cells[(int)DispColumn.DataNo].Value = ++nDataCnt;
+
+                    string strConstrName = ReqHead.ReqConstructionName;
+                    if (m_ExecuteSubFlg == (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling)
+                    {
+                        strConstrName = string.Format("{0}：{1}回目", ReqHead.ReqConstructionName, ReqHead.OrderNo);
+                    }
+                    CurRow.Cells[(int)DispColumn.RequestTitle].Value = strConstrName;
+                    CurRow.Cells[(int)DispColumn.ReqValue].Value = ReqHead.RequestAmount.ToString("#,0");
+                    CurRow.Cells[(int)DispColumn.RequestNo].Value = ReqHead.RequestNo;
+
+                    // 印刷未は以下を処理しない
+                    if (ReqHead.InvoiceNo < 1) continue;
+
+                    InvoiceData InvData = null;
+                    if (!m_dicInvData.TryGetValue(ReqHead.InvoiceNo, out InvData)) continue;
+
+                    // データセット
+                    CurRow.Cells[(int)DispColumn.CreateDate].Value = InvData.CretateDate.ToString("yyyy/MM/dd");
+                    CurRow.Cells[(int)DispColumn.InvoiceNo].Value = InvData.InvoiceNo;
+                    // 印刷済みは背景色を変える
+                    foreach (DataGridViewCell CurCell in CurRow.Cells)
+                    {
+                        CurCell.Style.BackColor = Color.LightGray;
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                // グリッド一杯の行が16行
+                int nStRow = dgv1.RowCount;
+                if (nStRow < 16) {
+                    dgv1.RowCount = 16;
+                    for (int i = nStRow; i < 16; i++)
+                    {
+                        dgv1.Rows[i].Cells[(int)DispColumn.CheckFlg].ReadOnly = true;
+                    }
+                }
+                btnDel.Enabled = false;
+                btnGenerate.Enabled = false;
+            }
+        }
+        #endregion
+
+        #region 作成チェック
+        /// <summary>
+        /// 作成チェック
+        /// </summary>
+        /// <param name="msg"></param>
+        /// <returns></returns>
+        private int CheckGenerate(ref string msg)
+        {
+            try
+            {
+                int nRet = (int)CheckState.Ok;
+
+                // 選択なし
+                int nSelect = CommonMotions.cnvInt(lbSelect.Text);
+                if (nSelect < 1)
+                {
+                    msg = "請求件名が選択されていません。";
+                    return (int)CheckState.Error;
+                }
+
+                // 請求書番号つきデータの複数選択チェック
+                if (!BillingNoMulitiCheck())
+                {
+                    msg = "印刷済みの請求書を含めて複数選択しています。\r\n続行するには先に請求取消をしてください。";
+                    return (int)CheckState.Error;
+                }
+
+                //int nInvoiceNo = GetSelInvoiceNo();
+
+                //foreach (DataGridViewRow CurRow in dgv1.Rows)1
+                //{
+                //    // 請求ヘッダが紐づいていない行はダミー
+                //    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.RequestNo].Value) < 1) break;
+
+                //    if (!CurRow.Cells[(int)DispColumn.CheckFlg].EditedFormattedValue.Equals(true)) continue;
+
+                //    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value) < 1) continue;
+
+                //    // 選択されている場合
+                //    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value) != nInvoiceNo)
+                //    {
+                //        nRet = (int)CheckState.Warning;
+                //        break;
+                //    }
+                //}
+
+                //if (nRet == (int)CheckState.Warning)
+                //{
+                //    msg = "他で請求されている請求件名が選択されています。\r\nこの内容で請求書を作成してよろしいですか？";
+                //    return nRet;
+                //}
+
+                //foreach (DataGridViewRow CurRow in dgv1.Rows)
+                //{
+                //    // 請求ヘッダが紐づいていない行はダミー
+                //    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.RequestNo].Value) < 1) break;
+
+                //    // 選択されている場合
+                //    if (!CurRow.Cells[(int)DispColumn.CheckFlg].EditedFormattedValue.Equals(true)) continue;
+
+                //    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value) > 0) continue;
+
+                //    if (nInvoiceNo == 0)
+                //    {
+                //        msg = "既に作成済の請求書に新規請求件名を追加します。\r\nこの内容で請求書を作成してよろしいですか？";
+                //        nRet = (int)CheckState.Warning;
+                //        break;
+                //    }
+                //}
+
+                if (nRet == (int)CheckState.Ok)
+                {
+                    msg = "この内容で請求書を作成してよろしいですか？";
+                }
+
+                return nRet;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return (int)CheckState.Error;
+            }
+        }
+        #endregion
+
+        #region 請求書データ登録
+        /// <summary>
+        /// 請求書データ登録
+        /// </summary>
+        /// <returns></returns>
+        private bool EntryPrintData(IOInvoiceData ioInvData, IORequestHead ioReqHead, string[] CommentData)
+        {
+            try
+            {
+                int nInvoiceNo = GetSelInvoiceNo();
+
+                List<RequestHead> lstReqHead = new List<RequestHead>();
+
+                foreach (DataGridViewRow CurRow in dgv1.Rows)
+                {
+                    // 請求ヘッダが紐づいていない行はダミー
+                    if (CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.RequestNo].Value) < 1) continue;
+
+                    // 選択されていない場合
+                    if (!CurRow.Cells[(int)DispColumn.CheckFlg].EditedFormattedValue.Equals(true)) continue;
+
+                    // 対象データ追加
+                    int nIndex = CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.DataNo].Value) - 1;
+                    lstReqHead.Add(m_lstReqHead[nIndex]);
+                }
+
+                // 請求書データの登録
+                if(!AddInvoiceData2(ioInvData, ioReqHead, lstReqHead, CommentData, ref nInvoiceNo))
+                {
+                    MessageBox.Show("請求書データ登録エラー","登録エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    return false;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求書データの登録
+        /// <summary>
+        /// 請求書データの登録
+        /// </summary>
+        /// <returns></returns>
+        private bool AddInvoiceData2(IOInvoiceData ioInvData
+                                    , IORequestHead ioReqHead
+                                    , List<RequestHead> lstReqHead
+                                    , string[] CommentData
+                                    , ref int nInvoiceNo)
+        {
+            try
+            {
+                // 請求書Noが指定されていない場合
+                bool bExistsInvoice = true;
+                if (nInvoiceNo == 0)
+                {
+                    // 請求書Noの採番
+                    nInvoiceNo = ioInvData.NumberingInvoiceNo(m_nRequestMonth, false);
+                    if (nInvoiceNo < 0) return false;
+                    bExistsInvoice = false;
+                }
+                m_nInvoiceNo = nInvoiceNo;
+
+                // 選択されている請求ヘッダの請求書Noを更新
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append("Update RequestHead");
+                strSQL.AppendFormat(" Set INVOICENO = {0}", nInvoiceNo);
+                strSQL.Append(" Where REQUESTNO in (");
+                bool bFirst = true;
+                foreach (RequestHead ReqHead in lstReqHead)
+                {
+                    if (!bFirst) strSQL.Append(",");
+                    strSQL.AppendFormat("{0}", ReqHead.RequestNo);
+                    bFirst = false;
+                }
+                strSQL.Append(")");
+                if (!ioReqHead.ExecuteNonQuery(strSQL.ToString(), false)) return false;
+
+                // 請求ヘッダより請求金額を取得する
+                strSQL.Clear();
+                strSQL.Append("Select INVOICENO, SUM(REQUESTAMOUNT), Sum(TAXAMOUNT) From RequestHead");
+                strSQL.AppendFormat(" Where INVOICENO = {0}", nInvoiceNo);
+                strSQL.Append(" Group By INVOICENO");
+                ArrayList GetList = new ArrayList();
+                if (!ioReqHead.ExecuteReader(strSQL.ToString(), ref GetList, false)) return false;
+                if (GetList.Count < 1) return false;
+
+                object[] objRec = (object[])GetList[0];
+                m_lTotalAmount = CommonMotions.cnvLong(objRec[1]);
+                m_lTaxAmount = CommonMotions.cnvLong(objRec[2]);
+
+                // 請求書Noが指定されていない場合
+                if (!bExistsInvoice)
+                {
+                    // 請求書データ構築
+                    InvoiceData InvData = new InvoiceData();
+
+                    InvData.InvoiceNo = nInvoiceNo;
+                    InvData.OrderersDivision = m_nOrderersDivision;
+                    InvData.OrderersCode = m_nOrderersCode;
+                    InvData.RequestMonth = m_nRequestMonth;
+                    InvData.SeqNo = ioInvData.NumberingSeqNo(m_nOrderersDivision, m_nOrderersCode, m_nRequestMonth, false);
+                    InvData.CretateDate = DateTime.Now;
+                    InvData.RequestDate = m_DatePrintOut;
+                    InvData.RequestName = m_strOrderersName;
+                    InvData.TotalAmount = m_lTotalAmount;
+                    InvData.TaxAmount = m_lTaxAmount;
+                    InvData.Comment1 = CommentData[0];
+                    InvData.Comment2 = CommentData[1];
+                    InvData.Comment3 = CommentData[2];
+                    InvData.Comment4 = CommentData[3];
+                    InvData.Comment5 = CommentData[4];
+                    InvData.CompleteFlg = (int)InvoiceData.CompleteFlgDef.Printed;
+
+                    // 請求書データの挿入
+                    if (!ioInvData.InsertAction(InvData, false)) return false;
+                }
+                else
+                {
+                    // 請求書データの取得
+                    InvoiceData InvData = new InvoiceData();
+                    strSQL.Clear();
+                    strSQL.Append(ioInvData.CreatePrimarykeyString(nInvoiceNo));
+                    if (!ioInvData.SelectAction(strSQL.ToString(), ref InvData, false)) return false;
+
+                    InvData.RequestDate = m_DatePrintOut;
+                    InvData.RequestName = m_strOrderersName;
+                    InvData.TotalAmount = m_lTotalAmount;
+                    InvData.TaxAmount = m_lTaxAmount;
+                    InvData.Comment1 = CommentData[0];
+                    InvData.Comment2 = CommentData[1];
+                    InvData.Comment3 = CommentData[2];
+                    InvData.Comment4 = CommentData[3];
+                    InvData.Comment5 = CommentData[4];
+                    InvData.CompleteFlg = (int)InvoiceData.CompleteFlgDef.Printed; 
+
+                    // 請求書データの更新
+                    if (!ioInvData.UpdateAction(strSQL.ToString(), InvData, false)) return false;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求データの削除
+        /// <summary>
+        /// 請求データの削除
+        /// </summary>
+        /// <param name="nInvoiceNo"></param>
+        /// <returns></returns>
+        private bool DeleteInvoiceData(int nInvoiceNo, string strReason)
+        {
+            IOInvoiceData ioInvData = new IOInvoiceData();
+            IORequestHead ioReqHead = new IORequestHead();
+            IORemInvoiceData iORemInvoiceData = new IORemInvoiceData();
+            IORemInvoiceDataDetail iORemInvoiceDetial = new IORemInvoiceDataDetail();
+            bool bDBRollBack = false;
+            string msg = string.Empty;
+            try
+            {
+                ioInvData.connect(); ioInvData.beginTran();
+                ioReqHead.connect(); ioReqHead.beginTran();
+                iORemInvoiceData.connect(); iORemInvoiceData.beginTran();
+                iORemInvoiceDetial.connect(); iORemInvoiceDetial.beginTran();
+
+                StringBuilder sql = new StringBuilder();
+
+                // 請求書削除データ
+                RemInvoiceData remInvoice = new RemInvoiceData();
+                remInvoice.InvoiceNo = nInvoiceNo;
+                remInvoice.RemPerson = CommonMotions.LoginUserData.PersonCode;
+                remInvoice.RemDate = DateTime.Now.Date;
+                remInvoice.RemComment = strReason;
+                if (!iORemInvoiceData.InsertAction(remInvoice, false))
+                {
+                    bDBRollBack = true;
+                    msg = "請求書削除データ登録に失敗しました。";
+                    return false;
+                }
+
+                // 請求書削除明細データ
+                sql.Clear();
+                sql.Append("Select REQUESTNO From Requesthead");
+                sql.AppendFormat(" Where INVOICENO = {0}", nInvoiceNo);
+                sql.Append(" Order By REQUESTNO");
+                ArrayList CodeList = new ArrayList();
+                iORemInvoiceDetial.ExecuteReader(sql.ToString(), ref CodeList, false);
+
+                RemInvoiceDataDetail ReminvDetail = new RemInvoiceDataDetail();
+                int nSeqNo = 1;
+                foreach (object[] objCode in CodeList)
+                {
+                    ReminvDetail.InvoiceNo = nInvoiceNo;
+                    ReminvDetail.SeqNo = nSeqNo++;
+                    ReminvDetail.RequestNo = CommonMotions.cnvInt(objCode[0]);
+                    if (!iORemInvoiceDetial.InsertAction(ReminvDetail, false))
+                    {
+                        bDBRollBack = true;
+                        msg = "請求書削除明細データ登録に失敗しました。";
+                        return false;
+                    }
+                }
+
+                // 請求書データの削除
+                sql.Clear();
+                sql.Append("Update invoicedata");
+                sql.AppendFormat(" Set COMPLETEFLG = {0}", (int)InvoiceData.CompleteFlgDef.Deleted);
+                sql.AppendFormat(ioInvData.CreatePrimarykeyString(nInvoiceNo));
+                if (!ioInvData.ExecuteNonQuery(sql.ToString(), false))
+                {
+                    bDBRollBack = true;
+                    msg = "請求書データ削除に失敗しました。";
+                    return false;
+                }
+
+                sql.Clear();
+                sql.Append("Update requesthead");
+                sql.Append(" Set INVOICENO = 0");
+                sql.AppendFormat(" Where INVOICENO = {0}", nInvoiceNo);
+                if (!ioReqHead.ExecuteNonQuery(sql.ToString(), false))
+                {
+                    bDBRollBack = true;
+                    msg = "請求ヘッダーデータ更新に失敗しました。";
+                    return false;
+                }
+
+                ioInvData.commit();
+                ioReqHead.commit();
+                iORemInvoiceData.commit();
+                iORemInvoiceDetial.commit();
+
+                return true;
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                bDBRollBack = true;
+                return false;
+            }
+            finally
+            {
+                if (bDBRollBack)
+                {
+                    ioInvData.rollback();
+                    ioReqHead.rollback();
+                    iORemInvoiceData.rollback();
+                    iORemInvoiceDetial.rollback();
+                }
+
+                ioInvData.close(); ioInvData = null;
+                ioReqHead.close(); ioReqHead = null;
+                iORemInvoiceData.close(); iORemInvoiceData = null;
+                iORemInvoiceDetial.close(); iORemInvoiceDetial = null;
+
+                if (msg.Length > 0)
+                {
+                    MessageBox.Show(msg, "削除エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                }
+            }
+
+        }
+        #endregion
+
+        #region 作成チェック処理
+        /// <summary>
+        /// 作成チェック処理
+        /// </summary>
+        private bool GenerateCheck()
+        {
+            try
+            {
+                int ret;
+                string msg = string.Empty;
+
+                // 作成チェック
+                ret = CheckGenerate(ref msg);
+                bool bError = false;
+                switch (ret)
+                {
+                    case (int)CheckState.Ok:
+                        if (MessageBox.Show(msg, "登録確認"
+                                , MessageBoxButtons.YesNo
+                                , MessageBoxIcon.Question) != DialogResult.Yes) return false;
+                        break;
+                    case (int)CheckState.Warning:
+                        if (MessageBox.Show(msg, "登録確認"
+                                , MessageBoxButtons.YesNo
+                                , MessageBoxIcon.Warning) != DialogResult.Yes) return false;
+                        break;
+                    default:
+                        MessageBox.Show(msg, "登録確認", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                        bError = true;
+                        break;
+                }
+                if (bError) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 印刷実行
+        /// <summary>
+        /// 印刷実行
+        /// </summary>
+        private void EntryPrintProc()
+        {
+            FrmSaveFilePath frm = new FrmSaveFilePath();
+            FrmRequestPrint frmPrint = new FrmRequestPrint();
+            IOInvoiceData ioInvData = new IOInvoiceData();
+            IORequestHead ioReqHead = new IORequestHead();
+            IORequestData ioReqData = new IORequestData();
+            IOConstructionBaseInfo ioInfo = new IOConstructionBaseInfo();
+            IOConstructionProgressDate ioPrgDate = new IOConstructionProgressDate();
+
+            try
+            {
+                // 作成チェック
+                if (!GenerateCheck()) return;
+
+                // 印刷確認画面へパラメータをセットする
+                SetParaInvoiceData(frmPrint, ioInvData);
+
+                // 印刷確認画面表示
+                DialogResult drRet = frmPrint.ShowDialog();
+                if (drRet == DialogResult.Cancel) return;
+
+                // EXCEL保存時選択
+                if (drRet == DialogResult.No)
+                {
+                    // 保存先を選択する
+                    frm.SaveType = (int)CommonDefine.SaveFileType.ExcelFile;
+                    //frm.ShowInTaskbar = false;
+                    frm.ShowDialog();
+                    if (frm.EndButton == DialogResult.Cancel) return;
+                    m_SelectSaveExcel = frm.SelectPath;
+                }
+
+                // ---------- 印刷画面よりデータ取得
+                //　日付印刷フラグ
+                m_bDatePrintFlg = frmPrint.DatePrintFlg;
+                //　印刷日付
+                m_DatePrintOut = frmPrint.ExcuteDate;
+                // 発注者名
+                m_strOrderersName = frmPrint.OrdersName;
+
+                // データ登録処理
+                if(!EntryData(frmPrint, ioInvData, ioReqHead, ioReqData, ioInfo, ioPrgDate))
+                {
+                    ioInvData.rollback();
+                    ioReqHead.rollback();
+                    ioInfo.rollback();
+                    ioPrgDate.rollback();
+                    return;
+                }
+
+                // 印刷プロセス数取得
+                m_ProcessCount = m_lstReqHead.Count + 5;       // 明細枚数＋ＥＸＣＥＬオブジェクト取得(2)＋表紙(2)＋一覧(1)
+                PrintProgress.Visible = true;
+                PrintProgress.Minimum = 0;
+                PrintProgress.Maximum = m_ProcessCount;
+                PrintProgress.Value = 0;
+                panel1.Update();
+
+                m_Canceled = false;
+                // ボタンの変更
+                PrintButtonVisbleControl(true);
+
+                //印刷を別スレッドで実行する
+                m_ProgressCount = 0;
+
+                // 印刷・保存の判定フラグ
+                object[] obj = new object[1];
+                if (drRet == DialogResult.Yes) obj[0] = true;
+                else obj[0] = false;
+
+                workerThread = new Thread(new ParameterizedThreadStart(PrintMain));
+                workerThread.IsBackground = true;
+                workerThread.Start(obj);
+
+                // データ表示
+                DispGridData();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                ioInvData.close(); ioInvData = null;
+                ioReqHead.close(); ioReqHead = null;
+                ioReqData.close(); ioReqData = null;
+                ioInfo.close(); ioInfo = null;
+                ioPrgDate.close(); ioPrgDate = null;
+
+                frmPrint.Dispose(); frmPrint = null;
+                frm.Dispose(); frm = null;
+            }
+        }
+        #endregion
+
+        #region データ登録処理
+        /// <summary>
+        /// データ登録処理
+        /// </summary>
+        /// <returns></returns>
+        private bool EntryData(FrmRequestPrint frmPrint
+                                , IOInvoiceData ioInvData
+                                , IORequestHead ioReqHead
+                                , IORequestData ioReqData
+                                , IOConstructionBaseInfo ioInfo
+                                , IOConstructionProgressDate ioPrgDate)
+        {
+            try
+            {
+                // DBトランザクション開始
+                ioInvData.connect(); ioInvData.beginTran();
+                ioReqHead.connect(); ioReqHead.beginTran();
+                ioReqData.connect(); ioReqData.beginTran();
+                ioInfo.connect(); ioInfo.beginTran();
+                ioPrgDate.connect(); ioPrgDate.beginTran();
+
+                // 請求書作成処理
+                // データの登録
+                if (!EntryPrintData(ioInvData, ioReqHead, frmPrint.CommentData))
+                {
+                    ioInvData.rollback();
+                    ioReqHead.rollback();
+                    ioReqData.rollback();
+                    ioInfo.rollback();
+                    ioPrgDate.rollback();
+                    return false;
+                }
+
+                // 印刷データ取得処理
+                if (!GetPrintData(ioInvData, ioReqHead, ioReqData)) return false;
+
+                // 工事基本情報を更新する
+                if (!UpdateConstructionBaseInfo(ioInfo, ioPrgDate))
+                {
+                    ioInvData.rollback();
+                    ioReqHead.rollback();
+                    ioReqData.rollback();
+                    ioInfo.rollback();
+                    ioPrgDate.rollback();
+                    return false;
+                }
+
+                ioInvData.commit();
+                ioReqHead.commit();
+                ioReqData.commit();
+                ioInfo.commit();
+                ioPrgDate.commit();
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 印刷確認画面へパラメータをセットする
+        /// <summary>
+        /// 印刷確認画面へパラメータをセットする
+        /// </summary>
+        private void SetParaInvoiceData(FrmRequestPrint frmPrint, IOInvoiceData ioInvData)
+        {
+            try
+            {
+                frmPrint.OrdersName = lbOrderersName.Text;
+                frmPrint.ExcuteDate = DateTime.Today.Date;
+
+                int nInvoiceNo = GetSelInvoiceNo();
+                if (nInvoiceNo < 1) return;
+
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(ioInvData.CreatePrimarykeyString(nInvoiceNo));
+                InvoiceData IRec = new InvoiceData();
+                if (!ioInvData.SelectAction(strSQL.ToString(), ref IRec)) return;
+
+                frmPrint.OrdersName = IRec.RequestName;
+                frmPrint.CommentData[0]= IRec.Comment1;
+                frmPrint.CommentData[1] = IRec.Comment2;
+                frmPrint.CommentData[2] = IRec.Comment3;
+                frmPrint.CommentData[3] = IRec.Comment4;
+                frmPrint.CommentData[4] = IRec.Comment5;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 印刷データ取得処理
+        /// <summary>
+        /// 印刷データ取得処理
+        /// </summary>
+        /// <returns></returns>
+        private bool GetPrintData(IOInvoiceData ioInvData
+                                    , IORequestHead ioReqHead
+                                    , IORequestData ioReqData)
+        {
+            try
+            {
+                bool bRet = true;
+
+                List<RequestHead> lstReqHead = new List<RequestHead>();
+                // 請求書データの取得
+                if (!GetInvoiceData(ioInvData, ioReqHead, ioReqData, ref lstReqHead)) return false;
+
+                // 本工事の工事情報の取得
+                if (!GetMainConstructionBaseInfo(lstReqHead)) return false;
+
+                return bRet;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 請求金額退避エリア
+        /// <summary>
+        /// 請求金額退避エリア
+        /// </summary>
+        private long m_lTotalAmount = 0;    // 合計金額
+        private long m_lTaxAmount = 0;      // 合計税金
+        #endregion
+
+        #region 請求書データの取得
+        /// <summary>
+        /// 請求書データの取得
+        /// </summary>
+        private bool GetInvoiceData(IOInvoiceData ioInvData
+                                    , IORequestHead ioReqHead
+                                    , IORequestData ioReqData
+                                    , ref List<RequestHead> lstReqHead)
+        {
+            try
+            {
+                StringBuilder sql = new StringBuilder();
+
+                // 請求書データの取得
+                sql.Append(ioInvData.CreatePrimarykeyString(m_nInvoiceNo));
+                if (!ioInvData.SelectAction(sql.ToString(), ref m_InvData, false)) return false;
+
+                // 請求ヘッダの取得
+                sql.Clear();
+                sql.AppendFormat(" WHERE InvoiceNo = {0} ORDER BY ReqConstructionCode", m_nInvoiceNo);
+                if (!ioReqHead.SelectAction(sql.ToString(), ref lstReqHead, false)) return false;
+
+                m_dicReqData.Clear();
+                foreach (RequestHead ReqHead in lstReqHead)
+                {
+                    // 請求ヘッダの取得
+                    sql.Clear();
+                    sql.AppendFormat(" WHERE RequestNo = {0} ORDER BY MainConstructionCode", ReqHead.RequestNo);
+                    List<RequestData> lstReqData = new List<RequestData>();
+                    if (!ioReqData.SelectAction(sql.ToString(), ref lstReqData, false)) return false;
+
+                    m_dicReqData.Add(ReqHead.RequestNo, lstReqData);
+
+                    // 請求金額集計
+                    //m_lTotalAmount += ReqHead.RequestTotalAmount;
+                    //m_lTaxAmount += ReqHead.TaxAmount;
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+
+                return false;
+            }
+        }
+        #endregion
+
+        #region 工事基本情報の追加
+        /// <summary>
+        /// 工事基本情報の追加
+        /// </summary>
+        /// <param name="Info"></param>
+        private void AddConstructionBaseInfoDic(ConstructionBaseInfo Info)
+        {
+            if (!m_dicConstructionBaseInfo.TryGetValue(Info.ConstructionCode, out ConstructionBaseInfo wrk))
+            {
+                m_dicConstructionBaseInfo.Add(Info.ConstructionCode, Info);
+            }
+        }
+        #endregion
+
+        #region 工事基本情報の取得
+        /// <summary>
+        /// 工事基本情報の取得
+        /// </summary>
+        private bool GetMainConstructionBaseInfo(List<RequestHead> lstReqHead)
+        {
+            IOConstructionBaseInfo ioInfo = new IOConstructionBaseInfo();
+            try
+            {
+                m_dicConstructionBaseInfo.Clear();
+                StringBuilder sql = new StringBuilder();
+                foreach (RequestHead ReqHead in lstReqHead)
+                {
+                    sql.Clear();
+                    sql.Append(ioInfo.CreatePrimarykeyString(ReqHead.ReqConstructionCode));
+                    ConstructionBaseInfo info = new ConstructionBaseInfo();
+                    if (!ioInfo.SelectAction(sql.ToString(), ref info)) return false;
+
+                    AddConstructionBaseInfoDic(info);
+                }
+
+                List<int> lstKey = new List<int>(m_dicReqData.Keys);
+                foreach (int nRequestNo in lstKey)
+                {
+                    List<RequestData> lstReqData = null;
+
+                    if (!m_dicReqData.TryGetValue(nRequestNo, out lstReqData)) return false;
+
+                    foreach (RequestData ReqData in lstReqData)
+                    {
+                        sql.Clear();
+                        sql.Append(ioInfo.CreatePrimarykeyString(ReqData.MainConstructionCode));
+                        ConstructionBaseInfo info = new ConstructionBaseInfo();
+                        if (!ioInfo.SelectAction(sql.ToString(), ref info)) return false;
+
+                        AddConstructionBaseInfoDic(info);
+                    }
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                ioInfo.close(); ioInfo = null;
+            }
+
+        }
+        #endregion
+
+        #region 工事データ更新
+        /// <summary>
+        /// 工事基本情報を更新する
+        /// </summary>
+        /// <returns></returns>
+        private bool UpdateConstructionBaseInfo(IOConstructionBaseInfo ioInfo
+                                                ,IOConstructionProgressDate ioPrgDate)
+        {
+            try
+            {
+                List<int> lstKeyInfo = new List<int>(m_dicConstructionBaseInfo.Keys);
+                Dictionary<int, int> dicCodeWork = new Dictionary<int, int>();
+
+                StringBuilder sql = new StringBuilder();
+
+                foreach (int nConstructionCode in lstKeyInfo)
+                {
+                    // 工事基本情報の取得
+                    if (!m_dicConstructionBaseInfo.TryGetValue(nConstructionCode, out ConstructionBaseInfo Info)) return false;
+
+                    int nOldStatus = Info.ConstructionStatusFlg;
+
+                    // 工事状態が「請求準備」ではない場合は対象外
+                    if (nOldStatus != (int)CommonDefine.StatNumArray.Status9) continue;
+
+                    // 工事基本情報で請求一括でない場合は対象外
+                    if (Info.BillingSplitFlg != (int)ConstructionBaseInfo.BillingSplitFlgDef.AllOnBilling) continue;
+
+                    // 工事状態フラグを「請求確認」に変更
+                    Info.ConstructionStatusFlg = (int)CommonDefine.StatNumArray.Status10;
+
+                    // 請求日セット
+                    Info.BillingDate = m_DatePrintOut;
+
+                    // 工事基本情報を更新
+                    sql.Clear();
+                    sql.Append(ioInfo.CreatePrimarykeyString(nConstructionCode));
+                    if (!ioInfo.UpdateAction(sql.ToString(), Info, false)) return false;
+
+                    // 既にデータが存在しないか一度検索しておく
+                    sql.Clear();
+                    sql.Append(ioPrgDate.CreatePrimarykeyString(nConstructionCode));
+                    sql.AppendFormat(" And ConstructionStatusFlg = {0}", Info.ConstructionStatusFlg);
+                    List<ConstructionProgressDate> lstPrgDate = new List<ConstructionProgressDate>();
+                    if (!ioPrgDate.SelectAction(sql.ToString(), ref lstPrgDate, false)) return false;
+
+                    // データがある場合は、当該データを削除する
+                    if (lstPrgDate.Count > 0)
+                    {
+                        // 該当データを削除
+                        sql.Clear();
+                        sql.Append(ioPrgDate.CreatePrimarykeyString(nConstructionCode));
+                        sql.AppendFormat(" And ConstructionStatusFlg = {0}", Info.ConstructionStatusFlg);
+                        if (!ioPrgDate.DeleteAction(sql.ToString(), false)) return false;
+                    }
+
+                    // 案件進捗日付データの構築
+                    ConstructionProgressDate PrgDate = new ConstructionProgressDate();
+
+                    // 案件進捗日付データの設定
+                    PrgDate.ConstructionCode = nConstructionCode;
+                    PrgDate.ConstructionStatusFlg = (int)CommonDefine.StatNumArray.Status10;
+                    PrgDate.PreviousStatusFlg = nOldStatus;
+                    PrgDate.ChangeDate = DateTime.Now;
+                    PrgDate.ChangePersonCode = CommonMotions.LoginUserData.PersonCode;
+
+                    // 案件進捗日付データを挿入
+                    if (!ioPrgDate.InsertAction(PrgDate, false)) return false;
+
+                    // 対象工事が結合（子）工事の場合
+                    if (Info.JoinFlg == (int)ConstructionBaseInfo.JoinFlgDef.JoinChildren)
+                    {
+                        // 結合（親）工事番号の取得
+                        int nParentCode = GetJoinParentConstructionCode(nConstructionCode);
+
+                        int nChildCode = 0;
+
+                        // 親工事番号が登録されていない場合は登録する
+                        if (!dicCodeWork.TryGetValue(nParentCode, out nChildCode))
+                        {
+                            // 結合（親）の工事状態を更新するために工事番号を退避
+                            dicCodeWork.Add(nParentCode, nConstructionCode);
+                        }
+                    }
+                }
+
+                List<int> lstKeyLink = new List<int>(dicCodeWork.Keys);
+
+                foreach (int nParentCode in lstKeyLink)
+                {
+                    if (dicCodeWork.TryGetValue(nParentCode, out int nChildCode))
+                    {
+                        // 結合（親）の工事状態を変更
+                        ClsChangeBaseInfoData.SetParentConstrStatus(ioInfo, nChildCode);
+                    }
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 同一請求書番号一括チェック処理
+        /// <summary>
+        /// 同一請求書番号一括チェック処理
+        /// </summary>
+        private void CheckBoxGroupOn()
+        {
+            try
+            {
+                dgv1.EndEdit();
+                int nCurRowIndex = dgv1.CurrentRow.Index;
+                int CurRowBillNo = CommonMotions.cnvInt(dgv1.CurrentRow.Cells[(int)DispColumn.InvoiceNo].Value);
+                bool bCurRowChk = CommonMotions.cnvBool(dgv1.CurrentRow.Cells[(int)DispColumn.CheckFlg].Value);
+
+                // 請求書番号件数チェック
+                foreach (DataGridViewRow CheckRow in dgv1.Rows)
+                {
+                    // 自行は処理しない
+                    if (CheckRow.Index == nCurRowIndex) continue;
+
+                    int nBillNo = CommonMotions.cnvInt(CheckRow.Cells[(int)DispColumn.InvoiceNo].Value);
+                    // 番号無は処理しない
+                    if (nBillNo < 1) continue;
+                    // 番号違いは処理しない
+                    if (nBillNo != CurRowBillNo) continue;
+
+                    // 選択行と同じ状態にするOnならばOff
+                    CheckRow.Cells[(int)DispColumn.CheckFlg].Value = bCurRowChk;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
+        #region 請求書番号つきデータの複数選択チェック
+        /// <summary>
+        /// 請求書番号つきデータの複数選択チェック
+        /// </summary>
+        /// <returns></returns>
+        private bool BillingNoMulitiCheck()
+        {
+            try
+            {
+                // 請求書番号件数チェック
+                List<int> BillNoList = new List<int>();
+                foreach (DataGridViewRow CurRow in dgv1.Rows)
+                {
+                    // 選択無しは対象外
+                    bool bCurRowChk = CommonMotions.cnvBool(CurRow.Cells[(int)DispColumn.CheckFlg].Value);
+                    if (!bCurRowChk) continue;
+
+                    // 未印刷は対象外
+                    int nBillNo = CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value);
+                    if (nBillNo < 1) continue;
+
+                    // 既に追加済みかを検索する
+                    bool bMatch = false;
+                    foreach(int nNo in BillNoList)
+                    {
+                        if (nBillNo == nNo)
+                        {
+                            bMatch = true;
+                            break;
+                        }
+                    }
+                    if (bMatch) continue;
+
+                    // 対象リストへ追加
+                    BillNoList.Add(nBillNo);
+                }
+                // 複数あればエラー
+                if (BillNoList.Count > 1) return false;
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 選択データより請求書番号取得
+        /// <summary>
+        /// 選択データより請求書番号取得
+        /// </summary>
+        /// <returns></returns>
+        private int GetSelInvoiceNo()
+        {
+            try
+            {
+                // 請求書番号取得
+                int nBillNo = 0;
+                foreach (DataGridViewRow CurRow in dgv1.Rows)
+                {
+                    nBillNo = CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.InvoiceNo].Value);
+                    if (nBillNo < 1) continue;
+
+                    bool bCurRowChk = CommonMotions.cnvBool(CurRow.Cells[(int)DispColumn.CheckFlg].Value);
+                    if (!bCurRowChk) continue;
+
+                    break;
+                }
+
+                return nBillNo;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return -1;
+            }
+        }
+        #endregion
+
+        #region 請求データ取消処理
+        /// <summary>
+        /// 請求データ取消処理
+        /// </summary>
+        private void InvoiceRemoveProc()
+        {
+            FrmCancelInvoice frm = new FrmCancelInvoice();
+            try
+            {
+                // 請求書番号つきデータの複数選択チェック
+                if (!BillingNoMulitiCheck())
+                {
+                    MessageBox.Show("複数請求書を選択しています。"
+                                    , "選択エラー"
+                                    , MessageBoxButtons.YesNo
+                                    , MessageBoxIcon.Information);
+                    return;
+                }
+
+                int nInvoiceNo = GetSelInvoiceNo();
+                
+                // 取消理由入力
+                frm.InvoiceNo = nInvoiceNo;
+                frm.ExecuteSubFlg = m_ExecuteSubFlg;
+                if (frm.ShowDialog() == DialogResult.Cancel) return;
+                string strReason = frm.Reason;
+
+                if (MessageBox.Show("選択されている請求書を取り消しますがよろしいですか？", "削除確認"
+                                        , MessageBoxButtons.YesNo
+                                        , MessageBoxIcon.Information) == DialogResult.No)
+                {
+                    return;
+                }
+
+                // 請求書データの削除
+                if (!DeleteInvoiceData(nInvoiceNo, strReason)) return;
+
+                // データ表示
+                DispGridData();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                frm.Dispose();frm = null;
+            }
+        }
+        #endregion
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSelPrtOut.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSelPrtOut.cs	(nonexistent)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrint/FrmRequestPrintSelPrtOut.cs	(revision 369)
@@ -0,0 +1,1364 @@
+﻿using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+using ProcessManagement.Common;
+using ProcessManagement.DataModel;
+using ProcessManagement.DB;
+using ProcessManagement.DB.IOAccess;
+using ProcessManagement.Forms.SubForms;
+using ProcessManagement.Forms.ControlsAction;
+
+
+namespace ProcessManagement.Forms.DataEntry
+{
+    public partial class FrmRequestPrintSel
+    {
+        #region 定数
+
+        /// <summary>
+        /// Excelテンプレートファイル名
+        /// </summary>
+        //private static string s_ExcelRequestSheetFileName = @"\RequestSheet.xlsx";
+        private static string s_ExcelRequestSheetFileName = CommonDefine.s_ExcelOriginalFileName;
+
+        /// <summary>
+        /// デスクトップフォルダ名
+        /// </summary>
+        private static string s_ExecCurrentDirName = System.Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
+
+        /// <summary>
+        /// シート名称カウント
+        /// </summary>
+        enum enumSheetName
+        {
+            Cover = 0,
+            List,
+            Detail,
+        }
+
+        /// <summary>
+        /// Excel シート名称
+        /// </summary>
+        private static readonly Dictionary<enumSheetName, string> s_DicSheetName = new Dictionary<enumSheetName, string>()
+        {
+            { enumSheetName.Cover, "請求書（表紙）" },
+            { enumSheetName.List, "請求書（一覧）" },
+            { enumSheetName.Detail, "請求書（内訳）" },
+        };
+
+        /// <summary>
+        /// 図形置き場シート
+        /// </summary>
+        private const string s_shapeSheetName = "図形シート";
+        /// <summary>
+        /// 図形名称
+        /// </summary>
+        private const string s_shapeName = "EstimateSeal1";                                    // 積算見積表紙判子
+        /// <summary>
+        /// 図形サイズ【縦・横】（図形名称順）
+        /// </summary>
+        private static float[,] s_ShapeSize = new float[1, 2] { { 25.51f, 25.51f } };         // 積算見積表紙判子
+        /// <summary>
+        /// 積算見積表紙判子フォントサイズ
+        /// </summary>
+        private static float[] s_EstimateSeal1FontSize = { 16f, 8f, 8f, 8f, 6f };
+        /// <summary>
+        /// 表紙判子位置(Key:X Value:Y)
+        /// </summary>
+        private static float[,] s_CoverSealPoint = new float[4, 2] {{592.50f, 555.25f},    // 社長
+                                                                    {657.25f, 555.25f},    // 所属長
+                                                                    {721.00f, 555.25f},    // 営業
+                                                                    {784.00f, 555.25f} };  // 担当
+
+        #endregion
+
+        #region 変数
+
+        #region スレッド使用定義
+        //コントロールの値を変更するためのデリゲート
+        private delegate void SetProgressValueDelegate(int num);
+        //バックグラウンド処理が終わった時にコントロールの値を変更するためのデリゲート
+        private delegate void ThreadCompletedDelegate();
+        //処理がキャンセルされた時にコントロールの値を変更するためのデリゲート
+        private delegate void ThreadCanceledDelegate();
+
+        //別処理をするためのスレッド
+        private System.Threading.Thread workerThread;
+
+        //デリゲートの作成
+        SetProgressValueDelegate m_progressDlg = null;
+        ThreadCompletedDelegate m_completeDlg = null;
+        ThreadCanceledDelegate m_canceledDlg = null;
+        #endregion
+
+        /// <summary>
+        /// Excel印刷クラスオブジェクト
+        /// </summary>
+        private UsedExcel m_UsedExcel = null;
+
+        /// <summary>
+        /// 保存時Excelパス
+        /// </summary>
+        private string m_SelectSaveExcel = "";
+
+        /// <summary>
+        /// 請求書データ
+        /// </summary>
+        private InvoiceData m_InvData = new InvoiceData();
+
+        /// <summary>
+        /// 請求データ
+        /// </summary>
+        private Dictionary<int, List<RequestData>> m_dicReqData = new Dictionary<int, List<RequestData>>();
+
+        /// <summary>
+        /// 工事基本情報データ
+        /// </summary>
+        private Dictionary<int, ConstructionBaseInfo> m_dicConstructionBaseInfo = new Dictionary<int, ConstructionBaseInfo>();
+
+        /// <summary>
+        /// 日付印刷
+        /// </summary>
+        private bool m_bDatePrintFlg = true;
+
+        /// <summary>
+        /// 印刷日付
+        /// </summary>
+        private DateTime m_DatePrintOut = DateTime.Now;
+
+        /// <summary>
+        /// 印刷処理プロセス数カウント
+        /// </summary>
+        private int m_ProcessCount = 0;
+
+        /// <summary>
+        /// プログレスバー使用カウント
+        /// </summary>
+        private int m_ProgressCount = 0;
+
+        /// <summary>
+        /// キャンセルボタンがクリックされたかを示すフラグ
+        /// </summary>
+        private volatile bool m_Canceled = false;
+        /// <summary>
+        /// 実行ダイアログ選択値
+        /// </summary>
+        private DialogResult m_PrintresRet = DialogResult.Cancel;
+
+        /// <summary>
+        /// 終了コード
+        /// </summary>
+        private CommonDefine.RetunAnswer m_rtAns = CommonDefine.RetunAnswer.Answer0;
+
+        #endregion
+
+        #region プロパティ
+
+        #endregion
+
+        #region 工事基本情報取得
+        /// <summary>
+        /// 工事基本情報取得
+        /// </summary>
+        /// <param name="constructionCode"></param>
+        /// <param name="data"></param>
+        /// <returns></returns>
+        private bool GetConstructionBaseInfo(int constructionCode, ref ConstructionBaseInfo data)
+        {
+            var cbDB = new IOConstructionBaseInfo();
+            try
+            {
+                // 工事基本情報取得クラス領域
+                var wrk = new ConstructionBaseInfo();
+
+                // 工事基本情報取得SQL
+                string strSQL = cbDB.CreatePrimarykeyString(constructionCode);
+
+                // 工事基本情報取得
+                if (!cbDB.SelectAction(strSQL, ref wrk)) return false;
+
+                // 工事基本情報取得クラス領域
+                data = wrk;
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                cbDB.close(); cbDB = null;
+            }
+            return true;
+        }
+        #endregion
+
+        #region 結合親工事番号の取得
+        /// <summary>
+        /// 結合親工事番号の取得
+        /// </summary>
+        /// <param name="nConstructionCode"></param>
+        /// <returns></returns>
+        private int GetJoinParentConstructionCode(int nConstructionCode)
+        {
+            int nParentCode = -1;
+            IOConstructionLink ioLink = new IOConstructionLink();
+
+            try
+            {
+                string sql = string.Format(" WHERE FluctuationCode = {0} AND LinkType = 1 ", nConstructionCode);
+                List<ConstructionLink> lstWork = new List<ConstructionLink>();
+
+                if (ioLink.SelectAction(sql, ref lstWork) == false)
+                {
+                    return nParentCode;
+                }
+
+                foreach (ConstructionLink Link in lstWork)
+                {
+                    nParentCode = Link.ConstructionCode;
+                    break;
+                }
+                return nParentCode;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return -1;
+            }
+            finally
+            {
+                ioLink.close();
+                ioLink = null;
+            }
+
+        }
+        #endregion
+
+        #region 工事基本情報明細
+        /// <summary>
+        /// 工事基本情報明細を工事基本情報明細テーブルから工事番号をキーに取得する関数
+        /// </summary>
+        /// <param name="datas"></param>
+        /// <returns></returns>
+        private bool GetConstructionBaseInfoDetail(List<int> lstConstCode, ref Dictionary<int, Dictionary<int, string>> datas)
+        {
+            var sbDB = new IOConstructionBaseInfoDetail();
+            try
+            {
+                // 工事基本情報明細取得クラス領域
+                var wrk = new List<ConstructionBaseInfoDetail>();
+
+                // 工事基本情報明細取得SQL
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(" Where ConstructionCode in ( ");
+                foreach (int constCode in lstConstCode)
+                {
+                    strSQL.AppendFormat((lstConstCode.IndexOf(constCode) == 0) ? " {0}" : ", {0}", constCode);
+                }
+                strSQL.Append(" )");
+
+                // 工事基本情報明細取得
+                if (!sbDB.SelectAction(strSQL.ToString(), ref wrk)) return false;
+
+                datas.Clear();
+
+                foreach (var record in wrk)
+                {
+                    if (!datas.ContainsKey(record.ConstructionCode))
+                        datas[record.ConstructionCode] = new Dictionary<int, string>();
+                    datas[record.ConstructionCode][record.DetailNo] = record.DetailString;
+                }
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                sbDB.close();
+                sbDB = null;
+            }
+
+            return true;
+        }
+        #endregion
+
+        #region 工事増減情報取得
+        /// <summary>
+        /// 工事増減情報取得
+        /// </summary>
+        /// <param name="constructionCode"></param>
+        /// <param name="datas"></param>
+        /// <returns></returns>
+        private bool GetConstructionLink(int constructionCode, ref List<int> datas)
+        {
+            var sbDB = new IOConstructionLink();
+            try
+            {
+                // 工事増減情報取得クラス領域
+                var wrk = new List<ConstructionLink>();
+
+                // 工事増減情報取得SQL
+                string strSQL = sbDB.CreatePrimarykeyString(constructionCode);
+
+                // ソート条件追加
+                strSQL += " ORDER BY FLUCTUATIONCODE";
+
+                // 工事増減情報取得
+                if (!sbDB.SelectAction(strSQL, ref wrk)) return false;
+
+                foreach (var record in wrk)
+                {
+                    datas.Add(record.FluctuationCode);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                sbDB.close();
+                sbDB = null;
+            }
+
+            return true;
+        }
+        #endregion
+
+        #region 工事詳細台帳データ取得
+        /// <summary>
+        /// 工事詳細台帳データ取得
+        /// </summary>
+        /// <param name="constructionCode"></param>
+        /// <param name="data"></param>
+        /// <returns></returns>
+        private bool GetConstructionLedger(int constructionCode, ref ConstructionLedger data)
+        {
+            var sbDB = new IOConstructionLedger();
+            try
+            {
+                // 工事詳細台帳データ取得クラス領域
+                var wrk = new ConstructionLedger();
+
+                // 工事詳細台帳データ取得SQL
+                string strSQL = sbDB.CreatePrimarykeyString(constructionCode);
+
+                // 工事詳細台帳データ取得
+                if (!sbDB.SelectAction(strSQL, ref wrk)) return false;
+
+                data = wrk;
+
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                sbDB.close();
+                sbDB = null;
+            }
+
+            return true;
+        }
+        #endregion
+
+        #region プログレスバーの値を変更する
+        /// <summary>
+        /// プログレスバーの値を変更する
+        /// </summary>
+        /// <param name="num"></param>
+        private void SetProgressValue(int num)
+        {
+            // ProgressBarの値を変更する
+            PrintProgress.Value = num;
+            PrintProgress.Update();
+        }
+        #endregion
+
+        #region 処理が完了した時にコントロールの値を変更する
+        /// <summary>
+        /// 処理が完了した時にコントロールの値を変更する
+        /// </summary>
+        private void ThreadCompleted()
+        {
+            try
+            {
+                // コントロールの変更
+                PrintProgress.Visible = false;
+                panel2.Update();
+
+                // ボタンの変更
+                PrintButtonVisbleControl(false);
+
+                // 印刷
+                if (m_rtAns == CommonDefine.RetunAnswer.Answer0)
+                {
+                    if (m_PrintresRet == DialogResult.No)
+                    {
+                        MessageBox.Show("保存が終了しました。", "終　了", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                    }
+                    return;
+                }
+
+                string strMessage = "";
+                switch ((int)m_rtAns)
+                {
+                    case (int)CommonDefine.RetunAnswer.Answer1:
+                        strMessage = "システムエラー";
+                        break;
+                    case (int)CommonDefine.RetunAnswer.Answer2:
+                        strMessage = "工事基本情報取得エラー";
+                        break;
+                }
+                MessageBox.Show(strMessage, "印刷エラー", MessageBoxButtons.OK, MessageBoxIcon.Error);
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                m_rtAns = CommonDefine.RetunAnswer.Answer1;
+            }
+        }
+        #endregion
+
+        #region 印刷時ボタン制御
+        /// <summary>
+        /// 印刷時ボタン制御
+        /// </summary>
+        /// <param name="bprint"></param>
+        private void PrintButtonVisbleControl(bool bprint)
+        {
+            if (bprint)
+            {
+                btnGenerate.Visible = false;
+                btnDel.Visible = false;
+                btnEnd.Visible = false;
+                btnCancel.Visible = true;
+                PrintProgress.Visible = true;
+            }
+            else
+            {
+                btnGenerate.Visible = true;
+                btnDel.Visible = true;
+                btnEnd.Visible = true;
+                btnCancel.Visible = false;
+                PrintProgress.Visible = false;
+            }
+
+        }
+        #endregion
+
+        #region 処理がキャンセルされた時にコントロールの値を変更する
+        /// <summary>
+        /// 処理がキャンセルされた時にコントロールの値を変更する
+        /// </summary>
+        private void ThreadCanceled()
+        {
+            // コントロールの変更
+            PrintProgress.Visible = false;
+            panel2.Update();
+
+            // ボタンの変更
+            PrintButtonVisbleControl(false);
+        }
+        #endregion
+
+        #region 印刷メイン
+        /// <summary>
+        /// 印刷メイン
+        /// </summary>
+        /// <param name="bPrint">true:印刷のみ,false:保存のみ</param>
+        public void PrintMain(object args)
+        {
+            try
+            {
+                object[] argsTmp = (object[])args;
+                bool bPrint = true;
+                for (int i = 0; i < argsTmp.Length; i++)
+                {
+                    bPrint = (bool)argsTmp[i];
+                }
+
+                //デリゲートの作成
+                m_progressDlg = new SetProgressValueDelegate(SetProgressValue);
+                m_completeDlg = new ThreadCompletedDelegate(ThreadCompleted);
+                m_canceledDlg = new ThreadCanceledDelegate(ThreadCanceled);
+
+                // 印刷クラス
+                m_UsedExcel = new UsedExcel();
+                m_ProgressCount = 0;
+
+                // コントロールの表示を変更する
+                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
+                // エクセルブックオープン
+                if (!m_UsedExcel.ExcelBookOpen(System.Environment.CurrentDirectory + s_ExcelRequestSheetFileName))
+                {
+                    m_rtAns = CommonDefine.RetunAnswer.Answer5;
+                    return;
+                }
+
+                // 中断処理
+                if (m_Canceled) return;
+
+                // コントロールの表示を変更する
+                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
+
+                // 表紙印刷
+                CommonDefine.RetunAnswer rtAns = PrintCover();
+                if (rtAns != CommonDefine.RetunAnswer.Answer0)
+                {
+                    m_rtAns = rtAns;
+                    return;
+                }
+
+                // 中断処理
+                if (m_Canceled) return;
+
+                // コントロールの表示を変更する
+                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
+
+                // 一覧印刷
+                rtAns = PrintList();
+                if (rtAns != CommonDefine.RetunAnswer.Answer0)
+                {
+                    m_rtAns = rtAns;
+                    return;
+                }
+
+                // 中断処理
+                if (m_Canceled) return;
+
+                // コントロールの表示を変更する
+                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
+
+                int no = 1;
+                foreach (RequestHead ReqHead in m_lstReqHead)
+                {
+                    List<RequestData> lstReqData = null;
+                    if (!m_dicReqData.TryGetValue(ReqHead.RequestNo, out lstReqData)) continue;
+                    //{
+                    //    m_rtAns = rtAns;
+                    //    return;
+                    //}
+
+                    foreach (RequestData ReqData in lstReqData)
+                    {
+                        if (!m_dicConstructionBaseInfo.TryGetValue(ReqData.MainConstructionCode, out ConstructionBaseInfo Info)) continue;
+                        //{
+                        //    m_rtAns = CommonDefine.RetunAnswer.Answer2;
+                        //    return;
+                        //}
+
+                        long lRequestAmount = ReqData.RequestAmount0;
+                        lRequestAmount += ReqData.RequestAmount1;
+                        lRequestAmount += ReqData.RequestAmount2;
+                        lRequestAmount += ReqData.RequestAmount3;
+                        lRequestAmount += ReqData.RequestAmount4;
+                        lRequestAmount += ReqData.RequestAmount5;
+                        lRequestAmount += ReqData.RequestAmount6;
+                        lRequestAmount += ReqData.UnpaidAmount;
+
+                        if (lRequestAmount == 0)
+                        {
+                            continue;
+                        }
+
+                        rtAns = PrintDetail(no, ReqHead, ReqData, Info);
+                        if (rtAns != CommonDefine.RetunAnswer.Answer0)
+                        {
+                            m_rtAns = rtAns;
+                            return;
+                        }
+                        // 中断処理
+                        if (m_Canceled) return;
+
+                        // コントロールの表示を変更する
+                        this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
+                    }
+                }
+
+                if (bPrint)
+                {
+                    // 印刷処理
+                    m_UsedExcel.ExcelSheetPrint();
+                }
+                else
+                {
+                    // 保存処理
+                    SaveExcelFile();
+                }
+
+                // コントロールの表示を変更する
+                this.Invoke(m_progressDlg, new object[] { ++m_ProgressCount });
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                // 完了したときにコントロールの値を変更する
+                this.Invoke(m_completeDlg);
+
+                //デリゲートの廃棄
+                m_progressDlg = null;
+                m_completeDlg = null;
+                m_canceledDlg = null;
+
+                // Excel開放
+                if (m_UsedExcel != null)
+                {
+                    m_UsedExcel.ExcelBookClose();
+                }
+                m_UsedExcel = null;
+
+                // ガーベージコレクト
+                GC.Collect();
+            }
+        }
+        #endregion
+
+        #region Excelファイル保存処理
+        /// <summary>
+        /// Excelファイル保存処理
+        /// </summary>
+        private void SaveExcelFile()
+        {
+            try
+            {
+                string filePath = @m_SelectSaveExcel;
+
+                // ファイルパスの存在をチェック
+                if (CommonMotions.ChkDirPath(filePath, true))
+                {
+                    // ファイル名を作成
+                    string wrkFile = m_InvData.RequestName + "様 請求書";
+
+                    // ファイル名に使用できない文字を取り除く
+                    foreach (var badCh in m_UsedExcel.ExcelBadCharcter)
+                    {
+                        wrkFile = wrkFile.Replace(badCh, "");
+                    }
+
+                    // ファイル名作成
+                    filePath += @"\" + @wrkFile;
+
+                    // ファイル保存
+                    m_UsedExcel.SaveSwitch = true;
+                    m_UsedExcel.ExcelSaveBook(filePath);
+
+                }
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+
+        }
+        #endregion
+
+        #region エリアスを付けた担当者マスタのフィールド文を作成する
+        /// <summary>
+        /// エリアスを付けた担当者マスタのフィールド文を作成する
+        /// </summary>
+        /// <param name="Alias"></param>
+        /// <param name="strSQL"></param>
+        private string CreatePersonSQL(string Alias)
+        {
+            try
+            {
+                StringBuilder strcmd = new StringBuilder();
+
+                bool bColFirst = true;
+                string strWork = string.Empty;
+                foreach (var gender in Enum.GetValues(typeof(IOMPersonInCharge.ColumnCnt)))
+                {
+                    strWork = gender.ToString();
+                    if (!bColFirst) strcmd.Append(", ");
+                    if (strWork.Equals("StartDate") || strWork.Equals("EndDate"))
+                    {
+                        strcmd.AppendFormat(" DATE_FORMAT({0}{1}, '%Y/%m/%d')", Alias, strWork);
+                    }
+                    else if (strWork.Equals("EntryDate") || strWork.Equals("UpdateDate"))
+                    {
+                        strcmd.AppendFormat(" DATE_FORMAT({0}{1}, '%Y/%m/%d %H:%i:%s')", Alias, strWork);
+                    }
+                    else
+                    {
+                        strcmd.AppendFormat(" {0}{1}", Alias, strWork);
+                    }
+                    bColFirst = false;
+                }
+
+                return strcmd.ToString();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return string.Empty;
+            }
+        }
+        #endregion
+
+        #region 表紙印鑑表示
+        /// <summary>
+        ///  表紙印鑑表示
+        /// </summary>
+        private void PrintCoverSeal(int PersonCode)
+        {
+            IOMPersonInCharge picDB = new IOMPersonInCharge();
+            IOProcessApproval paDB = new IOProcessApproval();
+            try
+            {
+                ArrayList arlist = new ArrayList();
+
+                // 承認データ読込
+                StringBuilder strSQLSeal = new StringBuilder();
+                strSQLSeal.Append("SELECT");
+                strSQLSeal.Append(CreatePersonSQL("B."));
+                strSQLSeal.Append(", C.SECRANK FROM PROCESSAPPROVAL A, PERSONINCHARGEMASTER B, SECURITYMASTER C");
+                strSQLSeal.Append(paDB.CreatePrimarykeyString(m_lstReqHead[0].ReqConstructionCode, (int)ClsExcute.ApprovalListNo.OrderRequestApproval, m_lstReqHead[0].OrderNo));
+                strSQLSeal.Append(" AND A.PERSONCODE = B.PERSONCODE");
+                strSQLSeal.Append(" AND C.SECCODE = B.SECCODE");
+                strSQLSeal.Append(" Order By C.SecRank ASC");
+                if (!paDB.ExecuteReader(strSQLSeal.ToString(), ref arlist)) return;
+
+                // 印刷テーブル作成
+                int[] PorsonCode = new int[4] { 0, 0, 0, 0 };
+                List<string> NameTable = new List<string>();
+                for (int i = 0; i < PorsonCode.Length; i++) NameTable.Add("");
+                string[] OrderOfPrecedenceTable = new string[4];
+
+                int PersonDataCnt = Enum.GetNames(typeof(IOMPersonInCharge.ColumnCnt)).Length;
+                // 承認データより担当者その他を取得する
+                for (int i = 0; i < arlist.Count; i++)
+                {
+                    // エクセルの枠より多い場合は処理を抜ける
+                    if (i > 3) break;
+
+                    object[] readObj = (object[])arlist[i];
+                    PersonInChargeMaster PersonRec = new PersonInChargeMaster();
+                    picDB.Reader2Struct(readObj, ref PersonRec);
+
+                    // セキュリティデータチェック
+                    int SecRank = CommonMotions.cnvInt(readObj[PersonDataCnt]);
+                    int SRank = (int)CommonDefine.SecurityRankPos.SpecialAuthority;     // 特別権限
+                    int FRank = (int)CommonDefine.SecurityRankPos.FreeAuthority;        // 統括者権限
+                    int LRank = (int)CommonDefine.SecurityRankPos.LimitedAuthority;     // 所属長権限
+
+                    // 担当者以外は役職がある
+                    if (SecRank == CommonDefine.SecurityRankList[SRank].Key
+                        || SecRank == CommonDefine.SecurityRankList[FRank].Key
+                        || SecRank == CommonDefine.SecurityRankList[LRank].Key)
+                    {
+                        // コードと名前と役職を取得する
+                        PorsonCode[i] = PersonRec.PersonCode;
+                        NameTable[i] = PersonRec.SealPrintName;
+                        // 7文字以上は文字が見えないので省略
+                        if (PersonRec.DisplayString.Length > 7)
+                        {
+                            OrderOfPrecedenceTable[i] = PersonRec.DisplayString.Substring(0, 7);
+                        }
+                        else if (PersonRec.DisplayString.Length < 1)
+                        {
+                            OrderOfPrecedenceTable[i] = "担　当";
+                        }
+                        else
+                        {
+                            OrderOfPrecedenceTable[i] = PersonRec.DisplayString;
+                        }
+                    }
+                    else
+                    {   // 担当者
+                        // コードと名前を取得する
+                        PorsonCode[3] = PersonRec.PersonCode;
+                        NameTable[3] = PersonRec.SealPrintName;
+                        OrderOfPrecedenceTable[3] = "担　当";
+                    }
+                }
+                // テーブル内に同じコードが無いか後から調べる
+                for (int i = 0; i < PorsonCode.Length - 1; i++)
+                {
+                    if (PorsonCode[i] == 0) continue;
+                    for (int ii = 0; ii < PorsonCode.Length; ii++)
+                    {
+                        if (i == ii) continue;
+                        if (PorsonCode[i] != PorsonCode[ii]) continue;
+
+                        PorsonCode[ii] = 0;
+                        NameTable[ii] = string.Empty;
+                        OrderOfPrecedenceTable[ii] = string.Empty;
+                        break;
+                    }
+                }
+
+                // 印鑑を描画する
+                OfficeShapeDefine shapedef = new OfficeShapeDefine();
+                shapedef.ShapeSheetName = s_shapeSheetName;     // 図形シート名称
+                shapedef.ShapeName = s_shapeName;               // 図形名称
+                shapedef.ShapeWidth = s_ShapeSize[0, 0];        // 図形描画サイズ Width
+                shapedef.ShapeHeight = s_ShapeSize[0, 1];       // 図形描画サイズ Height
+
+                for (int i = 0; i < 4; i++)
+                {
+                    // 
+                    if (PorsonCode[i] != 0)
+                    {
+                        shapedef.ShapeDrowPointX = s_CoverSealPoint[i, 0];          // 図形描画位置 X
+                        shapedef.ShapeDrowPointY = s_CoverSealPoint[i, 1];          // 図形描画位置 Y
+                        shapedef.DrowText = NameTable[i];                           // 描画文字列
+                        int ifontSize = NameTable[i].Length - 1;
+                        if (ifontSize > 4) ifontSize = 4;
+                        shapedef.FontSize = s_EstimateSeal1FontSize[ifontSize];     // フォントサイズ
+                        // 図形描画
+                        m_UsedExcel.ExcelCopyShape(shapedef);
+                    }
+                    // 役職を印字する(M～)
+                    int orgNumber = 11 + i;
+                    string strAlpha = CommonMotions.cnvNumberToAlphaCharacter(orgNumber);
+                    m_UsedExcel.ExcelCellSet(string.Format("{0}25", strAlpha), OrderOfPrecedenceTable[i]);
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                paDB.close(); paDB = null;
+                picDB.close(); picDB = null;
+            }
+        }
+        #endregion
+
+        #region 請求書(表紙)作成
+        /// <summary>
+        /// 請求書(表紙)作成
+        /// </summary>
+        /// <returns></returns>
+        private CommonDefine.RetunAnswer PrintCover()
+        {
+            try
+            {
+                // 請求書表紙シートの取得
+                m_UsedExcel.ExcelSheetGet(s_DicSheetName[enumSheetName.Cover]);
+
+                // 請求書No(4行目 N列)
+                string strInvNo = (m_InvData.InvoiceNo / 1000).ToString();
+                strInvNo += "-";
+                strInvNo += (m_InvData.InvoiceNo % 1000).ToString("00");
+
+                ExcelPrintData InvNoData = new ExcelPrintData();
+                InvNoData.AddPrintData("N", 3, strInvNo).ExcelCellSet(m_UsedExcel);
+
+
+                // ③ 請求日(5行目 M列)
+                if (m_bDatePrintFlg == true)
+                {
+                    ExcelPrintData reqDate = new ExcelPrintData();
+                    reqDate.AddPrintData("M", 4, m_DatePrintOut.ToString("yyyy/MM/dd")).ExcelCellSet(m_UsedExcel);
+                }
+                else
+                {
+                    ExcelPrintData reqDate = new ExcelPrintData();
+                    reqDate.AddPrintData("M", 4, "　　年　　月　　日").ExcelCellSet(m_UsedExcel);
+                }
+
+                // ④ 請求先名称(9行目 C列)
+                ExcelPrintData nameData = new ExcelPrintData();
+                string str = m_InvData.RequestName + "　様";
+                nameData.AddPrintData("C", 8, str).ExcelCellSet(m_UsedExcel);
+
+                // ⑤ 請求金額(13行目 C列)
+                ExcelPrintData priceData = new ExcelPrintData();
+                priceData.AddPrintData("C", 12, m_InvData.TotalAmount.ToString("#,0")).ExcelCellSet(m_UsedExcel);
+
+                // ⑥ 消費税(14行目 C列)
+                ExcelPrintData taxData = new ExcelPrintData();
+                taxData.AddPrintData("C", 13, m_InvData.TaxAmount.ToString("#,0")).ExcelCellSet(m_UsedExcel);
+
+                // 工事名(16行目 D列)
+                //ExcelPrintData cnstnameData = new ExcelPrintData();
+                //cnstnameData.AddPrintData("D", 15, m_lstReqHead[0].ReqConstructionName).ExcelCellSet(m_UsedExcel);
+
+                // 会社名
+                string strCompany = string.Format("{0}　{1}", CommonMotions.SystemMasterData.CompanyName1
+                                                                , CommonMotions.SystemMasterData.CompanyName2);
+
+                // 代表者名
+                string strPresident = string.Format("{0} {1}", CommonMotions.SystemMasterData.CEOPositionName.Trim()
+                                                                , CommonMotions.SystemMasterData.CEOName.Trim());
+
+                // 郵便番号
+                string strZip = "〒" + CommonMotions.SystemMasterData.ZipCode;
+
+                // 住所
+                string strAddr = CommonMotions.SystemMasterData.Address1;
+                if (CommonMotions.SystemMasterData.Address2 != string.Empty)
+                {
+                    strAddr += CommonMotions.SystemMasterData.Address2;
+                }
+                if (CommonMotions.SystemMasterData.Address3 != string.Empty)
+                {
+                    strAddr += CommonMotions.SystemMasterData.Address3;
+                }
+
+                // TEL/FAX
+
+                string strTelFax = "";
+
+                if (CommonMotions.SystemMasterData.PhoneNumber != string.Empty)
+                {
+                    strTelFax = "TEL " + CommonMotions.SystemMasterData.PhoneNumber + "(代)";
+                }
+                if (CommonMotions.SystemMasterData.FaxNumber != string.Empty)
+                {
+                    if (strTelFax.Length > 0)
+                    {
+                        strTelFax += " ";
+                    }
+                    strTelFax += "FAX " + CommonMotions.SystemMasterData.FaxNumber;
+                }
+                // URL
+                string strUrl = CommonMotions.SystemMasterData.HomePageURL;
+
+                ExcelPrintData companyData = new ExcelPrintData();
+                companyData.AddPrintData("L", 17, strCompany);                              // 会社名(18行目 L列)           
+                companyData.AddPrintData("L", 18, strPresident);                            // 代表者名(19行目 L列)           
+                companyData.AddPrintData("L", 19, strZip);                                  // 郵便番号(20行目 L列) 
+                companyData.AddPrintData("L", 20, strAddr);                                 // 住所(21行目 L列)           
+                companyData.AddPrintData("L", 21, strTelFax);                               // TEL/FAX(22行目 L列)           
+                companyData.AddPrintData("L", 22, strUrl);                                  // URL(23行目 L列)           
+                companyData.ExcelCellSet(m_UsedExcel);
+
+                ExcelPrintData commentData = new ExcelPrintData();
+                commentData.AddPrintData("C", 17, m_InvData.Comment1);                              // コメント1(18行目 C列)           
+                commentData.AddPrintData("C", 18, m_InvData.Comment2);                              // コメント2(19行目 C列)           
+                commentData.AddPrintData("C", 19, m_InvData.Comment3);                              // コメント3(20行目 C列)           
+                commentData.AddPrintData("C", 20, m_InvData.Comment4);                              // コメント4(21行目 C列)           
+                commentData.AddPrintData("C", 21, m_InvData.Comment5);                              // コメント5(22行目 C列)           
+                commentData.ExcelCellSet(m_UsedExcel);
+
+                m_dicConstructionBaseInfo.TryGetValue(m_lstReqHead[0].ReqConstructionCode, out ConstructionBaseInfo Info);
+
+                // 印鑑描画
+                PrintCoverSeal(Info.ConstructionPersonCode);
+
+                return CommonDefine.RetunAnswer.Answer0;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return CommonDefine.RetunAnswer.Answer1;
+            }
+        }
+        #endregion
+
+        #region 請求書(一覧)作成
+        /// <summary>
+        /// 請求書(一覧)作成
+        /// </summary>
+        /// <returns></returns>
+        private CommonDefine.RetunAnswer PrintList()
+        {
+            try
+            {
+                int trow = 4;
+                ExcelPrintData ExcelPrnData = null;
+
+                //// 請求書表紙シートの取得
+                m_UsedExcel.ExcelSheetGet(s_DicSheetName[enumSheetName.List]);
+
+                List<int> lstKey = new List<int>(m_dicReqData.Keys);
+
+                foreach (int nReqNo in lstKey)
+                {
+                    List<RequestData> lstData = null;
+
+                    if (m_dicReqData.TryGetValue(nReqNo, out lstData) == false)
+                    {
+                        continue;
+                    }
+
+                    foreach (RequestData ReqData in lstData)
+                    {
+                        // 工事情報取得
+                        if (!m_dicConstructionBaseInfo.TryGetValue(ReqData.MainConstructionCode, out ConstructionBaseInfo Info)) continue;
+
+                        int nOrderNo = 0;
+                        foreach (RequestHead wrk in m_lstReqHead)
+                        {
+                            // 同じ請求番号を探す
+                            if (wrk.RequestNo != ReqData.RequestNo) continue;
+                            nOrderNo = wrk.OrderNo;
+                            break;
+                        }
+
+                        StringBuilder strname = new StringBuilder();
+                        strname.AppendFormat("{0}-{1}\r\n", (ReqData.MainConstructionCode / 100), (ReqData.MainConstructionCode % 100).ToString("00"));
+                        strname.Append(ReqData.ConstructionName);
+                        // 分割は回数追加
+                        if (m_ExecuteSubFlg == (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling)
+                        {
+                            if (nOrderNo > 0) strname.AppendFormat("：請求{0}回目", nOrderNo);
+                        }
+
+                        ExcelPrnData = new ExcelPrintData();
+                        ExcelPrnData.AddPrintData("B", trow, strname.ToString());             // 工事件名
+                        ExcelPrnData.AddPrintData("C", trow, string.Format("{0}年{1}月{2}日"
+                                                                        , Info.ConstructionPeriodStart.Year
+                                                                        , Info.ConstructionPeriodStart.Month.ToString("00")
+                                                                        , Info.ConstructionPeriodStart.Day.ToString("00")));    // 工期開始
+
+                        string EndDate = string.Empty;
+                        string DateDescription = string.Empty;
+                        if (Info.RevCompleteDate != DateTime.MinValue)
+                        {   // 検査是正完了日
+                            EndDate = string.Format("{0}年{1}月{2}日"
+                                                                    , Info.RevCompleteDate.Year
+                                                                    , Info.RevCompleteDate.Month.ToString("00")
+                                                                    , Info.RevCompleteDate.Day.ToString("00"));
+                            DateDescription = "（現場是正完了日）";
+                        }
+                        else
+                        {   // 請求確認日
+                            EndDate = string.Format("{0}年{1}月{2}日"
+                                                                    , Info.BillingDate.Year
+                                                                    , Info.BillingDate.Month.ToString("00")
+                                                                    , Info.BillingDate.Day.ToString("00"));
+                            DateDescription = "（請求書確認日）";
+                        }
+                        ExcelPrnData.AddPrintData("C", trow + 1, string.Format("～ {0}", EndDate));                 // 工期終了
+                        ExcelPrnData.AddPrintData("C", trow + 2, DateDescription);                                  // 終了日説明
+
+                        long lAmount = ReqData.RequestAmount0;
+                        lAmount += ReqData.RequestAmount1;
+                        lAmount += ReqData.RequestAmount2;
+                        lAmount += ReqData.RequestAmount3;
+                        lAmount += ReqData.RequestAmount4;
+                        lAmount += ReqData.RequestAmount5;
+                        lAmount += ReqData.RequestAmount6;
+                        lAmount += ReqData.TaxAmount;
+                        lAmount += ReqData.UnpaidAmount;
+
+                        ExcelPrnData.AddPrintData("D", trow, lAmount.ToString("#,0"));                                  // 請求金額
+
+                        ExcelPrnData.AddPrintData("E", trow, ReqData.Note);                                             // 備考
+                        ExcelPrnData.ExcelCellSet(m_UsedExcel);
+
+                        trow += 3;
+
+                    }
+                }
+
+                return CommonDefine.RetunAnswer.Answer0;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return CommonDefine.RetunAnswer.Answer1;
+            }
+        }
+        #endregion
+
+        #region 請求書(内訳)作成
+        /// <summary>
+        /// 請求書(内訳)作成
+        /// </summary>
+        /// <param name="dicReqDetail"></param>
+        /// <param name="constLedger"></param>
+        /// <param name="lstConstLink"></param>
+        /// <returns></returns>
+        private CommonDefine.RetunAnswer PrintDetail(int no
+                                                    , RequestHead ReqHead
+                                                    , RequestData ReqData
+                                                    , ConstructionBaseInfo Info)
+        {
+            try
+            {
+                // 請求書内訳シートの取得
+                m_UsedExcel.ExcelSheetGet(s_DicSheetName[enumSheetName.Detail]);
+
+                ExcelPrintData ExcelPrnData = null;
+
+                // ------------------------------- 工事名 -------------------------------
+                // ① 工事件名
+                ExcelPrnData = new ExcelPrintData();
+                ExcelPrnData.AddPrintData("C", 2, ReqData.ConstructionName).ExcelCellSet(m_UsedExcel);
+
+                // ------------------------------- 請負金額 -------------------------------
+                ExcelPrnData = new ExcelPrintData();
+                ExcelPrnData.AddPrintData("A", 5, no.ToString());
+                ExcelPrnData.AddPrintData("G", 5, ReqData.ContractAmount.ToString("#,0"));
+                ExcelPrnData.ExcelCellSet(m_UsedExcel);
+
+                // ------------------------------- 前回ご請求分 -------------------------------
+                // 分割払いの場合
+                if (Info.BillingSplitFlg == (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling)
+                {
+                    ExcelPrnData = new ExcelPrintData();
+                    ExcelPrnData.AddPrintData("B", 7, "前回ご請求済分");
+                    ExcelPrnData.AddPrintData("C", 7, "前回請求書参照※増減補正済み");
+                    ExcelPrnData.AddPrintData("D", 7, "1");
+                    ExcelPrnData.AddPrintData("E", 7, "式");
+                    ExcelPrnData.AddPrintData("G", 7, ReqData.PaidAmount.ToString("#,0"));
+                    ExcelPrnData.ExcelCellSet(m_UsedExcel);
+                }
+
+                long lTotalAmount = 0;
+
+                // ------------------------------- 見積金額（本工事） -------------------------------
+                ExcelPrnData = new ExcelPrintData();
+                ExcelPrnData.AddPrintData("G", 9, ReqData.RequestAmount0.ToString("#,0"));
+                ExcelPrnData.ExcelCellSet(m_UsedExcel);
+
+                lTotalAmount += ReqData.RequestAmount0;
+
+                // ------------------------------- 見積金額（増減工事） -------------------------------
+                long[] lAmount = new long[] { ReqData.RequestAmount1
+                                            , ReqData.RequestAmount2
+                                            , ReqData.RequestAmount3
+                                            , ReqData.RequestAmount4
+                                            , ReqData.RequestAmount5
+                                            , ReqData.RequestAmount6 };
+                string[] strTitle = new string[] { "増減工事１"
+                                                    , "増減工事２"
+                                                    , "増減工事３"
+                                                    , "増減工事４"
+                                                    , "増減工事５"
+                                                    , "増減工事６" };
+
+                for (int i = 0; i < 6; i++)
+                {
+                    if (lAmount[i] > 0)
+                    {
+                        ExcelPrnData = new ExcelPrintData();
+                        ExcelPrnData.AddPrintData("B", 10 + i, strTitle[i]);
+                        ExcelPrnData.AddPrintData("C", 10 + i, "追加増減見積もり参照");
+                        ExcelPrnData.AddPrintData("D", 10 + i, "1");
+                        ExcelPrnData.AddPrintData("E", 10 + i, "式");
+                        ExcelPrnData.AddPrintData("G", 10 + i, lAmount[i].ToString("#,0"));
+                        ExcelPrnData.ExcelCellSet(m_UsedExcel);
+
+                        lTotalAmount += lAmount[i];
+                    }
+                }
+
+                // ------------------------------- 今回ご請求分 -------------------------------
+                ExcelPrnData = new ExcelPrintData();
+                ExcelPrnData.AddPrintData("G", 17, lTotalAmount.ToString("#,0"));
+                ExcelPrnData.ExcelCellSet(m_UsedExcel);
+
+                // ------------------------------- 請負金額残金 -------------------------------
+                // 分割払いの場合
+                if (Info.BillingSplitFlg == (int)ConstructionBaseInfo.BillingSplitFlgDef.SplitBilling)
+                {
+                    ExcelPrnData = new ExcelPrintData();
+                    ExcelPrnData.AddPrintData("B", 19, "請負金額残金");
+                    ExcelPrnData.AddPrintData("D", 19, "1");
+                    ExcelPrnData.AddPrintData("E", 19, "式");
+                    ExcelPrnData.AddPrintData("G", 19, ReqData.UnclaimedAmount.ToString("#,0"));
+                    ExcelPrnData.ExcelCellSet(m_UsedExcel);
+                }
+
+                // ------------------------------- 未入金分 -------------------------------
+                if (ReqData.UnpaidAmount > 0)
+                {
+                    ExcelPrnData = new ExcelPrintData();
+                    ExcelPrnData.AddPrintData("B", 21, "未入金分");
+                    ExcelPrnData.AddPrintData("G", 21, ReqData.UnpaidAmount.ToString("#,0"));
+                    ExcelPrnData.ExcelCellSet(m_UsedExcel);
+
+                    lTotalAmount += ReqData.UnpaidAmount;
+                }
+
+                // ------------------------------- 小計 -------------------------------
+                ExcelPrnData = new ExcelPrintData();
+                ExcelPrnData.AddPrintData("G", 23, lTotalAmount.ToString("#,0"));
+                ExcelPrnData.ExcelCellSet(m_UsedExcel);
+
+                // ------------------------------- 消費税 -------------------------------
+                ExcelPrnData = new ExcelPrintData();
+                ExcelPrnData.AddPrintData("C", 24, string.Format("{0}%", CommonMotions.SystemMasterData.ConsumptionTax));
+                ExcelPrnData.AddPrintData("G", 24, ReqData.TaxAmount.ToString("#,0"));
+                ExcelPrnData.ExcelCellSet(m_UsedExcel);
+                lTotalAmount += ReqData.TaxAmount;
+
+                // ------------------------------- 税込金額合計 -------------------------------
+                ExcelPrnData = new ExcelPrintData();
+                ExcelPrnData.AddPrintData("G", 25, lTotalAmount.ToString("#,0"));
+                ExcelPrnData.ExcelCellSet(m_UsedExcel);
+
+                return CommonDefine.RetunAnswer.Answer0;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return CommonDefine.RetunAnswer.Answer1;
+            }
+
+        }
+        #endregion
+
+        #region Excelデータ出力用内部クラス定義
+        /// <summary>
+        /// Excelデータ出力用内部クラス定義
+        /// </summary>
+        private class ExcelPrintData
+        {
+            // Excelデータ保持用用ディクショナリ
+            private Dictionary<int, Dictionary<int, object>> m_DicPrintData = new Dictionary<int, Dictionary<int, object>>();
+
+            // Excelカラム名取得用
+            private static char[] s_Asc = { 'A', 'B', 'C', 'D', 'E'
+                                            , 'F', 'G', 'H', 'I', 'J'
+                                            , 'K', 'L', 'M', 'N', 'O'
+                                            , 'P', 'Q', 'R', 'S', 'T'
+                                            , 'U', 'V', 'W', 'X', 'Y'
+                                            , 'Z' };
+
+            private int m_RowMin = int.MaxValue;
+            private int m_RowMax = int.MinValue;
+            private int m_ColMin = int.MaxValue;
+            private int m_ColMax = int.MinValue;
+
+            /// <summary>
+            /// エクセルカラム名とインデックス番号のディクショナリ
+            /// </summary>
+            private static Dictionary<string, int> s_IndexOfExcelColumn = InitDicColumnIndex();
+
+            #region Excelカラムインデックスディクショナリ作成メソッド
+            /// <summary>
+            /// Excelカラムインデックスディクショナリ作成メソッド
+            /// </summary>
+            /// <returns></returns>
+            private static Dictionary<string, int> InitDicColumnIndex()
+            {
+                var result = new Dictionary<string, int>();
+
+                for (int indx = 0; indx < 256; indx++)
+                {
+                    string res = GetColumnString(indx);
+
+                    result.Add(res, indx);
+
+                }
+                return result;
+            }
+            #endregion
+
+            #region カラム英字名を取得
+            /// <summary>
+            /// カラム英字名を取得
+            /// </summary>
+            /// <param name="colIndex"></param>
+            /// <returns></returns>
+            private static string GetColumnString(int colIndex)
+            {
+                string res = "";
+
+                int court = colIndex;
+                while (court >= s_Asc.Count())
+                {
+                    res = s_Asc[court % s_Asc.Count()] + res;
+                    court = (int)Math.Truncate((double)court / (double)s_Asc.Count() - 1);
+                }
+                res = s_Asc[court % s_Asc.Count()] + res;
+
+                return res;
+            }
+            #endregion
+
+            #region データ追加
+            /// <summary>
+            /// データ追加
+            /// </summary>
+            /// <param name="colName">カラム名文字(※ "A", "B", 等...</param>
+            /// <param name="rowNo">行インデックス番号 0オリジン</param>
+            /// <param name="data">出力データオブジェクト</param>
+            /// <returns></returns>
+            public ExcelPrintData AddPrintData(string colName, int rowNo, object data)
+            {
+                return AddPrintData(s_IndexOfExcelColumn[colName], rowNo, data);
+            }
+            #endregion
+
+            #region データ追加
+            /// <summary>
+            /// データ追加
+            /// </summary>
+            /// <param name="colIndex">カラムインデックス 0オリジン</param>
+            /// <param name="rowNo">行インデックス番号 0オリジン</param>
+            /// <param name="data">出力データオブジェクト</param>
+            /// <returns></returns>
+            public ExcelPrintData AddPrintData(int colIndex, int rowNo, object data)
+            {
+                if (!m_DicPrintData.ContainsKey(rowNo))
+                    m_DicPrintData[rowNo] = new Dictionary<int, object>();
+
+                m_DicPrintData[rowNo][colIndex] = data;
+
+                if (m_RowMin > rowNo) m_RowMin = rowNo;
+                if (m_RowMax < rowNo) m_RowMax = rowNo;
+                if (m_ColMin > colIndex) m_ColMin = colIndex;
+                if (m_ColMax < colIndex) m_ColMax = colIndex;
+
+                return this;
+            }
+            #endregion
+
+            #region UsedExcelオブジェクトにデータをセットする
+            /// <summary>
+            /// UsedExcelオブジェクトにデータをセットする
+            /// </summary>
+            /// <param name="usedExcel">UsedExcelオブジェクト(シート取得済みであること)</param>
+            public void ExcelCellSet(UsedExcel usedExcel)
+            {
+                if (m_RowMin == int.MaxValue ||
+                    m_RowMax == int.MinValue ||
+                    m_ColMin == int.MaxValue ||
+                    m_ColMax == int.MinValue)
+                {
+                    return;
+                }
+
+                // オブジェクト配列を宣言
+                object[,] objCells = new object[m_RowMax - m_RowMin + 1, m_ColMax - m_ColMin + 1];
+
+                // 配列にデータを移し替える
+                foreach (int row in m_DicPrintData.Keys)
+                {
+                    foreach (int col in m_DicPrintData[row].Keys)
+                    {
+                        objCells[row - m_RowMin, col - m_ColMin] = m_DicPrintData[row][col];
+                    }
+                }
+
+                // セル名を取得
+                string startCell = GetColumnString(m_ColMin) + string.Format("{0}", m_RowMin + 1);
+                string endCell = GetColumnString(m_ColMax) + string.Format("{0}", m_RowMax + 1);
+
+                // セルにセット
+                usedExcel.ExcelCellSet(startCell, objCells, endCell);
+
+            }
+            #endregion
+        }
+        #endregion
+    }
+}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrintList/FrmReqPrintList.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrintList/FrmReqPrintList.designer.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrintList/FrmReqPrintList.designer.cs	(revision 369)
@@ -28,16 +28,16 @@
         /// </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 dataGridViewCellStyle10 = 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 dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = 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();
             this.btnEnd = new System.Windows.Forms.Button();
             this.label1 = new System.Windows.Forms.Label();
             this.btnDataUpDate = new System.Windows.Forms.Button();
@@ -52,6 +52,7 @@
             this.cmbReqMonth = new System.Windows.Forms.ComboBox();
             this.label2 = new System.Windows.Forms.Label();
             this.dgvEntry = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
+            this.lblProcessTitil = new System.Windows.Forms.Label();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -62,7 +63,6 @@
             this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.lblProcessTitil = new System.Windows.Forms.Label();
             this.groupBox1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvEntry)).BeginInit();
@@ -88,9 +88,9 @@
             this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.label1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.label1.ForeColor = System.Drawing.Color.Black;
-            this.label1.Location = new System.Drawing.Point(440, 10);
+            this.label1.Location = new System.Drawing.Point(390, 10);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(400, 20);
+            this.label1.Size = new System.Drawing.Size(500, 20);
             this.label1.TabIndex = 6;
             this.label1.Text = "請　求　書　印　刷　一　覧";
             this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -242,21 +242,21 @@
             this.dgvEntry.AllowUserToDeleteRows = false;
             this.dgvEntry.AllowUserToResizeColumns = false;
             this.dgvEntry.AllowUserToResizeRows = false;
-            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.dgvEntry.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+            dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.dgvEntry.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
             this.dgvEntry.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.dgvEntry.BackgroundColor = System.Drawing.Color.White;
             this.dgvEntry.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.dgvEntry.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle12.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, 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.dgvEntry.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
             this.dgvEntry.ColumnHeadersHeight = 24;
             this.dgvEntry.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvEntry.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -270,14 +270,14 @@
             this.Column7,
             this.Column8,
             this.Column9});
-            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Window;
-            dataGridViewCellStyle10.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.ControlText;
-            dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
-            dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvEntry.DefaultCellStyle = dataGridViewCellStyle10;
+            dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle20.Font = new System.Drawing.Font("ＭＳ 明朝", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle20.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
+            dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvEntry.DefaultCellStyle = dataGridViewCellStyle20;
             this.dgvEntry.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
             this.dgvEntry.EnableHeadersVisualStyles = false;
             this.dgvEntry.Location = new System.Drawing.Point(10, 103);
@@ -293,12 +293,22 @@
             this.dgvEntry.SelectionChanged += new System.EventHandler(this.dgvEntry_SelectionChanged);
             this.dgvEntry.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvEntry_MouseUp);
             // 
+            // lblProcessTitil
+            // 
+            this.lblProcessTitil.BackColor = System.Drawing.Color.White;
+            this.lblProcessTitil.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblProcessTitil.Location = new System.Drawing.Point(10, 10);
+            this.lblProcessTitil.Name = "lblProcessTitil";
+            this.lblProcessTitil.Size = new System.Drawing.Size(300, 20);
+            this.lblProcessTitil.TabIndex = 32;
+            this.lblProcessTitil.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // Column1
             // 
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle3.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Black;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle3;
+            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle13.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle13.ForeColor = System.Drawing.Color.Black;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle13;
             this.Column1.HeaderText = "№";
             this.Column1.Name = "Column1";
             this.Column1.ReadOnly = true;
@@ -307,10 +317,10 @@
             // 
             // Column2
             // 
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle4.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black;
-            this.Column2.DefaultCellStyle = dataGridViewCellStyle4;
+            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle14.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle14.ForeColor = System.Drawing.Color.Black;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle14;
             this.Column2.HeaderText = "請求月";
             this.Column2.Name = "Column2";
             this.Column2.ReadOnly = true;
@@ -319,10 +329,10 @@
             // 
             // Column3
             // 
-            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle5.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black;
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle5;
+            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle15.Font = new System.Drawing.Font("ＭＳ 明朝", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle15.ForeColor = System.Drawing.Color.Black;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle15;
             this.Column3.HeaderText = "請求先名称";
             this.Column3.Name = "Column3";
             this.Column3.ReadOnly = true;
@@ -331,11 +341,11 @@
             // 
             // Column4
             // 
-            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle6.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle6.ForeColor = System.Drawing.Color.Black;
-            this.Column4.DefaultCellStyle = dataGridViewCellStyle6;
-            this.Column4.HeaderText = "未請求";
+            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle16.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle16.ForeColor = System.Drawing.Color.Black;
+            this.Column4.DefaultCellStyle = dataGridViewCellStyle16;
+            this.Column4.HeaderText = "未印刷";
             this.Column4.Name = "Column4";
             this.Column4.ReadOnly = true;
             this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
@@ -342,11 +352,11 @@
             // 
             // Column5
             // 
-            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle7.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle7.ForeColor = System.Drawing.Color.Black;
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle7;
-            this.Column5.HeaderText = "請求済";
+            dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle17.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle17.ForeColor = System.Drawing.Color.Black;
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle17;
+            this.Column5.HeaderText = "印刷済";
             this.Column5.Name = "Column5";
             this.Column5.ReadOnly = true;
             this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
@@ -353,11 +363,11 @@
             // 
             // Column10
             // 
-            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle8.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle8.ForeColor = System.Drawing.Color.Black;
-            this.Column10.DefaultCellStyle = dataGridViewCellStyle8;
-            this.Column10.HeaderText = "未請求金額";
+            dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle18.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle18.ForeColor = System.Drawing.Color.Black;
+            this.Column10.DefaultCellStyle = dataGridViewCellStyle18;
+            this.Column10.HeaderText = "未印刷金額";
             this.Column10.Name = "Column10";
             this.Column10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.Column10.Width = 150;
@@ -364,11 +374,11 @@
             // 
             // Column6
             // 
-            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle9.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            dataGridViewCellStyle9.ForeColor = System.Drawing.Color.Black;
-            this.Column6.DefaultCellStyle = dataGridViewCellStyle9;
-            this.Column6.HeaderText = "請求済金額";
+            dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle19.Font = new System.Drawing.Font("Century", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            dataGridViewCellStyle19.ForeColor = System.Drawing.Color.Black;
+            this.Column6.DefaultCellStyle = dataGridViewCellStyle19;
+            this.Column6.HeaderText = "印刷済金額";
             this.Column6.Name = "Column6";
             this.Column6.ReadOnly = true;
             this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
@@ -398,16 +408,6 @@
             this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
             this.Column9.Visible = false;
             // 
-            // lblProcessTitil
-            // 
-            this.lblProcessTitil.BackColor = System.Drawing.Color.White;
-            this.lblProcessTitil.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblProcessTitil.Location = new System.Drawing.Point(10, 10);
-            this.lblProcessTitil.Name = "lblProcessTitil";
-            this.lblProcessTitil.Size = new System.Drawing.Size(300, 20);
-            this.lblProcessTitil.TabIndex = 32;
-            this.lblProcessTitil.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // FrmReqPrintList
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -456,6 +456,8 @@
         private System.Windows.Forms.NumericUpDown numUDConstPro;
         private System.Windows.Forms.Label label5;
         private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.Label lblCellTotal;
+        private System.Windows.Forms.Label lblProcessTitil;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
@@ -466,7 +468,5 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
         private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
-        private System.Windows.Forms.Label lblCellTotal;
-        private System.Windows.Forms.Label lblProcessTitil;
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrintList/FrmReqPrintListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrintList/FrmReqPrintListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrintList/FrmReqPrintListAuxiliary.cs	(revision 369)
@@ -287,37 +287,27 @@
                     // �ꕔ�����L
                     // �@���Ǘ��ҁi�������̂݁j
 
-                    // �����J�n�I���N����
-                    int nTargetYear = (int)numUDConstPro.Value;
-                    string strdtStart = CommonMotions.GetOpeningEndDate(nTargetYear, true).ToShortDateString();
-                    string strdtEnd = CommonMotions.GetOpeningEndDate(nTargetYear, false).ToShortDateString();
+                    strSQL.Append(" And (");
 
-                    StringBuilder strChgDep = new StringBuilder();
-                    strChgDep.Append(" (Select * From chgchargedep As H");
-                    strChgDep.AppendFormat(" Where (DATE(H.StartDate) <= DATE('{0}')", strdtEnd);
-                    strChgDep.AppendFormat(" And DATE('{0}') <= DATE(H.CompDate)))", strdtStart);
+                    strSQL.AppendFormat("(A.SalesPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.SalesDepCode IN(SELECT A1.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A1");
+                    strSQL.AppendFormat("                   WHERE A1.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" And (A.SalesPersonCode IN (Select A1.PersonCode From PersonInChargeMaster A1");
-                    strSQL.AppendFormat(" And (A.SalesPersonCode IN (Select A1.PersonCode From {0} As A1", strChgDep.ToString());
-                    strSQL.Append("                                  Where A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
-                    strSQL.AppendFormat("                                                        WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
-
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0}", iStatus);
 
-                    // strSQL.Append(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From PersonInChargeMaster A3");
-                    strSQL.AppendFormat(" And (A.ConstructionPersonCode IN (Select A3.PersonCode From {0} As A3", strChgDep.ToString());
-                    strSQL.Append("                                         Where A3.DepartmentCode IN (SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
-                    strSQL.AppendFormat("                                                               WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append(" And (");
+                    strSQL.AppendFormat("(A.ConstructionPersonCode = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("    Or A.ConstrDepCode IN(SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSQL.AppendFormat("                    WHERE A2.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From PersonInChargeMaster A5");
-                    strSQL.AppendFormat(" Or A.CONSTRSUBPERSONCODE IN (Select A5.PersonCode From {0} As A5", strChgDep.ToString());
-                    strSQL.Append("                                    Where A5.DepartmentCode IN (SELECT A6.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A6");
-                    strSQL.AppendFormat("                                                          WHERE A6.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.CONSTRSUBPERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrSubDepCode IN(SELECT A3.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A3");
+                    strSQL.AppendFormat("                          WHERE A3.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
 
-                    // strSQL.Append(" Or A.ConstructionInstructor IN (Select A7.PersonCode From PersonInChargeMaster A7");
-                    strSQL.AppendFormat(" Or A.ConstructionInstructor IN (Select A7.PersonCode From {0} As A7", strChgDep.ToString());
-                    strSQL.Append("                                       Where A7.DepartmentCode IN (SELECT A8.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A8");
-                    strSQL.AppendFormat("                                                             WHERE A8.PERSONCODE = {0}))))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" Or (A.ConstructionInstructor = {0}", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("        Or A.ConstrInstrDepCode IN(SELECT A4.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A4");
+                    strSQL.AppendFormat("                          WHERE A4.PERSONCODE = {0}))", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.Append("))");
 
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg >= {0} And A.ConstructionPersonCode = 0)", iStatus);          // �������͌��ϒ�o��ōH���S���҂������Ă��Ȃ��ꍇ�\��
                     strSQL.AppendFormat(" Or (A.ConstructionStatusFlg = {0}", iStatus2);                                            // �������p���͈��p�����̂��̂͌�����
@@ -771,7 +761,7 @@
                 int nOrderersCode = CommonMotions.cnvInt(CurRow.Cells[(int)DispColumn.OrdererCode].Value);
                 string strOrderersName = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.OrdererName].Value);
 
-
+                // ----- �N���p�����^�Z�b�g
                 // ���N���v���Z�X�Z�b�g
                 NowPoint = ClsExcute.NextProcess(m_ExecuteFlg);
                 // �v���Z�X�ԍ��Z�b�g
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.Designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.Designer.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.Designer.cs	(revision 369)
@@ -54,7 +54,7 @@
             this.label2 = new System.Windows.Forms.Label();
             this.btnShow = new System.Windows.Forms.Button();
             this.button1 = new System.Windows.Forms.Button();
-            this.dgvMaster = new CustomControls.DataGridViewEX();
+            this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.No = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.RequestMonth = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.RequestNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -94,10 +94,10 @@
             this.label3.Anchor = System.Windows.Forms.AnchorStyles.Top;
             this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.label3.Font = new System.Drawing.Font("ＭＳ Ｐゴシック", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label3.Location = new System.Drawing.Point(464, 10);
+            this.label3.Location = new System.Drawing.Point(414, 10);
             this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(400, 20);
+            this.label3.Size = new System.Drawing.Size(500, 20);
             this.label3.TabIndex = 0;
             this.label3.Text = "入　金　確　認";
             this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SelectPayment/FrmSelectPayment.cs	(revision 369)
@@ -362,7 +362,7 @@
 
             try
             {
-                string now = DateTime.Now.ToString("yyyy/MM");
+                string strNow = DateTime.Now.ToString("yyyy/MM");
                 List<RequestHead> lstDd = new List<RequestHead>();
                 List<string> lstDate = new List<string>();
 
@@ -372,13 +372,13 @@
                 {
                     lstDate.Add(DdInfo.RequestMonth.ToString().Insert(4, "/"));
                 }
-                if (lstDate.IndexOf(now) < 0)
+                if (lstDate.IndexOf(strNow) < 0)
                 {
-                    lstDate.Insert(0, now);
+                    lstDate.Insert(0, strNow);
                 }
 
                 cbTargetMonth.Items.AddRange(lstDate.ToArray());
-                cbTargetMonth.SelectedIndex = lstDate.IndexOf(now);
+                cbTargetMonth.SelectedIndex = lstDate.IndexOf(strNow);
 
                 // ユーザ権限設定
                 ClsSecurityPermission.SetUserType(m_UserInfo);
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SubConstrRegist/FrmSubConstrRegistListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SubConstrRegist/FrmSubConstrRegistListAuxiliary.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SubConstrRegist/FrmSubConstrRegistListAuxiliary.cs	(revision 369)
@@ -176,7 +176,7 @@
         /// ����SQL�̃Z�L�����e�B���蕔�����쐬����
         /// </summary>
         /// <param name="strSQL"></param>
-        private void CreateNewSecuritySQL(ref string strSQL)
+        private void CreateNewSecuritySQL(ref StringBuilder strSQL)
         {
             try
             {
@@ -197,13 +197,14 @@
                 {
                     // �ꕔ�����L
                     // �@���Ǘ��ҁi�������̂݁j
-                    strSQL += " And (A.PERSONCODE IN (Select A1.PersonCode From PersonInChargeMaster A1";
-                    strSQL += string.Format(" WHERE A1.DepartmentCode IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2 WHERE A2.PERSONCODE = {0})))", CommonMotions.LoginUserData.PersonCode);
-
+                    strSQL.Append(" And (A.PERSONCODE IN (Select A1.PersonCode From PersonInChargeMaster A1");
+                    strSQL.Append("                         WHERE A1.DepartmentCode");
+                    strSQL.Append("                         IN (SELECT A2.DEPARTMENTCODE FROM PERSONDEPARTMENTMASTER A2");
+                    strSQL.AppendFormat("                         WHERE A2.PERSONCODE = {0})))", CommonMotions.LoginUserData.PersonCode);
                 }
                 else if (CommonMotions.LoginUserSecurity.SecRange == CommonDefine.SecurityRangeList[None].Key)
                 {
-                    strSQL += string.Format(" And (A.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
+                    strSQL.AppendFormat(" And (A.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
                 }
             }
             catch (Exception ex)
@@ -271,32 +272,32 @@
         /// <summary>
         /// �\���p�f�[�^�擾SQL�쐬
         /// </summary>
-        private void CreateInitSQL(ref string strSQL)
+        private void CreateInitSQL(ref StringBuilder strSQL)
         {
             try
             {
-                strSQL = "SELECT";
-                strSQL += " B.PERSONNAME";
-                strSQL += ", A.CORPORATESTATUSNAME";
-                strSQL += ", A.CORPORATESTATUSPOINT";
-                strSQL += ", A.COMPANYNAME";
-                strSQL += ", DATE_FORMAT(A.CREATEDATE,'%Y/%m/%d')";
-                strSQL += ", A.PERSONCODE";
-                strSQL += ", A.SEQNO";
-                strSQL += ", D.DEPARTMENTSTRING";
-                strSQL += ", A.DATAMODE";
-                strSQL += ", A.CEOPOSITIONNAME";
-                strSQL += ", A.CEONAME";
-                strSQL += ", A.CONTACTPERSONNAME";
+                strSQL.Append("SELECT");
+                strSQL.Append(" B.PERSONNAME");
+                strSQL.Append(", A.CORPORATESTATUSNAME");
+                strSQL.Append(", A.CORPORATESTATUSPOINT");
+                strSQL.Append(", A.COMPANYNAME");
+                strSQL.Append(", DATE_FORMAT(A.CREATEDATE,'%Y/%m/%d')");
+                strSQL.Append(", A.PERSONCODE");
+                strSQL.Append(", A.SEQNO");
+                strSQL.Append(", D.DEPARTMENTSTRING");
+                strSQL.Append(", A.DATAMODE");
+                strSQL.Append(", A.CEOPOSITIONNAME");
+                strSQL.Append(", A.CEONAME");
+                strSQL.Append(", A.CONTACTPERSONNAME");
 
-                strSQL += " FROM SUBCONSTRREGIST A";
-                strSQL += " LEFT JOIN PERSONINCHARGEMASTER B ON B.PERSONCODE = A.PERSONCODE";
-                strSQL += " LEFT JOIN DEPARTMENTMASTER D ON D.DEPARTMENTCODE = B.DEPARTMENTCODE";
-                strSQL += string.Format(" WHERE A.PETITIONPERIOD = {0}", numUDConstPro.Value);
-                strSQL += GetDepartmentString();
-                strSQL += GetPersonString();
+                strSQL.Append(" FROM SUBCONSTRREGIST A");
+                strSQL.Append(" LEFT JOIN PERSONINCHARGEMASTER B ON B.PERSONCODE = A.PERSONCODE");
+                strSQL.Append(" LEFT JOIN DEPARTMENTMASTER D ON D.DEPARTMENTCODE = B.DEPARTMENTCODE");
+                strSQL.AppendFormat(" WHERE A.PETITIONPERIOD = {0}", numUDConstPro.Value);
+                strSQL.Append(GetDepartmentString());
+                strSQL.Append(GetPersonString());
                 CreateNewSecuritySQL(ref strSQL);
-                strSQL += " ORDER BY A.CREATEDATE DESC, A.SEQNO DESC";
+                strSQL.Append(" ORDER BY A.CREATEDATE DESC, A.SEQNO DESC");
             }
             catch (Exception ex)
             {
@@ -379,12 +380,12 @@
             {
                 foreach (DataGridViewColumn wrkCol in dgvMaster.Columns) wrkCol.SortMode = DataGridViewColumnSortMode.NotSortable;
                 dgvMaster.Rows.Clear();
-                string strSQL = "";
+                StringBuilder strSQL = new StringBuilder();
                 // SQL�쐬
                 CreateInitSQL(ref strSQL);
                 ArrayList arData = new ArrayList();
                 // �����ғo�^�\���f�[�^�擾
-                if (RegDB.ExecuteReader(strSQL, ref arData))
+                if (RegDB.ExecuteReader(strSQL.ToString(), ref arData))
                 {
                     // �O���b�h�փZ�b�g�Ƃ���
                     SetToGridData(arData);
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 368)
+++ branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 369)
@@ -153,6 +153,8 @@
     <Compile Include="DataModel\CostDataOfDepartment.cs" />
     <Compile Include="DataModel\DepartmentCostData.cs" />
     <Compile Include="DataModel\BudgetSumCode.cs" />
+    <Compile Include="DataModel\RemInvoiceDataDetail.cs" />
+    <Compile Include="DataModel\RemInvoiceData.cs" />
     <Compile Include="DataModel\RecordKey.cs" />
     <Compile Include="DataModel\PersonExpensesCost.cs" />
     <Compile Include="DataModel\SalaryClass.cs" />
@@ -244,6 +246,8 @@
     <Compile Include="DB\IOAccess\IODepositApprovalInfo.cs" />
     <Compile Include="DB\IOAccess\IODepositData.cs" />
     <Compile Include="DB\IOAccess\IODepositDataDetail.cs" />
+    <Compile Include="DB\IOAccess\IORemInvoiceDataDetail.cs" />
+    <Compile Include="DB\IOAccess\IORemInvoiceData.cs" />
     <Compile Include="DB\IOAccess\IOMBudgetSumCode.cs" />
     <Compile Include="DB\IOAccess\IOInvoiceData.cs" />
     <Compile Include="DB\IOAccess\IOMaterialInfo.cs" />
@@ -673,16 +677,22 @@
     <Compile Include="Forms\DataEntry\Request\RequestPrintList\FrmReqPrintListAuxiliary.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Forms\DataEntry\Request\RequestEntry\FrmRequestPrintSelPrtOut.cs">
+    <Compile Include="Forms\DataEntry\Request\RequestPrint\FrmCancelInvoice.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Forms\DataEntry\Request\RequestEntry\FrmRequestPrintSel.cs">
+    <Compile Include="Forms\DataEntry\Request\RequestPrint\FrmCancelInvoice.Designer.cs">
+      <DependentUpon>FrmCancelInvoice.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Forms\DataEntry\Request\RequestPrint\FrmRequestPrintSelPrtOut.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Forms\DataEntry\Request\RequestEntry\FrmRequestPrintSel.Designer.cs">
+    <Compile Include="Forms\DataEntry\Request\RequestPrint\FrmRequestPrintSel.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\DataEntry\Request\RequestPrint\FrmRequestPrintSel.Designer.cs">
       <DependentUpon>FrmRequestPrintSel.cs</DependentUpon>
     </Compile>
-    <Compile Include="Forms\DataEntry\Request\RequestEntry\FrmRequestPrintSelAux.cs">
+    <Compile Include="Forms\DataEntry\Request\RequestPrint\FrmRequestPrintSelAux.cs">
       <SubType>Form</SubType>
     </Compile>
     <Compile Include="Forms\DataEntry\Request\RequestInputList\FrmReqInputList.cs">
@@ -922,10 +932,10 @@
     <Compile Include="Forms\SubForms\FrmPrintInfomation.Designer.cs">
       <DependentUpon>FrmPrintInfomation.cs</DependentUpon>
     </Compile>
-    <Compile Include="Forms\DataEntry\Request\RequestEntry\FrmRequestPrint.cs">
+    <Compile Include="Forms\DataEntry\Request\RequestPrint\FrmRequestPrint.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Forms\DataEntry\Request\RequestEntry\FrmRequestPrint.Designer.cs">
+    <Compile Include="Forms\DataEntry\Request\RequestPrint\FrmRequestPrint.Designer.cs">
       <DependentUpon>FrmRequestPrint.cs</DependentUpon>
     </Compile>
     <Compile Include="Forms\SubForms\FrmPeriodAvoidance.cs">
@@ -1551,7 +1561,10 @@
     <EmbeddedResource Include="Forms\DataEntry\Request\RequestPrintList\FrmReqPrintList.resx">
       <DependentUpon>FrmReqPrintList.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="Forms\DataEntry\Request\RequestEntry\FrmRequestPrintSel.resx">
+    <EmbeddedResource Include="Forms\DataEntry\Request\RequestPrint\FrmCancelInvoice.resx">
+      <DependentUpon>FrmCancelInvoice.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Forms\DataEntry\Request\RequestPrint\FrmRequestPrintSel.resx">
       <DependentUpon>FrmRequestPrintSel.cs</DependentUpon>
     </EmbeddedResource>
     <EmbeddedResource Include="Forms\DataEntry\Request\RequestInputList\FrmReqInputList.resx">
@@ -1644,7 +1657,7 @@
     <EmbeddedResource Include="Forms\SubForms\FrmPrintInfomation.resx">
       <DependentUpon>FrmPrintInfomation.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="Forms\DataEntry\Request\RequestEntry\FrmRequestPrint.resx">
+    <EmbeddedResource Include="Forms\DataEntry\Request\RequestPrint\FrmRequestPrint.resx">
       <DependentUpon>FrmRequestPrint.cs</DependentUpon>
     </EmbeddedResource>
     <EmbeddedResource Include="Forms\SubForms\FrmPeriodAvoidance.resx">
Index: branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 368)
+++ branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 369)
@@ -32,7 +32,7 @@
 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を 
 // 既定値にすることができます:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.1.227")]
-[assembly: AssemblyFileVersion("1.0.1.227")]
+[assembly: AssemblyVersion("1.0.1.228")]
+[assembly: AssemblyFileVersion("1.0.1.228")]
 // Log4netを使用する
 [assembly: log4net.Config.XmlConfigurator(ConfigFile = @"log4net.config", Watch = true)]
\ No newline at end of file
