Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 304)
@@ -14,7 +14,7 @@
         /// <summary>
         /// 本体バージョン
         /// </summary>
-        public static int s_SystemVersion = 118;
+        public static int s_SystemVersion = 119;
 
         /// <summary>
         /// コピー・環境バージョン
Index: branches/src/ProcessManagement/ProcessManagement/Common/Office/UsedExcel.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Office/UsedExcel.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Office/UsedExcel.cs	(revision 304)
@@ -1265,6 +1265,18 @@
                                                                 , null
                                                                 , PageSetup
                                                                 , new object[1] { PageWide });
+
+                PageSetup.GetType().InvokeMember("CenterHorizontally"
+                                                                , BindingFlags.SetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , new object[1] { true });
+
+                PageSetup.GetType().InvokeMember("CenterVertically"
+                                                                , BindingFlags.SetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , new object[1] { true });
             }
             catch (Exception ex)
             {
@@ -1277,5 +1289,146 @@
         }
         #endregion
 
+        #region マージン位置定義
+        /// <summary>
+        /// マージン位置定義
+        /// </summary>
+        public enum MarginPos
+        {
+            /// <summary>
+            /// ヘッダーマージン
+            /// </summary>
+            HeaderSize = 0,
+            /// <summary>
+            /// フッダーマージン
+            /// </summary>
+            FooterSize,
+            /// <summary>
+            /// 上部マージン
+            /// </summary>
+            TopSize,
+            /// <summary>
+            /// 底部マージン
+            /// </summary>
+            BottomSize,
+            /// <summary>
+            /// 左マージン
+            /// </summary>
+            LeftSize,
+            /// <summary>
+            /// 右マージン
+            /// </summary>
+            RightSize,
+        }
+        #endregion
+
+        #region シートへの印刷余白セット
+        /// <summary>
+        /// シートへの印刷余白セット
+        /// </summary>
+        /// <param name="SetMargin"></param>
+        public void ExcelMarginSet(double [] SetMargin)
+        {
+            object PageSetup = null;
+            try
+            {
+                // 印刷頁セッティング取得
+                PageSetup = xlsWorkSheet.GetType().InvokeMember("PageSetup"
+                                                                , BindingFlags.GetProperty
+                                                                , null
+                                                                , xlsWorkSheet
+                                                                , null);
+
+                // ----- 余白を取得する
+                object[] ss = new object[Enum.GetNames(typeof(MarginPos)).Length];
+                ss[(int)MarginPos.HeaderSize] = PageSetup.GetType().InvokeMember("HeaderMargin"
+                                                                , BindingFlags.GetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , null);
+
+                ss[(int)MarginPos.FooterSize] = PageSetup.GetType().InvokeMember("FooterMargin"
+                                                                , BindingFlags.GetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , null);
+
+                ss[(int)MarginPos.TopSize] = PageSetup.GetType().InvokeMember("TopMargin"
+                                                                , BindingFlags.GetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , null);
+
+                ss[(int)MarginPos.BottomSize] = PageSetup.GetType().InvokeMember("BottomMargin"
+                                                                , BindingFlags.GetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , null);
+
+                ss[(int)MarginPos.LeftSize] = PageSetup.GetType().InvokeMember("LeftMargin"
+                                                                , BindingFlags.GetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , null);
+
+                ss[(int)MarginPos.RightSize] = PageSetup.GetType().InvokeMember("RightMargin"
+                                                                , BindingFlags.GetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , null);
+
+
+                if (CommonMotions.cnvDouble(ss[(int)MarginPos.HeaderSize]) < SetMargin[(int)MarginPos.HeaderSize])
+                    PageSetup.GetType().InvokeMember("HeaderMargin"
+                                                                    , BindingFlags.SetProperty
+                                                                    , null
+                                                                    , PageSetup
+                                                                    , new object[1] { SetMargin[(int)MarginPos.HeaderSize] });
+
+                if (CommonMotions.cnvDouble(ss[(int)MarginPos.FooterSize]) < SetMargin[(int)MarginPos.FooterSize])
+                    PageSetup.GetType().InvokeMember("FooterMargin"
+                                                                , BindingFlags.SetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , new object[1] { SetMargin[(int)MarginPos.FooterSize] });
+
+                if (CommonMotions.cnvDouble(ss[(int)MarginPos.TopSize]) < SetMargin[(int)MarginPos.TopSize])
+                    PageSetup.GetType().InvokeMember("TopMargin"
+                                                                , BindingFlags.SetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , new object[1] { SetMargin[(int)MarginPos.TopSize] });
+
+                if (CommonMotions.cnvDouble(ss[(int)MarginPos.BottomSize]) < SetMargin[(int)MarginPos.BottomSize])
+                    PageSetup.GetType().InvokeMember("BottomMargin"
+                                                                , BindingFlags.SetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , new object[1] { SetMargin[(int)MarginPos.BottomSize] });
+
+                if (CommonMotions.cnvDouble(ss[(int)MarginPos.LeftSize]) < SetMargin[(int)MarginPos.LeftSize])
+                    PageSetup.GetType().InvokeMember("LeftMargin"
+                                                                , BindingFlags.SetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , new object[1] { SetMargin[(int)MarginPos.LeftSize] });
+
+                if (CommonMotions.cnvDouble(ss[(int)MarginPos.RightSize]) < SetMargin[(int)MarginPos.RightSize])
+                    PageSetup.GetType().InvokeMember("RightMargin"
+                                                                , BindingFlags.SetProperty
+                                                                , null
+                                                                , PageSetup
+                                                                , new object[1] { SetMargin[(int)MarginPos.RightSize] });
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                CommonMotions.ReleaseCom(ref PageSetup);
+            }
+        }
+        #endregion
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsChangeLedgerData.cs	(revision 304)
@@ -1042,7 +1042,7 @@
 
                     ExecList.Clear();
                     if (!ExecDB.ExecuteReader(strSQL.ToString(), ref ExecList, false)) continue;
