Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs	(revision 315)
@@ -57,7 +57,7 @@
         /// <summary>
         /// ログインユーザー参照部署データ
         /// </summary>
-        private static List<PersonDepartmentMaster> m_LoginUserDepartment = new List<PersonDepartmentMaster>();
+        private static List<PersonDepartmentMaster> m_LoginUserRefDepartment = new List<PersonDepartmentMaster>();
 
         /// <summary>
         /// ログインユーザーセキュリティ区分
@@ -119,10 +119,10 @@
         /// <summary>
         /// ログインユーザー参照部署データ
         /// </summary>
-        public static List<PersonDepartmentMaster> LoginUserDepartment
+        public static List<PersonDepartmentMaster> LoginUserRefDepartment
         {
-            get { return m_LoginUserDepartment; }
-            set { m_LoginUserDepartment = value; }
+            get { return m_LoginUserRefDepartment; }
+            set { m_LoginUserRefDepartment = value; }
         }
 
         /// <summary>
Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 315)
@@ -14,7 +14,7 @@
         /// <summary>
         /// 本体バージョン
         /// </summary>
-        public static int s_SystemVersion = 133;
+        public static int s_SystemVersion = 134;
 
         /// <summary>
         /// コピー・環境バージョン
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsMessageBoradAccess.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsMessageBoradAccess.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsMessageBoradAccess.cs	(revision 315)
@@ -156,16 +156,14 @@
             {
                 bool MacthFlg = false;
 
-                // 新セキュリティデータ対応済みかを確認する
+                // 読込み時のチェック
+                MacthFlg = MessageReadPermission(RecoadNo, BuranchNo);
+
+                if (bRead) return MacthFlg;
+
                 // 編集・書込み時のチェック
-                if (MessageNewEditPermission(RecoadNo, BuranchNo)) return true;
+                MacthFlg = MessageNewEditPermission(RecoadNo, BuranchNo);
 
-                // 読込み時のチェック
-                if (bRead)
-                {
-                    MacthFlg = MessageNewReadPermission(RecoadNo, BuranchNo);
-                }
-
                 return MacthFlg;
             }
             catch (Exception ex)
@@ -279,7 +277,7 @@
                         depcode = CommonMotions.cnvInt(objRec[PersonBaseBoardDataCnt + (int)IOMPersonInCharge.ColumnCnt.DepartmentCode]);
                     }
                     // 参照部署があるかのチェック
-                    foreach (PersonDepartmentMaster wrkRec in CommonMotions.LoginUserDepartment)
+                    foreach (PersonDepartmentMaster wrkRec in CommonMotions.LoginUserRefDepartment)
                     {
                         if (depcode == wrkRec.DepartmentCode) return true;
                     }
@@ -305,7 +303,8 @@
         {
             ShareFlag = 0,
             DepartmentCode,
-            SecRank
+            SecRank,
+            FromCode
         }
         #endregion
 
@@ -317,10 +316,9 @@
         /// <param name="BuranchNo">レコード枝番</param>
         /// <param name="bRead">読込許可・書込み許可</param>
         /// <returns></returns>