-                    if (ExcuteRec.ConstructionCode == 2017028801) { Debug.WriteLine(""); }
+
                     bExists = false;
                     object[] objRec = (object[])ExecList[0];
                     // 明細データが存在する場合
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalPerson/FrmApprovalPersonAuxiliary.cs	(revision 304)
@@ -869,7 +869,6 @@
                 int NowPoint = ClsExcute.NextProcess(iNextProcessNo);
 
                 // 手間・業者支払いは区分が一番最初
-                ClsExcute.ProcControlPara[NowPoint].ArrayParameter.Clear();
                 switch (m_ApprovalCode)
                 {
                     case (int)ClsExcute.ApprovalListNo.FeePayment:                          // 11:手間支払
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 304)
@@ -117,7 +117,7 @@
             /// <summary>
             /// ���ώ��
             /// </summary>
-            EstimateType = 0,
+            EstimateType = GetData.TYINGFLG + 1,
             /// <summary>
             /// �˗��󂯓�
             /// </summary>
@@ -128,6 +128,7 @@
             EstimatesSubmittedDate,
         }
         #endregion
+
         #endregion
 
         #region �ϐ�
@@ -752,17 +753,17 @@
 
                 strSQL.Append(" AND A.ConstructionPersonCode != 0");
 
-                strSQL.AppendFormat(" AND (ConstrType.PublicFlg != {0}", (int)ConstructionTypeMaster.ConstructionTypeDef.Community);
+                strSQL.AppendFormat(" AND ((ConstrType.PublicFlg != {0}", (int)ConstructionTypeMaster.ConstructionTypeDef.Community);
                 strSQL.Append(" And (A.ConstructionCode IN (SELECT AA1.CONSTRUCTIONCODE FROM CONSTRUCTIONBUDGETDETAIL AA1");
                 strSQL.Append(" WHERE AA1.COMPANYCODE != 0 AND AA1.COMPANYCODE != -1");
                 strSQL.Append(" GROUP BY AA1.CONSTRUCTIONCODE, AA1.COMPANYCODE");
-                strSQL.AppendFormat(" HAVING SUM(AA1.EXECUTIONAMOUNT) >= {0}))", CommonDefine.s_PrintOutPrice);
+                strSQL.AppendFormat(" HAVING SUM(AA1.EXECUTIONAMOUNT) >= {0})))", CommonDefine.s_PrintOutPrice);
 
                 strSQL.AppendFormat(" OR (ConstrType.PublicFlg = {0}", (int)ConstructionTypeMaster.ConstructionTypeDef.Community);
-                strSQL.Append(" And A.ConstructionCode IN (SELECT AA1.CONSTRUCTIONCODE FROM CONSTRUCTIONBUDGETDETAIL AA1");
+                strSQL.Append(" And (A.ConstructionCode IN (SELECT AA1.CONSTRUCTIONCODE FROM CONSTRUCTIONBUDGETDETAIL AA1");
                 strSQL.Append(" WHERE AA1.COMPANYCODE != 0 AND AA1.COMPANYCODE != -1");
                 strSQL.Append(" GROUP BY AA1.CONSTRUCTIONCODE, AA1.COMPANYCODE");
-                strSQL.AppendFormat(" HAVING SUM(AA1.EXECUTIONAMOUNT) >= {0})))", CommonDefine.s_PrintOutPricePublic);
+                strSQL.AppendFormat(" HAVING SUM(AA1.EXECUTIONAMOUNT) >= {0}))))", CommonDefine.s_PrintOutPricePublic);
 
                 // Left Join�͏Ȃ��ď���������
                 strSQL.Append(" And (");
@@ -770,8 +771,7 @@
                 strSQL.AppendFormat(s_SQLPart3_2[2], (int)ClsExcute.ApprovalListNo.ConstructionBudgetApproval);
                 strSQL.AppendFormat(s_SQLPart3_2[3], CommonDefine.s_Default_OrderNo);
                 strSQL.Append(s_SQLPart3_2[4]);
-                strSQL.AppendFormat(" And App.ApprovalStatus = {0}", (int)CommonDefine.ApprovalStatus.Approval);
-                strSQL.Append(") ");
+                strSQL.AppendFormat(" And App.ApprovalStatus = {0})", (int)CommonDefine.ApprovalStatus.Approval);
 
                 // �������I������Ă���ꍇ
                 strSQL.Append(GetDepartmentString());
@@ -852,12 +852,13 @@
                 StringBuilder wrkFormat = new StringBuilder();
                 for (int i = 0; i < s_SQLPart1.Length; i++) wrkFormat.Append(s_SQLPart1[i]);
                 wrkFormat.Append(s_SQLPart1_2[0]);
-                wrkFormat.Append(", DATE_FORMAT(A2.PRINTOUTDATE, '%Y/%m/%d')");                 // �擾�t�B�[���h�̍Ō�ɒǉ�����
+
                 for (int i = 0; i < s_SQLPart2.Length; i++) wrkFormat.Append(s_SQLPart2[i]);
 
                 for (int i = 0; i < s_SQLPart3.Length; i++) wrkFormat.Append(s_SQLPart3[i]);
                 for (int i = 0; i < s_SQLPart3_1.Length; i++) wrkFormat.Append(s_SQLPart3_1[i]);
-                wrkFormat.Append(", PROCESSAPPROVAL App, PURCHASEORDER A2");
+                wrkFormat.Append(", PROCESSAPPROVAL App");
+                wrkFormat.Append(", (Select CONSTRUCTIONCODE From PURCHASEORDER Group by CONSTRUCTIONCODE) As A2");
                 for (int i = 0; i < s_SQLPart5.Length; i++) wrkFormat.Append(s_SQLPart5[i]);
 
                 strSQL.AppendFormat(wrkFormat.ToString(), numUDConstPro.Value);