-        public static bool MessageNewReadPermission(int RecoadNo, int BuranchNo)
+        public static bool MessageReadPermission(int RecoadNo, int BuranchNo)
         {
             IOMessageBoardTerget mbtDB = new IOMessageBoardTerget();
-            IOMSecurity secDB = new IOMSecurity();
             try
             {
                 // 権限ランク取得
@@ -341,38 +339,27 @@
                 }
                 else
                 {
-                    // 掲示板閲覧テーブルのチェック
-                    StringBuilder strSQL = new StringBuilder();
-                    strSQL.Append("SELECT");
-                    strSQL.Append(" A.RecordNumber");
-                    strSQL.Append(", A.BranchNumber");
-                    strSQL.Append(", A.SeqNum");
-                    strSQL.Append(", A.ToCode");
-                    strSQL.Append(", A.ToName");
-                    strSQL.Append(", DATE_FORMAT(A.EntryDate, '%Y/%m/%d %H:%i:%s')");
-                    strSQL.Append(", DATE_FORMAT(A.UpdateDate, '%Y/%m/%d %H:%i:%s')");
-                    strSQL.Append(" , B.SHAREFLAG, C.DEPARTMENTCODE, D.SECRANK FROM MESSAGEBOARDTERGET A");
-                    strSQL.Append(" LEFT JOIN PERSONINCHARGEMASTER C ON C.PERSONCODE = A.TOCODE");
-                    strSQL.Append(" LEFT JOIN SECURITYMASTER D ON D.SECCODE = C.SECCODE");
-                    strSQL.Append(" , MESSAGEBOARDDATA B");
-                    strSQL.AppendFormat(" WHERE A.RECORDNUMBER = {0}", RecoadNo);
-                    strSQL.AppendFormat(" AND A.BRANCHNUMBER = {0}", BuranchNo);
-                    strSQL.Append(" AND B.RECORDNUMBER = A.RECORDNUMBER");
-                    strSQL.Append(" AND B.BRANCHNUMBER = A.BRANCHNUMBER");
+                    ArrayList TargetList = new ArrayList();
+                    /// 読込ターゲット取得
+                    if (!GetReadTarget(mbtDB, RecoadNo, BuranchNo, ref TargetList)) return false;
+                    if (TargetList.Count == 0) return false;
 
-                    ArrayList terList = new ArrayList();
-                    if (!mbtDB.ExecuteReader(strSQL.ToString(), ref terList)) return true;
-                    if (terList.Count == 0) return true;
 
+                    bool bProtect = false;
                     // 対象テーブルにあるか？
                     int TergetCnt = Enum.GetNames(typeof(IOMessageBoardTerget.NameColumn)).Length;
                     MessageBoardTerget wrkRec = new MessageBoardTerget();
-                    for (int i = 0; i < terList.Count; i++)
+                    for (int i = 0; i < TargetList.Count; i++)
                     {
                         mbtDB.ClearStruct(ref wrkRec);
-                        object[] objRec = (object[])terList[i];
+                        object[] objRec = (object[])TargetList[i];
                         mbtDB.Reader2Struct(objRec, ref wrkRec);
 
+                        if (i == 0)
+                        {
+                            // ロック判定部署か？
+                            bProtect = DecideLockData(CommonMotions.cnvInt(objRec[TergetCnt + (int)GetTarget.FromCode]));
+                        }
 
                         // ----------
                         int CurRecRank = 0;
@@ -380,7 +367,7 @@
                         // 対象者コードが5桁以下ならば部署コード
                         if (wrkRec.ToCode < 99999)
                         {
-                            // 所属が対象ならばOK
+                            // 所属部署が対象ならばOK
                             if (wrkRec.ToCode == CommonMotions.LoginUserData.DepartmentCode) return true;
 
                             // 管理者対象フラグ取得
@@ -390,27 +377,7 @@
                             {
                                 if (ShareFlag != 0) return false;
                             }
-
-                            StringBuilder strSECSQL = new StringBuilder();
-                            strSECSQL.Append("SELECT");
-                            strSECSQL.Append(" MAX(B.SECRANK)");
-                            strSECSQL.Append(" FROM");
-                            strSECSQL.Append(" PERSONINCHARGEMASTER A");
-                            strSECSQL.Append(", SECURITYMASTER B");
-                            strSECSQL.Append(" WHERE");
-                            strSECSQL.AppendFormat(" DEPARTMENTCODE = {0}", wrkRec.ToCode);
-                            strSECSQL.Append(" AND B.SECCODE = A.SECCODE"); 
-
-                            ArrayList SecarList = new ArrayList();
-                            secDB.ExecuteReader(strSECSQL.ToString(), ref SecarList);
-                            object[] objSecRec = (object[])SecarList[0];
-
-                            // 部署コード取得
                             DepCode = wrkRec.ToCode;
-                            
-                            // 部署の最高アクセス権限を取得する
-                            CurRecRank = CommonMotions.cnvInt(objSecRec[0]);
-                            if (CurRecRank == 0) CurRecRank = 9;
                         }
                         else
                         {   // ----- 以外は担当者コード
@@ -425,22 +392,31 @@
 
                             // アクセスランクを取得する
                             CurRecRank = CommonMotions.cnvInt(objRec[TergetCnt + (int)GetTarget.SecRank]);
+                            // ランク無は最大値をセット
                             if (CurRecRank == 0) CurRecRank = 9;
                         }
-                        // 部署コードが無い場合はチェックしない
-                        if (DepCode == 0) continue;
-                     
-                        // ログイン者が所属長の場合は対象者の所属部署を参照部署と比較
-                        if (CommonMotions.LoginUserSecurity.SecRank == CommonDefine.SecurityRankList[FRank].Key
-                            || CommonMotions.LoginUserSecurity.SecRank == CommonDefine.SecurityRankList[LRank].Key)
+
+                        if (!bProtect)
                         {
-                            // 参照部署にあるかのチェック
-                            foreach (PersonDepartmentMaster RefDepRec in CommonMotions.LoginUserDepartment)
+                            // ログイン者が所属長の場合は対象者の所属部署を参照部署と比較
+                            if (CommonMotions.LoginUserSecurity.SecRank == CommonDefine.SecurityRankList[FRank].Key
+                                || CommonMotions.LoginUserSecurity.SecRank == CommonDefine.SecurityRankList[LRank].Key)
                             {
-                                if (DepCode == RefDepRec.DepartmentCode)
+                                // 参照部署にあるかのチェック
+                                foreach (PersonDepartmentMaster RefDepRec in CommonMotions.LoginUserRefDepartment)
                                 {
-                                    // 書込み者が自分より上位者では無い場合は読み込める
-                                    if (CommonMotions.LoginUserSecurity.SecRank <= CurRecRank) return true;
+                                    if (DepCode == RefDepRec.DepartmentCode)
+                                    {
+                                        if (wrkRec.ToCode < 99999)
+                                        {
+                                            return true;
+                                        }
+                                        else
+                                        {
+                                            // 書込み者が自分より上位者では無い場合は読み込める
+                                            if (CommonMotions.LoginUserSecurity.SecRank <= CurRecRank) return true;
+                                        }
+                                    }
                                 }
                             }
                         }
@@ -457,11 +433,115 @@
             finally
             {
                 mbtDB.close(); mbtDB = null;
-                secDB.close(); secDB = null;
             }
         }
         #endregion
 
+        #region 読込ターゲット取得
+        /// <summary>
+        /// 読込ターゲット取得
+        /// </summary>
+        private static bool GetReadTarget(IOMessageBoardTerget mbtDB, int RecoadNo, int BuranchNo, ref ArrayList TargetList)
+        {
+            try
+            {
+                    // 掲示板閲覧テーブルのチェック
+                    StringBuilder strSQL = new StringBuilder();
+                    strSQL.Append("SELECT");
+                    strSQL.Append(" A.RecordNumber");
+                    strSQL.Append(", A.BranchNumber");
+                    strSQL.Append(", A.SeqNum");
+                    strSQL.Append(", A.ToCode");
+                    strSQL.Append(", A.ToName");
+                    strSQL.Append(", DATE_FORMAT(A.EntryDate, '%Y/%m/%d %H:%i:%s')");
+                    strSQL.Append(", DATE_FORMAT(A.UpdateDate, '%Y/%m/%d %H:%i:%s')");
+                    strSQL.Append(", B.SHAREFLAG");
+                    strSQL.Append(", C.DEPARTMENTCODE");
+                    strSQL.Append(", D.SECRANK");
+                    strSQL.Append(", B.FromCode");
+                    strSQL.Append(" FROM MESSAGEBOARDTERGET A");
+                    strSQL.Append(" LEFT JOIN PERSONINCHARGEMASTER C");
+                    strSQL.Append("   ON C.PERSONCODE = A.TOCODE");
+                    strSQL.Append(" LEFT JOIN SECURITYMASTER D");
+                    strSQL.Append("   ON D.SECCODE = C.SECCODE");
+                    strSQL.Append(", MESSAGEBOARDDATA B");
+                    strSQL.AppendFormat(" WHERE A.RECORDNUMBER = {0}", RecoadNo);
+                    strSQL.AppendFormat(" AND A.BRANCHNUMBER = {0}", BuranchNo);
+                    strSQL.Append(" AND B.RECORDNUMBER = A.RECORDNUMBER");
+                    strSQL.Append(" AND B.BRANCHNUMBER = A.BRANCHNUMBER");
+
+                    if (!mbtDB.ExecuteReader(strSQL.ToString(), ref TargetList)) return false;
+
+                    return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region 最上位部署ロック判定
+        /// <summary>
+        /// 最上位部署ロック判定
+        /// </summary>
+        private static bool DecideLockData(int nFromCode)
+        {
+            IOMSecurity SecDB = new IOMSecurity();
+            try
+            {
+                int SRank = (int)CommonDefine.SecurityRankPos.SpecialAuthority;   // 経営者アクセス
+                int nRankCode = CommonDefine.SecurityRankList[SRank].Key;
+
+                StringBuilder strSQL = new StringBuilder();
+                if (nFromCode < 99999)
+                {   // ----- 対象者コードが5桁未満ならば部署コード
+                    // 部署内の最大セキュリティ区分を取得する
+                    strSQL.Append("SELECT");
+                    strSQL.Append(" MIN(B.SECRANK)");
+                    strSQL.Append(" FROM");
+                    strSQL.Append(" PERSONINCHARGEMASTER A");
+                    strSQL.Append(", SECURITYMASTER B");
+                    strSQL.AppendFormat(" WHERE A.DEPARTMENTCODE = {0}", nFromCode);
+                    strSQL.Append(" AND B.SECCODE = A.SECCODE");
+
+                }
+                else
+                {   // ----- 対象者コードが5桁以上ならば担当者コード
+                    // 担当者のセキュリティ区分を取得する
+                    strSQL.Append("SELECT");
+                    strSQL.Append(" B.SECRANK");
+                    strSQL.Append(" FROM");
+                    strSQL.Append(" PERSONINCHARGEMASTER A");
+                    strSQL.Append(", SECURITYMASTER B");
+                    strSQL.AppendFormat(" WHERE A.PERSONCODE = {0}", nFromCode);
+                    strSQL.Append(" AND B.SECCODE = A.SECCODE");
+
+                }
+                ArrayList arData = new ArrayList();
+                if (!SecDB.ExecuteReader(strSQL.ToString(), ref arData)) return false;
+                if (arData.Count < 1) return false;
+
+                object[] objRec = (object[])arData[0];
+
+                bool bRet = false;
+                if (nRankCode == CommonMotions.cnvInt(objRec[0])) bRet = true;
+
+                return bRet;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("システムエラー：{0}：{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+            finally
+            {
+                SecDB.close(); SecDB = null;
+            }
+        }
+        #endregion
+
         #region 指定担当者がログインユーザー配下の所属かどうかを確認する
         /// <summary>
         /// 指定担当者がログインユーザー配下の所属かどうかを確認する
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSecurityPermission.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSecurityPermission.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsSecurityPermission.cs	(revision 315)
@@ -1126,7 +1126,7 @@
                 {   
                     // ----- ログイン者はメモリより取得
                     DepartmentCode = CommonMotions.LoginUserData.DepartmentCode;
-                    foreach (PersonDepartmentMaster wrkRec in CommonMotions.LoginUserDepartment)
+                    foreach (PersonDepartmentMaster wrkRec in CommonMotions.LoginUserRefDepartment)
                     {
                         TargetDepartment.Add(wrkRec);
                     }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.designer.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.designer.cs	(revision 315)
@@ -30,13 +30,13 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle 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();
             this.label1 = new System.Windows.Forms.Label();
             this.btnDataDelete = new System.Windows.Forms.Button();
             this.btnDataEntry = new System.Windows.Forms.Button();
@@ -87,7 +87,6 @@
             this.btnLineDel = new System.Windows.Forms.Button();
             this.btnLineAdd = new System.Windows.Forms.Button();
             this.panel2 = new System.Windows.Forms.Panel();
-            this.lblCellTotal = new System.Windows.Forms.Label();
             this.dgvAllDisplay = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -117,6 +116,7 @@
             this.Column25 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column26 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.lblCellTotal = new System.Windows.Forms.Label();
             this.btnDispDown = new System.Windows.Forms.Button();
             this.btnDispUp = new System.Windows.Forms.Button();
             this.btnOtherProc = new System.Windows.Forms.Button();
@@ -125,9 +125,9 @@
             this.btnSelect = new System.Windows.Forms.Button();
             this.btnCreate = new System.Windows.Forms.Button();
             this.grpExample1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
+            this.lblReqSumType03 = new System.Windows.Forms.Label();
             this.lblReqSumType01 = new System.Windows.Forms.Label();
             this.lblReqSumType02 = new System.Windows.Forms.Label();
-            this.lblReqSumType03 = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             this.pnlGroup2.SuspendLayout();
             this.pnlGroup1.SuspendLayout();
@@ -772,25 +772,13 @@
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.panel2.Controls.Add(this.dgvAllDisplay);
             this.panel2.Controls.Add(this.lblCellTotal);
-            this.panel2.Controls.Add(this.dgvAllDisplay);
             this.panel2.Location = new System.Drawing.Point(7, 204);
             this.panel2.Name = "panel2";
-            this.panel2.Size = new System.Drawing.Size(1290, 447);
+            this.panel2.Size = new System.Drawing.Size(1290, 450);
             this.panel2.TabIndex = 36;
             // 
-            // lblCellTotal
-            // 
-            this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.lblCellTotal.AutoSize = true;
-            this.lblCellTotal.BackColor = System.Drawing.Color.WhiteSmoke;
-            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9.75F, System.Drawing.FontStyle.Bold);
-            this.lblCellTotal.ForeColor = System.Drawing.Color.Black;
-            this.lblCellTotal.Location = new System.Drawing.Point(100, 427);
-            this.lblCellTotal.Name = "lblCellTotal";
-            this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
-            this.lblCellTotal.TabIndex = 36;
-            // 
             // dgvAllDisplay
             // 
             this.dgvAllDisplay.AllowUserToAddRows = false;
@@ -802,14 +790,14 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dgvAllDisplay.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
             this.dgvAllDisplay.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle8.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, 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.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvAllDisplay.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
             this.dgvAllDisplay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvAllDisplay.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Column1,
@@ -845,9 +833,8 @@
             this.dgvAllDisplay.RowHeadersVisible = false;
             this.dgvAllDisplay.RowHeadersWidth = 20;
             this.dgvAllDisplay.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dgvAllDisplay.RowTemplate.Height = 21;
             this.dgvAllDisplay.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dgvAllDisplay.Size = new System.Drawing.Size(1278, 418);
+            this.dgvAllDisplay.Size = new System.Drawing.Size(1278, 442);
             this.dgvAllDisplay.TabIndex = 35;
             this.dgvAllDisplay.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellDoubleClick);
             this.dgvAllDisplay.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAllDisplay_CellEnter);
@@ -860,8 +847,8 @@
             // 
             // Column1
             // 
-            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle9;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
             this.Column1.Frozen = true;
             this.Column1.HeaderText = "№";
             this.Column1.Name = "Column1";
@@ -920,8 +907,8 @@
             // 
             // Column5
             // 
-            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle10;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle3;
             this.Column5.Frozen = true;
             this.Column5.HeaderText = "項　　　目";
             this.Column5.Name = "Column5";
@@ -932,8 +919,8 @@
             // 
             // Column6
             // 
-            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            this.Column6.DefaultCellStyle = dataGridViewCellStyle11;
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column6.DefaultCellStyle = dataGridViewCellStyle4;
             this.Column6.Frozen = true;
             this.Column6.HeaderText = "業　　　種";
             this.Column6.Name = "Column6";
@@ -971,11 +958,11 @@
             // 
             // Column7
             // 
-            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
-            dataGridViewCellStyle12.Format = "N0";
-            dataGridViewCellStyle12.NullValue = null;
-            this.Column7.DefaultCellStyle = dataGridViewCellStyle12;
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle5.Format = "N0";
+            dataGridViewCellStyle5.NullValue = null;
+            this.Column7.DefaultCellStyle = dataGridViewCellStyle5;
             this.Column7.Frozen = true;
             this.Column7.HeaderText = "予定（見積）金額";
             this.Column7.Name = "Column7";
@@ -986,9 +973,9 @@
             // 
             // Column12
             // 
-            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
-            this.Column12.DefaultCellStyle = dataGridViewCellStyle13;
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
+            this.Column12.DefaultCellStyle = dataGridViewCellStyle6;
             this.Column12.Frozen = true;
             this.Column12.HeaderText = "実　行　金　額";
             this.Column12.Name = "Column12";
@@ -999,8 +986,8 @@
             // 
             // Column9
             // 
-            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            this.Column9.DefaultCellStyle = dataGridViewCellStyle14;
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            this.Column9.DefaultCellStyle = dataGridViewCellStyle7;
             this.Column9.Frozen = true;
             this.Column9.HeaderText = "比率(％)";
             this.Column9.Name = "Column9";
@@ -1142,6 +1129,18 @@
             this.Column28.Name = "Column28";
             this.Column28.Visible = false;
             // 
+            // lblCellTotal
+            // 
+            this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+            this.lblCellTotal.AutoSize = true;
+            this.lblCellTotal.BackColor = System.Drawing.Color.WhiteSmoke;
+            this.lblCellTotal.Font = new System.Drawing.Font("ＭＳ Ｐ明朝", 9.75F, System.Drawing.FontStyle.Bold);
+            this.lblCellTotal.ForeColor = System.Drawing.Color.Black;
+            this.lblCellTotal.Location = new System.Drawing.Point(100, 430);
+            this.lblCellTotal.Name = "lblCellTotal";
+            this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
+            this.lblCellTotal.TabIndex = 36;
+            // 
             // btnDispDown
             // 
             this.btnDispDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
@@ -1252,6 +1251,18 @@
             this.grpExample1.TabStop = false;
             this.grpExample1.Visible = false;
             // 
+            // lblReqSumType03
+            // 
+            this.lblReqSumType03.BackColor = System.Drawing.Color.LightGray;
+            this.lblReqSumType03.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.lblReqSumType03.ForeColor = System.Drawing.Color.White;
+            this.lblReqSumType03.Location = new System.Drawing.Point(218, 4);
+            this.lblReqSumType03.Name = "lblReqSumType03";
+            this.lblReqSumType03.Size = new System.Drawing.Size(100, 20);
+            this.lblReqSumType03.TabIndex = 1;
+            this.lblReqSumType03.Text = "対 象 外";
+            this.lblReqSumType03.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // lblReqSumType01
             // 
             this.lblReqSumType01.BackColor = System.Drawing.Color.Yellow;
@@ -1276,18 +1287,6 @@
             this.lblReqSumType02.Text = "選 択 済";
             this.lblReqSumType02.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
-            // lblReqSumType03
-            // 
-            this.lblReqSumType03.BackColor = System.Drawing.Color.LightGray;
-            this.lblReqSumType03.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.lblReqSumType03.ForeColor = System.Drawing.Color.White;
-            this.lblReqSumType03.Location = new System.Drawing.Point(218, 4);
-            this.lblReqSumType03.Name = "lblReqSumType03";
-            this.lblReqSumType03.Size = new System.Drawing.Size(100, 20);
-            this.lblReqSumType03.TabIndex = 1;
-            this.lblReqSumType03.Text = "対 象 外";
-            this.lblReqSumType03.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // FrmConstructionLedger
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -1296,11 +1295,7 @@
             this.ClientSize = new System.Drawing.Size(1344, 692);
             this.Controls.Add(this.btnCreate);
             this.Controls.Add(this.btnSelect);
-            this.Controls.Add(this.button2);
-            this.Controls.Add(this.button1);
             this.Controls.Add(this.btnOtherProc);
-            this.Controls.Add(this.btnDispDown);
-            this.Controls.Add(this.btnDispUp);
             this.Controls.Add(this.label4);
             this.Controls.Add(this.panel2);
             this.Controls.Add(this.btnLineDel);
@@ -1312,6 +1307,10 @@
             this.Controls.Add(this.label1);
             this.Controls.Add(this.label2);
             this.Controls.Add(this.grpExample1);
+            this.Controls.Add(this.button2);
+            this.Controls.Add(this.button1);
+            this.Controls.Add(this.btnDispDown);
+            this.Controls.Add(this.btnDispUp);
             this.Font = new System.Drawing.Font("ＭＳ 明朝", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
             this.KeyPreview = true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.resx	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.resx	(revision 315)
@@ -117,12 +117,6 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <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="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
@@ -195,4 +189,7 @@
   <metadata name="Column28.UserAddedColumn" 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>
 </root>
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedgerAuxiliary.cs	(revision 315)
@@ -7618,7 +7618,7 @@
             try
             {
                 // 請求処理連携以外は処理しない
-                if (!m_BillingProc) return;
+                if (!m_ReqSumFlag) return;
                 
                 // 支払カラム以外は処理しない
                 int FixColCnt = Enum.GetNames(typeof(GridColumn)).Length;
@@ -7723,6 +7723,11 @@
                     // 請求まとめ行色変更処理
                     SetReqSumRowColor(CurRow);
                 }
+                // フォームスタイルセット
+                this.BackColor = SystemColors.ControlLightLight;
+                int nWDiff = panel2.Width - dgv.Width;
+                panel2.Width = panel1.Width;
+                dgv.Width = (panel2.Width - nWDiff);
             }
             catch (System.Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRegField.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRegField.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/FrmSelectRegField.cs	(revision 315)
@@ -907,7 +907,7 @@
             else
             {
                 // 担当者対象部署マスタに含まれるか判定                                
-                foreach( PersonDepartmentMaster Prsn in CommonMotions.LoginUserDepartment)
+                foreach( PersonDepartmentMaster Prsn in CommonMotions.LoginUserRefDepartment)
                 {
                     if( MyData.DepartmentCode == Prsn.DepartmentCode )
                     {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 315)
@@ -1644,7 +1644,7 @@
                 DataGridViewRow CurRow = dgv.CurrentRow;
 
                 int nCompnyCode = CommonMotions.cnvInt(CurRow.Cells[m_Company_Column].Value);
-                int nConstrCode = CommonMotions.cnvInt(CurRow.Cells[m_ConstructionCode].Value);
+                int nConstrCode = CommonMotions.cnvInt(CurRow.Cells[m_Genba_Column].Value);
                 if (rdbCompany.Checked)
                 {   // �Ǝ�
                     // ���͋Ǝ҃R�[�h��������Ώ������Ȃ�
@@ -3858,7 +3858,7 @@
                         || m_UserInfo.m_Type == CommonDefine.SecurityRankPos.FreeAuthority)
                 {
                     // �Q�ƕ����ɂ��邩�̃`�F�b�N
-                    foreach (PersonDepartmentMaster RefDepRec in CommonMotions.LoginUserDepartment)
+                    foreach (PersonDepartmentMaster RefDepRec in CommonMotions.LoginUserRefDepartment)
                     {
                         // ������������ێ����镔���̍H���̂ݕ\������
                         if (RefDepRec.DepartmentCode != DepCode)
@@ -3891,7 +3891,7 @@
                     else if (m_UserInfo.m_SecRange == ClsSecurityPermission.SecRangeType.OneDepartment)
                     {
                         // �Q�ƕ����ɂ��邩�̃`�F�b�N
-                        foreach (PersonDepartmentMaster RefDepRec in CommonMotions.LoginUserDepartment)
+                        foreach (PersonDepartmentMaster RefDepRec in CommonMotions.LoginUserRefDepartment)
                         {
                             // ������������ێ����镔���̍H���̂ݕ\������
                             if (RefDepRec.DepartmentCode != DepCode)
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.cs	(revision 315)
@@ -392,8 +392,8 @@
                 SetLoginUserData(wrkrec);
 
                 // ----- 参照部署データ取得
-                CommonMotions.LoginUserDepartment.Clear();
-                List<PersonDepartmentMaster> depList = CommonMotions.LoginUserDepartment;
+                CommonMotions.LoginUserRefDepartment.Clear();
+                List<PersonDepartmentMaster> depList = CommonMotions.LoginUserRefDepartment;
                 string strpdSQL = pdDB.CreatePrimarykeyString(LoginUserID);
                 // 担当者参照部署マスタ読込
                 if (!pdDB.SelectAction(strSQL, ref depList)) return false;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenu.cs	(revision 315)
@@ -1551,7 +1551,7 @@
                             int Range = 0;
                             int CurRank = ClsSecurityPermission.GetPersonDataAccessRank(PersonCode, ref Range);
                             // 参照部署にあるかのチェック
-                            foreach (PersonDepartmentMaster RefDepRec in CommonMotions.LoginUserDepartment)
+                            foreach (PersonDepartmentMaster RefDepRec in CommonMotions.LoginUserRefDepartment)
                             {
                                 if (DepCode == RefDepRec.DepartmentCode)
                                 {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 315)
@@ -2386,7 +2386,7 @@
                 // 担当者は返信・編集以外メッセージを見ることはできない
                 if (WriteingCode != CommonMotions.LoginUserData.PersonCode)
                 {
-                    // 所属長以上は全てのメッセージを見ることができる
+                    // 所属長以上対象部署の全てのメッセージを見ることができる
                     if (!ClsMessageBoradAccess.MessagePermission(RecoadNo, BuranchNo)) return false;
                 }
 
@@ -2433,7 +2433,7 @@
                 int WriteingCode = CommonMotions.cnvInt(wrkRow.Cells[(int)MessageGridCount.Writer].Value);
 
                 // 読込権限がない場合は処理しない
-                if (!ClsMessageBoradAccess.MessageNewReadPermission(RecoadNo, BuranchNo)) return false;
+                if (!ClsMessageBoradAccess.MessageReadPermission(RecoadNo, BuranchNo)) return false;
                 
                 int ExecProcNo = (int)ClsExcute.SubFormExecuteNo.MessageReader;
 
Index: branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 314)
+++ branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 315)
@@ -32,7 +32,7 @@
 // すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を 
 // 既定値にすることができます:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.1.33")]
-[assembly: AssemblyFileVersion("1.0.1.33")]
+[assembly: AssemblyVersion("1.0.1.34")]
+[assembly: AssemblyFileVersion("1.0.1.34")]
 // Log4netを使用する
 [assembly: log4net.Config.XmlConfigurator(ConfigFile = @"log4net.config", Watch = true)]
\ No newline at end of file