@@ -867,12 +868,11 @@
                 strSQL.Append(" And (");
                 strSQL.Append(s_SQLPart3_2[1]);
                 strSQL.AppendFormat(s_SQLPart3_2[2], (int)ClsExcute.ApprovalListNo.PurchaseOrderEntryApproval);
-                //strSQL.AppendFormat(s_SQLPart3_2[3], CommonDefine.s_Default_OrderNo);
                 strSQL.Append(s_SQLPart3_2[4]);
                 strSQL.AppendFormat(" And App.ApprovalStatus = {0}", (int)CommonDefine.ApprovalStatus.Approval);
                 strSQL.Append(") ");
 
-                strSQL.Append(" AND (A.CONSTRUCTIONCODE = A2.CONSTRUCTIONCODE AND A2.SEQNO = 1)");
+                strSQL.Append(" AND (A.CONSTRUCTIONCODE = A2.CONSTRUCTIONCODE)");
 
                 // �������I������Ă���ꍇ
                 strSQL.Append(GetDepartmentString());
@@ -1108,7 +1108,7 @@
         /// </summary>
         /// <param name="AllCount"></param>
         /// <param name="PrintCount"></param>
-        private bool GetPrintCount(IOPurchaseOrder OrderDB, int ParentCode, int SourceCode)
+        private bool GetPrintCount(IOPurchaseOrder OrderDB, int ParentCode, int SourceCode, int OrderNo)
         {
             try
             {
@@ -1116,12 +1116,17 @@
                 
 
                 strSQL.Append("SELECT");
-                strSQL.Append(" CompanyCode");
-                strSQL.Append(", CreateDate");
-                strSQL.Append(", PrintoutDate");
-                strSQL.Append(" From purchaseorder");
+                strSQL.Append(" A.CompanyCode");
+                strSQL.Append(", A.CreateDate");
+                strSQL.Append(", A.PrintoutDate");
+                strSQL.Append(" From purchaseorder As A");
+                strSQL.Append(" Left Join processapprovaldetail As B");
+                strSQL.Append(" On B.ConstructionCode = A.ConstructionCode");
+                strSQL.AppendFormat(" And  B.ApprovalCode = {0}", (int)ClsExcute.ApprovalListNo.PurchaseOrderEntryApproval);
+                strSQL.Append(" And B.LinkCode = A.SeqNo");
                 strSQL.Append(" Where");
-                strSQL.AppendFormat(" ConstructionCode = {0}", SourceCode);
+                strSQL.AppendFormat(" A.ConstructionCode = {0}", SourceCode);
+                strSQL.AppendFormat(" And B.OrderNo = {0}", OrderNo);
 
                 ArrayList arList = new ArrayList();
                 if (!OrderDB.ExecuteReader(strSQL.ToString(), ref arList)) return false;
@@ -1273,10 +1278,8 @@
                 int nCode1 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("�˗��󂯒�")).Key;
                 int nCode2 = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("���ϒ�o")).Key;
 
-                // �f�[�^�擾�x�[�X�J�E���g
-                int AddGetDataCnt = Enum.GetNames(typeof(GetData)).Length;
                 // ���ώ��
-                int EstimanteType = EstimanteType = CommonMotions.cnvInt(objCurRec[AddGetDataCnt + (int)GetDataAddSQL01.EstimateType]);
+                int EstimanteType = EstimanteType = CommonMotions.cnvInt(objCurRec[(int)GetDataAddSQL01.EstimateType]);
 
                 DateTime TargetDate = DateTime.Now;
                 Color clrBackColor = Color.White;
@@ -1284,12 +1287,12 @@
                 if (Status == nCode1)
                 {
                     // ----- �˗��󂯒�
-                    TargetDate = CommonMotions.cnvDate(objCurRec[AddGetDataCnt + (int)GetDataAddSQL01.RequestedDate]);
+                    TargetDate = CommonMotions.cnvDate(objCurRec[(int)GetDataAddSQL01.RequestedDate]);
                 }
                 else if (Status == nCode2)
                 {
                     // ----- ���ϒ�o
-                    TargetDate = CommonMotions.cnvDate(objCurRec[AddGetDataCnt + (int)GetDataAddSQL01.EstimatesSubmittedDate]);
+                    TargetDate = CommonMotions.cnvDate(objCurRec[(int)GetDataAddSQL01.EstimatesSubmittedDate]);
                 }
                 else
                 {
@@ -1374,7 +1377,7 @@
                         }
                         break;
                     case (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint:                // ���������
-                        if (GetPrintCount(OrderDB, ParentCode, nConstrCode))
+                        if (GetPrintCount(OrderDB, ParentCode, nConstrCode, nOrderNo))
                         {
                             FlgString = "�����";
                         }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 304)
@@ -1986,6 +1986,7 @@
                 ArrayList ArList = new ArrayList();
                 if (!BaseDB.ExecuteReader(strSQL, ref ArList)) return;
 
+                dgv.Columns[1].HeaderCell.Style.Font = new Font("�l�r ����", 9.75F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(128)));
                 string strDate = string.Empty;
                 foreach (object[] OneRec in ArList)
                 {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmOrderEntryListAuxiliary.cs	(revision 304)
@@ -185,7 +185,7 @@
                 strSQL.Append(" , A.SECONDSTRING");
                 strSQL.Append(" , A.COMPANYCODE AS COMPANYCODE");
                 strSQL.Append(" , A.COMPANYNAME");
-                strSQL.Append(" , A.EXECUTIONAMOUNT");
+                strSQL.Append(" , SUM(A.EXECUTIONAMOUNT)");
                 strSQL.Append(" , A.SOURCECODE");
                 strSQL.Append(" , A.PURCHASEORDERFLG");
                 strSQL.Append(" , B.DETAILSTRING");
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/PrintCommon.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/PrintCommon.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/PrintCommon.cs	(revision 304)
@@ -61,11 +61,11 @@
                                                                     };
         #endregion
 
-        #region シート名称
+        #region シート名称カウント
         /// <summary>
         /// シート名称カウント
         /// </summary>
-        enum enumSheetName
+        private enum enumSheetName
         {
             /// <summary>
             /// 簡易版注文書・請書
@@ -96,22 +96,35 @@
         private string s_WordDocumentName = "正規版：注文書";
         #endregion
 
+        #region 図形置き場シート
         /// <summary>
         /// 図形置き場シート
         /// </summary>
         private const string s_shapeSheetName = "図形シート";
+        #endregion
+
+        #region 図形名称
         /// <summary>
         /// 図形名称
         /// </summary>
         private const string s_shapeName = "SealStamp1";                                    // 判子オブジェクト名
+        #endregion
+
+        #region 図形サイズ【縦・横】（図形名称順）
         /// <summary>
         /// 図形サイズ【縦・横】（図形名称順）
         /// </summary>
         private static float[,] s_ShapeSize = new float[1, 2] { { 32.00f, 32.00f } };       // 判子サイズ
+        #endregion
+
+        #region 判子フォントサイズ
         /// <summary>
         /// 判子フォントサイズ
         /// </summary>
         private static float[] s_EstimateSeal1FontSize = { 16f, 10f, 10f, 8f, 6f };
+        #endregion
+
+        #region 判子位置(Key:X Value:Y)左から
         /// <summary>
         /// 判子位置(Key:X Value:Y)左から
         /// </summary>
@@ -120,6 +133,7 @@
                                                                     {490.50f, 202.75f},    // 承認者3
                                                                     {560.50f, 202.75f} };  // 承認者4
         #endregion
+        #endregion
 
         #region 変数
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/PrintFormat1.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/PrintFormat1.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderPrint/PrintFormat1.cs	(revision 304)
@@ -267,7 +267,7 @@
 
                 // 注文書データ取得
                 strSQL.Clear();
-                strSQL.AppendFormat("{0} ORDER BY SEQNO", OrderDB.CreatePrimarykeyString(m_ConstructionCode));
+                strSQL.AppendFormat(" {0} ORDER BY SEQNO", OrderDB.CreatePrimarykeyString(m_ConstructionCode));
                 List<PurchaseOrder> OrderList = new List<PurchaseOrder>();
                 if (!OrderDB.SelectAction(strSQL.ToString(), ref OrderList)) return CommonDefine.RetunAnswer.Answer3;
                 if (OrderList.Count == 0) return CommonDefine.RetunAnswer.Answer3;
@@ -286,7 +286,19 @@
 
                     // 注文書シートの取得
                     m_UsedExcel.ExcelSheetGet(SheetName[(int)enumSheetName.OrderSheet], true, ContractorRec.CompanyName);
+                    // 約款ページ縦・横セット
+                    m_UsedExcel.ExcelFitCountSet(4, 1);
+                    // 余白セット
+                    double[] setMargin = new double[Enum.GetNames(typeof(UsedExcel.MarginPos)).Length];
+                    setMargin[(int)UsedExcel.MarginPos.HeaderSize] =  0.0;
+                    setMargin[(int)UsedExcel.MarginPos.FooterSize] = 0.0;
+                    setMargin[(int)UsedExcel.MarginPos.TopSize] = 28.0;
+                    setMargin[(int)UsedExcel.MarginPos.BottomSize] = 28.0;
+                    setMargin[(int)UsedExcel.MarginPos.LeftSize] = 17.0;
+                    setMargin[(int)UsedExcel.MarginPos.HeaderSize] = 17.0;
 
+                    m_UsedExcel.ExcelMarginSet(setMargin);
+
                     // ----- ページ編集
                     // ブロック１編集
                     CommonDefine.RetunAnswer RARet = SetBlock1Data(OrderRec);
@@ -349,7 +361,7 @@
                     }
 
                     // ブロック２編集
-                    RARet = SetBlock2Data(OrderRec, workRec.DetailString, 153);
+                    RARet = SetBlock2Data(OrderRec, workRec.DetailString, 159);
                     if (RARet != CommonDefine.RetunAnswer.Answer0) return RARet;
 
                     // 中断処理
@@ -361,7 +373,7 @@
                     }
 
                     // ブロック３編集
-                    RARet = SetBlock3Data(OrderRec, 153);
+                    RARet = SetBlock3Data(OrderRec, 159);
                     if (RARet != CommonDefine.RetunAnswer.Answer0) return RARet;
 
                     // 中断処理
@@ -373,7 +385,7 @@
                     }
 
                     // ブロック４編集
-                    RARet = SetBlock4Data(OrderRec, 153);
+                    RARet = SetBlock4Data(OrderRec, 159);
                     if (RARet != CommonDefine.RetunAnswer.Answer0) return RARet;
 
                     // 中断処理
@@ -679,11 +691,11 @@
             IOMSubContractor ContractorDB = new IOMSubContractor();
             try
             {
-                m_UsedExcel.ExcelCellSet("B164", "〒" + CommonMotions.SystemMasterData.ZipCode);         // 自社 郵便番号
-                m_UsedExcel.ExcelCellSet("B165", CommonMotions.SystemMasterData.Address1 +
+                m_UsedExcel.ExcelCellSet("B166", "〒" + CommonMotions.SystemMasterData.ZipCode);         // 自社 郵便番号
+                m_UsedExcel.ExcelCellSet("B167", CommonMotions.SystemMasterData.Address1 +
                                                 CommonMotions.SystemMasterData.Address2 +
                                                 CommonMotions.SystemMasterData.Address3);               // 自社 住所
-                m_UsedExcel.ExcelCellSet("C168", CommonMotions.SystemMasterData.CompanyName1 +
+                m_UsedExcel.ExcelCellSet("C170", CommonMotions.SystemMasterData.CompanyName1 +
                                                 CommonMotions.SystemMasterData.CompanyName2);           // 自社 会社名
 
                 // 協力会社名取得
@@ -714,10 +726,10 @@
                         break;
                 }
 
-                m_UsedExcel.ExcelCellSet("M166", "〒" + ContractorRec.ZipCode);                  // 発注先 郵便番号
+                m_UsedExcel.ExcelCellSet("L166", "〒" + ContractorRec.ZipCode);                  // 発注先 郵便番号
                 m_UsedExcel.ExcelCellSet("M167", strA2);                                         // 発注先 住所1
-                m_UsedExcel.ExcelCellSet("M168", strA3);                                         // 発注先 住所2
-                m_UsedExcel.ExcelCellSet("M169", strA4);                                         // 発注先 会社
+                m_UsedExcel.ExcelCellSet("L168", strA3);                                         // 発注先 住所2
+                m_UsedExcel.ExcelCellSet("M170", strA4);                                         // 発注先 会社
 
                 return CommonDefine.RetunAnswer.Answer0;
             }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 304)
@@ -4344,7 +4344,7 @@
 
                 sql.Append(" Select ");
                 sql.Append("  ifnull(Bd.SeqNo, 1) as SeqNo ");
-                sql.Append("  , ifnull(Bdd.LineCount, 0) as LineCount ");
+                sql.Append("  , ifnull(Bdd.CONSTRUCTIONROWCNT, 0) as LineCount ");
                 sql.Append("  , ifnull(Bdd.CompanyCode, 0) as CompanyCode ");
                 sql.Append("  , ifnull(Scm.CompanyName, \'\') as CompanyName ");
                 sql.Append("  , ifnull(Scm.DisplayOrder, 99999999) as DisplayOrder ");
@@ -4464,7 +4464,7 @@
                 sql.Append("  Left join constructionledgerDetail as Cld");
                 sql.Append("       ON Cld.ConstructionCode = Bdd.CONSTRUCTIONCODE");
                 sql.AppendFormat(" And Cld.GroupCount = {0}", (int)FrmConstructionLedger.DataGroup.ConstructionCosts);
-                sql.Append("       And Cld.LineCount = Bdd.CONSTRUCTIONROWCNT");
+                sql.Append("       And Cld.DetailCount = Bdd.CONSTRUCTIONROWCNT");
 
                 sql.Append("  left join approvalmaster As AppM ");
                 sql.AppendFormat(" on AppM.ApprovalCode = {0} ", Appcode);
@@ -5356,14 +5356,6 @@
                     return false;
                 }
 
-                IoBd.commit();
-                IoBdD.commit();
-                IoPdD.commit();
-                IoPaI.commit();
-                IoBps.commit();
-                IoDetail.commit();
-                IoExec.commit();
-
                 m_bChengeAns = false;
 
                 return true;
@@ -5376,6 +5368,14 @@
             }
             finally
             {
+                IoBd.commit();
+                IoBdD.commit();
+                IoPdD.commit();
+                IoPaI.commit();
+                IoBps.commit();
+                IoDetail.commit();
+                IoExec.commit();
+
                 IoBd.close(); IoBd = null;
                 IoBdD.close(); IoBdD = null;
                 IoPdD.close(); IoPdD = null;
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/Properties/AssemblyInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 303)
+++ branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 304)
@@ -32,7 +32,7 @@
 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を 
 // 既定値にすることができます:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.1.18")]
-[assembly: AssemblyFileVersion("1.0.1.18")]
+[assembly: AssemblyVersion("1.0.1.19")]
+[assembly: AssemblyFileVersion("1.0.1.19")]
 // Log4netを使用する
 [assembly: log4net.Config.XmlConfigurator(ConfigFile = @"log4net.config", Watch = true)]
\ No newline at end of file
