Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonDefine.cs	(revision 346)
@@ -43,7 +43,7 @@
         /// ãƒ‘ã‚¹ã‚’å®šæ•°ã�§å®šç¾©ã�™ã‚‹
         /// </summary>
         public const string s_UPDATECOPY_NAME = "UpDateCopy.exe";
-// â–¼è‡ªå‹•æ›´æ–°VPSå¯¾å¿œâ–¼
+        // â–¼è‡ªå‹•æ›´æ–°VPSå¯¾å¿œâ–¼
         // FTPãƒ¦ãƒ¼ã‚¶å��
         public const string s_FTP_USER_NAME = "pmaint";
         // FTPãƒ‘ã‚¹ãƒ¯ãƒ¼ãƒ‰
@@ -60,7 +60,7 @@
         public const string s_VERSION_SECTION = "genbaKantokuHisyo";
         // èµ·å‹•ãƒ‘ãƒ©ãƒ¡ãƒ¼ã‚¿
         public const string s_KIDOU_PARAM = "/NOCHECK";
-// â–²è‡ªå‹•æ›´æ–°VPSå¯¾å¿œâ–²
+        // â–²è‡ªå‹•æ›´æ–°VPSå¯¾å¿œâ–²
         #endregion
 
         #region ã‚·ã‚¹ãƒ†ãƒ å®šç¾©ãƒ•ã‚¡ã‚¤ãƒ«ãƒ‘ã‚¹
@@ -256,6 +256,23 @@
         public static string[] DayOfTheWeekString = new string[] { "æ—¥", "æœˆ", "ç�«", "æ°´", "æœ¨", "é‡‘", "åœŸ" };
         #endregion
 
+        #region ãƒ‡ãƒ¼ã‚¿å‰Šé™¤ãƒ•ãƒ©ã‚°
+        /// <summary>
+        /// ãƒ‡ãƒ¼ã‚¿å‰Šé™¤ãƒ•ãƒ©ã‚°
+        /// </summary>
+        public enum DataRowDeleteDef
+        {
+            /// <summary>
+            /// å­˜åœ¨ä¸­
+            /// </summary>
+            Exists = 0,
+            /// <summary>
+            /// å‰Šé™¤æ¸ˆã�¿
+            /// </summary>
+            Deleted,
+        }
+        #endregion
+
         #region æŽ²ç¤ºæ�¿ï¼šé–¢é€£å®šç¾©
         #region æŽ²ç¤ºæ�¿ã‚°ãƒªãƒƒãƒ‰è¿”ä¿¡æ–‡å­—
         /// <summary>
@@ -1031,7 +1048,7 @@
             /// <summary>
             /// é€šå¸¸æ¥­è€…
             /// </summary>
-             Normal = 0,
+            Normal = 0,
             /// <summary>
             /// æ‰‹é–“æ¥­è€…
             /// </summary>
@@ -1043,7 +1060,7 @@
         /// <summary>
         /// è³‡æ��è¿”å�´æœŸé™�ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ã‚¢ã‚¤ãƒ†ãƒ       // Add BIT 2017/03/18
         /// </summary>
-        public static string[,] MaterualLimitItem = new string[2,4] {
+        public static string[,] MaterualLimitItem = new string[2, 4] {
                                                                       { "è³‡æ��è¿”å�´", "æœ¬æ—¥è¿”å�´æœŸé™�ã�®è³‡æ��ã�Œã�‚ã‚Šã�¾ã�™ã€‚",   "0xFF0000", "0x000000" },
                                                                       { "è³‡æ��è¿”å�´", "è¿”å�´æœŸé™�ã‚’é�Žã�Žã�Ÿè³‡æ��ã�Œã�‚ã‚Šã�¾ã�™ã€‚", "0x808080", "0xFF0000" }
                                                                     };
@@ -1079,5 +1096,19 @@
             AsNormalEnd,
         }
         #endregion
+
+        #region æœŸæ•°é�‹ç”¨æ™‚æ–‡å­—åˆ—
+        /// <summary>
+        /// æœŸæ•°é�‹ç”¨æ™‚æ–‡å­—åˆ—
+        /// </summary>
+        public static string[] Type1YearString = new string[] { "å¯¾è±¡æœŸ", "æœŸ" };
+        #endregion
+
+        #region å¹´æ•°é�‹ç”¨æ™‚æ–‡å­—åˆ—
+        /// <summary>
+        /// å¹´æ•°é�‹ç”¨æ™‚æ–‡å­—åˆ—
+        /// </summary>
+        public static string[] Type2YearString = new string[] { "å¯¾è±¡å¹´", "å¹´" };
+        #endregion
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonMotions.cs	(revision 346)
@@ -3341,9 +3341,9 @@
         }
         #endregion
 
-        #region ä»ŠæœŸã�®åˆ¤å®šã‚’è¡Œã�†
+        #region ä»ŠæœŸä»¥é™�ã�®åˆ¤å®šã‚’è¡Œã�†
         /// <summary>
-        /// ä»ŠæœŸã�®åˆ¤å®šã‚’è¡Œã�†
+        /// ä»ŠæœŸä»¥é™�ã�®åˆ¤å®šã‚’è¡Œã�†
         /// </summary>
         /// <returns></returns>
         public staticã€€bool CheckNowSeason(int nTarget)
@@ -3352,11 +3352,11 @@
             {
                 if (m_systemMaster.ConstructionNoBase == (int)SystemMaster.ConstrNoBaseDef.BusinessPeriod)
                 {   // å–¶æ¥­æœŸæ•°
-                    if (nTarget != m_systemMaster.BusinessPeriod) return false;
+                    if (nTarget < m_systemMaster.BusinessPeriod) return false;
                 }
                 else
                 {   // å·¥äº‹å¹´åº¦
-                    if (nTarget != m_systemMaster.ConstrYear) return false;
+                    if (nTarget < m_systemMaster.ConstrYear) return false;
                 }
                 return true;
             }
@@ -3454,7 +3454,7 @@
                     strSQL.Append(" WHERE");
 
                     // å‰Šé™¤ã�•ã‚Œã�¦ã�„ã�ªã�„ã‚‚ã�®
-                    strSQL.Append(" A.DELETEFLG = 0");
+                    strSQL.AppendFormat(" A.DELETEFLG = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
                     DateTime dtDefaultEnd = CommonMotions.GetOpeningEndDate(nTargetCount, false);
 
                     strSQL.AppendFormat(" And DATE(A.StartDate) <= DATE('{0}')", dtDefaultEnd.ToShortDateString());
@@ -3610,6 +3610,10 @@
             /// 3:éƒ¨ç½²ã‚³ãƒ¼ãƒ‰
             /// </summary>
             DepCode,
+            /// <summary>
+            /// 4:å‰Šé™¤ãƒ•ãƒ©ã‚°ï¼ˆéƒ¨ç½²çµŒè²»ãƒžã‚¹ã‚¿ï¼‰
+            /// </summary>
+            DeleteFlg,
         }
         #endregion
 
@@ -3632,34 +3636,52 @@
                     strSQL.Append(", IFNULL(B.EXPENSESRAITO, 0)");
                     strSQL.Append(", A.NAMECODE");
                     strSQL.Append(", B.DEPARTMENTCODE");
+                    strSQL.Append(", A.DeleteFlg");
                     strSQL.Append(" FROM");
                     strSQL.Append(" DIVISIONMASTER AS A");
+
                     strSQL.Append(" LEFT JOIN (");
                     strSQL.Append("SELECT");
-                    strSQL.Append(" NAMECODE");
-                    strSQL.Append(", DEPARTMENTCODE");
-                    strSQL.Append(", EXPENSESRAITO");
-                    strSQL.Append(", EXPENSESPERIOD");
+                    strSQL.Append(" BB.NAMECODE");
+                    strSQL.Append(", BB.DEPARTMENTCODE");
+                    strSQL.Append(", BB.EXPENSESRAITO");
+                    strSQL.Append(", BB.EXPENSESPERIOD");
+                    strSQL.Append(", BB.DisplayOrder");
                     strSQL.Append(" FROM");
-                    strSQL.Append(" DEPARTMENTEXPENSESMASTER) AS B");
+                    strSQL.Append(" DEPARTMENTEXPENSESMASTER AS BB) AS B");
                     strSQL.Append(" ON A.NAMECODE = B.NAMECODE");
                     strSQL.AppendFormat(" AND B.EXPENSESPERIOD = {0}", Preiod);
                     if(DepartmentCode > 0) strSQL.AppendFormat(" AND B.DEPARTMENTCODE = {0}", DepartmentCode);
+
+                    strSQL.Append(" LEFT JOIN departmentmaster AS C");
+                    strSQL.Append(" On C.DepartmentCode = B.DEPARTMENTCODE");
+
                     strSQL.AppendFormat(" WHERE A.DIVISIONCODE = {0}", (int)DivisionMaster.DivisionMasterCodeDef.ConstructionExpenses);
-                    strSQL.Append(" ORDER BY A.DISPLAYORDER");
+                    strSQL.AppendFormat(" AND A.DeleteFlg = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
+
+                    strSQL.Append(" ORDER BY A.DISPLAYORDER, C.DISPLAYORDER");
                 }
                 else
                 {   // ä»¥å‰�ã�®ãƒ‡ãƒ¼ã‚¿
                     strSQL.Append("SELECT");
-                    strSQL.Append(" NAMESTRING");
-                    strSQL.Append(", EXPENSESRAITO");
-                    strSQL.Append(", NAMECODE");
-                    strSQL.Append(", DEPARTMENTCODE");
+                    strSQL.Append(" B.NAMESTRING");
+                    strSQL.Append(", B.EXPENSESRAITO");
+                    strSQL.Append(", B.NAMECODE");
+                    strSQL.Append(", B.DEPARTMENTCODE");
+                    strSQL.Append(", B.DeleteFlg");
                     strSQL.Append(" FROM");
                     strSQL.Append(" DEPARTMENTEXPENSESMASTER AS B");
+
+                    strSQL.Append(" INNER JOIN departmentmaster AS C");
+                    strSQL.Append("        On C.DepartmentCode = B.DEPARTMENTCODE");
+
+                    strSQL.Append(" INNER JOIN divisionmaster AS D");
+                    strSQL.AppendFormat("  ON D.DIVISIONCODE = {0}", (int)DivisionMaster.DivisionMasterCodeDef.ConstructionExpenses);
+                    strSQL.Append("        And D.NameCode = B.NameCode");
+
                     strSQL.AppendFormat(" WHERE B.EXPENSESPERIOD = {0}", Preiod);
                     if (DepartmentCode > 0) strSQL.AppendFormat(" AND B.DEPARTMENTCODE = {0}", DepartmentCode);
-                    strSQL.Append(" ORDER BY B.DISPLAYORDER");
+                    strSQL.Append(" ORDER BY D.DeleteFlg, C.DISPLAYORDER, B.DISPLAYORDER");
                 }
 
                 ExpensesList.Clear();
Index: branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Common/CommonVersion.cs	(revision 346)
@@ -14,7 +14,7 @@
         /// <summary>
         /// æœ¬ä½“ãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³
         /// </summary>
-        public static int s_SystemVersion = 196;
+        public static int s_SystemVersion = 197;
 
         /// <summary>
         /// ã‚³ãƒ”ãƒ¼ãƒ»ç’°å¢ƒãƒ�ãƒ¼ã‚¸ãƒ§ãƒ³
Index: branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Common/Process/ClsExcute.cs	(revision 346)
@@ -1384,7 +1384,7 @@
         public static void ProcessExecuteNo_ConstructionLedgerList(ProcessParameter CurrentPara)
         {
             //ã€€å·¥äº‹è©³ç´°å�°å¸³ä¸€è¦§
-            FrmLedgerStatus frm = new FrmLedgerStatus();
+            FrmLedgerList frm = new FrmLedgerList();
             try
             {
                 int ProcessNo = (int)ProcessExecuteNo.ConstructionLedgerList;
@@ -1692,7 +1692,7 @@
         public static void ProcessExecuteNo_ConstrLedgerPersonList(ProcessParameter CurrentPara)
         {
             //ã€€å·¥äº‹è©³ç´°å�°å¸³ä¸€è¦§
-            FrmLedgerStatus frm = new FrmLedgerStatus();
+            FrmLedgerList frm = new FrmLedgerList();
             try
             {
                 int ProcessNo = (int)ProcessExecuteNo.ConstructionLedgerList;
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMApproval.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMApproval.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMApproval.cs	(revision 346)
@@ -56,6 +56,31 @@
 
         #endregion
 
+        #region æ¤œç´¢æ–‡å­—åˆ—ä½œæˆ�
+        /// <summary>
+        /// æ¤œç´¢æ–‡å­—åˆ—ä½œæˆ�
+        /// </summary>
+        /// <returns></returns>
+        private string CreateSelectSQL()
+        {
+            StringBuilder strcmd = new StringBuilder();
+    
+            // SQLä½œæˆ�ï¼ˆDateTimeåž‹ã�Œå¤‰æ�›ã�§ã��ã�ªã�„ã�®ã�§Charã�«å¤‰æ�›ã�—ã�¦ã�Šã��ï¼‰
+            strcmd.Append("SELECT");
+            strcmd.Append(" ApprovalCode");
+            strcmd.Append(",DepartmentCode");
+            strcmd.Append(",SeqNo");
+            strcmd.Append(",DisplayOrder");
+            strcmd.Append(",ApprovalPerson");
+            strcmd.Append(",ApprovalAuthority");
+            strcmd.Append(",DATE_FORMAT(EntryDate, '%Y/%m/%d %H:%i:%s')");
+            strcmd.Append(",DATE_FORMAT(UpdateDate, '%Y/%m/%d %H:%i:%s')");
+            strcmd.Append(" FROM ApprovalMaster");
+
+            return strcmd.ToString();
+        }
+        #endregion
+
         #region æ‰¿èª�çµŒè·¯ç™»éŒ²ãƒžã‚¹ã‚¿æ¤œç´¢
         /// <summary>
         /// æ‰¿èª�çµŒè·¯ç™»éŒ²ãƒžã‚¹ã‚¿æ¤œç´¢
@@ -71,19 +96,8 @@
 
             try
             {
-                // SQLä½œæˆ�ï¼ˆDateTimeåž‹ã�Œå¤‰æ�›ã�§ã��ã�ªã�„ã�®ã�§Charã�«å¤‰æ�›ã�—ã�¦ã�Šã��ï¼‰
-                strcmd.Append("SELECT");
-                strcmd.Append(" ApprovalCode");
-                strcmd.Append(",DepartmentCode");
-                strcmd.Append(",SeqNo");
-                strcmd.Append(",DisplayOrder");
-                strcmd.Append(",ApprovalPerson");
-                strcmd.Append(",ApprovalAuthority");
-                strcmd.Append(",DATE_FORMAT(EntryDate, '%Y/%m/%d %H:%i:%s')");
-                strcmd.Append(",DATE_FORMAT(UpdateDate, '%Y/%m/%d %H:%i:%s')");
-                strcmd.Append(" FROM ApprovalMaster");
-                strcmd.Append(AddSQLString);
-
+                // SQLä½œæˆ�
+                strcmd.AppendFormat("{0}{1}", CreateSelectSQL(), AddSQLString);
                 // SQLå®Ÿè¡Œ
                 if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return false;
 
@@ -264,6 +278,56 @@
         }
         #endregion
 
+        #region 1é …ç›®ã�®æ›´æ–°
+        /// <summary>
+        /// 1é …ç›®ã�®æ›´æ–°
+        /// </summary>
+        /// <returns></returns>
+        public bool UpdateFeild(int DepCode, int FeildNo, object value, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.Append("UPDATE ApprovalMaster");
+
+                strcmd.Append(" SET");
+                switch (FeildNo)
+                {
+                    case (int)NameColumn.ApprovalCode:
+                        strcmd.AppendFormat(" ApprovalCode = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.DepartmentCode:
+                        strcmd.AppendFormat(" DepartmentCode = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.SeqNo:
+                        strcmd.AppendFormat(" SeqNo = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.DisplayOrder:
+                        strcmd.AppendFormat(" DisplayOrder = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.ApprovalPerson:
+                        strcmd.AppendFormat(" ApprovalPerson = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.ApprovalAuthority:
+                        strcmd.AppendFormat(" ApprovalAuthority = {0}", ((int)value).ToString());
+                        break;
+                }
+
+                strcmd.Append(", UpdateDate = NOW()");
+                strcmd.Append(CreatePrimarykeyString(DepCode));
+
+                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ã‚ˆã‚Šæ§‹é€ ä½“ã�¸ã‚»ãƒƒãƒˆã�™ã‚‹
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartment.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartment.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartment.cs	(revision 346)
@@ -329,6 +329,62 @@
         }
         #endregion
 
+        #region 1é …ç›®ã�®æ›´æ–°
+        /// <summary>
+        /// 1é …ç›®ã�®æ›´æ–°
+        /// </summary>
+        /// <returns></returns>
+        public bool UpdateFeild(int DepCode, int FeildNo, object value, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.Append("UPDATE DepartmentMaster");
+
+                strcmd.Append(" SET");
+                switch (FeildNo)
+                {
+                    case (int)NameColumn.DepartmentCode:
+                        strcmd.AppendFormat(" DepartmentCode = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.DisplayOrder:
+                        strcmd.AppendFormat(" DisplayOrder = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.DepartmentString:
+                        strcmd.AppendFormat(" DepartmentString = '{0}'", value.ToString());
+                        break;
+                    case (int)NameColumn.ActionScheduleFlg:
+                        strcmd.AppendFormat(" ActionScheduleFlg = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.StaffAssignFlg:
+                        strcmd.AppendFormat(" StaffAssignFlg = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.StartDate:
+                        strcmd.AppendFormat(" StartDate = STR_TO_DATE('{0}','%Y/%m/%d')", ((DateTime)value).ToShortDateString());
+                        break;
+                    case (int)NameColumn.CompDate:
+                        strcmd.AppendFormat(" CompDate = STR_TO_DATE('{0}','%Y/%m/%d')", ((DateTime)value).ToShortDateString());
+                        break;
+                    case (int)NameColumn.DeleteFlg:
+                        strcmd.AppendFormat(" DeleteFlg = {0}", ((int)value).ToString());
+                        break;
+                }
+
+                strcmd.Append(", UpdateDate = NOW()");
+                strcmd.Append(CreatePrimarykeyString(DepCode));
+
+                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ã‚ˆã‚Šæ§‹é€ ä½“ã�¸ã‚»ãƒƒãƒˆã�™ã‚‹
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartmentExpenses.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartmentExpenses.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDepartmentExpenses.cs	(revision 346)
@@ -400,6 +400,66 @@
         }
         #endregion
 
+        #region 1é …ç›®ã�®æ›´æ–°
+        /// <summary>
+        /// 1é …ç›®ã�®æ›´æ–°
+        /// </summary>
+        /// <returns></returns>
+        public bool UpdateFeild(int DepCode, int ExpYear, int NmCode, int FeildNo, object value, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.Append("UPDATE DepartmentExpensesMaster");
+
+                strcmd.Append(" SET");
+                switch (FeildNo)
+                {
+                    case (int)NameColumn.DepartmentCode:
+                        // éƒ¨ç½²ã‚³ãƒ¼ãƒ‰
+                        strcmd.AppendFormat(" DepartmentCode = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.ExpensesPeriod:
+                        // äº‹æ¥­æœŸ
+                        strcmd.AppendFormat(" ExpensesPeriod = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.NameCode:
+                        // çµŒè²»å��ç§°ã‚³ãƒ¼ãƒ‰
+                        strcmd.AppendFormat(" NameCode = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.NameString:
+                        // å��ç§°
+                        strcmd.AppendFormat(" NameString = '{0}'", value.ToString());
+                        break;
+                    case (int)NameColumn.DisplayOrder:
+                        // è¡¨ç¤ºé †
+                        strcmd.AppendFormat(" DisplayOrder = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.ExpensesRaito:
+                        // çµŒè²»çŽ‡
+                        strcmd.AppendFormat(" ExpensesRaito = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.DeleteFlg:
+                        // å‰Šé™¤ãƒ•ãƒ©ã‚°
+                        strcmd.AppendFormat(" DeleteFlg = {0}", ((int)value).ToString());
+                        break;
+                }
+
+                strcmd.Append(", UpdateDate = NOW()");
+                strcmd.Append(CreatePrimarykeyString(DepCode, ExpYear, NmCode));
+
+                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ã‚ˆã‚Šæ§‹é€ ä½“ã�¸ã‚»ãƒƒãƒˆã�™ã‚‹
Index: branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDivision.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDivision.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/DB/IOAccess/IOMDivision.cs	(revision 346)
@@ -287,32 +287,82 @@
         /// </summary>
         /// <param name="NameCode">å��ç§°ã‚³ãƒ¼ãƒ‰</param>
         /// <returns>æˆ�åŠŸæ™‚ï¼štrueã€€å¤±æ•—æ™‚ï¼šfalse</returns>
-        public bool LogicalDeleteAction(int NameCode, bool bConnect = true)
+        public bool LogicalDeleteAction(int DivCode, int NameCode, bool bConnect = true)
         {
             // Whereæ–‡å­—åˆ—ä½œæˆ�
-            string strWhere = CreatePrimarykeyString(NameCode);
+            StringBuilder strWhere = new StringBuilder();
             try
             {
+                // Whereæ–‡å­—åˆ—ä½œæˆ�
+                strWhere.Append(CreatePrimarykeyString(DivCode, NameCode));
+
                 List<DivisionMaster> workList = new List<DivisionMaster>();
                 // ãƒ‡ãƒ¼ã‚¿èª­è¾¼
-                if (SelectAction(strWhere, ref workList, bConnect))
+                if (!SelectAction(strWhere.ToString(), ref workList, bConnect)) return false;
+                // ç„¡ã�„å ´å�ˆã�¯å‡¦ç�†ã�—ã�ªã�„
+                if (workList.Count == 0) return true;
+
+                // å‰Šé™¤ãƒ•ãƒ©ã‚°
+                workList[0].DeleteFlg = (int)CommonDefine.DataRowDeleteDef.Deleted;
+                // ãƒ‡ãƒ¼ã‚¿æ›´æ–°
+                if (!UpdateAction(strWhere.ToString(), workList[0], bConnect))
                 {
-                    if (workList.Count == 0) return true;
+                    rollback();
+                    return false;
+                }
 
-                    // å‰Šé™¤ãƒ•ãƒ©ã‚°
-                    workList[0].DeleteFlg = 1;
-                    // ãƒ‡ãƒ¼ã‚¿æ›´æ–°
-                    if (!UpdateAction(strWhere, workList[0], bConnect))
-                    {
-                        rollback();
-                        return false;
-                    }
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}ï¼š{2}", CommonMotions.GetMethodName(2), ex.Message, strWhere.ToString());
+                return false;
+            }
+        }
+        #endregion
+
+        #region 1é …ç›®ã�®æ›´æ–°
+        /// <summary>
+        /// 1é …ç›®ã�®æ›´æ–°
+        /// </summary>
+        /// <returns></returns>
+        public bool UpdateFeild(int DivCode, int NameCode, int FeildNo, object value, bool bConnect = true)
+        {
+            StringBuilder strcmd = new StringBuilder();
+            try
+            {
+                strcmd.Append("UPDATE DivisionMaster");
+
+                strcmd.Append(" SET");
+                switch (FeildNo)
+                {
+                    case (int)NameColumn.DivisionCode:
+                        strcmd.AppendFormat(" DivisionCode = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.NameCode:
+                        strcmd.AppendFormat(" NameCode = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.DisplayOrder:
+                        strcmd.AppendFormat(" DisplayOrder = {0}", ((int)value).ToString());
+                        break;
+                    case (int)NameColumn.NameString:
+                        strcmd.AppendFormat(" NameString = '{0}'", value.ToString());
+                        break;
+                    case (int)NameColumn.DeleteFlg:
+                        strcmd.AppendFormat(" DeleteFlg = {0}", ((int)value).ToString());
+                        break;
                 }
+
+                strcmd.Append(", UpdateDate = NOW()");
+                strcmd.Append(CreatePrimarykeyString(DivCode, NameCode));
+
+                if (!ExecuteNonQuery(strcmd.ToString(), bConnect)) return false;
+
                 return true;
             }
             catch (Exception ex)
             {
-                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}ï¼š{2}", CommonMotions.GetMethodName(2), ex.Message, strWhere);
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}ï¼š{2}", CommonMotions.GetMethodName(2), ex.Message, strcmd.ToString());
                 return false;
             }
         }
@@ -365,7 +415,7 @@
             try
             {
                 // SQLä½œæˆ�
-                strcmd.AppendFormat("SELECT IFNULL(MAX(NameCode), 0) FROM DivisionMaster{0}", AddSQLString);
+                strcmd.AppendFormat("SELECT IFNULL(MAX(NameCode), 0) FROM DivisionMaster {0}", AddSQLString);
 
                 // SQLå®Ÿè¡Œ
                 if (!ExecuteReader(strcmd.ToString(), ref arData, bConnect)) return iRet;
Index: branches/src/ProcessManagement/ProcessManagement/DataModel/PersonExpensesCost.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/DataModel/PersonExpensesCost.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/DataModel/PersonExpensesCost.cs	(revision 346)
@@ -6,7 +6,7 @@
 namespace ProcessManagement.DataModel
 {
     /// <summary>
-    /// çµŒè²»é€€é�¿ã‚¯ãƒ©ã‚¹ï¼ˆå�°å¸³ä¸€è¦§ã�§ä½¿ç”¨ï¼‰
+    /// äº¤é€šè²»ãƒ»è³¼å…¥å“�é€€é�¿ã‚¯ãƒ©ã‚¹ï¼ˆå�°å¸³ä¸€è¦§ã�§ä½¿ç”¨ï¼‰
     /// </summary>
     public class PersonExpensesCost
     {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ApprovalList/FrmApprovalListAuxiliary.cs	(revision 346)
@@ -290,13 +290,8 @@
             m_bInitFlg = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(this.cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -317,6 +312,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(this.cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -395,14 +396,9 @@
             m_bInitFlg = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(this.cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -424,6 +420,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(this.cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -1215,10 +1217,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -1275,9 +1279,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -1303,8 +1304,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstractionList/FrmConstructionListAuxiliary.cs	(revision 346)
@@ -1453,10 +1453,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -2084,13 +2086,8 @@
             m_initDataLoad = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -2111,6 +2108,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -2140,14 +2143,9 @@
             m_initDataLoad = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -2169,11 +2167,16 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
                 cmbConstructionPerson.SelectedValue= nBeforeCode;
-
             }
             catch (Exception ex)
             {
@@ -2198,9 +2201,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -2226,8 +2226,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionBaseInfo/FrmConstructionBaseInfoAuxiliary.cs	(revision 346)
@@ -2589,9 +2589,10 @@
             try
             {
                 // •”��ƒ}ƒXƒ^‚ð’Ç‰Á
-                string strSQL2 = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // •”��ƒ}ƒXƒ^“Ç�ž
-                if (!dmDB.SelectAction(strSQL2, ref dmList)) return;
+                if (!dmDB.SelectAction(strSQL.ToString(), ref dmList)) return;
                 // ƒf�[ƒ^•\Ž¦
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
                 DataList.Add(new KeyValuePair<int, string>(0, ""));
@@ -2604,9 +2605,10 @@
 
                 DataList.Add(new KeyValuePair<int, string>(0, ""));
                 // ’S“–ŽÒƒ}ƒXƒ^‚ð’Ç‰Á
-                string strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC, PersonCode ASC";
+                strSQL.Clear();
+                strSQL.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC, PersonCode ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // ’S“–ŽÒƒ}ƒXƒ^“Ç�ž
-                if (!picDB.SelectAction(strSQL, ref workList)) return;
+                if (!picDB.SelectAction(strSQL.ToString(), ref workList)) return;
                 // ƒf�[ƒ^•\Ž¦
                 foreach (PersonInChargeMaster wrk in workList)
                 {
@@ -2642,10 +2644,10 @@
                 List<DivisionMaster> bvList = new List<DivisionMaster>();
 
                 // Value‚©‚çKey‚ðŒŸ�õ
-                //string DivisionName = CommonDefine.DivisionMasterCode[1];
-                //int DivisionCode = CommonDefine.DivisionMasterCode.First(x => x.Value == DivisionName).Key;
-                string strSQL = dvDB.CreatePrimarykeyString((int)DivisionMaster.DivisionMasterCodeDef.OrderDivision) + " And DeleteFlg = 0 ORDER BY DISPLAYORDER";
-                if (!dvDB.SelectAction(strSQL, ref bvList)) return;
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(dvDB.CreatePrimarykeyString((int)DivisionMaster.DivisionMasterCodeDef.OrderDivision));
+                strSQL.AppendFormat(" And DeleteFlg = {0} ORDER BY DISPLAYORDER", (int)CommonDefine.DataRowDeleteDef.Exists);
+                if (!dvDB.SelectAction(strSQL.ToString(), ref bvList)) return;
                 if (bvList.Count == 0) return;
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
@@ -2689,10 +2691,12 @@
                 int idivision = CommonMotions.cnvInt(cmbOrdersDivision.SelectedValue.ToString());
                 if (idivision == 0) return true;
                 // ”­’�ŽÒƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
-                string strSQL = orDB.CreatePrimarykeyString(idivision) + " And DeleteFlg = 0 Order By DisplayOrder  ASC";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(orDB.CreatePrimarykeyString(idivision));
+                strSQL.AppendFormat(" And DeleteFlg = {0} Order By DisplayOrder  ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
 
                 // ”­’�ŽÒƒ}ƒXƒ^“Ç�ž
-                if (!orDB.SelectAction(strSQL, ref workList)) return false;
+                if (!orDB.SelectAction(strSQL.ToString(), ref workList)) return false;
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
                 // ƒf�[ƒ^•\Ž¦
@@ -2816,9 +2820,10 @@
             {
                 List<ConstructionTypeMaster> typeList = new List<ConstructionTypeMaster>();
 
-                string strSQL = " WHERE DeleteFlg = 0 ORDER BY DISPLAYORDER";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" WHERE DeleteFlg = {0} ORDER BY DISPLAYORDER", (int)CommonDefine.DataRowDeleteDef.Exists);
 
-                if (!TypeDB.SelectAction(strSQL, ref typeList)) return;
+                if (!TypeDB.SelectAction(strSQL.ToString(), ref typeList)) return;
                 if (typeList.Count == 0) return;
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionJoin/FrmConstructionJoinAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionJoin/FrmConstructionJoinAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionJoin/FrmConstructionJoinAuxiliary.cs	(revision 346)
@@ -258,13 +258,8 @@
             m_bInitFlag = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚’æ¤œç´¢ã�™ã‚‹
                 StringBuilder strSQL = new StringBuilder();
@@ -285,6 +280,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -314,14 +315,9 @@
             m_bInitFlag = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -343,11 +339,16 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
                 cmbConstructionPerson.SelectedValue = nBeforeCode;
-
             }
             catch (Exception ex)
             {
@@ -373,9 +374,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã‚ˆã‚Šé�¸æŠžæ‹…å½“è€…ã‚’å�–å¾—ã�™ã‚‹
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -401,8 +399,11 @@
 
                 // éƒ¨ç½²ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã�¸éƒ¨ç½²ã‚³ãƒ¼ãƒ‰ã‚»ãƒƒãƒˆ
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // æ‹…å½“è€…ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹å¤‰æ›´
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedger/FrmConstructionLedger.cs	(revision 346)
@@ -1018,7 +1018,7 @@
                     return;
                 }
 
-                // 16ŠúˆÈ�~‚Í•”��‚²‚Æ‚ÉŒo”ï‚ð�Ý’è‚·‚é
+                // 16ŠúˆÈ‘O‚ÍŒÅ’èŒo”ï
                 if (m_ConstructionBaseInfo.ConstructionPeriod < 16)
                 {   // ŒÅ’èŒo”ï—¦‚ðŽæ“¾‚·‚é
                     m_ExpensesList.Add(new object[] { CommonDefine.BeforeExpenses[0].Key, CommonDefine.BeforeExpenses[0].Value });
@@ -1027,6 +1027,7 @@
                 }
                 else
                 {
+                    // 16ŠúˆÈ�~‚Í•”��‚²‚Æ‚ÉŒo”ï‚ð�Ý’è‚·‚é
                     // •”��‚²‚Æ‚ÌŒo”ï‚ðŽæ“¾‚·‚é
                     if (!GetExpensesList())
                     {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.cs	(revision 346)
@@ -26,7 +26,7 @@
 //*----------------------------------------------------------------------------*
 namespace ProcessManagement.Forms.DataEntry
 {
-    public partial class FrmLedgerStatus : Form
+    public partial class FrmLedgerList : Form
     {
         #region Žg—p’è‹`
         //log4netƒ�ƒO‚ðŽg—p‚·‚é
@@ -41,68 +41,134 @@
         private enum DispColumn
         {
             /// <summary>
-            /// ‡‚
+            ///  0:‡‚
             /// </summary>
             No = 0,
             /// <summary>
-            /// �Ïƒtƒ‰ƒO
+            ///  1:�Ïƒtƒ‰ƒO
             /// </summary>
             ComplateFlg,
             /// <summary>
-            /// •”��
+            ///  2:•”��
             /// </summary>
             Department,
             /// <summary>
-            /// ’S“–ŽÒ–¼
+            ///  3:’S“–ŽÒ–¼
             /// </summary>
             PersonName,
             /// <summary>
-            /// �HŽ–ƒR�[ƒh
+            ///  4:�HŽ–ƒR�[ƒh
             /// </summary>
             SelectionCode,
             /// <summary>
-            /// �HŽ––¼�Ì
+            ///  5:�HŽ––¼�Ì
             /// </summary>
             SelectionName,
             /// <summary>
-            /// �HŽ–�i’»�ó‘Ô
+            ///  6:�HŽ–�i’»�ó‘Ô
             /// </summary>
             ConstructionStatus,
             /// <summary>
-            /// Žó’�‹àŠz
+            ///  7:Žó’�‹àŠz
             /// </summary>
             OrdersDecisionPrice,
             /// <summary>
-            /// ‰ïŽÐŒo”ï
+            ///  8:‰ïŽÐŒo”ï
             /// </summary>
             CompanyExpenses,
             /// <summary>
-            /// •”��Œo”ï
+            ///  9:•”��Œo”ï
             /// </summary>
             DepartmentExpenses,
             /// <summary>
-            /// ‰c‹ÆŒo”ï
+            /// 10:‰c‹ÆŒo”ï
             /// </summary>
             SalesExpenses,
             /// <summary>
-            /// ‘�Žx•¥Šz
+            /// 11:‘�Žx•¥Šz
             /// </summary>
             TotalPayment,
             /// <summary>
-            /// ‘e—˜
+            /// 12:‘e—˜
             /// </summary>
             GrossProfit,
             /// <summary>
-            /// ‹‹—^
+            /// 13:‹‹—^
             /// </summary>
             Allowance,
             /// <summary>
-            /// �ƒ—˜‰v
+            /// 14:�ƒ—˜‰v
             /// </summary>
             NetProfit,
         }
         #endregion
 
+        #region •\Ž¦ƒJƒ‰ƒ€‘O”¼
+        /// <summary>
+        /// •\Ž¦ƒJƒ‰ƒ€‘O”¼
+        /// </summary>
+        private enum DCFirstHalf
+        {
+            /// <summary>
+            ///  0:‡‚
+            /// </summary>
+            No = 0,
+            /// <summary>
+            ///  1:�Ïƒtƒ‰ƒO
+            /// </summary>
+            ComplateFlg,
+            /// <summary>
+            ///  2:•”��
+            /// </summary>
+            Department,
+            /// <summary>
+            ///  3:’S“–ŽÒ–¼
+            /// </summary>
+            PersonName,
+            /// <summary>
+            ///  4:�HŽ–ƒR�[ƒh
+            /// </summary>
+            SelectionCode,
+            /// <summary>
+            ///  5:�HŽ––¼�Ì
+            /// </summary>
+            SelectionName,
+            /// <summary>
+            ///  6:�HŽ–�i’»�ó‘Ô
+            /// </summary>
+            ConstructionStatus,
+            /// <summary>
+            ///  7:Žó’�‹àŠz
+            /// </summary>
+            OrdersDecisionPrice,
+        }
+        #endregion
+
+        #region •\Ž¦ƒJƒ‰ƒ€Œã”¼
+        /// <summary>
+        /// •\Ž¦ƒJƒ‰ƒ€Œã”¼
+        /// </summary>
+        private enum DCLatterHalf
+        {
+            /// <summary>
+            /// 11:‘�Žx•¥Šz
+            /// </summary>
+            TotalPayment = -4,
+            /// <summary>
+            /// 12:‘e—˜
+            /// </summary>
+            GrossProfit = -3,
+            /// <summary>
+            /// 13:‹‹—^
+            /// </summary>
+            Allowance = -2,
+            /// <summary>
+            /// 14:�ƒ—˜‰v
+            /// </summary>
+            NetProfit = -1,
+        }
+        #endregion
+
         #region �s‘I‘ð�F
         /// <summary>
         /// �s‘I‘ð�F
@@ -188,11 +254,6 @@
 
         #region •Ï�”
         /// <summary>
-        /// ƒtƒB�[ƒ‹ƒh’l•Ï‰»ƒtƒ‰ƒO
-        /// </summary>
-        //private bool m_bChengeAns = false;
-
-        /// <summary>
         /// �‰ŠúŽžƒtƒ‰ƒO
         /// </summary>
         private bool m_initDataLoad = true;
@@ -220,7 +281,7 @@
         /// <summary>
         /// ƒOƒŠƒbƒhƒJƒ‰ƒ€ƒTƒCƒY
         /// </summary>
-        int[] m_CellSize = null;
+        List<int> m_CellSize = new List<int>();
         #endregion
 
         #region ƒtƒH�[ƒ€•�
@@ -308,6 +369,13 @@
         /// ŠY“–�HŽ–’S“–ŽÒ
         /// </summary>
         private PersonInChargeMaster m_PersonInChargeMaster = new PersonInChargeMaster();
+
+        /// <summary>
+        /// •\Ž¦Œo”ï•ÛŽ�ƒGƒŠƒA
+        /// </summary>
+        List<KeyValuePair<int, string>> m_ExpList = new List<KeyValuePair<int, string>>();
+        List<DepartmentExpenses> m_DepExpList = new List<DepartmentExpenses>();
+
         #endregion
 
         #region ƒvƒ�ƒpƒeƒB
@@ -430,13 +498,13 @@
         #endregion
 
         #region ƒRƒ“ƒXƒgƒ‰ƒNƒ^
-        public FrmLedgerStatus()
+        public FrmLedgerList()
         {
             InitializeComponent();
         }
         #endregion
         #region ƒfƒXƒgƒ‰ƒNƒ^
-        ~FrmLedgerStatus()
+        ~FrmLedgerList()
         {
             try
             {
@@ -510,6 +578,9 @@
             // ƒRƒ“ƒ{ƒ{ƒbƒNƒX“™ƒCƒxƒ“ƒgƒZƒbƒg
             SetControlEvent((int)EventDef.ConstPro | (int)EventDef.Person | (int)EventDef.Person);
 
+            // ƒOƒŠƒbƒh�‰Šú�Ý’è
+            SetDisplayObject();
+
             SetInitnumUDConstPro();
             // ƒRƒ“ƒ{ƒ{ƒbƒNƒXƒZƒbƒg
             SetcmbDepartment();
@@ -518,9 +589,6 @@
             // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
             InitCombBox();
 
-            // ƒOƒŠƒbƒh�‰Šú�Ý’è
-            SetDisplayObject();
-
             // ƒ�ƒOƒCƒ“ŽÒ‚ÌƒZƒbƒg
             InitDepPersonCode();
 
@@ -550,15 +618,15 @@
             // Œð’Ê”ï�s‚Í“ü—Í‰æ–Ê‚ð•\Ž¦‚·‚é
             if (NextOtherCostExecute()) return;
             
-            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.SelectionCode].Value)) return;
-            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.SelectionName].Value)) return;
+            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DCFirstHalf.SelectionCode].Value)) return;
+            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DCFirstHalf.SelectionName].Value)) return;
 
             // –¾�×�sˆÈŠO‚Í�ˆ—�‚µ‚È‚¢
-            string strCode = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.SelectionCode].Value);
+            string strCode = CommonMotions.cnvString(CurRow.Cells[(int)DCFirstHalf.SelectionCode].Value);
             if (CommonMotions.cnvInt(strCode.Replace("-", "")) == 0) return;
 
             // Še�ˆ—�‹N“®
-            SubProcessExecute(CommonMotions.cnvIntFromStringCode(CurRow.Cells[(int)DispColumn.SelectionCode].Value.ToString(), "-"));
+            SubProcessExecute(CommonMotions.cnvIntFromStringCode(CurRow.Cells[(int)DCFirstHalf.SelectionCode].Value.ToString(), "-"));
         }
         #endregion
 
@@ -758,8 +826,8 @@
 
             // ƒf�[ƒ^‚ª‚È‚¢�ê�‡‚Í”²‚¯‚é
             if (dgv.RowCount == 0) return;
-            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.SelectionCode].Value) &&
-                CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.SelectionName].Value))
+            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DCFirstHalf.SelectionCode].Value) &&
+                CommonMotions.chkCellBlank(CurRow.Cells[(int)DCFirstHalf.SelectionName].Value))
             {
                 return;
             }
@@ -766,7 +834,7 @@
             else
             {
                 // �‡Œv�s‚Í�ˆ—�‚µ‚È‚¢
-                string strWork = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.SelectionName].Value);
+                string strWork = CommonMotions.cnvString(CurRow.Cells[(int)DCFirstHalf.SelectionName].Value);
                 bool bTitle = false;
                 foreach (string strTitle in s_TotalTitleArray)
                 {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.designer.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerList.designer.cs	(revision 346)
@@ -1,6 +1,6 @@
 ï»¿namespace ProcessManagement.Forms.DataEntry
 {
-    partial class FrmLedgerStatus
+    partial class FrmLedgerList
     {
         /// <summary>
         /// å¿…è¦�ã�ªãƒ‡ã‚¶ã‚¤ãƒŠå¤‰æ•°ã�§ã�™ã€‚
@@ -28,24 +28,24 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
-            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 dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
             this.btnEnd = new System.Windows.Forms.Button();
             this.label1 = new System.Windows.Forms.Label();
             this.lblCellTotal = new System.Windows.Forms.Label();
@@ -53,21 +53,6 @@
             this.btnLedgerStatus = new System.Windows.Forms.Button();
             this.btnOtherProc = new System.Windows.Forms.Button();
             this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
-            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.groupBox1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
             this.pnlPayroll = new System.Windows.Forms.Panel();
             this.label6 = new System.Windows.Forms.Label();
@@ -86,13 +71,13 @@
             this.label20 = new System.Windows.Forms.Label();
             this.label22 = new System.Windows.Forms.Label();
             this.label23 = new System.Windows.Forms.Label();
+            this.label24 = new System.Windows.Forms.Label();
+            this.label25 = new System.Windows.Forms.Label();
             this.lblStartDate = new System.Windows.Forms.Label();
             this.lblEndDate = new System.Windows.Forms.Label();
             this.lblTotalCalcValue = new System.Windows.Forms.Label();
             this.lblTotalCalcValue1 = new System.Windows.Forms.Label();
             this.lblTotalCalcValue2 = new System.Windows.Forms.Label();
-            this.label24 = new System.Windows.Forms.Label();
-            this.label25 = new System.Windows.Forms.Label();
             this.lblCalcValue1 = new System.Windows.Forms.Label();
             this.lblCalcValue2 = new System.Windows.Forms.Label();
             this.lblCalcValue3 = new System.Windows.Forms.Label();
@@ -107,6 +92,21 @@
             this.label3 = new System.Windows.Forms.Label();
             this.label5 = new System.Windows.Forms.Label();
             this.label7 = new System.Windows.Forms.Label();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit();
             this.groupBox1.SuspendLayout();
             this.pnlPayroll.SuspendLayout();
@@ -192,23 +192,22 @@
             // 
             this.dgvMaster.AllowUserToAddRows = false;
             this.dgvMaster.AllowUserToDeleteRows = false;
-            this.dgvMaster.AllowUserToResizeColumns = false;
             this.dgvMaster.AllowUserToResizeRows = false;
-            dataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.dgvMaster.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle19;
+            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
+            this.dgvMaster.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
             this.dgvMaster.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
             | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.dgvMaster.BackgroundColor = System.Drawing.Color.White;
             this.dgvMaster.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle20.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle20;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
             this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Column1,
@@ -226,14 +225,14 @@
             this.Column10,
             this.Column11,
             this.Column12});
-            dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Window;
-            dataGridViewCellStyle36.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.ControlText;
-            dataGridViewCellStyle36.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
-            dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvMaster.DefaultCellStyle = dataGridViewCellStyle36;
+            dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle18.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle18.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
+            dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvMaster.DefaultCellStyle = dataGridViewCellStyle18;
             this.dgvMaster.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
             this.dgvMaster.EnableHeadersVisualStyles = false;
             this.dgvMaster.Location = new System.Drawing.Point(5, 168);
@@ -250,177 +249,6 @@
             this.dgvMaster.Leave += new System.EventHandler(this.dgvMaster_Leave);
             this.dgvMaster.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvMaster_MouseUp);
             // 
-            // Column1
-            // 
-            dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle21;
-            this.Column1.Frozen = true;
-            this.Column1.HeaderText = "â„–";
-            this.Column1.Name = "Column1";
-            this.Column1.ReadOnly = true;
-            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column1.Width = 50;
-            // 
-            // Column13
-            // 
-            dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column13.DefaultCellStyle = dataGridViewCellStyle22;
-            this.Column13.Frozen = true;
-            this.Column13.HeaderText = "æ¸ˆ";
-            this.Column13.Name = "Column13";
-            this.Column13.ReadOnly = true;
-            this.Column13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column13.Width = 30;
-            // 
-            // Column14
-            // 
-            dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column14.DefaultCellStyle = dataGridViewCellStyle23;
-            this.Column14.Frozen = true;
-            this.Column14.HeaderText = "éƒ¨ç½²";
-            this.Column14.Name = "Column14";
-            this.Column14.ReadOnly = true;
-            // 
-            // Column2
-            // 
-            dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column2.DefaultCellStyle = dataGridViewCellStyle24;
-            this.Column2.Frozen = true;
-            this.Column2.HeaderText = "æ‹…å½“è€…å��";
-            this.Column2.Name = "Column2";
-            this.Column2.ReadOnly = true;
-            this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
-            // Column3
-            // 
-            dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle25;
-            this.Column3.Frozen = true;
-            this.Column3.HeaderText = "å·¥äº‹ã‚³ãƒ¼ãƒ‰";
-            this.Column3.Name = "Column3";
-            this.Column3.ReadOnly = true;
-            this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column3.Visible = false;
-            this.Column3.Width = 5;
-            // 
-            // Column4
-            // 
-            dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            this.Column4.DefaultCellStyle = dataGridViewCellStyle26;
-            this.Column4.Frozen = true;
-            this.Column4.HeaderText = "å·¥ã€€äº‹ã€€å��ã€€ç§°";
-            this.Column4.Name = "Column4";
-            this.Column4.ReadOnly = true;
-            this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column4.Width = 210;
-            // 
-            // Column15
-            // 
-            dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle27.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.Column15.DefaultCellStyle = dataGridViewCellStyle27;
-            this.Column15.Frozen = true;
-            this.Column15.HeaderText = "çŠ¶ã€€æ…‹";
-            this.Column15.Name = "Column15";
-            this.Column15.ReadOnly = true;
-            this.Column15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
-            // Column5
-            // 
-            dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle28.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle28;
-            this.Column5.Frozen = true;
-            this.Column5.HeaderText = "å�—æ³¨é‡‘é¡�";
-            this.Column5.Name = "Column5";
-            this.Column5.ReadOnly = true;
-            this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column5.Width = 120;
-            // 
-            // Column6
-            // 
-            dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle29.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column6.DefaultCellStyle = dataGridViewCellStyle29;
-            this.Column6.HeaderText = "ä¼šç¤¾çµŒè²»";
-            this.Column6.Name = "Column6";
-            this.Column6.ReadOnly = true;
-            this.Column6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
-            // Column7
-            // 
-            dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle30.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column7.DefaultCellStyle = dataGridViewCellStyle30;
-            this.Column7.HeaderText = "éƒ¨ç½²çµŒè²»";
-            this.Column7.Name = "Column7";
-            this.Column7.ReadOnly = true;
-            this.Column7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
-            // Column8
-            // 
-            dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle31.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column8.DefaultCellStyle = dataGridViewCellStyle31;
-            this.Column8.HeaderText = "å–¶æ¥­çµŒè²»";
-            this.Column8.Name = "Column8";
-            this.Column8.ReadOnly = true;
-            this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
-            // Column9
-            // 
-            dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle32.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column9.DefaultCellStyle = dataGridViewCellStyle32;
-            this.Column9.HeaderText = "ç·�æ”¯æ‰•é¡�";
-            this.Column9.Name = "Column9";
-            this.Column9.ReadOnly = true;
-            this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
-            // Column10
-            // 
-            dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle33.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column10.DefaultCellStyle = dataGridViewCellStyle33;
-            this.Column10.HeaderText = "ç²—ã€€åˆ©";
-            this.Column10.Name = "Column10";
-            this.Column10.ReadOnly = true;
-            this.Column10.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
-            // Column11
-            // 
-            dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle34.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column11.DefaultCellStyle = dataGridViewCellStyle34;
-            this.Column11.HeaderText = "çµ¦ã€€ä¸Ž";
-            this.Column11.Name = "Column11";
-            this.Column11.ReadOnly = true;
-            this.Column11.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column11.Visible = false;
-            this.Column11.Width = 5;
-            // 
-            // Column12
-            // 
-            dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle35.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column12.DefaultCellStyle = dataGridViewCellStyle35;
-            this.Column12.HeaderText = "ç´”åˆ©ç›Š";
-            this.Column12.Name = "Column12";
-            this.Column12.ReadOnly = true;
-            this.Column12.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            // 
             // groupBox1
             // 
             this.groupBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
@@ -687,6 +515,32 @@
             this.label23.Text = "æ‹…å½“å¤–å�Žç›Š";
             this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // label24
+            // 
+            this.label24.AutoSize = true;
+            this.label24.BackColor = System.Drawing.Color.PaleGoldenrod;
+            this.label24.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label24.ForeColor = System.Drawing.Color.Black;
+            this.label24.Location = new System.Drawing.Point(338, 34);
+            this.label24.Name = "label24";
+            this.label24.Size = new System.Drawing.Size(25, 16);
+            this.label24.TabIndex = 31;
+            this.label24.Text = "ï¼‹";
+            this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
+            // label25
+            // 
+            this.label25.AutoSize = true;
+            this.label25.BackColor = System.Drawing.Color.PaleGoldenrod;
+            this.label25.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.label25.ForeColor = System.Drawing.Color.Black;
+            this.label25.Location = new System.Drawing.Point(338, 59);
+            this.label25.Name = "label25";
+            this.label25.Size = new System.Drawing.Size(25, 16);
+            this.label25.TabIndex = 47;
+            this.label25.Text = "ï¼‹";
+            this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            // 
             // lblStartDate
             // 
             this.lblStartDate.BackColor = System.Drawing.Color.White;
@@ -747,32 +601,6 @@
             this.lblTotalCalcValue2.TabIndex = 52;
             this.lblTotalCalcValue2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
             // 
-            // label24
-            // 
-            this.label24.AutoSize = true;
-            this.label24.BackColor = System.Drawing.Color.PaleGoldenrod;
-            this.label24.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label24.ForeColor = System.Drawing.Color.Black;
-            this.label24.Location = new System.Drawing.Point(338, 34);
-            this.label24.Name = "label24";
-            this.label24.Size = new System.Drawing.Size(25, 16);
-            this.label24.TabIndex = 31;
-            this.label24.Text = "ï¼‹";
-            this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label25
-            // 
-            this.label25.AutoSize = true;
-            this.label25.BackColor = System.Drawing.Color.PaleGoldenrod;
-            this.label25.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label25.ForeColor = System.Drawing.Color.Black;
-            this.label25.Location = new System.Drawing.Point(338, 59);
-            this.label25.Name = "label25";
-            this.label25.Size = new System.Drawing.Size(25, 16);
-            this.label25.TabIndex = 47;
-            this.label25.Text = "ï¼‹";
-            this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
             // lblCalcValue1
             // 
             this.lblCalcValue1.BackColor = System.Drawing.Color.White;
@@ -941,6 +769,171 @@
             this.label7.Text = "ç¬¬";
             this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // Column1
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle3;
+            this.Column1.Frozen = true;
+            this.Column1.HeaderText = "â„–";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column1.Width = 50;
+            // 
+            // Column13
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column13.DefaultCellStyle = dataGridViewCellStyle4;
+            this.Column13.Frozen = true;
+            this.Column13.HeaderText = "æ¸ˆ";
+            this.Column13.Name = "Column13";
+            this.Column13.ReadOnly = true;
+            this.Column13.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column13.Width = 30;
+            // 
+            // Column14
+            // 
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column14.DefaultCellStyle = dataGridViewCellStyle5;
+            this.Column14.Frozen = true;
+            this.Column14.HeaderText = "éƒ¨ç½²";
+            this.Column14.Name = "Column14";
+            this.Column14.ReadOnly = true;
+            this.Column14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column2
+            // 
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle6;
+            this.Column2.Frozen = true;
+            this.Column2.HeaderText = "æ‹…å½“è€…å��";
+            this.Column2.Name = "Column2";
+            this.Column2.ReadOnly = true;
+            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column3
+            // 
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle7;
+            this.Column3.Frozen = true;
+            this.Column3.HeaderText = "å·¥äº‹ã‚³ãƒ¼ãƒ‰";
+            this.Column3.Name = "Column3";
+            this.Column3.ReadOnly = true;
+            this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column3.Visible = false;
+            this.Column3.Width = 5;
+            // 
+            // Column4
+            // 
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            this.Column4.DefaultCellStyle = dataGridViewCellStyle8;
+            this.Column4.Frozen = true;
+            this.Column4.HeaderText = "å·¥ã€€äº‹ã€€å��ã€€ç§°";
+            this.Column4.Name = "Column4";
+            this.Column4.ReadOnly = true;
+            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column4.Width = 210;
+            // 
+            // Column15
+            // 
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle9.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
+            this.Column15.DefaultCellStyle = dataGridViewCellStyle9;
+            this.Column15.Frozen = true;
+            this.Column15.HeaderText = "çŠ¶ã€€æ…‹";
+            this.Column15.Name = "Column15";
+            this.Column15.ReadOnly = true;
+            this.Column15.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column5
+            // 
+            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle10.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle10;
+            this.Column5.Frozen = true;
+            this.Column5.HeaderText = "å�—æ³¨é‡‘é¡�";
+            this.Column5.Name = "Column5";
+            this.Column5.ReadOnly = true;
+            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column5.Width = 120;
+            // 
+            // Column6
+            // 
+            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle11.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column6.DefaultCellStyle = dataGridViewCellStyle11;
+            this.Column6.HeaderText = "ä¼šç¤¾çµŒè²»";
+            this.Column6.Name = "Column6";
+            this.Column6.ReadOnly = true;
+            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column7
+            // 
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle12.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column7.DefaultCellStyle = dataGridViewCellStyle12;
+            this.Column7.HeaderText = "éƒ¨ç½²çµŒè²»";
+            this.Column7.Name = "Column7";
+            this.Column7.ReadOnly = true;
+            this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column8
+            // 
+            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle13.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column8.DefaultCellStyle = dataGridViewCellStyle13;
+            this.Column8.HeaderText = "å–¶æ¥­çµŒè²»";
+            this.Column8.Name = "Column8";
+            this.Column8.ReadOnly = true;
+            this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column9
+            // 
+            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle14.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column9.DefaultCellStyle = dataGridViewCellStyle14;
+            this.Column9.HeaderText = "ç·�æ”¯æ‰•é¡�";
+            this.Column9.Name = "Column9";
+            this.Column9.ReadOnly = true;
+            this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column10
+            // 
+            dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle15.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column10.DefaultCellStyle = dataGridViewCellStyle15;
+            this.Column10.HeaderText = "ç²—ã€€åˆ©";
+            this.Column10.Name = "Column10";
+            this.Column10.ReadOnly = true;
+            this.Column10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
+            // Column11
+            // 
+            dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle16.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column11.DefaultCellStyle = dataGridViewCellStyle16;
+            this.Column11.HeaderText = "çµ¦ã€€ä¸Ž";
+            this.Column11.Name = "Column11";
+            this.Column11.ReadOnly = true;
+            this.Column11.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column11.Visible = false;
+            this.Column11.Width = 5;
+            // 
+            // Column12
+            // 
+            dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle17.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column12.DefaultCellStyle = dataGridViewCellStyle17;
+            this.Column12.HeaderText = "ç´”åˆ©ç›Š";
+            this.Column12.Name = "Column12";
+            this.Column12.ReadOnly = true;
+            this.Column12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            // 
             // FrmLedgerStatus
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -993,21 +986,6 @@
         private System.Windows.Forms.Label label2;
         private System.Windows.Forms.Label lblCellTotal;
         private System.Windows.Forms.ProgressBar ProgressBar;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column13;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column15;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
         private System.Windows.Forms.Panel pnlPayroll;
         private System.Windows.Forms.Label lblEndDate;
         private System.Windows.Forms.Label lblStartDate;
@@ -1040,5 +1018,20 @@
         private System.Windows.Forms.Button btnLedgerStatus;
         private System.Windows.Forms.Label label18;
         private System.Windows.Forms.Button btnOtherProc;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column13;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column15;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column11;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/FrmConstructionLedgerListAuxiliary.cs	(revision 346)
@@ -29,7 +29,7 @@
 //*----------------------------------------------------------------------------*
 namespace ProcessManagement.Forms.DataEntry
 {
-    partial class FrmLedgerStatus
+    partial class FrmLedgerList
     {
         #region ’è�”
         private const string StaticSQL1 = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DetailString, A.SalesPersonCode, A.ConstructionPersonCode, A.ConstructionStatusFlg ";
@@ -42,40 +42,64 @@
         #region ƒvƒ�ƒpƒeƒB
         #endregion
 
-        #region •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
+        #region ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
         /// <summary>
-        /// •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
+        /// ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
         /// </summary>
-        private void SetDisplayObject()
+        private void SetGridInfo()
         {
-            // ƒtƒH�[ƒ€ƒTƒCƒYŽæ“¾
-            m_FormWidthSize = this.Width;
+            try
+            {
+                // ƒtƒH�[ƒ€ƒTƒCƒYŽæ“¾
+                m_FormWidthSize = this.Width;
 
-            DataGridView dgv = dgvMaster;
-            // ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
-            m_GridWidthSize = dgv.Width;
+                DataGridView dgv = dgvMaster;
+                // ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
+                m_GridWidthSize = dgv.Width;
 
-            // ƒOƒŠƒbƒhƒJƒ‰ƒ€•�Žæ“¾
-            int ColCount = Enum.GetNames(typeof(DispColumn)).Length;
-            m_CellSize = new int[ColCount];
-            foreach (DataGridViewColumn wrkCell in dgvMaster.Columns)
+                m_CellSize.Clear();
+                // ƒOƒŠƒbƒhƒJƒ‰ƒ€•�Žæ“¾
+                foreach (DataGridViewColumn wrkCell in dgvMaster.Columns)
+                {
+                    m_CellSize.Add(wrkCell.Width);
+                }
+            }
+            catch (Exception ex)
             {
-                m_CellSize[wrkCell.Index] = wrkCell.Width;
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}", ex.Message);
             }
+        }
+        #endregion
 
-            // ----- –¢�ì�¬‘ä’ Šm”F‰æ–Êƒ{ƒ^ƒ“•\Ž¦�iŒo‰cŽÒ‚¾‚¯‚ªŒ©‚¦‚é�j
-            if (CommonMotions.LoginUserData.SecCode == 0)
+        #region •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
+        /// <summary>
+        /// •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
+        /// </summary>
+        private void SetDisplayObject()
+        {
+            try
             {
-                int Master = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key;
-                if (CommonMotions.LoginUserData.SecurityManagement == Master) btnLedgerStatus.Visible = true;
-                else btnLedgerStatus.Visible = false;
+                // ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
+                SetGridInfo();
+
+                // ----- –¢�ì�¬‘ä’ Šm”F‰æ–Êƒ{ƒ^ƒ“•\Ž¦�iŒo‰cŽÒ‚¾‚¯‚ªŒ©‚¦‚é�j
+                if (CommonMotions.LoginUserData.SecCode == 0)
+                {
+                    int Master = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key;
+                    if (CommonMotions.LoginUserData.SecurityManagement == Master) btnLedgerStatus.Visible = true;
+                    else btnLedgerStatus.Visible = false;
+                }
+                else
+                {
+                    int Master = CommonDefine.SecurityRankList[(int)CommonDefine.SecurityRankPos.SpecialAuthority].Key;
+                    // ‘ä’ �ó‹µ‰æ–Êƒ{ƒ^ƒ“•\Ž¦
+                    int editflg = 0;
+                    btnLedgerStatus.Visible = ClsSecurityPermission.GetExecutePermission((int)ClsExcute.ProcessExecuteNo.PriceOfBudget, ref editflg);
+                }
             }
-            else
+            catch (Exception ex)
             {
-                int Master = CommonDefine.SecurityRankList[(int)CommonDefine.SecurityRankPos.SpecialAuthority].Key;
-                // ‘ä’ �ó‹µ‰æ–Êƒ{ƒ^ƒ“•\Ž¦
-                int editflg = 0;
-                btnLedgerStatus.Visible = ClsSecurityPermission.GetExecutePermission((int)ClsExcute.ProcessExecuteNo.PriceOfBudget, ref editflg);
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}", ex.Message);
             }
         }
         #endregion
@@ -150,6 +174,7 @@
                 foreach (Control CurCtrl in pnlPayroll.Controls)
                 {
                     if (CurCtrl.Name.IndexOf("lbl") < 0) continue;
+
                     CurCtrl.Text = string.Empty;
                 }
                 dgvMaster.Rows.Clear();
@@ -244,7 +269,7 @@
 
                 // –¼�Ì‚æ‚èŒo”ï‚È‚Ì‚©‚ð”»’è‚·‚é
                 bool bExec = false;
-                string OtherCostName = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.SelectionName].Value);
+                string OtherCostName = CommonMotions.cnvString(CurRow.Cells[(int)DCFirstHalf.SelectionName].Value);
                 for (int i = 1; i < CostDataOfPerson.DataNoStrArrary.Length; i++)
                 {
                     if (OtherCostName.Equals(CostDataOfPerson.DataNoStrArrary[i]))
@@ -344,17 +369,25 @@
         /// <summary>
         /// ƒOƒŠƒbƒh�sƒf�[ƒ^ƒZƒbƒg
         /// </summary>
-        /// <param name="objwrk"></param>
-        /// <param name="ino"></param>
-        /// <param name="TotalArea"></param>
-        /// <param name="initFlg"></param>
-        /// <param name="StatusFlg"></param>
-        private void GridDataSet(object[] objwrk, ref int ino, ref int[] TotalArea, ref bool initFlg, ref int StatusFlg)
+        private void GridDataSet(ArrayList wrkArray, ref int ino, ref int[] TotalArea, ref bool initFlg, ref int StatusFlg)
         {
             try
             {
-                int diffCount = (int)DispColumn.OrdersDecisionPrice - (int)DBGetData.OrdersDecisionPrice;
+                DataGridView dgv = dgvMaster;
 
+                object[] objwrk = null;
+                long MaxOrder = -1;
+                foreach (object[] ObjRec in wrkArray)
+                {
+                    // Žó’�‹àŠz‚ª‘å‚«‚¢‚à‚Ì‚ðŽc‚·
+                    long wrkOrder = CommonMotions.cnvLong(ObjRec[(int)DBGetData.ConstructionCode]);
+                    if (MaxOrder < wrkOrder)
+                    {
+                        objwrk = ObjRec;
+                        MaxOrder = wrkOrder;
+                    }
+                }
+
                 // “ü—ÍŠ®—¹‚Íƒtƒ‰ƒO‚ðŽg‚¤
                 string FlgString = string.Empty;
                 if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) == (int)ConstructionLedger.CompFlagDef.Complated) FlgString = "�Ï";
@@ -363,11 +396,13 @@
                 if (StatusFlg != CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionStatusflg]))
                 {
                     StatusFlg = CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionStatusflg]);
-                    if (!initFlg) dgvMaster.Rows.Add(1);
+                    if (!initFlg) dgv.Rows.Add(1);
                     initFlg = false;
                 }
                 string strStatus = CommonDefine.ProjectsStatus[CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionStatusflg])];
-                dgvMaster.Rows.Add((ino++)
+
+                // �s�ì�¬‚ÆŒo”ï‚æ‚è‘O‚Ìƒf�[ƒ^‚ðƒZƒbƒg‚·‚é
+                int RowCnt = dgv.Rows.Add((ino++)
                                     , FlgString
                                     , CommonMotions.cnvString(objwrk[(int)DBGetData.DepartmentString])
                                     , objwrk[(int)DBGetData.CreatorName].ToString()
@@ -374,20 +409,52 @@
                                     , CommonMotions.cnvStringCodeFromInt(CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionCode]), "-", 8)
                                     , objwrk[(int)DBGetData.DetailString].ToString()
                                     , strStatus
-                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.OrdersDecisionPrice]).ToString("#,0")
-                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.CompanyExpenses]).ToString("#,0")
-                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.DepartmentExpenses]).ToString("#,0")
-                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.SalesExpenses]).ToString("#,0")
-                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.TotalPayment]).ToString("#,0")
-                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.GrossProfit]).ToString("#,0")
-                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.Allowance]).ToString("#,0")
-                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.NetProfit]).ToString("#,0")
-                                    );
-                // �‡Œv‰ÁŽZ
-                for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                                    , CommonMotions.cnvInt(objwrk[(int)DBGetData.OrdersDecisionPrice]).ToString("#,0"));
+
+                // ƒOƒŠƒbƒhŒã”¼‚ðƒZƒbƒg‚·‚é
+                dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.TotalPayment)].Value = CommonMotions.cnvInt(objwrk[(int)DBGetData.TotalPayment]).ToString("#,0");
+                dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.GrossProfit)].Value = CommonMotions.cnvInt(objwrk[(int)DBGetData.GrossProfit]).ToString("#,0");
+                dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.Allowance)].Value = CommonMotions.cnvInt(objwrk[(int)DBGetData.Allowance]).ToString("#,0");
+                dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.NetProfit)].Value = CommonMotions.cnvInt(objwrk[(int)DBGetData.NetProfit]).ToString("#,0");
+
+                // Œo”ï0ƒZƒbƒg
+                for (int i = 0; i < m_ExpList.Count; i++)
                 {
-                    TotalArea[i] += CommonMotions.cnvInt(objwrk[i - diffCount]);
+                    int nColCnt = (int)DCFirstHalf.OrdersDecisionPrice + (i + 1);
+                    // ƒwƒbƒ_�[•¶Žš‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î‹ó”’‚É‚·‚é
+                    if (dgv.Columns[nColCnt].HeaderText.Length < 1) continue;
+                    // ‚OƒZƒbƒg
+                    dgv.Rows[RowCnt].Cells[nColCnt].Value = 0;
                 }
+
+                // Œo”ï•”•ª‚ðƒZƒbƒg‚·‚é
+                foreach (object[] ObjRec in wrkArray)
+                {
+                    int ExpCode = CommonMotions.cnvInt(ObjRec[(int)DBGetData.ExpCode]);
+                    int ExpValue = CommonMotions.cnvInt(ObjRec[(int)DBGetData.ExpValue]);
+                    int nIndex = 0;
+                    foreach (KeyValuePair<int, string> CurVal in m_ExpList)
+                    {
+                        ++nIndex;
+                        if (CurVal.Key != ExpCode) continue;
+
+                        // ƒf�[ƒ^ƒZƒbƒg
+                        int nColCnt = (int)DCFirstHalf.OrdersDecisionPrice + nIndex;
+                        // ƒwƒbƒ_�[•¶Žš‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î‹ó”’‚É‚·‚é
+                        if (dgv.Columns[nColCnt].HeaderText.Length < 1) continue;
+                        // ƒf�[ƒ^ƒZƒbƒg
+                        dgv.Rows[RowCnt].Cells[nColCnt].Value = ExpValue.ToString("#,0");
+                        TotalArea[nColCnt] += ExpValue;
+                        break;
+                    }
+                }
+
+                // �‡ŒvƒGƒŠƒA‰ÁŽZ
+                TotalArea[(int)DCFirstHalf.OrdersDecisionPrice] += CommonMotions.cnvInt(objwrk[(int)DBGetData.OrdersDecisionPrice]);
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.TotalPayment)] += CommonMotions.cnvInt(objwrk[(int)DBGetData.TotalPayment]);
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.GrossProfit)] += CommonMotions.cnvInt(objwrk[(int)DBGetData.GrossProfit]);
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.Allowance)] += CommonMotions.cnvInt(objwrk[(int)DBGetData.Allowance]);
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.NetProfit)] += CommonMotions.cnvInt(objwrk[(int)DBGetData.NetProfit]);
             }
             catch (Exception ex)
             {
@@ -410,8 +477,8 @@
                 // ˆê”ÊŽg—pŽÒ‚Í‹‹—^‚Ì—“‚ªŒ©‚¦‚È‚¢‚æ‚¤‚É‚·‚é�i‹‹—^—“‚ÍŒ»�Ý”ñ•\Ž¦�j
                 if (CommonMotions.LoginUserSecurity.SecRank == CommonDefine.SecurityRankList[(int)CommonDefine.SecurityRankPos.NormalAuthority].Key)
                 {
-                    dgvMaster.Columns[(int)DispColumn.Allowance].Visible = false;
-                    m_CellSize[(int)DispColumn.Allowance] = 0;
+                    dgvMaster.Columns[CalcLatterPoint((int)DCLatterHalf.Allowance)].Visible = false;
+                    m_CellSize[CalcLatterPoint((int)DCLatterHalf.Allowance)] = 0;
                 }
 
                 // ƒf�[ƒ^•\Ž¦
@@ -460,7 +527,7 @@
                     int ColumnCount = 0;
                     int TotalWidth = 0;
                     int NotVisibleSize = 0;
-                    for (int i = 0; i < m_CellSize.Length; i++)
+                    for (int i = 0; i < m_CellSize.Count; i++)
                     {
                         TotalWidth += m_CellSize[i];
                         if (dgv.Columns[i].Visible)
@@ -657,10 +724,10 @@
                     // �s�ì�¬
                     int RowCnt = dgv.Rows.Add(1);
                     // Œo”ï–¼�Ì
-                    dgv.Rows[RowCnt].Cells[(int)DispColumn.SelectionName].Value = CostDataOfPerson.DataNoStrArrary[i];
+                    dgv.Rows[RowCnt].Cells[(int)DCFirstHalf.SelectionName].Value = CostDataOfPerson.DataNoStrArrary[i];
                     // ‹àŠzƒZƒbƒg
-                    dgv.Rows[RowCnt].Cells[(int)DispColumn.TotalPayment].Value = CostValue[i].ToString("#,0");
-                    dgv.Rows[RowCnt].Cells[(int)DispColumn.NetProfit].Value = (CostValue[i] * -1).ToString("#,0");
+                    dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.TotalPayment)].Value = CostValue[i].ToString("#,0");
+                    dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.NetProfit)].Value = (CostValue[i] * -1).ToString("#,0");
                     SumData += CostValue[i];
                 }
 
@@ -668,11 +735,11 @@
                 // �s�ì�¬
                 int ExpensesCnt = dgv.Rows.Add(1);
                 // Œo”ï–¼�Ì
-                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.Expenses];
-                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                dgv.Rows[ExpensesCnt].Cells[(int)DCFirstHalf.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.Expenses];
+                dgv.Rows[ExpensesCnt].Cells[(int)DCFirstHalf.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
                 // ‹àŠzƒZƒbƒg
-                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.TotalPayment].Value = SumData.ToString("#,0");
-                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.NetProfit].Value = (SumData * -1).ToString("#,0");
+                dgv.Rows[ExpensesCnt].Cells[CalcLatterPoint((int)DCLatterHalf.TotalPayment)].Value = SumData.ToString("#,0");
+                dgv.Rows[ExpensesCnt].Cells[CalcLatterPoint((int)DCLatterHalf.NetProfit)].Value = (SumData * -1).ToString("#,0");
                 // �s‚Ì�F‚ð•Ï‚¦‚é
                 SetRowColor(dgv.Rows[ExpensesCnt], s_RowTotalBackColor, s_RowTotalForeColor);
 
@@ -714,9 +781,9 @@
                     // �s�ì�¬
                     RowCnt = dgv.Rows.Add(1);
                     // Œo”ï–¼�Ì
-                    dgv.Rows[RowCnt].Cells[(int)DispColumn.SelectionName].Value = s_GroupTitle[i];
+                    dgv.Rows[RowCnt].Cells[(int)DCFirstHalf.SelectionName].Value = s_GroupTitle[i];
                     // ‹àŠzƒZƒbƒg
-                    dgv.Rows[RowCnt].Cells[(int)DispColumn.NetProfit].Value = CostValue[i].ToString("#,0");
+                    dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.NetProfit)].Value = CostValue[i].ToString("#,0");
                     SumData += CostValue[i];
                 }
 
@@ -729,9 +796,9 @@
                 // �s�ì�¬
                 RowCnt = dgv.Rows.Add(1);
                 // Œo”ï–¼�Ì
-                dgv.Rows[RowCnt].Cells[(int)DispColumn.SelectionName].Value = s_GroupTitle[2];
+                dgv.Rows[RowCnt].Cells[(int)DCFirstHalf.SelectionName].Value = s_GroupTitle[2];
                 // ‹àŠzƒZƒbƒg
-                dgv.Rows[RowCnt].Cells[(int)DispColumn.NetProfit].Value = ConstrCost.ToString("#,0");
+                dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.NetProfit)].Value = ConstrCost.ToString("#,0");
                 SumData += ConstrCost;
 
                 // ----- •â�•�U•ª‚ÌŒv‚ð•\Ž¦‚·‚é
@@ -738,10 +805,10 @@
                 // �s�ì�¬
                 int AuxiliaryCnt = dgv.Rows.Add(1);
                 // Œo”ï–¼�Ì
-                dgv.Rows[AuxiliaryCnt].Cells[(int)DispColumn.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.Auxiliary];
-                dgv.Rows[AuxiliaryCnt].Cells[(int)DispColumn.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                dgv.Rows[AuxiliaryCnt].Cells[(int)DCFirstHalf.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.Auxiliary];
+                dgv.Rows[AuxiliaryCnt].Cells[(int)DCFirstHalf.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
                 // ‹àŠzƒZƒbƒg
-                dgv.Rows[AuxiliaryCnt].Cells[(int)DispColumn.NetProfit].Value = SumData.ToString("#,0");
+                dgv.Rows[AuxiliaryCnt].Cells[CalcLatterPoint((int)DCLatterHalf.NetProfit)].Value = SumData.ToString("#,0");
                 // �s‚Ì�F‚ð•Ï‚¦‚é
                 SetRowColor(dgv.Rows[AuxiliaryCnt], s_RowTotalBackColor, s_RowTotalForeColor);
 
@@ -800,6 +867,16 @@
                 dgv.SuspendLayout();
                 dgv.Rows.Clear();
 
+                int TargetYear = (int)numUDConstPro.Value;
+                // Œo”ï—¦ƒŠƒXƒg‚ðŽæ“¾‚·‚é
+                GetExpensesList(TargetYear, CommonMotions.cnvInt(cmbDepartment.SelectedValue));
+
+                // ƒOƒŠƒbƒh‚ÉŒo”ï—“‚ð�ì�¬‚·‚é
+                CreateExpensesColumn();
+
+                // ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
+                SetGridInfo();
+
                 // ƒvƒ�ƒOƒŒƒXƒo�[•\Ž¦�§Œä
                 DisplayControlProgressBar(true);
 
@@ -822,7 +899,7 @@
                 prgber.Update();
 
                 // �‡ŒvƒGƒŠƒA
-                int TotalColCnt = Enum.GetNames(typeof(DispColumn)).Length;
+                int TotalColCnt = dgv.ColumnCount;
                 int[] TotalArea = new int[TotalColCnt];
                 Array.Clear(TotalArea, 0, TotalArea.Length);
 
@@ -830,43 +907,64 @@
                 int ino = 1;
                 int StatusFlg = -1;
                 bool initFlg = true;
+                bool DataExists = false;
                 string strStatus = string.Empty;
                 // ----- Ž{�H’†ƒf�[ƒ^•\Ž¦
-                bool DataExists = false;
-                foreach (object[] objwrk in arData)
+                int nCompFlg = (int)ConstructionLedger.CompFlagDef.Complated;
+                List<int> ConstrCodeList = new List<int>();
+                foreach(object[] objwrk in arData)
                 {
-                    // “ü—ÍŠ®—¹‚Í•\Ž¦‚µ‚È‚¢
-                    if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) == (int)ConstructionLedger.CompFlagDef.Complated) break;
+                    if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) == nCompFlg) continue;
 
-                    // ƒOƒŠƒbƒh‚Öƒf�[ƒ^•\Ž¦
-                    GridDataSet(objwrk, ref ino, ref TotalArea, ref initFlg, ref StatusFlg);
-                    DataExists = true;
+                    int nWrkCode = CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionCode]);
+                    if (ConstrCodeList.Exists(x => x == nWrkCode)) continue;
+
+                    ConstrCodeList.Add(CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionCode]));
                 }
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
+                if (ConstrCodeList.Count() > 0)
+                {
+                    // ‘Î�Û�HŽ–”Ô�†Žæ“¾
+                    ArrayList CurDataList = new ArrayList();
+                    foreach (int CurCode in ConstrCodeList)
+                    {
+                        // ‘Î�Ûƒf�[ƒ^Žæ“¾
+                        CurDataList.Clear();
+                        foreach (object[] CurRow in arData)
+                        {
+                            if (CommonMotions.cnvInt(CurRow[(int)DBGetData.ConstructionCode]) != CurCode) continue;
+                            CurDataList.Add(CurRow);
+                        }
 
-                // •\Ž¦ƒf�[ƒ^‚ª‚ ‚é‚©‚Ìƒ`ƒFƒbƒN
-                // ----- �‡Œv•\Ž¦
-                if (DataExists)
-                {
+                        // ƒOƒŠƒbƒh‚Öƒf�[ƒ^•\Ž¦
+                        GridDataSet(CurDataList, ref ino, ref TotalArea, ref initFlg, ref StatusFlg);
+                    }
+                    // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
+                    prgber.Value++;
+                    prgber.Update();
+
+                    // •\Ž¦ƒf�[ƒ^‚ª‚ ‚é‚©‚Ìƒ`ƒFƒbƒN
+                    // ----- �‡Œv•\Ž¦
                     //dgv.Rows.Add();       // ‹ó�s
 
                     // �‡Œv�s•\Ž¦
                     int TotalRow = dgv.Rows.Add(1);
-                    dgv.Rows[TotalRow].Cells[(int)DispColumn.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.Execution];
-                    dgv.Rows[TotalRow].Cells[(int)DispColumn.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                    dgv.Rows[TotalRow].Cells[(int)DCFirstHalf.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.Execution];
+                    dgv.Rows[TotalRow].Cells[(int)DCFirstHalf.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
                     // �s‚Ì�F‚ð•Ï‚¦‚é
                     SetRowColor(dgv.Rows[TotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
 
                     // �”’l•\Ž¦
-                    for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                    for (int i = (int)DCFirstHalf.OrdersDecisionPrice; i < dgv.ColumnCount; i++)
                     {
+                        // ƒwƒbƒ_�[•¶Žš‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î‹ó”’‚É‚·‚é
+                        if (dgv.Columns[i].HeaderText.Length < 1) continue;
+
                         dgv.Rows[TotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
                     }
                     dgv.Rows.Add();       // ‹ó�s
+
+                    DataExists = true;
                 }
-
                 // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
                 prgber.Value++;
                 prgber.Update();
@@ -874,42 +972,60 @@
                 // ----- �Ïƒf�[ƒ^•\Ž¦
                 bool bRowPrint = false;
                 int[] ComplateTotalArea = new int[TotalColCnt];
-                Array.Clear(ComplateTotalArea, 0, ComplateTotalArea.Length);
+                ConstrCodeList.Clear();
                 foreach (object[] objwrk in arData)
                 {
-                    // “ü—ÍŠ®—¹ˆÈŠO‚Í•\Ž¦‚µ‚È‚¢
-                    if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) != (int)ConstructionLedger.CompFlagDef.Complated) continue;
+                    if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) != nCompFlg) continue;
 
-                    // ƒOƒŠƒbƒh‚Öƒf�[ƒ^•\Ž¦
-                    GridDataSet(objwrk, ref ino, ref ComplateTotalArea, ref initFlg, ref StatusFlg);
-                    bRowPrint = true;
+                    int nWrkCode = CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionCode]);
+                    if (ConstrCodeList.Exists(x => x == nWrkCode)) continue;
+
+                    ConstrCodeList.Add(CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionCode]));
                 }
-                // �‡Œv‚ð‘��‡Œv‚É‘«‚·
-                for (int i = 0; i < ComplateTotalArea.Length; i++)
+                if (ConstrCodeList.Count() > 0)
                 {
-                    TotalArea[i] += ComplateTotalArea[i];
-                }
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
+                    // ‘Î�Û�HŽ–”Ô�†Žæ“¾
+                    ArrayList CurDataList = new ArrayList();
+                    foreach (int CurCode in ConstrCodeList)
+                    {
+                        CurDataList.Clear();
+                        foreach (object[] CurRow in arData)
+                        {
+                            if (CommonMotions.cnvInt(CurRow[(int)DBGetData.ConstructionCode]) != CurCode) continue;
+                            CurDataList.Add(CurRow);
+                        }
 
-                // �Ïƒf�[ƒ^‚ª‚ ‚ê‚Î•\Ž¦
-                if (bRowPrint)
-                {
+                        // ƒOƒŠƒbƒh‚Öƒf�[ƒ^•\Ž¦
+                        GridDataSet(CurDataList, ref ino, ref ComplateTotalArea, ref initFlg, ref StatusFlg);
+                    }
+                    // �‡Œv‚ð‘��‡Œv‚É‘«‚·
+                    for (int i = 0; i < ComplateTotalArea.Length; i++)
+                    {
+                        TotalArea[i] += ComplateTotalArea[i];
+                    }
+                    // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
+                    prgber.Value++;
+                    prgber.Update();
+
+                    // �Ïƒf�[ƒ^‚ª‚ ‚ê‚Î�‡Œv•\Ž¦
                     //dgv.Rows.Add();       // ‹ó�s
                     int CompTotalRow = dgv.Rows.Add(1);
-                    dgv.Rows[CompTotalRow].Cells[(int)DispColumn.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.Completed];
-                    dgv.Rows[CompTotalRow].Cells[(int)DispColumn.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                    dgv.Rows[CompTotalRow].Cells[(int)DCFirstHalf.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.Completed];
+                    dgv.Rows[CompTotalRow].Cells[(int)DCFirstHalf.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
                     // �s‚Ì�F‚ð•Ï‚¦‚é
                     SetRowColor(dgv.Rows[CompTotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
                     // �”’l•\Ž¦
-                    for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                    for (int i = (int)DCFirstHalf.OrdersDecisionPrice; i < dgv.ColumnCount; i++)
                     {
+                        // ƒwƒbƒ_�[•¶Žš‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î‹ó”’‚É‚·‚é
+                        if (dgv.Columns[i].HeaderText.Length < 1) continue;
+
                         dgv.Rows[CompTotalRow].Cells[i].Value = ComplateTotalArea[i].ToString("#,0");
                     }
                     dgv.Rows.Add();       // ‹ó�s
+
+                    bRowPrint = true;
                 }
-
                 // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
                 prgber.Value++;
                 prgber.Update();
@@ -919,13 +1035,16 @@
                 {
                     //dgv.Rows.Add();       // ‹ó�s
                     int TotalRow = dgv.Rows.Add(1);
-                    dgv.Rows[TotalRow].Cells[(int)DispColumn.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.AllConstrutions];
-                    dgv.Rows[TotalRow].Cells[(int)DispColumn.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                    dgv.Rows[TotalRow].Cells[(int)DCFirstHalf.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.AllConstrutions];
+                    dgv.Rows[TotalRow].Cells[(int)DCFirstHalf.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
                     // �s‚Ì�F‚ð•Ï‚¦‚é
                     SetRowColor(dgv.Rows[TotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
                     // �”’l•\Ž¦
-                    for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                    for (int i = (int)DCFirstHalf.OrdersDecisionPrice; i < dgv.ColumnCount; i++)
                     {
+                        // ƒwƒbƒ_�[•¶Žš‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î‹ó”’‚É‚·‚é
+                        if (dgv.Columns[i].HeaderText.Length < 1) continue;
+
                         dgv.Rows[TotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
                     }
                     dgv.Rows.Add();       // ‹ó�s
@@ -981,27 +1100,30 @@
                 prgber.Update();
 
                 // Žx•¥‘�Šz
-                TotalArea[(int)DispColumn.TotalPayment] += Expenses;                // Žx•¥‘�Šz+Œo”ï
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.TotalPayment)] += Expenses;                // Žx•¥‘�Šz+Œo”ï
 
                 // ‘e—˜
-                TotalArea[(int)DispColumn.GrossProfit] -= Expenses;                 // ‘e—˜-Œo”ï
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.GrossProfit)] -= Expenses;                 // ‘e—˜-Œo”ï
                 
                 // �ƒ—˜‰v
-                TotalArea[(int)DispColumn.NetProfit] -= Expenses;                   // �ƒ—˜‰v-Œo”ï
-                TotalArea[(int)DispColumn.NetProfit] += Auxiliary;                  // �ƒ—˜‰v+•â�•�lŒ�”ï
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.NetProfit)] -= Expenses;                   // �ƒ—˜‰v-Œo”ï
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.NetProfit)] += Auxiliary;                  // �ƒ—˜‰v+•â�•�lŒ�”ï
 
                 // ----- ‘��‡Œv�s•\Ž¦
                 dgv.Rows.Add();       // ‹ó�s
                 int AllTotalRow = dgv.Rows.Add(1);
-                dgv.Rows[AllTotalRow].Cells[(int)DispColumn.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.AllTotal];
-                dgv.Rows[AllTotalRow].Cells[(int)DispColumn.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                dgv.Rows[AllTotalRow].Cells[(int)DCFirstHalf.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.AllTotal];
+                dgv.Rows[AllTotalRow].Cells[(int)DCFirstHalf.SelectionName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
 
                 // �s‚Ì�F‚ð•Ï‚¦‚é
                 SetRowColor(dgv.Rows[AllTotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
 
                 // �”’l•\Ž¦
-                for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
+                for (int i = (int)DCFirstHalf.OrdersDecisionPrice; i < dgv.ColumnCount; i++)
                 {
+                    // ƒwƒbƒ_�[•¶Žš‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î‹ó”’‚É‚·‚é
+                    if (dgv.Columns[i].HeaderText.Length < 1) continue;
+
                     dgv.Rows[AllTotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
                 }
 
@@ -1016,14 +1138,16 @@
             }
             finally
             {
-                // ƒf�[ƒ^‚ª‘½‚­‚È‚ê‚Îƒ\�[ƒg‚Å‚«‚é
-                if (CommonDefine.s_MaxInitLineCount < dgv.RowCount)
+                foreach (DataGridViewColumn wrkCol in dgv.Columns)
+                    wrkCol.SortMode = DataGridViewColumnSortMode.NotSortable;
+                //// ƒf�[ƒ^‚ª‘½‚­‚È‚ê‚Îƒ\�[ƒg‚Å‚«‚é
+                if (CommonDefine.s_MaxInitLineCount > dgv.RowCount)
+                //{
+                //    foreach (DataGridViewColumn wrkCol in dgv.Columns)
+                //        wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
+                //}
+                //else
                 {
-                    foreach (DataGridViewColumn wrkCol in dgv.Columns)
-                        wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
-                }
-                else
-                {
                     dgv.RowCount += (CommonDefine.s_MaxInitLineCount - m_initDataCount);
                 }
 
@@ -1049,9 +1173,9 @@
             CreatorName,
             DetailString,
             OrdersDecisionPrice,
-            CompanyExpenses,
-            DepartmentExpenses,
-            SalesExpenses,
+            //CompanyExpenses,
+            //DepartmentExpenses,
+            //SalesExpenses,
             TotalPayment,
             GrossProfit,
             Allowance,
@@ -1061,7 +1185,13 @@
             PoersonDisplayOrder,
             DepartmentCode,
             DepartmentString,
-            ConstructionStatusflg
+            ConstructionStatusflg,
+            ExpSeqNo,
+            ExpCode,
+            ExpRaito,
+            ExpValue,
+            ExpNameString,
+            ExpDisplayOrder,
         }
         #endregion
 
@@ -1091,9 +1221,9 @@
                 strSQL.Append(", C.PERSONNAME");
                 strSQL.Append(", B.DETAILSTRING");
                 strSQL.Append(", A.ORDERSDECISIONPRICE");
-                strSQL.Append(", A.COMPANYEXPENSES");
-                strSQL.Append(", A.DEPARTMENTEXPENSES");
-                strSQL.Append(", A.SALESEXPENSES");
+                //strSQL.Append(", A.COMPANYEXPENSES");
+                //strSQL.Append(", A.DEPARTMENTEXPENSES");
+                //strSQL.Append(", A.SALESEXPENSES");
                 strSQL.Append(", A.TOTALPAYMENT");
                 strSQL.Append(", A.GROSSPROFIT");
                 strSQL.Append(", A.ALLOWANCE");
@@ -1104,22 +1234,42 @@
                 strSQL.Append(", C.DEPARTMENTCODE");
                 strSQL.Append(", ifnull(F.DetailString, '')");
                 strSQL.Append(", D.CONSTRUCTIONSTATUSFLG");
+
+                strSQL.Append(", G.SeqNo As ExpSeqNo");
+                strSQL.Append(", G.NameCode As ExpCode");
+                strSQL.Append(", G.ExpensesRaito As ExpRaito");
+                strSQL.Append(", SUM(G.ExpensesValue) AS ExpValue");
+                strSQL.Append(", H.NameString");
+                strSQL.Append(", H.DisplayOrder");
+
                 strSQL.Append(" FROM CONSTRUCTIONLEDGER A");
-                strSQL.Append(" LEFT JOIN CONSTRUCTIONBASEINFODETAIL F On F.ConstructionCode = A.ConstructionCode");
-                strSQL.AppendFormat(" And F.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstrDepartmentName);
-                strSQL.Append(", CONSTRUCTIONBASEINFODETAIL B");
-                strSQL.Append(", PERSONINCHARGEMASTER C");
-                strSQL.Append(", CONSTRUCTIONBASEINFO D,");
-                strSQL.Append(" DEPARTMENTMASTER E");
-                strSQL.Append(" WHERE A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE");
+
+                strSQL.Append(" LEFT JOIN constrledgerexpenses AS G");
+                strSQL.Append("       ON G.CONSTRUCTIONCODE = A.CONSTRUCTIONCODE");
+                strSQL.Append(" LEFT JOIN divisionmaster AS H");
+                strSQL.AppendFormat(" ON H.DivisionCode = {0}",(int)DivisionMaster.DivisionMasterCodeDef.ConstructionExpenses);
+                strSQL.Append("       And H.NameCode = G.NameCode");
+
+                strSQL.Append(" INNER JOIN CONSTRUCTIONBASEINFO AS D");
+                strSQL.Append("       ON A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE");
                 strSQL.AppendFormat(" AND D.TyingFlg != {0}", (int)ConstructionBaseInfo.TyingFlgDef.Tying);
-                strSQL.Append(" AND (A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
-                strSQL.AppendFormat(" AND B.DETAILNO = {0})", (int)ConstructionBaseInfoDetail.DataNoDef.ConstructionName);
-                strSQL.AppendFormat(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
-                strSQL.Append(" AND D.CONSTRUCTIONPERSONCODE = C.PERSONCODE");
-                strSQL.Append(" AND C.DEPARTMENTCODE = E.DEPARTMENTCODE");
+                strSQL.AppendFormat(" AND D.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
                 strSQL.AppendFormat(" AND D.CONSTRUCTIONSTATUSFLG != {0}", NotOrder);
-                strSQL.Append(" AND A.CREATORCODE = C.PERSONCODE");
+
+                strSQL.Append(" LEFT JOIN CONSTRUCTIONBASEINFODETAIL AS B");
+                strSQL.Append("       ON A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
+                strSQL.AppendFormat(" AND B.DETAILNO = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstructionName);
+
+                strSQL.Append(" LEFT JOIN CONSTRUCTIONBASEINFODETAIL AS F");
+                strSQL.Append("       On F.ConstructionCode = A.ConstructionCode");
+                strSQL.AppendFormat(" And F.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstrDepartmentName);
+
+                strSQL.Append(", PERSONINCHARGEMASTER AS C");
+                strSQL.Append(", DEPARTMENTMASTER AS E");
+
+                strSQL.Append(" WHERE");
+                strSQL.Append(" C.PERSONCODE = D.CONSTRUCTIONPERSONCODE");
+                strSQL.Append(" AND E.DEPARTMENTCODE = D.ConstrDepCode");
                 if (strSecurity.Length > 0) strSQL.Append(strSecurity.ToString());
                 if (DepartmentCode > 0)
                 {
@@ -1131,13 +1281,19 @@
                     strSQL.AppendFormat(" AND D.CONSTRUCTIONPERSONCODE = {0}", PersonCode);
                 }
 
-                strSQL.AppendFormat(" ORDER BY {0} ASC, {1} ASC, {2} ASC, {3} ASC, {4} ASC",
-                                                    ((int)DBGetData.ComplateFlg + 1),
-                                                    ((int)DBGetData.DepartmentDisplayOrder + 1),
-                                                    ((int)DBGetData.ConstructionStatusflg + 1),
-                                                    ((int)DBGetData.PoersonDisplayOrder + 1),
-                                                    ((int)DBGetData.ConstructionCode + 1));
+                strSQL.Append(" Group By");
+                strSQL.Append("  A.CONSTRUCTIONCODE");
+                strSQL.Append(", G.NameCode");
+                strSQL.Append(", H.NameString");
 
+                strSQL.Append(" ORDER BY");
+                strSQL.Append("  A.COMPLATEFLG ASC");
+                strSQL.Append(", E.DISPLAYORDER ASC");
+                strSQL.Append(", D.CONSTRUCTIONSTATUSFLG ASC");
+                strSQL.Append(", C.DISPLAYORDER ASC");
+                strSQL.Append(", A.CONSTRUCTIONCODE ASC");
+                strSQL.Append(", H.DisplayOrder ASC");
+
             }
             catch (Exception ex)
             {
@@ -1455,6 +1611,36 @@
         }
         #endregion
 
+        #region ‘Î�Û”N“x�‰ŠúƒZƒbƒg
+        /// <summary>
+        /// ‘Î�Û”N“x�‰ŠúƒZƒbƒg
+        /// </summary>
+        private void SetInitnumUDConstPro()
+        {
+            try
+            {
+                // ŒŸ�õ”N“xƒZƒbƒg
+                // ƒf�[ƒ^‚É‚ ‚éŽ–‹ÆŠú‚ÆŒ»�Ý‚ÌŽ–‹ÆƒZƒbƒg
+                int minval = 0;
+                int maxval = 0;
+                CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
+                numUDConstPro.Minimum = minval;
+                numUDConstPro.Maximum = maxval;
+                numUDConstPro.Value = CommonMotions.GetPeriodYear();
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+            finally
+            {
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
+            }
+        }
+        #endregion
+
         #region •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚ðƒZƒbƒg‚·‚é
         /// <summary>
         /// •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•¶Žš‚ðƒZƒbƒg‚·‚é
@@ -1466,13 +1652,8 @@
             m_initDataLoad = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -1493,6 +1674,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -1522,14 +1709,9 @@
             m_initDataLoad = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -1551,6 +1733,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -1579,9 +1767,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -1607,8 +1792,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
@@ -1701,31 +1889,6 @@
         }
         #endregion
 
-        #region ‘Î�Û”N“x�‰ŠúƒZƒbƒg
-        /// <summary>
-        /// ‘Î�Û”N“x�‰ŠúƒZƒbƒg
-        /// </summary>
-        private void SetInitnumUDConstPro()
-        {
-            try
-            {
-                // ŒŸ�õ”N“xƒZƒbƒg
-                // ƒf�[ƒ^‚É‚ ‚éŽ–‹ÆŠú‚ÆŒ»�Ý‚ÌŽ–‹ÆƒZƒbƒg
-                int minval = 0;
-                int maxval = 0;
-                CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
-                numUDConstPro.Minimum = minval;
-                numUDConstPro.Maximum = maxval;
-                numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
         #region �‰ŠúŽž‚Éƒ�ƒOƒCƒ“’S“–ŽÒ‚ðƒZƒbƒg‚·‚é
         /// <summary>
         /// �‰ŠúŽž‚Éƒ�ƒOƒCƒ“’S“–ŽÒ‚ðƒZƒbƒg‚·‚é
@@ -1794,5 +1957,141 @@
             }
         }
         #endregion
+
+        #region Œo”ï—¦ƒŠƒXƒgŽæ“¾�ˆ—�
+        /// <summary>
+        /// Œo”ï—¦ƒŠƒXƒg‚ðŽæ“¾‚·‚é
+        /// </summary>
+        /// <returns></returns>
+        private bool GetExpensesList(int Preiod, int DepCode)
+        {
+            try
+            {
+                // Œo”ï—¦–¼�ÌŽæ“¾
+                ArrayList arList = new ArrayList();
+                CommonMotions.GetExpensesList(Preiod, DepCode, ref arList);
+
+                // ƒf�[ƒ^‘S‚Ä‚ðŽæ“¾‚·‚é
+                m_DepExpList.Clear();
+                m_ExpList.Clear();
+                foreach (object[] objRec in arList)
+                {
+                    DepartmentExpenses DepExpRec = new DepartmentExpenses();
+                    DepExpRec.DepartmentCode = CommonMotions.cnvInt(objRec[(int)CommonMotions.ExpensesArray.DepCode]);
+                    DepExpRec.ExpensesPeriod = Preiod;
+                    DepExpRec.NameString = CommonMotions.cnvString(objRec[(int)CommonMotions.ExpensesArray.ExpensesName]);
+                    DepExpRec.ExpensesRaito = CommonMotions.cnvDouble(objRec[(int)CommonMotions.ExpensesArray.ExpensesRaito]);
+                    DepExpRec.NameCode = CommonMotions.cnvInt(objRec[(int)CommonMotions.ExpensesArray.NameCode]);
+
+                    m_DepExpList.Add(DepExpRec);
+
+                    // ƒf�[ƒ^‚ª‚ ‚ê‚Î’Ç‰Á‚µ‚È‚¢
+                    if (m_ExpList.Exists(x => x.Key == DepExpRec.NameCode)) continue;
+                    // ƒŠƒXƒg’Ç‰Á
+                    m_ExpList.Add(new KeyValuePair<int, string>(DepExpRec.NameCode, DepExpRec.NameString));
+                }
+
+                // Œo”ï�”‚ª‚R‚æ‚è�¬‚³‚¢�ê�‡‚Í3‚É‚·‚é
+                if (m_ExpList.Count < 3)
+                {
+                    int nLoop = 3 - m_ExpList.Count;
+                    for (int i = 0; i < nLoop; i++)
+                    {
+                        m_ExpList.Add(new KeyValuePair<int, string>(0, string.Empty));
+                    }
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region ƒOƒŠƒbƒhŒã”¼‚ÌˆÊ’u‚ð•Ô‚·
+        /// <summary>
+        /// ƒOƒŠƒbƒhŒã”¼‚ÌˆÊ’u‚ð•Ô‚·
+        /// </summary>
+        /// <param name="LHalf"></param>
+        /// <returns></returns>
+        private int CalcLatterPoint(int LHalf)
+        {
+            try
+            {
+                return (dgvMaster.ColumnCount + LHalf);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        /// <summary>
+        /// Žx•¥—“�ì�¬ƒGƒŠƒA
+        /// </summary>
+        private List<DataGridViewColumn> m_GridExpColList = new List<DataGridViewColumn>();
+        private List<DataGridViewCellStyle> m_GridExpCellStyleList = new List<DataGridViewCellStyle>();
+        #region ƒOƒŠƒbƒh‚ÉŒo”ï—“‚ð�ì�¬‚·‚é
+        /// <summary>
+        /// ƒOƒŠƒbƒh‚ÉŒo”ï—“‚ð�ì�¬‚·‚é
+        /// </summary>
+        private void CreateExpensesColumn()
+        {
+            try
+            {
+                DataGridView dgv = dgvMaster;
+
+                // ƒJƒ‰ƒ€�”ƒ`ƒFƒbƒN
+                int DefFirstColCnt = Enum.GetNames(typeof(DCFirstHalf)).Length;
+                int DefLatterColCnt = Enum.GetNames(typeof(DCLatterHalf)).Length;
+                int DefColCnt = DefFirstColCnt + DefLatterColCnt;
+                if (dgv.ColumnCount > DefColCnt)
+                {
+                    int StartPo = (CalcLatterPoint((int)DCLatterHalf.TotalPayment) - 1);
+                    int CompPo = (int)DCFirstHalf.OrdersDecisionPrice;
+                    for (int i = StartPo; i > CompPo; i--)
+                    {
+                        dgv.Columns.RemoveAt(i);
+                    }
+                }
+
+                int nAddColCnt = m_ExpList.Count;
+
+                m_GridExpColList.Clear();
+                m_GridExpCellStyleList.Clear();
+                for (int i = 0; i < nAddColCnt; i++)
+                {
+                    // ƒXƒ^ƒCƒ‹�ì�¬
+                    m_GridExpCellStyleList.Add(new DataGridViewCellStyle());
+                    m_GridExpCellStyleList[i].Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+                    m_GridExpCellStyleList[i].Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+
+                    // ƒZƒ‹�ì�¬
+                    m_GridExpColList.Add(new DataGridViewColumn());
+                    m_GridExpColList[i].CellTemplate = new DataGridViewTextBoxCell();
+                    dgv.Columns.Insert(((int)DCFirstHalf.OrdersDecisionPrice + (i + 1)), m_GridExpColList[i]);
+
+                    // ƒJƒ‰ƒ€‚Ì�Ý’è
+                    m_GridExpColList[i].CellTemplate = new DataGridViewTextBoxCell();
+                    m_GridExpColList[i].DefaultCellStyle = m_GridExpCellStyleList[i];
+                    m_GridExpColList[i].HeaderText = m_ExpList[i].Value;
+
+                    m_GridExpColList[i].Name = string.Format("ColExpenses{0}", (i + 1));
+                    m_GridExpColList[i].ReadOnly = true;
+                    m_GridExpColList[i].SortMode = DataGridViewColumnSortMode.NotSortable;
+                    m_GridExpColList[i].Width = 100;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/ProcessControl.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/ProcessControl.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionLedgerList/ProcessControl.cs	(revision 346)
@@ -24,7 +24,7 @@
 
 namespace ProcessManagement.Forms.DataEntry
 {
-    partial class FrmLedgerStatus
+    partial class FrmLedgerList
     {
         #region è‡ªãƒ—ãƒ­ã‚»ã‚¹ã�®ç•ªå�·
         /// <summary>
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSerarch/FrmConstrSerarchAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSerarch/FrmConstrSerarchAux.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSerarch/FrmConstrSerarchAux.cs	(revision 346)
@@ -85,6 +85,7 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = m_Period;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSplit/FrmConstructionSplitAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSplit/FrmConstructionSplitAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionSplit/FrmConstructionSplitAuxiliary.cs	(revision 346)
@@ -189,13 +189,8 @@
             m_bInitFlag = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚’æ¤œç´¢ã�™ã‚‹
                 StringBuilder strSQL = new StringBuilder();
@@ -216,6 +211,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -245,14 +246,9 @@
             m_bInitFlag = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -274,6 +270,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -302,9 +304,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã‚ˆã‚Šé�¸æŠžæ‹…å½“è€…ã‚’å�–å¾—ã�™ã‚‹
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -330,8 +329,11 @@
 
                 // éƒ¨ç½²ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã�¸éƒ¨ç½²ã‚³ãƒ¼ãƒ‰ã‚»ãƒƒãƒˆ
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // æ‹…å½“è€…ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹å¤‰æ›´
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CopyTargetList/FrmCopyTargetListAuxiliary.cs	(revision 346)
@@ -53,10 +53,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -655,13 +657,8 @@
             m_initDataLoad = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -682,6 +679,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -711,14 +714,9 @@
             m_initDataLoad = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -740,6 +738,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -768,9 +772,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -796,8 +797,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistAuxiliary.cs	(revision 346)
@@ -704,8 +704,10 @@
                 List<DivisionMaster> bvList = new List<DivisionMaster>();
                 // Valueã�‹ã‚‰Keyã‚’æ¤œç´¢
                 int DivisionCode = (int)DivisionMaster.DivisionMasterCodeDef.OrderDivision;
-                string strSQL = dvDB.CreatePrimarykeyString(DivisionCode) + " And DeleteFlg = 0 ORDER BY DISPLAYORDER";
-                if (!dvDB.SelectAction(strSQL, ref bvList)) return;
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(dvDB.CreatePrimarykeyString(DivisionCode));
+                strSQL.AppendFormat(" And DeleteFlg = {0} ORDER BY DISPLAYORDER", (int)CommonDefine.DataRowDeleteDef.Exists);
+                if (!dvDB.SelectAction(strSQL.ToString(), ref bvList)) return;
                 if (bvList.Count == 0) return;
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/CostomerRegist/FrmCostomerRegistListAuxiliary.cs	(revision 346)
@@ -618,13 +618,8 @@
             m_OpeRestrict = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -645,6 +640,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -674,14 +675,9 @@
             m_OpeRestrict = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -703,6 +699,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -731,9 +733,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -759,8 +758,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRList/FrmDRListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRList/FrmDRListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRList/FrmDRListAuxiliary.cs	(revision 346)
@@ -788,10 +788,11 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -858,13 +859,8 @@
             m_initDataLoad = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -885,6 +881,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -914,14 +916,9 @@
             m_initDataLoad = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -943,6 +940,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -972,9 +975,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -1000,8 +1000,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWorkAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWorkAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWorkAuxiliary.cs	(revision 346)
@@ -997,13 +997,8 @@
             m_bInitFlg = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 // å¯¾è±¡æœŸã‚’å�–å¾—ã�™ã‚‹
                 int nTargetCount = GetTargetCount();
 
@@ -1026,6 +1021,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -1055,14 +1056,9 @@
             m_bInitFlg = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 // å¯¾è±¡æœŸã‚’å�–å¾—ã�™ã‚‹
                 int nTargetCount = GetTargetCount();
                 int DepartmentCode = GetDepartmentCode();
@@ -1085,6 +1081,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -1114,9 +1116,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã‚ˆã‚Šé�¸æŠžæ‹…å½“è€…ã‚’å�–å¾—ã�™ã‚‹
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return false;
@@ -1129,17 +1128,16 @@
                 // æ‹…å½“è€…ã‚³ã‚¹ãƒˆå�–å¾—
                 SetPersonalCosts(PersonRec);
 
-                // éƒ¨ç½²ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã�¸éƒ¨ç½²ã‚³ãƒ¼ãƒ‰ã‚»ãƒƒãƒˆ
-                //if (PersonRec.DepartmentCode > 0 && DepartmentCode != PersonRec.DepartmentCode)
-                //{
                 bool bSave = m_bInitFlg;
                 m_bInitFlg = true;
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // æ‹…å½“è€…ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹å¤‰æ›´
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
                 m_bInitFlg = bSave;
-                //}
 
                 return true;
             }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWorkList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWorkList.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DRWork/FrmDRWorkList.cs	(revision 346)
@@ -325,8 +325,8 @@
                     strSQL.AppendFormat(" WHERE F.PERSONCODE = {0})", CommonMotions.LoginUserData.PersonCode);
                     strSQL.Append(" AND");
                 }
-                strSQL.AppendFormat(" A.EMPLOYEECLASSFLG = {0} AND A.DELETEFLG = 0", (int)PersonInChargeMaster.EmployeeClassFlgDef.Regular);
-                strSQL.AppendFormat(" AND A.EMPLOYEECLASSFLG = {0} AND A.DELETEFLG = 0", (int)PersonInChargeMaster.EmployeeClassFlgDef.Regular);
+                strSQL.AppendFormat(" A.EMPLOYEECLASSFLG = {0}", (int)PersonInChargeMaster.EmployeeClassFlgDef.Regular);
+                strSQL.AppendFormat(" AND A.DELETEFLG = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
                 strSQL.Append(" ORDER BY A.DISPLAYORDER ASC");
             }
             catch (System.Exception ex)
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.cs	(revision 346)
@@ -34,55 +34,6 @@
         #endregion
 
         #region ’è�”
-        #region •\Ž¦ƒJƒ‰ƒ€
-        /// <summary>
-        /// •\Ž¦ƒJƒ‰ƒ€
-        /// </summary>
-        private enum DispColumn
-        {
-            /// <summary>
-            /// 0:•\Ž¦’†ƒf�[ƒ^ƒR�[ƒh
-            /// </summary>
-            SelectionCode = 0,
-            /// <summary>
-            /// 1:‡‚
-            /// </summary>
-            No,
-            /// <summary>
-            /// 2:•\Ž¦’†ƒf�[ƒ^–¼
-            /// </summary>
-            SelectionName,
-            /// <summary>
-            /// 3:Žó’�‹àŠz
-            /// </summary>
-            OrdersDecisionPrice,
-            /// <summary>
-            /// 4:‰ïŽÐŒo”ï
-            /// </summary>
-            CompanyExpenses,
-            /// <summary>
-            /// 5:•”��Œo”ï
-            /// </summary>
-            DepartmentExpenses,
-            /// <summary>
-            /// 6:‰c‹ÆŒo”ï
-            /// </summary>
-            SalesExpenses,
-            /// <summary>
-            /// 7:‘�Žx•¥Šz
-            /// </summary>
-            TotalPayment,
-            /// <summary>
-            /// 8:‘e—˜
-            /// </summary>
-            GrossProfit,
-            /// <summary>
-            /// 9:�ƒ—˜‰v
-            /// </summary>
-            NetProfit,
-        }
-        #endregion
-
         #region •\Ž¦ƒJƒ‰ƒ€‘O”¼
         /// <summary>
         /// •\Ž¦ƒJƒ‰ƒ€‘O”¼
@@ -215,15 +166,8 @@
         private static int s_CurrentProcessNo = (int)ClsExcute.ProcessExecuteNo.DepartmentExpenssList;
         #endregion
 
-        #region  ƒfƒtƒHƒ‹ƒgŒo”ï�”
-        /// <summary>
-        /// ƒfƒtƒHƒ‹ƒgŒo”ï�”
-        /// </summary>
-        private int s_DefaultExpensesCount = 3;
         #endregion
 
-        #endregion
-
         #region •Ï�”
         /// <summary>
         /// �‰ŠúŽžƒtƒ‰ƒO
@@ -245,16 +189,16 @@
         private bool m_CloseingProcessOff = false;
 
         /// <summary>
-        /// •\Ž¦Œo”ï�”
+        /// •\Ž¦Œo”ï•ÛŽ�ƒGƒŠƒA
         /// </summary>
-        private int m_ExpensesCount = 0;
-        #endregion
+        List<KeyValuePair<int, string>> m_ExpList = new List<KeyValuePair<int, string>>();
+        List<DepartmentExpenses> m_DepExpList = new List<DepartmentExpenses>();
 
         #region ƒOƒŠƒbƒhƒJƒ‰ƒ€ƒTƒCƒY
         /// <summary>
         /// ƒOƒŠƒbƒhƒJƒ‰ƒ€ƒTƒCƒY
         /// </summary>
-        int[] m_CellSize = null;
+        List<int> m_CellSize = new List<int>();
         #endregion
 
         #region ƒtƒH�[ƒ€•�
@@ -270,6 +214,7 @@
         /// </summary>
         private int m_GridWidthSize = 0;
         #endregion
+        #endregion
 
         #region ƒvƒ�ƒpƒeƒB
         public int ExecuteFlg
@@ -345,7 +290,12 @@
         /// <param name="e"></param>
         private void FrmConstructionBaseInfoList_Load(object sender, EventArgs e)
         {
+
+            // ƒOƒŠƒbƒh�‰Šú�Ý’è
+            SetDisplayObject();
+
             SetInitnumUDConstPro();
+
             // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
             SetcmbPeriod();
             SetcmbDepartment();
@@ -353,9 +303,6 @@
             // �‰Šú•\Ž¦
             InitDataLoad();
 
-            // ƒOƒŠƒbƒh�‰Šú�Ý’è
-            SetDisplayObject();
-
             m_initDataLoad = false;
         }
         #endregion
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.designer.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.designer.cs	(revision 346)
@@ -48,16 +48,6 @@
             this.btnLedgerStatus = new System.Windows.Forms.Button();
             this.button1 = new System.Windows.Forms.Button();
             this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
-            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.groupBox1 = new ProcessManagement.Forms.CustomControls.GroupBoxEx();
             this.pnlPayroll = new System.Windows.Forms.Panel();
             this.label18 = new System.Windows.Forms.Label();
@@ -95,6 +85,16 @@
             this.numUDConstPro = new System.Windows.Forms.NumericUpDown();
             this.label4 = new System.Windows.Forms.Label();
             this.label7 = 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();
+            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit();
             this.groupBox1.SuspendLayout();
             this.pnlPayroll.SuspendLayout();
@@ -197,16 +197,16 @@
             this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
             this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1,
+            this.Column2,
             this.Column3,
-            this.Column1,
-            this.Column14,
+            this.Column4,
             this.Column5,
             this.Column6,
             this.Column7,
             this.Column8,
             this.Column9,
-            this.Column10,
-            this.Column12});
+            this.Column10});
             dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
             dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Window;
             dataGridViewCellStyle13.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
@@ -231,134 +231,6 @@
             this.dgvMaster.Leave += new System.EventHandler(this.dgvMaster_Leave);
             this.dgvMaster.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvMaster_MouseUp);
             // 
-            // Column3
-            // 
-            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle3;
-            this.Column3.Frozen = true;
-            this.Column3.HeaderText = "ã‚³ãƒ¼ãƒ‰";
-            this.Column3.Name = "Column3";
-            this.Column3.ReadOnly = true;
-            this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column3.Visible = false;
-            this.Column3.Width = 5;
-            // 
-            // Column1
-            // 
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle4;
-            this.Column1.Frozen = true;
-            this.Column1.HeaderText = "â„–";
-            this.Column1.Name = "Column1";
-            this.Column1.ReadOnly = true;
-            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column1.Width = 50;
-            // 
-            // Column14
-            // 
-            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column14.DefaultCellStyle = dataGridViewCellStyle5;
-            this.Column14.Frozen = true;
-            this.Column14.HeaderText = "éƒ¨ã€€ç½²";
-            this.Column14.Name = "Column14";
-            this.Column14.ReadOnly = true;
-            this.Column14.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column14.Width = 280;
-            // 
-            // Column5
-            // 
-            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle6.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle6;
-            this.Column5.Frozen = true;
-            this.Column5.HeaderText = "å�—æ³¨é‡‘é¡�";
-            this.Column5.Name = "Column5";
-            this.Column5.ReadOnly = true;
-            this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column5.Width = 140;
-            // 
-            // Column6
-            // 
-            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle7.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column6.DefaultCellStyle = dataGridViewCellStyle7;
-            this.Column6.Frozen = true;
-            this.Column6.HeaderText = "ä¼šç¤¾çµŒè²»";
-            this.Column6.Name = "Column6";
-            this.Column6.ReadOnly = true;
-            this.Column6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column6.Width = 140;
-            // 
-            // Column7
-            // 
-            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle8.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column7.DefaultCellStyle = dataGridViewCellStyle8;
-            this.Column7.Frozen = true;
-            this.Column7.HeaderText = "éƒ¨ç½²çµŒè²»";
-            this.Column7.Name = "Column7";
-            this.Column7.ReadOnly = true;
-            this.Column7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column7.Width = 140;
-            // 
-            // Column8
-            // 
-            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle9.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column8.DefaultCellStyle = dataGridViewCellStyle9;
-            this.Column8.Frozen = true;
-            this.Column8.HeaderText = "å–¶æ¥­çµŒè²»";
-            this.Column8.Name = "Column8";
-            this.Column8.ReadOnly = true;
-            this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column8.Width = 140;
-            // 
-            // Column9
-            // 
-            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle10.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column9.DefaultCellStyle = dataGridViewCellStyle10;
-            this.Column9.Frozen = true;
-            this.Column9.HeaderText = "ç·�æ”¯æ‰•é¡�";
-            this.Column9.Name = "Column9";
-            this.Column9.ReadOnly = true;
-            this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column9.Width = 140;
-            // 
-            // Column10
-            // 
-            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle11.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column10.DefaultCellStyle = dataGridViewCellStyle11;
-            this.Column10.Frozen = true;
-            this.Column10.HeaderText = "ç²—ã€€åˆ©";
-            this.Column10.Name = "Column10";
-            this.Column10.ReadOnly = true;
-            this.Column10.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column10.Width = 140;
-            // 
-            // Column12
-            // 
-            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle12.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column12.DefaultCellStyle = dataGridViewCellStyle12;
-            this.Column12.Frozen = true;
-            this.Column12.HeaderText = "ç´”åˆ©ç›Š";
-            this.Column12.Name = "Column12";
-            this.Column12.ReadOnly = true;
-            this.Column12.Resizable = System.Windows.Forms.DataGridViewTriState.False;
-            this.Column12.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column12.Width = 140;
-            // 
             // groupBox1
             // 
             this.groupBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
@@ -855,6 +727,128 @@
             this.label7.Text = "ç¬¬";
             this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
+            // Column1
+            // 
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle3;
+            this.Column1.Frozen = true;
+            this.Column1.HeaderText = "ã‚³ãƒ¼ãƒ‰";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column1.Visible = false;
+            this.Column1.Width = 5;
+            // 
+            // Column2
+            // 
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column2.DefaultCellStyle = dataGridViewCellStyle4;
+            this.Column2.Frozen = true;
+            this.Column2.HeaderText = "â„–";
+            this.Column2.Name = "Column2";
+            this.Column2.ReadOnly = true;
+            this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column2.Width = 50;
+            // 
+            // Column3
+            // 
+            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            this.Column3.DefaultCellStyle = dataGridViewCellStyle5;
+            this.Column3.Frozen = true;
+            this.Column3.HeaderText = "éƒ¨ã€€ç½²";
+            this.Column3.Name = "Column3";
+            this.Column3.ReadOnly = true;
+            this.Column3.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column3.Width = 280;
+            // 
+            // Column4
+            // 
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle6.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column4.DefaultCellStyle = dataGridViewCellStyle6;
+            this.Column4.Frozen = true;
+            this.Column4.HeaderText = "å�—æ³¨é‡‘é¡�";
+            this.Column4.Name = "Column4";
+            this.Column4.ReadOnly = true;
+            this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column4.Width = 140;
+            // 
+            // Column5
+            // 
+            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle7.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column5.DefaultCellStyle = dataGridViewCellStyle7;
+            this.Column5.HeaderText = "ä¼šç¤¾çµŒè²»";
+            this.Column5.Name = "Column5";
+            this.Column5.ReadOnly = true;
+            this.Column5.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column5.Width = 140;
+            // 
+            // Column6
+            // 
+            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle8.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column6.DefaultCellStyle = dataGridViewCellStyle8;
+            this.Column6.HeaderText = "éƒ¨ç½²çµŒè²»";
+            this.Column6.Name = "Column6";
+            this.Column6.ReadOnly = true;
+            this.Column6.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column6.Width = 140;
+            // 
+            // Column7
+            // 
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle9.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column7.DefaultCellStyle = dataGridViewCellStyle9;
+            this.Column7.HeaderText = "å–¶æ¥­çµŒè²»";
+            this.Column7.Name = "Column7";
+            this.Column7.ReadOnly = true;
+            this.Column7.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column7.Width = 140;
+            // 
+            // Column8
+            // 
+            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle10.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column8.DefaultCellStyle = dataGridViewCellStyle10;
+            this.Column8.HeaderText = "ç·�æ”¯æ‰•é¡�";
+            this.Column8.Name = "Column8";
+            this.Column8.ReadOnly = true;
+            this.Column8.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column8.Width = 140;
+            // 
+            // Column9
+            // 
+            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle11.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column9.DefaultCellStyle = dataGridViewCellStyle11;
+            this.Column9.HeaderText = "ç²—ã€€åˆ©";
+            this.Column9.Name = "Column9";
+            this.Column9.ReadOnly = true;
+            this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column9.Width = 140;
+            // 
+            // Column10
+            // 
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+            dataGridViewCellStyle12.Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.Column10.DefaultCellStyle = dataGridViewCellStyle12;
+            this.Column10.HeaderText = "ç´”åˆ©ç›Š";
+            this.Column10.Name = "Column10";
+            this.Column10.ReadOnly = true;
+            this.Column10.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.Column10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
+            this.Column10.Width = 140;
+            // 
             // FrmDepExpenssList
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -905,16 +899,6 @@
         private System.Windows.Forms.ProgressBar ProgressBar;
         private System.Windows.Forms.ComboBox cmbDepartment;
         private System.Windows.Forms.Label label5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
         private System.Windows.Forms.Panel pnlPayroll;
         private System.Windows.Forms.Label lblTotalCalcValue2;
         private System.Windows.Forms.Label label23;
@@ -947,5 +931,15 @@
         private System.Windows.Forms.Button btnLedgerStatus;
         private System.Windows.Forms.Label label18;
         private System.Windows.Forms.Button button1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
     }
 }
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.resx	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssList.resx	(revision 346)
@@ -117,15 +117,18 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="Column1.UserAddedColumn" 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">
+  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="Column14.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
@@ -144,7 +147,4 @@
   <metadata name="Column10.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="Column12.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/DepExpenssList/FrmDepExpenssListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepExpenssList/FrmDepExpenssListAuxiliary.cs	(revision 346)
@@ -61,11 +61,11 @@
         }
         #endregion
 
-        #region •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
+        #region ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
         /// <summary>
-        /// •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
+        /// ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
         /// </summary>
-        private void SetDisplayObject()
+        private void SetGridInfo()
         {
             try
             {
@@ -76,13 +76,34 @@
                 // ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
                 m_GridWidthSize = dgv.Width;
 
+                m_CellSize.Clear();
                 // ƒOƒŠƒbƒhƒJƒ‰ƒ€•�Žæ“¾
-                int ColCount = dgvMaster.ColumnCount; ;
-                m_CellSize = new int[ColCount];
                 foreach (DataGridViewColumn wrkCell in dgvMaster.Columns)
                 {
-                    m_CellSize[wrkCell.Index] = wrkCell.Width;
+                    m_CellSize.Add(wrkCell.Width);
                 }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}", ex.Message);
+            }
+        }
+        #endregion
+
+        #region •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
+        /// <summary>
+        /// •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
+        /// </summary>
+        private void SetDisplayObject()
+        {
+            try
+            {
+                // ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
+                SetGridInfo();
+
+                // ƒtƒH�[ƒ€ƒTƒCƒYŽæ“¾
+                m_FormWidthSize = this.Width;
+
                 // ‘ä’ �ó‹µ‰æ–Êƒ{ƒ^ƒ“•\Ž¦
                 int editflg = 0;
                 btnLedgerStatus.Visible = ClsSecurityPermission.GetExecutePermission((int)ClsExcute.ProcessExecuteNo.PriceOfBudget, ref editflg);
@@ -107,8 +128,8 @@
 
                 int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedgerList;
                 // ƒtƒH�[ƒ€‚ª‚ ‚ê‚Î�Å‘O–Ê‚Ö
-                FrmLedgerStatus frm = (FrmLedgerStatus)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
-                
+                FrmLedgerList frm = (FrmLedgerList)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+
                 if (frm != null)
                 {
                     // •\Ž¦’S“–ŽÒ‚ª“¯‚¶‚È‚ç‚Î�ˆ—�‚µ‚È‚¢
@@ -131,7 +152,7 @@
                 ClsExcute.ProcControlPara[NowPoint].BoolExecParameter.Add(false);
 
                 // �HŽ–�Ú�×‘ä’ ˆê——•\Ž¦
-                frm = new FrmLedgerStatus();
+                frm = new FrmLedgerList();
                 ClsExcute.SubFormHandleList[ProcessNo].ProcessNo = s_CurrentProcessNo;
                 ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle = (Form)frm;
 
@@ -187,7 +208,7 @@
             try
             {
                 int ProcessNo = (int)ClsExcute.ProcessExecuteNo.ConstructionLedgerList;
-                FrmLedgerStatus frm = (FrmLedgerStatus)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
+                FrmLedgerList frm = (FrmLedgerList)ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle;
 
                 // ƒnƒ“ƒhƒ‹ƒNƒŠƒA
                 if (ClsExcute.SubFormHandleList[ProcessNo].SubFormHandle != null)
@@ -254,7 +275,7 @@
         /// <summary>
         /// ƒOƒŠƒbƒh�sƒf�[ƒ^ƒZƒbƒg
         /// </summary>
-        private void GridDataSet(object[] objwrk, ref int ino, ref int[] TotalArea,
+        private void GridDataSet(int ExecCode, ArrayList arData, ref int ino, ref int[] TotalArea,
                                     ArrayList TargetList,
                                     DateTime dtDefaultStart, DateTime dtDefaultEnd,
                                     IOMPersonInCharge SalaryDB, IOConstructionLedger LedgerDB, IOCostDataOfPerson CostDB,
@@ -264,9 +285,27 @@
             {
                 DataGridView dgv = dgvMaster;
 
+                // ‘Î�Ûƒf�[ƒ^‚ðŽæ“¾‚·‚é
+                var SumData = arData.Cast<object[]>().Max(y => CommonMotions.cnvLong(y[(int)DBGetData.OrdersDecisionprice]));
+                ArrayList ArrayData = new ArrayList();
+                object[] objwrk = null;
+                long MaxOrder = -1;
+                foreach (object[] ObjRec in arData)
+                {
+                    int wrkCode = CommonMotions.cnvInt(ObjRec[(int)DBGetData.DepartmentCode]);
+                    if (wrkCode != ExecCode) continue;
+                    ArrayData.Add(ObjRec);
+                    // Žó’�‹àŠz‚ª‘å‚«‚¢‚à‚Ì‚ðŽc‚·
+                    long wrkOrder = CommonMotions.cnvLong(ObjRec[(int)DBGetData.OrdersDecisionprice]);
+                    if (MaxOrder < wrkOrder)
+                    {
+                        objwrk = ObjRec;
+                        MaxOrder = wrkOrder;
+                    }
+                }
+
                 int TotalColCnt = Enum.GetNames(typeof(DBGetData)).Length;
                 int[] wrkArray = new int[TotalColCnt];
-                Array.Clear(wrkArray, 0, wrkArray.Length);
 
                 // Žó’�‹àŠzˆÈ�~‚ðƒZƒbƒg‚·‚é
                 for (int i = (int)DBGetData.OrdersDecisionprice; i <= (int)DBGetData.NetProfit; i++)
@@ -287,7 +326,6 @@
                 }
                 // ------------------------------------------------------------------------------------------
 
-
                 // ------ Œo”ï�E�U•ª�lŒ�”ïŽæ“¾
                 int TargetYear = (int)numUDConstPro.Value;
                 int CostValue = 0;
@@ -368,29 +406,58 @@
                 if (PersonCode == 0 && wrkArray.Sum() == 0) { return; }
 
                 // ------------------------------------------------------------------------------------------
-                dgv.Rows.Add(objwrk[(int)DBGetData.DepartmentCode],
+                // �s�ì�¬‚ÆŒo”ï‚æ‚è‘O‚Ìƒf�[ƒ^‚ðƒZƒbƒg‚·‚é
+                int RowCnt = dgv.Rows.Add(objwrk[(int)DBGetData.DepartmentCode],
                                     ino++,
                                     CommonMotions.cnvString(objwrk[(int)DBGetData.DepartmentString]),
-                                    wrkArray[(int)DBGetData.OrdersDecisionprice].ToString("#,0"),
-                                    wrkArray[(int)DBGetData.CompanyExpenses].ToString("#,0"),
-                                    wrkArray[(int)DBGetData.DepartmentExpenses].ToString("#,0"),
-                                    wrkArray[(int)DBGetData.SalesExpenses].ToString("#,0"),
-                                    wrkArray[(int)DBGetData.TotalPayment].ToString("#,0"),
-                                    wrkArray[(int)DBGetData.GrossProfit].ToString("#,0"),
-                                    wrkArray[(int)DBGetData.NetProfit].ToString("#,0")
-                            );
+                                    wrkArray[(int)DBGetData.OrdersDecisionprice].ToString("#,0"));
 
-                TotalArea[(int)DispColumn.OrdersDecisionPrice] += wrkArray[(int)DBGetData.OrdersDecisionprice];
-                TotalArea[(int)DispColumn.CompanyExpenses] += wrkArray[(int)DBGetData.CompanyExpenses];
-                TotalArea[(int)DispColumn.DepartmentExpenses] += wrkArray[(int)DBGetData.DepartmentExpenses];
-                TotalArea[(int)DispColumn.SalesExpenses] += wrkArray[(int)DBGetData.SalesExpenses];
-                TotalArea[(int)DispColumn.TotalPayment] += wrkArray[(int)DBGetData.TotalPayment];
-                TotalArea[(int)DispColumn.GrossProfit] += wrkArray[(int)DBGetData.GrossProfit];
-                TotalArea[(int)DispColumn.NetProfit] += wrkArray[(int)DBGetData.NetProfit];
+                // ƒOƒŠƒbƒhŒã”¼‚ðƒZƒbƒg‚·‚é
+                dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.TotalPayment)].Value = wrkArray[(int)DBGetData.TotalPayment].ToString("#,0");
+                dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.GrossProfit)].Value = wrkArray[(int)DBGetData.GrossProfit].ToString("#,0");
+                dgv.Rows[RowCnt].Cells[CalcLatterPoint((int)DCLatterHalf.NetProfit)].Value = wrkArray[(int)DBGetData.NetProfit].ToString("#,0");
+
+                // Œo”ï0ƒZƒbƒg
+                for (int i = 0; i < m_ExpList.Count; i++)
+                {
+                    int nColCnt = (int)DCFirstHalf.OrdersDecisionPrice + (i + 1);
+                    // ƒwƒbƒ_�[•¶Žš‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î‹ó”’‚É‚·‚é
+                    if (dgv.Columns[nColCnt].HeaderText.Length < 1) continue;
+                    // ‚OƒZƒbƒg
+                    dgv.Rows[RowCnt].Cells[nColCnt].Value = 0;
+                }
+
+                // Œo”ï•”•ª‚ðƒZƒbƒg‚·‚é
+                foreach (object[] ObjRec in ArrayData)
+                {
+                    int ExpCode = CommonMotions.cnvInt(ObjRec[(int)DBGetData.ExpCode]);
+                    int ExpValue = CommonMotions.cnvInt(ObjRec[(int)DBGetData.ExpValue]);
+                    int nIndex = 0;
+                    foreach (KeyValuePair<int, string> CurVal in m_ExpList)
+                    {
+                        ++nIndex;
+                        if (CurVal.Key != ExpCode) continue;
+
+                        // ƒf�[ƒ^ƒZƒbƒg
+                        int nColCnt = (int)DCFirstHalf.OrdersDecisionPrice + nIndex;
+                        // ƒwƒbƒ_�[•¶Žš‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î‹ó”’‚É‚·‚é
+                        if (dgv.Columns[nColCnt].HeaderText.Length < 1) continue;
+                        // ƒf�[ƒ^ƒZƒbƒg
+                        dgv.Rows[RowCnt].Cells[nColCnt].Value = ExpValue.ToString("#,0");
+                        TotalArea[nColCnt] += ExpValue;
+                        break;
+                    }
+                }
+
+                // �‡ŒvƒGƒŠƒA‰ÁŽZ
+                TotalArea[(int)DCFirstHalf.OrdersDecisionPrice] += wrkArray[(int)DBGetData.OrdersDecisionprice];
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.TotalPayment)] += wrkArray[(int)DBGetData.TotalPayment];
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.GrossProfit)] += wrkArray[(int)DBGetData.GrossProfit];
+                TotalArea[CalcLatterPoint((int)DCLatterHalf.NetProfit)] += wrkArray[(int)DBGetData.NetProfit];
             }
             catch (Exception ex)
             {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}", ex.Message);
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
             }
         }
         #endregion
@@ -408,10 +475,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -458,6 +527,7 @@
             {
                 m_initDataLoad = true;
                 // ƒf�[ƒ^‚É‚ ‚éŽ–‹ÆŠú‚ÆŒ»�Ý‚ÌŽ–‹ÆŠúƒZƒbƒg
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
@@ -473,6 +543,7 @@
             finally
             {
                 m_initDataLoad = false;
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
         }
         #endregion
@@ -486,13 +557,8 @@
             IOMDepartment depDB = new IOMDepartment();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -513,6 +579,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -567,7 +639,7 @@
                     int ColumnCount = 0;
                     int TotalWidth = 0;
                     int NotVisibleSize = 0;
-                    for (int i = 0; i < m_CellSize.Length; i++)
+                    for (int i = 0; i < m_CellSize.Count; i++)
                     {
                         TotalWidth += m_CellSize[i];
                         if (dgv.Columns[i].Visible)
@@ -722,7 +794,7 @@
         {
             try
             {
-                foreach(Control CurCtrl in pnlPayroll.Controls)
+                foreach (Control CurCtrl in pnlPayroll.Controls)
                 {
                     if (CurCtrl.Name.IndexOf("lbl") < 0) continue;
                     CurCtrl.Text = string.Empty;
@@ -753,6 +825,16 @@
                 dgv.SuspendLayout();
                 dgv.Rows.Clear();
 
+                int TargetYear = (int)numUDConstPro.Value;
+                // Œo”ï—¦ƒŠƒXƒg‚ðŽæ“¾‚·‚é
+                GetExpensesList(TargetYear, CommonMotions.cnvInt(cmbDepartment.SelectedValue));
+
+                // ƒOƒŠƒbƒh‚ÉŒo”ï—“‚ð�ì�¬‚·‚é
+                CreateExpensesColumn();
+
+                // ƒOƒŠƒbƒh‚Ì�î•ñ‚ðŽæ“¾‚·‚é
+                SetGridInfo();
+
                 // ƒvƒ�ƒOƒŒƒXƒo�[‚Ì�‰Šú‰»
                 // ƒvƒ�ƒOƒŒƒXƒo�[•\Ž¦�§Œä
                 DisplayControlProgressBar(true);
@@ -759,7 +841,6 @@
                 // ƒvƒ�ƒOƒŒƒXƒo�[‚ÌMAX‚É“K“–‚É10‚ðƒZƒbƒg‚·‚é
                 prgber.Maximum = 10;
 
-                int TargetYear = (int)numUDConstPro.Value;
 
                 // ----- ’S“–ŽÒ–ˆ‚ÌŽw’èŠú‚ÌŠJŽn�E�I—¹”NŒŽ“ú‚ðŽæ“¾‚·‚é
                 ArrayList TargetList = new ArrayList();
@@ -797,7 +878,7 @@
                 int DepCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
                 if (DepCode == 0) DispType = (int)DispDataTypeCode.AllTotal;
                 else DispType = (int)DispDataTypeCode.Department;
-                
+
                 // SQL�ì�¬
                 StringBuilder strSQL = new StringBuilder();
                 switch (DispType)
@@ -805,7 +886,7 @@
                     case (int)DispDataTypeCode.AllTotal:
                         CreateInitSQLType1(ref strSQL);
                         break;
-                 
+
                     case (int)DispDataTypeCode.Department:
                         CreateInitSQLType2(ref strSQL);
                         break;
@@ -823,7 +904,7 @@
                 initDataCount = arData.Count;
 
                 // �‡ŒvƒGƒŠƒA�‰Šú‰»
-                int TotalColCnt = Enum.GetNames(typeof(DispColumn)).Length;
+                int TotalColCnt = dgv.ColumnCount;
                 int[] TotalArea = new int[TotalColCnt];
                 Array.Clear(TotalArea, 0, TotalArea.Length);
 
@@ -872,8 +953,11 @@
                 SetRowColor(dgv.Rows[AllTotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
 
                 // �”’l•\Ž¦
-                for (int i = (int)DispColumn.OrdersDecisionPrice; i <= dgv.ColumnCount; i++)
+                for (int i = (int)DCFirstHalf.OrdersDecisionPrice; i < dgv.ColumnCount; i++)
                 {
+                    // ƒwƒbƒ_�[ƒ^ƒCƒgƒ‹‚È‚µ‚Í•\Ž¦‚µ‚È‚¢
+                    if (dgv.Columns[i].HeaderText.Length < 1) continue;
+
                     dgv.Rows[AllTotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
                 }
             }
@@ -919,11 +1003,19 @@
             ProgressBar prgber = ProgressBar;
             try
             {
-               // ----- Ž{�H’†ƒf�[ƒ^•\Ž¦
-                foreach (object[] objwrk in arData)
+                // ‘Î�Û•”�iŽÒ�jƒR�[ƒhŽæ“¾
+                var Target = arData.Cast<object[]>().GroupBy(x => CommonMotions.cnvInt(x[(int)DBGetData.DepartmentCode])).ToArray();
+                List<int> vs = new List<int>();
+                foreach (var ObjCur in Target)
                 {
+                    vs.Add(CommonMotions.cnvInt(ObjCur.Key));
+                }
+
+                // ----- Ž{�H’†ƒf�[ƒ^•\Ž¦
+                foreach (int CurCode in vs)
+                {
                     // ƒOƒŠƒbƒh‚Öƒf�[ƒ^•\Ž¦
-                    GridDataSet(objwrk, ref ino, ref TotalArea,
+                    GridDataSet(CurCode, arData, ref ino, ref TotalArea,
                                 TargetList,
                                 dtDefaultStart, dtDefaultEnd,
                                 SalaryDB, LedgerDB, CostDB,
@@ -930,7 +1022,7 @@
                                 ArrarySalary, ArraryCost);
                 }
 
-                dgv.Columns[(int)DispColumn.SelectionName].HeaderText = GridColumnHeader[DispType];
+                dgv.Columns[(int)DCFirstHalf.SelectionName].HeaderText = GridColumnHeader[DispType];
 
                 // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
                 prgber.Value++;
@@ -942,7 +1034,7 @@
                 {
                     // �‡Œv�s•\Ž¦
                     int TotalRow = dgv.Rows.Add(1);
-                    
+
                     if (IncumbentsFlg)
                         dgv.Rows[TotalRow].Cells[(int)DCFirstHalf.SelectionName].Value = s_TotalTitleArray[(int)RowTitleNum.Incumbents];
                     else
@@ -952,8 +1044,11 @@
                     SetRowColor(dgv.Rows[TotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
 
                     // �”’l•\Ž¦
-                    for (int i = (int)DispColumn.OrdersDecisionPrice; i <= dgv.ColumnCount; i++)
+                    for (int i = (int)DCFirstHalf.OrdersDecisionPrice; i < dgv.ColumnCount; i++)
                     {
+                        // ƒwƒbƒ_�[ƒ^ƒCƒgƒ‹‚È‚µ‚Í•\Ž¦‚µ‚È‚¢
+                        if (dgv.Columns[i].HeaderText.Length < 1) continue;
+
                         dgv.Rows[TotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
                     }
                 }
@@ -981,12 +1076,19 @@
             DepartmentString,
             DisplayOrder,
             OrdersDecisionprice,
-            CompanyExpenses,
-            DepartmentExpenses,
-            SalesExpenses,
+            //CompanyExpenses,
+            //DepartmentExpenses,
+            //SalesExpenses,
             TotalPayment,
             GrossProfit,
             NetProfit,
+            EmployeeClassFlg,
+            ExpSeqNo,
+            ExpCode,
+            ExpRaito,
+            ExpValue,
+            ExpNameString,
+            ExpDisplayOrder,
         }
         #endregion
 
@@ -1007,13 +1109,22 @@
                 strSQL.Append(", E.DetailString");
                 strSQL.Append(", D.DISPLAYORDER AS DISPLAYORDER");
                 strSQL.Append(", SUM(A.ORDERSDECISIONPRICE)");
-                strSQL.Append(", SUM(A.COMPANYEXPENSES)");
-                strSQL.Append(", SUM(A.DEPARTMENTEXPENSES)");
-                strSQL.Append(", SUM(A.SALESEXPENSES)");
+                //strSQL.Append(", SUM(A.COMPANYEXPENSES)");
+                //strSQL.Append(", SUM(A.DEPARTMENTEXPENSES)");
+                //strSQL.Append(", SUM(A.SALESEXPENSES)");
                 strSQL.Append(", SUM(A.TOTALPAYMENT)");
                 strSQL.Append(", SUM(A.GROSSPROFIT)");
                 strSQL.Append(", SUM(A.NETPROFIT)");
 
+                strSQL.AppendFormat(", {0} As EMPLOYEECLASSFLG", (int)PersonInChargeMaster.EmployeeClassFlgDef.Regular);
+
+                strSQL.Append(", F.SeqNo As ExpSeqNo");
+                strSQL.Append(", F.NameCode As ExpCode");
+                strSQL.Append(", F.ExpensesRaito As ExpRaito");
+                strSQL.Append(", SUM(F.ExpensesValue) AS ExpValue");
+                strSQL.Append(", G.NameString");
+                strSQL.Append(", G.DisplayOrder");
+
                 strSQL.Append(" FROM PERSONINCHARGEMASTER AS C");
                 strSQL.Append(" LEFT JOIN CONSTRUCTIONBASEINFO AS B");
                 strSQL.Append("      ON B.CONSTRUCTIONPERSONCODE = C.PERSONCODE");
@@ -1022,14 +1133,26 @@
                 strSQL.AppendFormat(" AND B.TyingFlg != {0}", (int)ConstructionBaseInfo.TyingFlgDef.Tying);
                 strSQL.Append(" LEFT JOIN constructionbaseinfodetail AS E");
                 strSQL.Append("       On E.ConstructionCode = B.ConstructionCode");
-                strSQL.AppendFormat(" And E.DetailNo = {0}",(int)ConstructionBaseInfoDetail.DataNoDef.ConstrDepartmentName);
+                strSQL.AppendFormat(" And E.DetailNo = {0}", (int)ConstructionBaseInfoDetail.DataNoDef.ConstrDepartmentName);
                 strSQL.Append(" LEFT JOIN CONSTRUCTIONLEDGER AS A");
                 strSQL.Append("       ON A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
+
+                strSQL.Append(" LEFT JOIN constrledgerexpenses AS F");
+                strSQL.Append("        ON F.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
+                strSQL.Append(" LEFT JOIN divisionmaster AS G");
+                strSQL.AppendFormat("  ON G.DivisionCode = {0}", (int)DivisionMaster.DivisionMasterCodeDef.ConstructionExpenses);
+                strSQL.Append("        And G.NameCode = F.NameCode");
+
                 strSQL.Append(", DEPARTMENTMASTER D");
                 strSQL.Append(" WHERE D.DEPARTMENTCODE = B.ConstrDepCode");
 
-                strSQL.Append(" GROUP BY  B.ConstrDepCode, E.DetailString, D.DISPLAYORDER");
-                strSQL.Append(" ORDER BY DISPLAYORDER ASC");
+                strSQL.Append(" GROUP BY");
+                strSQL.Append(" B.ConstrDepCode");
+                strSQL.Append(", E.DetailString");
+                strSQL.Append(", D.DISPLAYORDER");
+                strSQL.Append(", F.NameCode");
+
+                strSQL.Append(" ORDER BY D.DISPLAYORDER ASC, G.DisplayOrder ASC");
             }
             catch (Exception ex)
             {
@@ -1079,13 +1202,19 @@
                 strSQL.Append(", C.PERSONNAME");
                 strSQL.Append(", C.DISPLAYORDER AS DISPLAYORDER");
                 strSQL.Append(", SUM(A.ORDERSDECISIONPRICE)");
-                strSQL.Append(", SUM(A.COMPANYEXPENSES)");
-                strSQL.Append(", SUM(A.DEPARTMENTEXPENSES)");
-                strSQL.Append(", SUM(A.SALESEXPENSES)");
+                //strSQL.Append(", SUM(A.COMPANYEXPENSES)");
+                //strSQL.Append(", SUM(A.DEPARTMENTEXPENSES)");
+                //strSQL.Append(", SUM(A.SALESEXPENSES)");
                 strSQL.Append(", SUM(A.TOTALPAYMENT)");
                 strSQL.Append(", SUM(A.GROSSPROFIT)");
                 strSQL.Append(", SUM(A.NETPROFIT)");
                 strSQL.Append(", C.EMPLOYEECLASSFLG AS EMPLOYEECLASSFLG");
+                strSQL.Append(", F.SeqNo As ExpSeqNo");
+                strSQL.Append(", F.NameCode As ExpCode");
+                strSQL.Append(", F.ExpensesRaito As ExpRaito");
+                strSQL.Append(", SUM(F.ExpensesValue) AS ExpValue");
+                strSQL.Append(", G.NameString");
+                strSQL.Append(", G.DisplayOrder");
 
                 strSQL.Append(" FROM PERSONINCHARGEMASTER AS C");
 
@@ -1109,6 +1238,12 @@
                 strSQL.Append(" LEFT JOIN CONSTRUCTIONLEDGER AS A");
                 strSQL.Append("      ON A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
 
+                strSQL.Append(" LEFT JOIN constrledgerexpenses AS F");
+                strSQL.Append("        ON F.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE");
+                strSQL.Append(" LEFT JOIN divisionmaster AS G");
+                strSQL.AppendFormat("  ON G.DivisionCode = {0}", (int)DivisionMaster.DivisionMasterCodeDef.ConstructionExpenses);
+                strSQL.Append("        And G.NameCode = F.NameCode");
+
                 strSQL.Append(" WHERE");
                 strSQL.AppendFormat(" ((DATE(C.STARTDATE) <= DATE('{0}'))", dtDefaultEnd.ToShortDateString());
                 strSQL.AppendFormat(" AND(DATE('{0}') <= DATE(C.ENDDATE)", dtDefaultStart.ToShortDateString());
@@ -1129,8 +1264,8 @@
                     strSQL.AppendFormat(" AND DATE(C.EndDate) <= DATE('{0}'))", dtDefaultEnd.ToShortDateString());
                 }
 
-                strSQL.Append(" GROUP BY C.DISPLAYORDER, C.PERSONCODE, C.PERSONNAME, C.EMPLOYEECLASSFLG");
-                strSQL.Append(" ORDER BY EMPLOYEECLASSFLG ASC, DISPLAYORDER ASC");
+                strSQL.Append(" GROUP BY C.DISPLAYORDER, C.PERSONCODE, C.PERSONNAME, C.EMPLOYEECLASSFLG, F.NameCode");
+                strSQL.Append(" ORDER BY C.EMPLOYEECLASSFLG ASC, C.DISPLAYORDER ASC, G.DisplayOrder ASC");
 
             }
             catch (Exception ex)
@@ -1151,7 +1286,7 @@
             {
                 // ----- ‚r‚p‚k�ì�¬
                 CreateType2SQL(false, ref strSQL);
-                
+
                 if (!LedgerDB.ExecuteReader(strSQL.ToString(), ref arData)) return;
             }
             catch (Exception ex)
@@ -1362,6 +1497,143 @@
         }
         #endregion
 
+        #region Œo”ï—¦ƒŠƒXƒgŽæ“¾�ˆ—�
+        /// <summary>
+        /// Œo”ï—¦ƒŠƒXƒg‚ðŽæ“¾‚·‚é
+        /// </summary>
+        /// <returns></returns>
+        private bool GetExpensesList(int Preiod, int DepCode)
+        {
+            try
+            {
+                // Œo”ï—¦–¼�ÌŽæ“¾
+                ArrayList arList = new ArrayList();
+                CommonMotions.GetExpensesList(Preiod, DepCode, ref arList);
+
+                // ƒf�[ƒ^‘S‚Ä‚ðŽæ“¾‚·‚é
+                m_DepExpList.Clear();
+                m_ExpList.Clear();
+                foreach (object[] objRec in arList)
+                {
+                    DepartmentExpenses DepExpRec = new DepartmentExpenses();
+                    DepExpRec.DepartmentCode = CommonMotions.cnvInt(objRec[(int)CommonMotions.ExpensesArray.DepCode]);
+                    DepExpRec.ExpensesPeriod = Preiod;
+                    DepExpRec.NameString = CommonMotions.cnvString(objRec[(int)CommonMotions.ExpensesArray.ExpensesName]);
+                    DepExpRec.ExpensesRaito = CommonMotions.cnvDouble(objRec[(int)CommonMotions.ExpensesArray.ExpensesRaito]);
+                    DepExpRec.NameCode = CommonMotions.cnvInt(objRec[(int)CommonMotions.ExpensesArray.NameCode]);
+
+                    m_DepExpList.Add(DepExpRec);
+
+                    // ƒf�[ƒ^‚ª‚ ‚ê‚Î’Ç‰Á‚µ‚È‚¢
+                    if (m_ExpList.Exists(x => x.Key == DepExpRec.NameCode)) continue;
+                    // ƒŠƒXƒg’Ç‰Á
+                    m_ExpList.Add(new KeyValuePair<int, string>(DepExpRec.NameCode, DepExpRec.NameString));
+                }
+
+                // Œo”ï�”‚ª‚R‚æ‚è�¬‚³‚¢�ê�‡‚Í3‚É‚·‚é
+                if (m_ExpList.Count < 3)
+                {
+                    int nLoop = 3 - m_ExpList.Count;
+                    for (int i = 0; i < nLoop; i++)
+                    {
+                        m_ExpList.Add(new KeyValuePair<int, string>(0, string.Empty));
+                    }
+                }
+
+                return true;
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return false;
+            }
+        }
+        #endregion
+
+        #region ƒOƒŠƒbƒhŒã”¼‚ÌˆÊ’u‚ð•Ô‚·
+        /// <summary>
+        /// ƒOƒŠƒbƒhŒã”¼‚ÌˆÊ’u‚ð•Ô‚·
+        /// </summary>
+        /// <param name="LHalf"></param>
+        /// <returns></returns>
+        private int CalcLatterPoint(int LHalf)
+        {
+            try
+            {
+                return (dgvMaster.ColumnCount + LHalf);
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+                return 0;
+            }
+        }
+        #endregion
+
+        /// <summary>
+        /// Žx•¥—“�ì�¬ƒGƒŠƒA
+        /// </summary>
+        private List<DataGridViewColumn> m_GridExpColList = new List<DataGridViewColumn>();
+        private List<DataGridViewCellStyle> m_GridExpCellStyleList = new List<DataGridViewCellStyle>();
+        #region ƒOƒŠƒbƒh‚ÉŒo”ï—“‚ð�ì�¬‚·‚é
+        /// <summary>
+        /// ƒOƒŠƒbƒh‚ÉŒo”ï—“‚ð�ì�¬‚·‚é
+        /// </summary>
+        private void CreateExpensesColumn()
+        {
+            try
+            {
+                DataGridView dgv = dgvMaster;
+
+                // ƒJƒ‰ƒ€�”ƒ`ƒFƒbƒN
+                int DefFirstColCnt = Enum.GetNames(typeof(DCFirstHalf)).Length;
+                int DefLatterColCnt = Enum.GetNames(typeof(DCLatterHalf)).Length;
+                int DefColCnt = DefFirstColCnt + DefLatterColCnt;
+                if (dgv.ColumnCount > DefColCnt)
+                {
+                    int StartPo = (CalcLatterPoint((int)DCLatterHalf.TotalPayment) - 1);
+                    int CompPo = (int)DCFirstHalf.OrdersDecisionPrice;
+                    for (int i = StartPo; i > CompPo; i--)
+                    {
+                        dgv.Columns.RemoveAt(i);
+                    }
+                }
+
+                int nAddColCnt = m_ExpList.Count;
+
+                m_GridExpColList.Clear();
+                m_GridExpCellStyleList.Clear();
+                for (int i = 0; i < nAddColCnt; i++)
+                {
+                    // ƒXƒ^ƒCƒ‹�ì�¬
+                    m_GridExpCellStyleList.Add(new DataGridViewCellStyle());
+                    m_GridExpCellStyleList[i].Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
+                    m_GridExpCellStyleList[i].Font = new System.Drawing.Font("Century", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+
+                    // ƒZƒ‹�ì�¬
+                    m_GridExpColList.Add(new DataGridViewColumn());
+                    m_GridExpColList[i].CellTemplate = new DataGridViewTextBoxCell();
+                    dgv.Columns.Insert(((int)DCFirstHalf.OrdersDecisionPrice + (i + 1)), m_GridExpColList[i]);
+
+                    // ƒJƒ‰ƒ€‚Ì�Ý’è
+                    m_GridExpColList[i].CellTemplate = new DataGridViewTextBoxCell();
+                    m_GridExpColList[i].DefaultCellStyle = m_GridExpCellStyleList[i];
+                    m_GridExpColList[i].HeaderText = m_ExpList[i].Value;
+
+                    m_GridExpColList[i].Name = string.Format("ColExpenses{0}", (i + 1));
+                    m_GridExpColList[i].ReadOnly = true;
+                    m_GridExpColList[i].Resizable = DataGridViewTriState.False;
+                    m_GridExpColList[i].SortMode = DataGridViewColumnSortMode.NotSortable;
+                    m_GridExpColList[i].Width = 140;
+                }
+            }
+            catch (Exception ex)
+            {
+                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         // ----------------- ƒfƒoƒbƒOƒ�ƒWƒbƒN
         #region �ÄŒvŽZ�ˆ—�
         /// <summary>
@@ -1432,7 +1704,7 @@
                 List<PersonInChargeMaster> PersonList = new List<PersonInChargeMaster>();
                 PersonDB.SelectAction("", ref PersonList);
 
-                LdDB.connect();LdDB.beginTran();
+                LdDB.connect(); LdDB.beginTran();
                 StringBuilder strSQL = new StringBuilder();
                 List<ConstructionLedgerDetail> DetailList = new List<ConstructionLedgerDetail>();
                 foreach (PersonInChargeMaster CurRec in PersonList)
@@ -1448,9 +1720,9 @@
                     strSQL.Append("update constructionledgerdetail");
                     strSQL.AppendFormat(" set ComponentCode = {0}", CurRec.DepartmentCode);
                     strSQL.Append(" where CompanyType = 2 AND GroupCount IN(11, 10, 9)");
-                    strSQL.AppendFormat(" And CompanyCode = {0}",CurRec.PersonCode);
+                    strSQL.AppendFormat(" And CompanyCode = {0}", CurRec.PersonCode);
 
-                    if(!LdDB.ExecuteNonQuery(strSQL.ToString(),false))
+                    if (!LdDB.ExecuteNonQuery(strSQL.ToString(), false))
                     {
                         LdDB.rollback();
                         MessageBox.Show("ˆêŠ‡�X�VƒGƒ‰�[");
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostListAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostListAux.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/DepartmentCost/FrmDepartmentCostListAux.cs	(revision 346)
@@ -594,13 +594,8 @@
             IOMDepartment depDB = new IOMDepartment();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -621,6 +616,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -724,7 +725,7 @@
                     strSQL.Append(" WHERE");
 
                     // �í�œ‚³‚ê‚Ä‚¢‚È‚¢‚à‚Ì
-                    strSQL.Append(" A.DELETEFLG = 0");
+                    strSQL.AppendFormat(" A.DELETEFLG = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
                     DateTime dtDefaultEnd = CommonMotions.GetOpeningEndDate(nTargetCount, false);
 
                     strSQL.AppendFormat(" And DATE(A.StartDate) <= DATE('{0}')", dtDefaultEnd.ToShortDateString());
@@ -800,10 +801,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/ConstrMATLList/FrmConstrMATLListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/ConstrMATLList/FrmConstrMATLListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Material/ConstrMATLList/FrmConstrMATLListAuxiliary.cs	(revision 346)
@@ -643,10 +643,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -1037,13 +1039,8 @@
             m_initDataLoad = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -1064,6 +1061,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -1094,14 +1097,9 @@
             m_initDataLoad = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -1123,6 +1121,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -1152,9 +1156,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -1180,8 +1181,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PersonApprovalList/FrmPersonAppListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PersonApprovalList/FrmPersonAppListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PersonApprovalList/FrmPersonAppListAuxiliary.cs	(revision 346)
@@ -159,12 +159,12 @@
             {
                 foreach (DataGridViewColumn wrkCol in dgvApproval.Columns) wrkCol.SortMode = DataGridViewColumnSortMode.NotSortable;
                 dgvApproval.Rows.Clear();
-                string strSQL = "";
+                StringBuilder strSQL = new StringBuilder(); ;
                 // SQLä½œæˆ�
                 CreateInitSQL(ref strSQL);
                 ArrayList arData = new ArrayList();
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿ã‚ˆã‚Šå�–å¾—
-                if (!PersonDB.ExecuteReader(strSQL, ref arData)) return;
+                if (!PersonDB.ExecuteReader(strSQL.ToString(), ref arData)) return;
 
                 // ã‚°ãƒªãƒƒãƒ‰ã�¸ã‚»ãƒƒãƒˆã�¨ã�™ã‚‹
                 SetToGridData(arData);
@@ -192,7 +192,7 @@
         /// <summary>
         /// è¡¨ç¤ºç”¨ãƒ‡ãƒ¼ã‚¿å�–å¾—SQLä½œæˆ�
         /// </summary>
-        private void CreateInitSQL(ref string strSQL)
+        private void CreateInitSQL(ref StringBuilder strSQL)
         {
             try
             {
@@ -199,39 +199,11 @@
                 switch (m_ExecuteFlg)
                 {
                     case (int)ClsExcute.ProcessExecuteNo.DRWork:
-                        // å‡ºå‹¤æ—¥å ±
+                        // æ‹…å½“è€…æ‰¿èª�ä¸€è¦§
                         CreateSQL01(ref strSQL);
                         break;
-                    //case (int)ClsExcute.ProcessExecuteNo.EstimateInput:
-                    //    // ç©�ç®—è¦‹ç©�æ›¸å…¥åŠ›
-                    //    CreateSQL02(ref strSQL);
-                    //    break;
-                    //case (int)ClsExcute.ProcessExecuteNo.EstimatePrint:
-                    //    // åŸºæœ¬éƒ¨ã‚»ãƒƒãƒˆ
-                    //    // ç©�ç®—è¦‹ç©�æ›¸å�°åˆ·
-                    //    CreateSQL03(ref strSQL);
-                    //    break;
-                    //case (int)ClsExcute.ProcessExecuteNo.EstimateBudget:
-                    //    // åŸºæœ¬éƒ¨ã‚»ãƒƒãƒˆ
-                    //    // ç©�ç®—äºˆç®—æ›¸å…¥åŠ›
-                    //    CreateSQL04(ref strSQL);
-                    //    break;
-                    //case (int)ClsExcute.ProcessExecuteNo.ConstructionBudget:
-                    //    // åŸºæœ¬éƒ¨ã‚»ãƒƒãƒˆ
-                    //    // å·¥äº‹äºˆç®—æ›¸å…¥åŠ›
-                    //    CreateSQL05(ref strSQL);
-                    //    break;
-                    //case (int)ClsExcute.ProcessExecuteNo.PurchaseOrderEntry:
-                    //    // åŸºæœ¬éƒ¨ã‚»ãƒƒãƒˆ
-                    //    // æ³¨æ–‡æ›¸å…¥åŠ›
-                    //    CreateSQL06(ref strSQL);
-                    //    break;
-                    //case (int)ClsExcute.ProcessExecuteNo.PurchaseOrderPrint:
-                    //    // æ³¨æ–‡æ›¸å�°åˆ·
-                    //    CreateSQL07(ref strSQL);
-                        //break;
                     default:
-                        strSQL += " Where A.ConstructionCode = B.ConstructionCode";
+                        strSQL.Append(" Where A.ConstructionCode = B.ConstructionCode");
                         break;
                 }
             }
@@ -242,20 +214,21 @@
         }
         #endregion
 
-        #region å‡ºå‹¤æ—¥å ±
+        #region æ‹…å½“è€…æ‰¿èª�ä¸€è¦§
         /// <summary>
-        /// å‡ºå‹¤æ—¥å ±
+        /// æ‹…å½“è€…æ‰¿èª�ä¸€è¦§
         /// </summary>
         /// <param name="strSQL"></param>
-        private void CreateSQL01(ref string strSQL)
+        private void CreateSQL01(ref StringBuilder strSQL)
         {
             try
             {
-                strSQL = "SELECT A.PERSONCODE, A.PERSONNAME, B.ATTENDANCEDATE, C.ATTENDANCEDATE FROM PERSONINCHARGEMASTER A";
-                strSQL += " LEFT JOIN ATTENDANCEDAILYDATA B ON B.PERSONCODE = A.PERSONCODE";
-                strSQL += " LEFT JOIN TRANCEPORTDAILYDATA C ON C.PERSONCODE = A.PERSONCODE";
-                strSQL += string.Format(" WHERE A.EMPLOYEECLASSFLG = {0} AND A.DELETEFLG = 0", (int)PersonInChargeMaster.EmployeeClassFlgDef.Regular);
-                strSQL += " ORDER BY A.DISPLAYORDER";
+                strSQL.Append("SELECT A.PERSONCODE, A.PERSONNAME, B.ATTENDANCEDATE, C.ATTENDANCEDATE FROM PERSONINCHARGEMASTER A");
+                strSQL.Append(" LEFT JOIN ATTENDANCEDAILYDATA B ON B.PERSONCODE = A.PERSONCODE");
+                strSQL.Append(" LEFT JOIN TRANCEPORTDAILYDATA C ON C.PERSONCODE = A.PERSONCODE");
+                strSQL.AppendFormat(" WHERE A.EMPLOYEECLASSFLG = {0}", (int)PersonInChargeMaster.EmployeeClassFlgDef.Regular);
+                strSQL.AppendFormat(" AND A.DELETEFLG = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
+                strSQL.Append(" ORDER BY A.DISPLAYORDER");
             }
             catch (Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudget.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudget.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudget.cs	(revision 346)
@@ -382,6 +382,14 @@
             SetcmbDepartment();
             SetcmbPersons();
 
+            // çµŒè²»çŽ‡ãƒªã‚¹ãƒˆã‚’å�–å¾—ã�™ã‚‹
+            List<KeyValuePair<int, string>> ExpNameList = new List<KeyValuePair<int, string>>();
+            List<DepartmentExpenses> DepExpList = new List<DepartmentExpenses>();
+            GetExpensesList((int)numUDConstPro.Value, ref ExpNameList, ref DepExpList);
+
+            // ã‚°ãƒªãƒƒãƒ‰ã�«çµŒè²»æ¬„ã‚’ä½œæˆ�ã�™ã‚‹
+            CreateExpensesColumn(ExpNameList);
+
             // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
             DispData();
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudgetAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudgetAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PriceOfBudget/FrmPriceOfBudgetAuxiliary.cs	(revision 346)
@@ -51,8 +51,8 @@
                 // Œo”ï—¦ƒŠƒXƒg‚ðŽæ“¾‚·‚é
                 GetExpensesList((int)numUDConstPro.Value, ref ExpNameList, ref DepExpList);
 
-                // ƒOƒŠƒbƒh‚ÉŒo”ï—“‚ð�ì�¬‚·‚é
-                CreateExpensesColumn(ExpNameList);
+                //// ƒOƒŠƒbƒh‚ÉŒo”ï—“‚ð�ì�¬‚·‚é
+                //CreateExpensesColumn(ExpNameList);
 
                 // �‡ŒvƒGƒŠƒA
                 int TotalColCnt = ExpNameList.Count + 1;
@@ -650,7 +650,7 @@
                 int DspCtrlCnt = Enum.GetNames(typeof(GridColumn)).Length;
                 if (DspCtrlCnt < dgv.ColumnCount)
                 {
-                    for (int i = (dgv.ColumnCount-1); i >= DspCtrlCnt; i--)
+                    for (int i = (dgv.ColumnCount - 1); i >= DspCtrlCnt; i--)
                     {
                         dgv.Columns.RemoveAt(i);
                     }
@@ -1015,13 +1015,8 @@
             m_initDataLoad = true;
             try
             {
-                this.cmbDepartment.SelectedIndexChanged -= new System.EventHandler(this.cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -1043,6 +1038,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                this.cmbDepartment.SelectedIndexChanged -= new System.EventHandler(this.cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -1072,14 +1073,9 @@
             m_initDataLoad = true;
             try
             {
-                this.cmbConstructionPerson.SelectedIndexChanged -= new System.EventHandler(this.cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -1101,10 +1097,16 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                this.cmbConstructionPerson.SelectedIndexChanged -= new System.EventHandler(this.cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
-                cmbConstructionPerson.SelectedValue= nBeforeCode;
+                cmbConstructionPerson.SelectedValue = nBeforeCode;
             }
             catch (Exception ex)
             {
@@ -1173,9 +1175,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -1201,8 +1200,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
@@ -1292,7 +1294,6 @@
         {
             try
             {
-                numUDConstPro.ValueChanged -= new EventHandler(numUDConstPro_ValueChanged);
 
                 // ŒŸ�õ”N“xƒZƒbƒg
                 // ƒf�[ƒ^‚É‚ ‚éŽ–‹ÆŠú‚ÆŒ»�Ý‚ÌŽ–‹ÆƒZƒbƒg
@@ -1299,6 +1300,8 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                numUDConstPro.ValueChanged -= new EventHandler(numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Proceedings/FrmProceedingsAuxiliary.cs	(revision 346)
@@ -969,13 +969,8 @@
             m_bInitFlg = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(this.cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = CommonMotions.ConvDate2YearOrPeriod(dtMeetingDate.Value);
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚’æ¤œç´¢ã�™ã‚‹
                 StringBuilder strSQL = new StringBuilder();
@@ -996,6 +991,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(this.cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -1050,15 +1051,9 @@
             m_bInitFlg = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(this.cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
-
                 int nTargetCount = CommonMotions.ConvDate2YearOrPeriod(dtMeetingDate.Value);
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -1080,6 +1075,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(this.cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -1108,9 +1109,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã‚ˆã‚Šé�¸æŠžæ‹…å½“è€…ã‚’å�–å¾—ã�™ã‚‹
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -1136,8 +1134,11 @@
 
                 // éƒ¨ç½²ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã�¸éƒ¨ç½²ã‚³ãƒ¼ãƒ‰ã‚»ãƒƒãƒˆ
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // æ‹…å½“è€…ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹å¤‰æ›´
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderEntry/FrmPurchaseOrderEntryAuxiliary.cs	(revision 346)
@@ -3048,7 +3048,7 @@
             {
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿ã‚’æ¤œç´¢ã�™ã‚‹
                 StringBuilder strSQL = new StringBuilder();
-                strSQL.Append(" Where DeleteFlg = 0 Order By DisplayOrder ASC");
+                strSQL.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
 
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿èª­è¾¼
                 if (!picDB.SelectAction(strSQL.ToString(), ref workList)) return false;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/PurchaseOrderStatus/FrmPurchaseOrderStatusAuxiliary.cs	(revision 346)
@@ -945,10 +945,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -1010,13 +1012,8 @@
             m_initDataLoad = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -1037,6 +1034,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -1066,14 +1069,9 @@
             m_initDataLoad = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -1095,6 +1093,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -1123,9 +1127,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -1151,8 +1152,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqbillingStatus/FrmReqBillingStatusAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqbillingStatus/FrmReqBillingStatusAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ReqbillingStatus/FrmReqBillingStatusAuxiliary.cs	(revision 346)
@@ -903,10 +903,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -968,13 +970,8 @@
             m_initDataLoad = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -995,6 +992,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -1024,14 +1027,9 @@
             m_initDataLoad = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -1053,6 +1051,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -1082,9 +1086,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -1110,8 +1111,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInputList/FrmReqInputListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInputList/FrmReqInputListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestInputList/FrmReqInputListAuxiliary.cs	(revision 346)
@@ -462,10 +462,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -861,14 +863,8 @@
             m_initDataLoad = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -889,6 +885,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -918,14 +920,9 @@
             m_initDataLoad = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -947,6 +944,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -975,9 +978,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -1003,8 +1003,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrintList/FrmReqPrintListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrintList/FrmReqPrintListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestPrintList/FrmReqPrintListAuxiliary.cs	(revision 346)
@@ -73,10 +73,12 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDConstPro.ValueChanged -= new System.EventHandler(this.numUDConstPro_ValueChanged);
                 numUDConstPro.Minimum = minval;
                 numUDConstPro.Maximum = maxval;
                 numUDConstPro.Value = CommonMotions.GetPeriodYear();
-
+                this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
             }
             catch (Exception ex)
             {
@@ -96,14 +98,8 @@
         private void SetcmbReqMonth()
         {
             IORequestHead headDB = new IORequestHead();
-            cmbReqMonth.SelectedIndexChanged -= new EventHandler(cmbReqMonth_SelectedIndexChanged);
             try
             {
-
-                cmbReqMonth.DataSource = null;
-                cmbReqMonth.Items.Clear();
-                cmbReqMonth.Text = "";
-
                 StringBuilder strSQL = new StringBuilder();
                 // �¿‹�ƒwƒbƒ_�[‚ðŒŸ�õ‚·‚é
                 strSQL.Append("Select");
@@ -133,7 +129,12 @@
 
                     DataList.Add(keyval);
                 }
+                cmbReqMonth.SelectedIndexChanged -= new EventHandler(cmbReqMonth_SelectedIndexChanged);
 
+                cmbReqMonth.DataSource = null;
+                cmbReqMonth.Items.Clear();
+                cmbReqMonth.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbReqMonth, DataList);
 
@@ -158,14 +159,8 @@
         private void SetcmbOrderer()
         {
             IORequestHead headDB = new IORequestHead();
-            cmbOrderer.SelectedIndexChanged -= new EventHandler(cmbOrderer_SelectedIndexChanged);
             try
             {
-
-                cmbOrderer.DataSource = null;
-                cmbOrderer.Items.Clear();
-                cmbOrderer.Text = "";
-
                 StringBuilder strSQL = new StringBuilder();
                 // �¿‹�ƒwƒbƒ_�[‚ðŒŸ�õ‚·‚é
                 strSQL.Append("Select");
@@ -187,7 +182,7 @@
 
                 strSQL.Append(" Group by ReqHead.ORDERERSDIVISION");
                 strSQL.Append(" Order by DivM.DisplayOrder");
-                
+
                 // �¿‹�ƒwƒbƒ_�[“Ç�ž
                 ArrayList arList = new ArrayList();
                 if (!headDB.ExecuteReader(strSQL.ToString(), ref arList)) return;
@@ -203,7 +198,12 @@
 
                     DataList.Add(keyval);
                 }
+                cmbOrderer.SelectedIndexChanged -= new EventHandler(cmbOrderer_SelectedIndexChanged);
 
+                cmbOrderer.DataSource = null;
+                cmbOrderer.Items.Clear();
+                cmbOrderer.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbOrderer, DataList);
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/RequestSummaryList/FrmRequestSummaryListAuxiliary.cs	(revision 346)
@@ -309,13 +309,8 @@
             m_initDataLoad = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new System.EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = GetTargetCount();
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -336,6 +331,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new System.EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -386,14 +387,9 @@
             m_initDataLoad = true;
             try
             {
-                cmbPerson.SelectedIndexChanged -= new EventHandler(cmbPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbPerson.DataSource = null;
-                cmbPerson.Items.Clear();
-                cmbPerson.Text = "";
-
                 int nTargetCount = GetTargetCount();
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -415,6 +411,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbPerson.SelectedIndexChanged -= new EventHandler(cmbPerson_SelectedIndexChanged);
+
+                cmbPerson.DataSource = null;
+                cmbPerson.Items.Clear();
+                cmbPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbPerson, ConstructionDataList);
 
@@ -481,9 +483,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbPerson.SelectedIndexChanged -= new EventHandler(cmbPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstrPersonCode();
                 if (PersonCode < 1) return true;
@@ -509,8 +508,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbPerson.SelectedIndexChanged -= new EventHandler(cmbPerson_SelectedIndexChanged);
                 cmbPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SalesConfirm/FrmSalesConfirmAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SalesConfirm/FrmSalesConfirmAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/Request/SalesConfirm/FrmSalesConfirmAuxiliary.cs	(revision 346)
@@ -116,7 +116,7 @@
                 /////////////////////////////////////////////////////////////////////////////
 
                 sql.Append("WHERE ");
-                sql.Append("DEPM.DeleteFlg = 0 ");                                              // •”��ƒ}ƒXƒ^�D�í�œƒtƒ‰ƒO = 0
+                sql.AppendFormat("DEPM.DeleteFlg = {0} ", (int)CommonDefine.DataRowDeleteDef.Exists);  // •”��ƒ}ƒXƒ^�D�í�œƒtƒ‰ƒO = 0
                 sql.Append("ORDER BY  ");
                 sql.Append("DEPM.DisplayOrder ASC");                                            // •”��ƒ}ƒXƒ^�D•\Ž¦�‡�i�¸�‡�j
 
@@ -190,7 +190,7 @@
                 sql.Append("FROM ");
                 sql.Append("personinchargemaster PERIM ");                              // ’S“–ŽÒƒ}ƒXƒ^
                 sql.Append("WHERE ");
-                sql.Append("PERIM.DeleteFlg = 0 ");                                     // ’S“–ŽÒƒ}ƒXƒ^�D�í�œƒtƒ‰ƒO = 0
+                sql.AppendFormat("PERIM.DeleteFlg = {0} ", (int)CommonDefine.DataRowDeleteDef.Exists); // ’S“–ŽÒƒ}ƒXƒ^�D�í�œƒtƒ‰ƒO = 0
 
                 /////////////////////////////////////////////////////////////////////////////
                 // ŒŸ�õ�ðŒ�(“®“I)START
@@ -328,7 +328,7 @@
                 sql.Append("WHERE ");
                 sql.AppendFormat("DIVI.DivisionCode = {0} "                             // ‹æ•ªƒ}ƒXƒ^�D‹æ•ªƒR�[ƒh
                                 , (int)DivisionMaster.DivisionMasterCodeDef.OrderDivision);
-                sql.Append("And DIVI.DeleteFlg = 0 ");                                  // ‹æ•ªƒ}ƒXƒ^�D�í�œƒtƒ‰ƒO = 0
+                sql.AppendFormat("And DIVI.DeleteFlg = {0} ", (int)CommonDefine.DataRowDeleteDef.Exists);  // ‹æ•ªƒ}ƒXƒ^�D�í�œƒtƒ‰ƒO = 0
 
                 /////////////////////////////////////////////////////////////////////////////
                 // ŒŸ�õ�ðŒ�(“®“I)START
@@ -421,7 +421,7 @@
                 sql.Append("FROM ");
                 sql.Append("orderersmaster As Orm ");                                   // ”­’�ŽÒƒ}ƒXƒ^
                 sql.Append("WHERE ");
-                sql.Append("Orm.DeleteFlg = 0 ");                                       // •”��ƒ}ƒXƒ^�D�í�œƒtƒ‰ƒO = 0
+                sql.AppendFormat("Orm.DeleteFlg = {0} ", (int)CommonDefine.DataRowDeleteDef.Exists);   // •”��ƒ}ƒXƒ^�D�í�œƒtƒ‰ƒO = 0
 
                 /////////////////////////////////////////////////////////////////////////////
                 // ŒŸ�õ�ðŒ�(“®“I)START
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SubConstrRegist/FrmSubConstrRegistListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SubConstrRegist/FrmSubConstrRegistListAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/SubConstrRegist/FrmSubConstrRegistListAuxiliary.cs	(revision 346)
@@ -690,13 +690,8 @@
             m_OpeRestrict = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
                 StringBuilder strSQL = new StringBuilder();
@@ -717,6 +712,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -747,14 +748,9 @@
             m_OpeRestrict = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = (int)numUDConstPro.Value;
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -776,6 +772,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -805,9 +807,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -833,8 +832,11 @@
 
                 // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCostsAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCostsAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/TAndPCosts/FrmTAndPCostsAuxiliary.cs	(revision 346)
@@ -361,13 +361,8 @@
             m_bInitFlg = true;
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = GetTargetCount();
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚’æ¤œç´¢ã�™ã‚‹
                 StringBuilder strSQL = new StringBuilder();
@@ -388,6 +383,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -418,14 +419,9 @@
             m_bInitFlg = true;
             try
             {
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
                 if (CommonMotions.cnvInt(cmbDepartment.SelectedValue) < 1) nBeforeCode = 0;
 
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
                 int nTargetCount = GetTargetCount();
                 int DepartmentCode = GetDepartmentCode();
                 StringBuilder strSQL = new StringBuilder();
@@ -447,6 +443,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
+
+                cmbConstructionPerson.DataSource = null;
+                cmbConstructionPerson.Items.Clear();
+                cmbConstructionPerson.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
 
@@ -476,9 +478,6 @@
             IOMPersonInCharge PersonDB = new IOMPersonInCharge();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
-                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
-
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã‚ˆã‚Šé�¸æŠžæ‹…å½“è€…ã‚’å�–å¾—ã�™ã‚‹
                 int PersonCode = GetConstructionPersonCode();
                 if (PersonCode < 1) return true;
@@ -504,8 +503,11 @@
 
                 // éƒ¨ç½²ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã�¸éƒ¨ç½²ã‚³ãƒ¼ãƒ‰ã‚»ãƒƒãƒˆ
                 SetcmbDepartment();
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
+
                 SetcmbPersons();    // æ‹…å½“è€…ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹å¤‰æ›´
+                cmbConstructionPerson.SelectedIndexChanged -= new EventHandler(cmbConstructionPerson_SelectedIndexChanged);
                 cmbConstructionPerson.SelectedValue = PersonCode;
 
                 return true;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/AlwaysEmployment/AlwaysEmployment.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/AlwaysEmployment/AlwaysEmployment.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/AlwaysEmployment/AlwaysEmployment.cs	(revision 346)
@@ -351,7 +351,7 @@
                     return;
                 }
                 // å‰Šé™¤ãƒ•ãƒ©ã‚°
-                if (!picDB.UpdateFeild(PersonCode, (int)IOMPersonInCharge.ColumnCnt.DeleteFlg, 1, false))
+                if (!picDB.UpdateFeild(PersonCode, (int)CommonDefine.DataRowDeleteDef.Deleted, 1, false))
                 {
                     picDB.rollback();
                     MessageBox.Show("å‰Šé™¤ã�«å¤±æ•—ã�—ã�¾ã�—ã�Ÿã€‚", "å‰Šé™¤ã‚¨ãƒ©ãƒ¼", MessageBoxButtons.OK, MessageBoxIcon.Error);
@@ -686,11 +686,14 @@
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿å�–å¾—ã‚¯ãƒ©ã‚¹é ˜åŸŸ
                 List<PersonInChargeMaster> pic = new List<PersonInChargeMaster>();
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿å�–å¾—SQL
-                string strSql = string.Format(" Where EmployeeClassFlg = {0} And DeleteFlg = 0 Order By DisplayOrder ASC", (int)PersonInChargeMaster.EmployeeClassFlgDef.OutSource);
+                StringBuilder strSql = new StringBuilder();
+                strSql.AppendFormat(" Where EmployeeClassFlg = {0} And DeleteFlg = {1} Order By DisplayOrder ASC"
+                                    , (int)PersonInChargeMaster.EmployeeClassFlgDef.OutSource
+                                    , (int)CommonDefine.DataRowDeleteDef.Exists);
                 // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
                 dgvMaster.Rows.Clear();
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿å�–å¾—
-                if (!picDB.SelectAction(strSql, ref pic)) return false;
+                if (!picDB.SelectAction(strSql.ToString(), ref pic)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int ino = 1, icnt = 0;
@@ -1229,9 +1232,10 @@
                 cmbDepartment.Text = "";
 
                 //ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã�®ãƒ‡ãƒ¼ã‚¿ã‚’ã‚»ãƒƒãƒˆã�™ã‚‹
-                string strSQL = " Where DeleteFlg = 0 Order By DisplayOrder";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder", (int)CommonDefine.DataRowDeleteDef.Exists);
                 List<DepartmentMaster> data = new List<DepartmentMaster>();
-                if (!dmDB.SelectAction(strSQL, ref data)) return;
+                if (!dmDB.SelectAction(strSQL.ToString(), ref data)) return;
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
                 foreach (DepartmentMaster wrk in data)
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/ApprovalRoute/FrmApprovalDispAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/ApprovalRoute/FrmApprovalDispAux.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/ApprovalRoute/FrmApprovalDispAux.cs	(revision 346)
@@ -140,7 +140,7 @@
             {
                 DataGridView dgv = dgvProcess;
                 StringBuilder strSQL = new StringBuilder();
-                strSQL.Append(" Where DeleteFlg = 0");
+                strSQL.AppendFormat(" Where DeleteFlg = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
                 strSQL.Append(" Order by DisplayOrder");
                 List<DepartmentMaster> DepList = new List<DepartmentMaster>();
                 if (!DepDB.SelectAction(strSQL.ToString(), ref DepList)) return;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/ApprovalRoute/FrmApprovalRoute.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/ApprovalRoute/FrmApprovalRoute.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/ApprovalRoute/FrmApprovalRoute.cs	(revision 346)
@@ -576,16 +576,17 @@
 
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿å�–å¾—
                 List<PersonInChargeMaster> wrk = new List<PersonInChargeMaster>();
-                string strcmd = "SELECT";
-                strcmd += "  A.PersonCode";
-                strcmd += ", B.DepartmentString";
-                strcmd += ", A.PersonName";
-                strcmd += ", A.DisplayString";
-                strcmd += " FROM PersonInChargeMaster A, DepartmentMaster B";
-                strcmd += " Where A.DeleteFlg = 0 And A.DepartmentCode = B.DepartmentCode";
-                strcmd += " Order By A.EmployeeClassFlg ASC, B.DisplayOrder ASC, A.DisplayOrder ASC";
+                StringBuilder strcmd = new StringBuilder();
+                strcmd.Append("SELECT");
+                strcmd.Append("  A.PersonCode");
+                strcmd.Append(", B.DepartmentString");
+                strcmd.Append(", A.PersonName");
+                strcmd.Append(", A.DisplayString");
+                strcmd.Append(" FROM PersonInChargeMaster A, DepartmentMaster B");
+                strcmd.AppendFormat(" Where A.DeleteFlg = {0} And A.DepartmentCode = B.DepartmentCode", (int)CommonDefine.DataRowDeleteDef.Exists);
+                strcmd.Append(" Order By A.EmployeeClassFlg ASC, B.DisplayOrder ASC, A.DisplayOrder ASC");
                 ArrayList arData = new ArrayList();
-                if (!perDB.ExecuteReader(strcmd, ref arData)) return false;
+                if (!perDB.ExecuteReader(strcmd.ToString(), ref arData)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int ino = 1;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Calender/FrmCalendarAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Calender/FrmCalendarAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Calender/FrmCalendarAuxiliary.cs	(revision 346)
@@ -609,13 +609,13 @@
                 // åŸºæº–å¹´åº¦ã�®åˆ¤å®š
                 if (CommonMotions.SystemMasterData.ConstructionNoBase == (int)SystemMaster.ConstrNoBaseDef.BusinessPeriod)
                 {
-                    lblYearTitile.Text = "å¯¾è±¡æœŸ";
-                    lblYearTitile2.Text = "æœŸ";
+                    lblYearTitile.Text = CommonDefine.Type1YearString[0];
+                    lblYearTitile2.Text = CommonDefine.Type1YearString[1];
                 }
                 else
                 {
-                    lblYearTitile.Text = "å¯¾è±¡å¹´åº¦";
-                    lblYearTitile2.Text = "å¹´";
+                    lblYearTitile.Text = CommonDefine.Type2YearString[0];
+                    lblYearTitile2.Text = CommonDefine.Type2YearString[1];
                 }
 
                 // å½“å¹´åº¦å�–å¾—
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/CategoryName/FrmCategoryNameMaster.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/CategoryName/FrmCategoryNameMaster.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/CategoryName/FrmCategoryNameMaster.cs	(revision 346)
@@ -535,9 +535,10 @@
                 List<DivisionMaster> cm = new List<DivisionMaster>();
 
                 // SQLä½œæˆ�
-                string strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // è¡¨ç¤ºé †ãƒžã‚¹ã‚¿å�–å¾—
-                if (!cmDB.SelectAction(strSQL, ref cm)) return;
+                if (!cmDB.SelectAction(strSQL.ToString(), ref cm)) return;
 
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
@@ -759,10 +760,12 @@
 
 
                 // SQLä½œæˆ�
-                string strSQL = string.Format(" Where NameCode = {0} And DeleteFlg = 0 Order By DisplayOrder ASC"
-                                                , CommonMotions.cnvInt(cmbDisplayType.SelectedValue.ToString()));
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" Where NameCode = {0} And DeleteFlg = {1} Order By DisplayOrder ASC"
+                                                , CommonMotions.cnvInt(cmbDisplayType.SelectedValue.ToString())
+                                                , (int)CommonDefine.DataRowDeleteDef.Exists);
                 // è¡¨ç¤ºé †ãƒžã‚¹ã‚¿å�–å¾—
-                if (!cmDB.SelectAction(strSQL, ref cm)) return false;
+                if (!cmDB.SelectAction(strSQL.ToString(), ref cm)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int icnt = 0;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Component/FrmComponent.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Component/FrmComponent.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Component/FrmComponent.cs	(revision 346)
@@ -902,13 +902,14 @@
                 // ä½œæ¥­å��ç§°å�–å¾—ã‚¯ãƒ©ã‚¹é ˜åŸŸ
                 List<ComponentMaster> wrk = new List<ComponentMaster>();
                 // ä½œæ¥­å��ç§°å�–å¾—SQL
-                string strSql = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSql = new StringBuilder();
+                strSql.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
 
                 // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
                 dgvWorkList.Rows.Clear();
 
                 // ä½œæ¥­å��ç§°å�–å¾—
-                if (!sbDB.SelectAction(strSql, ref wrk)) return false;
+                if (!sbDB.SelectAction(strSql.ToString(), ref wrk)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 string sflg = string.Empty;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/ComponentLink/FrmComponentLink.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/ComponentLink/FrmComponentLink.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/ComponentLink/FrmComponentLink.cs	(revision 346)
@@ -778,7 +778,8 @@
                 // ä½œæ¥­å��ç§°å�–å¾—ã‚¯ãƒ©ã‚¹é ˜åŸŸ
                 List<ComponentMaster> wrk = new List<ComponentMaster>();
                 // ä½œæ¥­å��ç§°å�–å¾—SQL
-                string strSql = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSql = new StringBuilder();
+                strSql.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
 
                 // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
                 dgvComponentList.Rows.Clear();
@@ -786,7 +787,7 @@
                 lblSelectName.Text = "";
 
                 // ä½œæ¥­å��ç§°å�–å¾—
-                if (!sbDB.SelectAction(strSql, ref wrk)) return false;
+                if (!sbDB.SelectAction(strSql.ToString(), ref wrk)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 string sflg = string.Empty;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/ConstructionItem/FrmConstructionItem.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/ConstructionItem/FrmConstructionItem.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/ConstructionItem/FrmConstructionItem.cs	(revision 346)
@@ -856,13 +856,14 @@
                 // ä½œæ¥­å��ç§°å�–å¾—ã‚¯ãƒ©ã‚¹é ˜åŸŸ
                 List<ConstructionItemMaster> wrk = new List<ConstructionItemMaster>();
                 // ä½œæ¥­å��ç§°å�–å¾—SQL
-                string strSql = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSql = new StringBuilder();
+                strSql.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
 
                 // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
                 dgvWorkList.Rows.Clear();
 
                 // ä½œæ¥­å��ç§°å�–å¾—
-                if (!sbDB.SelectAction(strSql, ref wrk)) return false;
+                if (!sbDB.SelectAction(strSql.ToString(), ref wrk)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int ino = 1;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/ConstructionSpec/FrmConstructionSpec.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/ConstructionSpec/FrmConstructionSpec.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/ConstructionSpec/FrmConstructionSpec.cs	(revision 346)
@@ -630,11 +630,13 @@
                 // ä½œæ¥­å��ç§°å�–å¾—ã‚¯ãƒ©ã‚¹é ˜åŸŸ
                 List<ConstructionSpecMaster> wrk = new List<ConstructionSpecMaster>();
                 // ä½œæ¥­å��ç§°å�–å¾—SQL
-                string strSql = string.Format(" Where ItemCode = {0} And DeleteFlg = 0 Order By DisplayOrder ASC", m_ItemCode);
+                StringBuilder strSql = new StringBuilder();
+                strSql.AppendFormat(" Where ItemCode = {0} And DeleteFlg = {1} Order By DisplayOrder ASC"
+                                    , m_ItemCode
+                                    , (int)CommonDefine.DataRowDeleteDef.Exists);
 
-
                 // ä½œæ¥­å��ç§°å�–å¾—
-                if (!csDB.SelectAction(strSql, ref wrk)) return;
+                if (!csDB.SelectAction(strSql.ToString(), ref wrk)) return;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int ino = 1;
@@ -941,13 +943,14 @@
                 // ä½œæ¥­å��ç§°å�–å¾—ã‚¯ãƒ©ã‚¹é ˜åŸŸ
                 List<ConstructionItemMaster> wrk = new List<ConstructionItemMaster>();
                 // ä½œæ¥­å��ç§°å�–å¾—SQL
-                string strSql = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSql = new StringBuilder();
+                strSql.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
 
                 // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
                 dgvItemList.Rows.Clear();
 
                 // ä½œæ¥­å��ç§°å�–å¾—
-                if (!sbDB.SelectAction(strSql, ref wrk)) return false;
+                if (!sbDB.SelectAction(strSql.ToString(), ref wrk)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int ino = 1;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/ConstructionType/FrmConstructionType.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/ConstructionType/FrmConstructionType.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/ConstructionType/FrmConstructionType.cs	(revision 346)
@@ -928,13 +928,14 @@
                 // ä½œæ¥­å��ç§°å�–å¾—ã‚¯ãƒ©ã‚¹é ˜åŸŸ
                 List<ConstructionTypeMaster> wrk = new List<ConstructionTypeMaster>();
                 // ä½œæ¥­å��ç§°å�–å¾—SQL
-                string strSql = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSql = new StringBuilder();
+                strSql.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
 
                 // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
                 dgvWorkList.Rows.Clear();
 
                 // ä½œæ¥­å��ç§°å�–å¾—
-                if (!typeDB.SelectAction(strSql, ref wrk)) return false;
+                if (!typeDB.SelectAction(strSql.ToString(), ref wrk)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 string sflg = string.Empty;
@@ -1086,14 +1087,16 @@
                 // å·¥äº‹ç¨®åˆ¥çµŒè²»çŽ‡ãƒžã‚¹ã‚¿å�–å¾—
                 int DivCode = DivisionMaster.DivisionMasterCode.First(x => x.Value.Equals("å·¥äº‹çµŒè²»å��ç§°ç™»éŒ²")).Key;
                 ArrayList wrklist = new ArrayList();
-                string strSQL = "SELECT A.NAMECODE, A.NAMESTRING, B.TYPECODE, B.EXPENSESPERIOD, B.EXPENSESRAITO";
-                strSQL += " FROM DIVISIONMASTER A";
-                strSQL += string.Format(" LEFT JOIN TYPEEXPENSESMASTER B ON B.TYPECODE = {0} AND B.NAMECODE = A.NAMECODE AND B.DELETEFLG = 0", m_TypeCode);
-                strSQL += string.Format(" WHERE A.DIVISIONCODE = {0}", DivCode);
-                strSQL += " AND A.DELETEFLG = 0";
-                strSQL += " ORDER BY A.DISPLAYORDER";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append("SELECT A.NAMECODE, A.NAMESTRING, B.TYPECODE, B.EXPENSESPERIOD, B.EXPENSESRAITO");
+                strSQL.Append(" FROM DIVISIONMASTER A");
+                strSQL.AppendFormat(" LEFT JOIN TYPEEXPENSESMASTER B ON B.TYPECODE = {0} AND B.NAMECODE = A.NAMECODE AND B.DELETEFLG = {1}"
+                                    , m_TypeCode, (int)CommonDefine.DataRowDeleteDef.Exists);
+                strSQL.AppendFormat(" WHERE A.DIVISIONCODE = {0}", DivCode);
+                strSQL.AppendFormat(" AND A.DELETEFLG = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
+                strSQL.Append(" ORDER BY A.DISPLAYORDER");
                 
-                if (!TypeExDB.ExecuteReader(strSQL, ref wrklist)) return;
+                if (!TypeExDB.ExecuteReader(strSQL.ToString(), ref wrklist)) return;
                 if (wrklist.Count == 0) return;
 
                 bool bChk = false;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Department/FrmDepartment.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Department/FrmDepartment.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Department/FrmDepartment.cs	(revision 346)
@@ -548,7 +548,7 @@
             try
             {
                 // çµŒè²»çŽ‡å†�è¡¨ç¤º
-                DispExpExpenses();
+                DispExpExpenses(false);
             }
             catch (System.Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Department/FrmDepartmentAux.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Department/FrmDepartmentAux.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Department/FrmDepartmentAux.cs	(revision 346)
@@ -420,22 +420,26 @@
                 if (MessageBox.Show("è¡¨ç¤ºä¸­ã�®ãƒ‡ãƒ¼ã‚¿ã�¨\r\næ‰¿èª�çµŒè·¯ãƒžã‚¹ã‚¿ãƒ‡ãƒ¼ã‚¿ã‚’å‰Šé™¤ã�—ã�¾ã�™ã€‚", "å‰Šé™¤ç¢ºèª�"
                     , MessageBoxButtons.YesNo, MessageBoxIcon.Information) != DialogResult.Yes) return false;
 
-                string strKey = dmDB.CreatePrimarykeyString(CommonMotions.cnvInt(m_dispControl[(int)DispControl.DepartmentCode].Text));
+                int DepCodeKey = CommonMotions.cnvInt(m_dispControl[(int)DispControl.DepartmentCode].Text);
+                string strKey = dmDB.CreatePrimarykeyString(DepCodeKey);
                 StringBuilder strSQL = new StringBuilder();
                 List<DepartmentMaster> ReadRec = new List<DepartmentMaster>();
                 dmDB.SelectAction(strKey, ref ReadRec, false);
                 if (ReadRec.Count > 0)
                 {
-                    strSQL.AppendFormat("UPDATE DepartmentMaster Set DeleteFlg = 1 {0}", strKey);
-                    if (!dmDB.ExecuteNonQuery(strSQL.ToString(), false))
+                    if (!dmDB.UpdateFeild(DepCodeKey
+                                            , (int)IOMDepartment.NameColumn.DeleteFlg
+                                            , (int)CommonDefine.DataRowDeleteDef.Deleted
+                                            , false))
                     {
                         dmDB.rollback();
                         MessageBox.Show("éƒ¨ç½²ãƒžã‚¹ã‚¿å‰Šé™¤ã�«å¤±æ•—ã�—ã�¾ã�—ã�Ÿã€‚", "å‰Šé™¤ã‚¨ãƒ©ãƒ¼", MessageBoxButtons.OK, MessageBoxIcon.Error);
                         return false;
                     }
-                    strSQL.Clear();
-                    strSQL.AppendFormat("UPDATE DepartmentExpensesMaster Set DeleteFlg = 1 {0}", strKey);
-                    if (!expDB.ExecuteNonQuery(strSQL.ToString(), false))
+                    if (!expDB.UpdateFeild(DepCodeKey, 0, 0
+                                            , (int)IOMDepartmentExpenses.NameColumn.DeleteFlg
+                                            , (int)CommonDefine.DataRowDeleteDef.Deleted
+                                            , false))
                     {
                         dmDB.rollback();
                         expDB.rollback();
@@ -445,6 +449,7 @@
                 }
 
                 List<ApprovalMaster> AppRec = new List<ApprovalMaster>();
+                strKey = AppDB.CreatePrimarykeyString(DepCodeKey);
                 AppDB.SelectAction(strKey, ref AppRec, false);
                 if (AppRec.Count > 0)
                 {
@@ -738,10 +743,11 @@
                 dgvWorkList.Rows.Clear();
 
                 // SQLä½œæˆ�
-                string strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 List<DepartmentMaster> dmList = new List<DepartmentMaster>();
                 // éƒ¨ç½²å�–å¾—
-                if (!dmDB.SelectAction(strSQL, ref dmList)) return false;
+                if (!dmDB.SelectAction(strSQL.ToString(), ref dmList)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int icnt = 0;
@@ -788,14 +794,18 @@
         /// <summary>
         /// çµŒè²»çŽ‡è¡¨ç¤º
         /// </summary>
-        private void DispExpExpenses()
+        private void DispExpExpenses(bool bInit = true)
         {
             try
             {
                 dgvExpenses.Rows.Clear();
 
-                numUDPeriod.Value = CommonMotions.GetPeriodYear();
-                m_dispControl[(int)DispControl.Period].Text = CommonMotions.GetPeriodYear().ToString();
+                int nNowYear = CommonMotions.GetPeriodYear();
+                if (bInit)
+                {   // åˆ�æœŸè¡¨ç¤ºã�®ã�¿ç�¾è¡ŒæœŸæ•°ãƒ»å¹´åº¦ã‚’ã‚»ãƒƒãƒˆã�™ã‚‹
+                    numUDPeriod.Value = nNowYear;
+                    m_dispControl[(int)DispControl.Period].Text = CommonMotions.GetPeriodYear().ToString();
+                }
                 int preiod = CommonMotions.cnvInt(numUDPeriod.Value);
                 ArrayList arData = new ArrayList();
 
@@ -809,7 +819,11 @@
                     int icnt = dgvExpenses.Rows.Add(CommonMotions.cnvInt(objwrk[(int)CommonMotions.ExpensesArray.NameCode]),    // çµŒè²»çŽ‡ã‚³ãƒ¼ãƒ‰
                                             CommonMotions.cnvString(objwrk[(int)CommonMotions.ExpensesArray.ExpensesName]),     // çµŒè²»çŽ‡å��ç§°
                                             CommonMotions.cnvDouble(objwrk[(int)CommonMotions.ExpensesArray.ExpensesRaito]).ToString("0.00"));  // çµŒè²»çŽ‡
-                    dgvExpenses.Rows[icnt].Cells[(int)ExpGridColumn.Ratio].ReadOnly = false;
+                    // é�¸æŠžå¹´ã�Œç�¾åœ¨ä»¥ä¸Šã�®å ´å�ˆã�¯çŽ‡ã‚’ç·¨é›†ã�§ã��ã‚‹
+                    if (preiod < nNowYear)
+                        dgvExpenses.Rows[icnt].Cells[(int)ExpGridColumn.Ratio].ReadOnly = true;
+                    else
+                        dgvExpenses.Rows[icnt].Cells[(int)ExpGridColumn.Ratio].ReadOnly = false;
                 }
                 int RowCnt = 4 - dgvExpenses.RowCount;
                 if (RowCnt > 0)
@@ -955,9 +969,17 @@
         /// </summary>
         private void SetnumUDPeriod()
         {
-            this.numUDPeriod.ValueChanged -= new System.EventHandler(this.numUDPeriod_ValueChanged);
             try
             {
+                // åŸºæº–å¹´åº¦ã�®åˆ¤å®š
+                if (CommonMotions.SystemMasterData.ConstructionNoBase == (int)SystemMaster.ConstrNoBaseDef.BusinessPeriod)
+                {
+                    label5.Text = string.Format("çµŒè²»{0}", CommonDefine.Type1YearString[0]);
+                }
+                else
+                {
+                    label5.Text = string.Format("çµŒè²»{0}", CommonDefine.Type2YearString[0]);
+                }
 
                 // æ¤œç´¢å¹´åº¦ã‚»ãƒƒãƒˆ
                 // ãƒ‡ãƒ¼ã‚¿ã�«ã�‚ã‚‹äº‹æ¥­æœŸã�¨ç�¾åœ¨ã�®äº‹æ¥­ã‚»ãƒƒãƒˆ
@@ -964,6 +986,8 @@
                 int minval = 0;
                 int maxval = 0;
                 CommonMotions.GetPeriodYearMinMax(ref minval, ref maxval);
+
+                this.numUDPeriod.ValueChanged -= new System.EventHandler(this.numUDPeriod_ValueChanged);
                 numUDPeriod.Minimum = minval;
                 numUDPeriod.Maximum = maxval + 1;
                 numUDPeriod.Value = CommonMotions.GetPeriodYear();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Division/FrmDivisionMaster.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Division/FrmDivisionMaster.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Division/FrmDivisionMaster.cs	(revision 346)
@@ -366,8 +366,8 @@
         /// <param name="e"></param>
         private void btnLineDelete_Click(object sender, EventArgs e)
         {
-            
             IOMDivision nmDB = new IOMDivision();
+            IOMDepartmentExpenses deDB = new IOMDepartmentExpenses();
             try
             {
                 if (CommonMotions.chkCellBlank(dgvMaster.CurrentRow.Cells[(int)DispColumn.NameString].Value)) return;
@@ -379,19 +379,39 @@
                 // è¡¨ç¤ºè¡Œé€€é�¿
                 int iIndex = dgvMaster.FirstDisplayedScrollingRowIndex;
 
-                nmDB.connect();
-                nmDB.beginTran();
+                nmDB.connect(); nmDB.beginTran();
+                deDB.connect(); deDB.beginTran();
 
-                string strSQL = nmDB.CreatePrimarykeyString(m_DivisionCode
-                                                            , CommonMotions.cnvInt(dgvMaster.CurrentRow.Cells[(int)DispColumn.NameCode].Value));
-                if (!nmDB.DeleteAction(strSQL, false))
+                int nNameCode = CommonMotions.cnvInt(dgvMaster.CurrentRow.Cells[(int)DispColumn.NameCode].Value);
+                if (!nmDB.UpdateFeild(m_DivisionCode, nNameCode
+                                    , (int)IOMDivision.NameColumn.DeleteFlg
+                                    , (int)CommonDefine.DataRowDeleteDef.Deleted
+                                    , false))
                 {
                     nmDB.rollback();
-                    MessageBox.Show("å‰Šé™¤ã�«å¤±æ•—ã�—ã�¾ã�—ã�Ÿã€‚", "å‰Šé™¤ã‚¨ãƒ©ãƒ¼", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                    MessageBox.Show("çµŒè²»å��ç§°ï¼šå‰Šé™¤ã�«å¤±æ•—ã�—ã�¾ã�—ã�Ÿã€‚", "å‰Šé™¤ã‚¨ãƒ©ãƒ¼", MessageBoxButtons.OK, MessageBoxIcon.Error);
                     return;
                 }
 
+                // çµŒè²»å��ç§°ã�®å ´å�ˆ
+                if (m_DivisionCode == (int)DivisionMaster.DivisionMasterCodeDef.ConstructionExpenses)
+                {
+                    StringBuilder strSQL = new StringBuilder();
+                    strSQL.Append("Update departmentexpensesmaster");
+                    strSQL.AppendFormat(" Set DeleteFlg = {0}, UpdateDate = NOW()", (int)CommonDefine.DataRowDeleteDef.Deleted);
+                    strSQL.AppendFormat(" Where ExpensesPeriod >= {0}", CommonMotions.GetPeriodYear());
+                    strSQL.AppendFormat(" And NameCode = {0}", nNameCode);
+                    if (!deDB.ExecuteNonQuery(strSQL.ToString(), false))
+                    {
+                        nmDB.rollback();
+                        deDB.rollback();
+                        MessageBox.Show("éƒ¨ç½²çµŒè²»ãƒžã‚¹ã‚¿ï¼šå‰Šé™¤ã�«å¤±æ•—ã�—ã�¾ã�—ã�Ÿã€‚", "å‰Šé™¤ã‚¨ãƒ©ãƒ¼", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                        return;
+                    }
+                }
+
                 nmDB.commit();
+                deDB.commit();
 
                 CommonMotions.RemoveEndMessage(string.Format("{0}ãƒ‡ãƒ¼ã‚¿è¡Œ", lblTitle.Text));
 
@@ -410,8 +430,8 @@
             }
             finally
             {
-                nmDB.close();
-                nmDB = null;
+                nmDB.close(); nmDB = null;
+                deDB.close(); deDB = null;
             }
         }
         #endregion
@@ -793,9 +813,12 @@
                 dgvMaster.Rows.Clear();
 
                 // SQLä½œæˆ�
-                string strSQL = string.Format(" Where DivisionCode = {0} And DeleteFlg = 0 Order By DisplayOrder ASC", m_DivisionCode);
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" Where DivisionCode = {0}", m_DivisionCode);
+                strSQL.AppendFormat(" And DeleteFlg = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
+                strSQL.Append(" Order By DisplayOrder ASC");
                 // è¡¨ç¤ºé †ãƒžã‚¹ã‚¿å�–å¾—
-                if (!cmDB.SelectAction(strSQL, ref cm)) return false;
+                if (!cmDB.SelectAction(strSQL.ToString(), ref cm)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int icnt = 0;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Expenses/FrmExpenses.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Expenses/FrmExpenses.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Expenses/FrmExpenses.cs	(revision 346)
@@ -563,13 +563,11 @@
 
                 // SQLä½œæˆ�
                 // Valueã�‹ã‚‰Keyã‚’æ¤œç´¢
-                //string DivisionName = CommonDefine.DivisionMasterCode[2];
-                //int DivisionCode = CommonDefine.DivisionMasterCode.First(x => x.Value == DivisionName).Key;
-
-                string strSQL = " And DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" And DeleteFlg = 0 Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 List<ConstructionTypeMaster> cm = new List<ConstructionTypeMaster>();
                 // åŒºåˆ†ãƒžã‚¹ã‚¿å�–å¾—
-                if (!cmDB.SelectAction(strSQL, ref cm)) return false;
+                if (!cmDB.SelectAction(strSQL.ToString(), ref cm)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int icnt = 0;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Material/MaterialItemsMaster/FrmMaterialItemsMaster.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Material/MaterialItemsMaster/FrmMaterialItemsMaster.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Material/MaterialItemsMaster/FrmMaterialItemsMaster.cs	(revision 346)
@@ -750,10 +750,12 @@
                 //    return;
                 //}
 
-                string strKindWhere = m_IoMtype.CreatePrimarykeyString(CommonMotions.cnvInt(cmbTypes.SelectedValue)) + " and DELETEFLG = 0";
+                StringBuilder strKindWhere = new StringBuilder();
+                strKindWhere.Append(m_IoMtype.CreatePrimarykeyString(CommonMotions.cnvInt(cmbTypes.SelectedValue)));
+                strKindWhere.AppendFormat(" and DELETEFLG = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
                 List<MaterialKindMaster> mKindList = new List<MaterialKindMaster>();
                 // è³‡æ��ç¨®é¡žãƒžã‚¹ã‚¿å­˜åœ¨ç¢ºèª�
-                if (!m_IoMtype.SelectAction(strKindWhere, ref mKindList, false))
+                if (!m_IoMtype.SelectAction(strKindWhere.ToString(), ref mKindList, false))
                 {
                     m_IoMt.rollback();
                     m_IoMtype.rollback();
@@ -1116,7 +1118,9 @@
             try
             {
                 List<MaterialKindMaster> itemList = new List<MaterialKindMaster>();
-                if (!IoMt.SelectAction(" Where DeleteFlg = 0 Order By DisplayOrder ASC", ref itemList)) return;
+                StringBuilder strsql = new StringBuilder();
+                strsql.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
+                if (!IoMt.SelectAction(strsql.ToString(), ref itemList)) return;
                 if (itemList.Count == 0) return;
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
@@ -1163,8 +1167,10 @@
                 dgvMaster.Rows.Clear();
 
                 // è³‡æ��å“�ç›®æŠ½å‡ºæ�¡ä»¶
-                string strSQL = string.Format(" Where MaterialKindCode = {0} And DeleteFlg = 0 Order By DisplayOrder ASC", strMaterialKindCode);
-                if (!m_IoMt.SelectAction(strSQL, ref mim,false)) return;
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" Where MaterialKindCode = {0}", strMaterialKindCode);
+                strSQL.AppendFormat(" And DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
+                if (!m_IoMt.SelectAction(strSQL.ToString(), ref mim,false)) return;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int icnt = 0;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Material/MaterialTypesMaster/FrmMaterialTypesMaster.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Material/MaterialTypesMaster/FrmMaterialTypesMaster.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Material/MaterialTypesMaster/FrmMaterialTypesMaster.cs	(revision 346)
@@ -241,7 +241,7 @@
         {            
             // ã‚¯ãƒªã‚¢ãƒ‡ãƒ¼ã‚¿ã‚»ãƒƒãƒˆ
             dgvMaster[(int)DispColumn.RowState, iIndex].Value = DataRowState.Unchanged;
-            dgvMaster[(int)DispColumn.DeleteFlg, iIndex].Value = "0";
+            dgvMaster[(int)DispColumn.DeleteFlg, iIndex].Value = (int)CommonDefine.DataRowDeleteDef.Exists;
             dgvMaster[(int)DispColumn.DisplayOrder, iIndex].Value = "";
             dgvMaster[(int)DispColumn.MaterialTypesKey, iIndex].Value = "";
             dgvMaster[(int)DispColumn.NameString, iIndex].Value = "";
@@ -662,7 +662,7 @@
                             && CommonMotions.cnvString(r.Cells[(int)DispColumn.NameString].Value).Length == 0) continue;
 
                     // å‰Šé™¤è¡Œã�¯å‡¦ç�†ã�—ã�ªã�„
-                    if (CommonMotions.cnvString(r.Cells[(int)DispColumn.DeleteFlg].Value) == "1") continue;
+                    if (CommonMotions.cnvInt(r.Cells[(int)DispColumn.DeleteFlg].Value) == (int)CommonDefine.DataRowDeleteDef.Deleted) continue;
 
                     //å��ç§°
                     bAns = true;
@@ -685,7 +685,9 @@
                     { 
                         // é‡�è¤‡è¡Œèª¿æŸ»
                         DataGridViewRow[] rows = dgvMaster.Rows.Cast<DataGridViewRow>()
-                                                                    .Where(x =>x.Cells[(int)DispColumn.DeleteFlg].Value.ToString() == "0" && (string)x.Cells[(int)DispColumn.NameString].Value == (string)r.Cells[(int)DispColumn.NameString].Value).ToArray();
+                                                                    .Where(x =>x.Cells[(int)DispColumn.DeleteFlg].Value.ToString() == "0"
+                                                                                && (string)x.Cells[(int)DispColumn.NameString].Value == (string)r.Cells[(int)DispColumn.NameString].Value)
+                                                                    .ToArray();
                         if (rows.Count() > 1)
                         {
                             bAns = false;
@@ -828,33 +830,34 @@
             {
 
 
-                    // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
-                    dgvMaster.Rows.Clear();
-                    
-                    // SQLä½œæˆ�
-                    string strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC"; 
-                    // è¡¨ç¤ºé †ãƒžã‚¹ã‚¿å�–å¾—
-                    if (!m_IoMt.SelectAction(strSQL, ref cm,false)) return false;
+                // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
+                dgvMaster.Rows.Clear();
 
-                    // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
-                    int icnt = 0;
-                    foreach (MaterialKindMaster work in cm)
+                // SQLä½œæˆ�
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
+                // è¡¨ç¤ºé †ãƒžã‚¹ã‚¿å�–å¾—
+                if (!m_IoMt.SelectAction(strSQL.ToString(), ref cm, false)) return false;
+
+                // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
+                int icnt = 0;
+                foreach (MaterialKindMaster work in cm)
+                {
+                    dgvMaster.Rows.Add((icnt + 1)
+                                        , work.MaterialKindCode
+                                        , work.MaterialKindName.ToString());
+
+                    dgvMaster.Rows[icnt].Cells[(int)DispColumn.RowState].Value = DataRowState.Unchanged;
+                    dgvMaster.Rows[icnt].Cells[(int)DispColumn.DeleteFlg].Value = work.DeleteFlg.ToString();
+                    dgvMaster.Rows[icnt].Cells[(int)DispColumn.MaterialTypesKey].Value = work.MaterialKindCode.ToString();
+                    dgvMaster.Rows[icnt].Cells[(int)DispColumn.NameString].Value = work.MaterialKindName;
+                    dgvMaster.Rows[icnt].Cells[(int)DispColumn.NameString].ToolTipText = work.MaterialKindName;
+                    if (work.DeleteFlg == 1)
                     {
-                        dgvMaster.Rows.Add((icnt + 1)
-                                            , work.MaterialKindCode
-                                            , work.MaterialKindName.ToString());
-
-                    dgvMaster.Rows[icnt].Cells[(int)DispColumn.RowState ].Value = DataRowState.Unchanged;
-                        dgvMaster.Rows[icnt].Cells[(int)DispColumn.DeleteFlg].Value = work.DeleteFlg.ToString();
-                        dgvMaster.Rows[icnt].Cells[(int)DispColumn.MaterialTypesKey].Value = work.MaterialKindCode.ToString();
-                        dgvMaster.Rows[icnt].Cells[(int)DispColumn.NameString].Value = work.MaterialKindName;
-                        dgvMaster.Rows[icnt].Cells[(int)DispColumn.NameString].ToolTipText = work.MaterialKindName;
-                        if (work.DeleteFlg == 1)
-                        {
-                            dgvMaster.Rows[icnt].Visible = false;
-                        }
-                        icnt++;
+                        dgvMaster.Rows[icnt].Visible = false;
                     }
+                    icnt++;
+                }
 
 
                 // â„–å†�æŽ¡ç•ª
@@ -870,9 +873,9 @@
                 //    }
                 //}
 
-                    //dgvMaster.Rows.Add();
-                    // ã‚¯ãƒªã‚¢ãƒ‡ãƒ¼ã‚¿ã‚»ãƒƒãƒˆ
-                    //SetRowClearData(dgvMaster.Rows.Count - 1);
+                //dgvMaster.Rows.Add();
+                // ã‚¯ãƒªã‚¢ãƒ‡ãƒ¼ã‚¿ã‚»ãƒƒãƒˆ
+                //SetRowClearData(dgvMaster.Rows.Count - 1);
 
                 // èª­è¾¼æ™‚ãƒ‡ãƒ¼ã‚¿ã‚«ã‚¦ãƒ³ãƒˆå�–å¾—
                 m_initDataCount = cm.Count;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Orderer/FrmOrderers.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Orderer/FrmOrderers.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Orderer/FrmOrderers.cs	(revision 346)
@@ -1080,12 +1080,13 @@
                 // ç™ºæ³¨è€…å�–å¾—ã‚¯ãƒ©ã‚¹é ˜åŸŸ
                 List<OrderersMaster> wrk = new List<OrderersMaster>();
                 // ç™ºæ³¨è€…å�–å¾—SQL
-                string strSql = orDB.CreatePrimarykeyString(CommonMotions.cnvInt(cmbDivision.SelectedValue.ToString()));
-                strSql += " And DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSql = new StringBuilder();
+                strSql.Append(orDB.CreatePrimarykeyString(CommonMotions.cnvInt(cmbDivision.SelectedValue.ToString())));
+                strSql.AppendFormat(" And DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
                 dgvMaster.Rows.Clear();
                 // ä½œæ¥­å��ç§°å�–å¾—
-                if (!orDB.SelectAction(strSql, ref wrk)) return false;
+                if (!orDB.SelectAction(strSql.ToString(), ref wrk)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int ino = 1;
@@ -1181,7 +1182,7 @@
 
                 cmbChangeOrdersDivision.SelectedValue = odList.OrderCotegory;
 
-                if (odList.DeleteFlg != 0)
+                if (odList.DeleteFlg != (int)CommonDefine.DataRowDeleteDef.Exists)
                 {
                     label18.Visible = true;
                 }
@@ -1254,11 +1255,11 @@
             {
                 List<DivisionMaster> bvList = new List<DivisionMaster>();
                 // Valueã�‹ã‚‰Keyã‚’æ¤œç´¢
-                //string DivisionName = CommonDefine.DivisionMasterCode[1];
-                //int DivisionCode = CommonDefine.DivisionMasterCode.First(x => x.Value == DivisionName).Key;
                 int DivisionCode = (int)DivisionMaster.DivisionMasterCodeDef.OrderDivision;
-                string strSQL = dvDB.CreatePrimarykeyString(DivisionCode) + " And DeleteFlg = 0 ORDER BY DISPLAYORDER";
-                if (!dvDB.SelectAction(strSQL, ref bvList)) return;
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append(dvDB.CreatePrimarykeyString(DivisionCode));
+                strSQL.AppendFormat(" And DeleteFlg = {0} ORDER BY DISPLAYORDER", (int)CommonDefine.DataRowDeleteDef.Exists);
+                if (!dvDB.SelectAction(strSQL.ToString(), ref bvList)) return;
                 if (bvList.Count == 0) return;
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/PersonInCharge/FrmPersonInChargeAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/PersonInCharge/FrmPersonInChargeAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/PersonInCharge/FrmPersonInChargeAuxiliary.cs	(revision 346)
@@ -1711,12 +1711,10 @@
                 }
 
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿ï¼šçµ‚äº†å¹´æœˆæ—¥ãƒ»å‰Šé™¤ãƒ•ãƒ©ã‚°æ›´æ–°
-                strSQL.Clear();
-                strSQL.Append("Update personinchargemaster");
-                strSQL.Append(" Set");
-                strSQL.Append(" EndDate = DATE(Now()), DeleteFlg = 1");
-                strSQL.AppendFormat(" Where PersonCode = {0}", workRec.PersonCode);
-                if (!picDB.ExecuteNonQuery(strSQL.ToString(), false))
+                if (!picDB.UpdateFeild(workRec.PersonCode
+                                        , (int)IOMPersonInCharge.ColumnCnt.DeleteFlg
+                                        , (int)CommonDefine.DataRowDeleteDef.Deleted
+                                        , false))
                 {
                     picDB.rollback();
                     MessageBox.Show("æ‹…å½“è€…ãƒžã‚¹ã‚¿ï¼šå‰Šé™¤ã�«å¤±æ•—ã�—ã�¾ã�—ã�Ÿã€‚", "å‰Šé™¤ã‚¨ãƒ©ãƒ¼", MessageBoxButtons.OK, MessageBoxIcon.Error);
@@ -1853,7 +1851,7 @@
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚’æ¤œç´¢ã�™ã‚‹
                 StringBuilder strSQL = new StringBuilder();
                 if (bDspExistsData)
-                    strSQL.Append(" Where DeleteFlg = 0 Order By DisplayOrder ASC");
+                    strSQL.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC",(int)(int)CommonDefine.DataRowDeleteDef.Exists);
                 else
                     strSQL.Append(" Order By DeleteFlg ASC, DisplayOrder ASC");
                 List<DepartmentMaster> data = new List<DepartmentMaster>();
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/SubContractor/FrmSubContractor.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/SubContractor/FrmSubContractor.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/SubContractor/FrmSubContractor.cs	(revision 346)
@@ -420,7 +420,7 @@
                 joblinkDB.connect(); joblinkDB.beginTran();
 
                 // å‰Šé™¤ãƒ•ãƒ©ã‚°
-                workList[0].DeleteFlg = 1;
+                workList[0].DeleteFlg = (int)CommonDefine.DataRowDeleteDef.Deleted;
 
                 // ãƒ‡ãƒ¼ã‚¿æ›´æ–°
                 if (!sbDB.UpdateAction(strWhere, workList[0], false))
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/SubContractor/FrmSubContractorAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/SubContractor/FrmSubContractorAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/SubContractor/FrmSubContractorAuxiliary.cs	(revision 346)
@@ -976,8 +976,6 @@
         }
         #endregion
 
-
-
         #region ã‚°ãƒªãƒƒãƒ‰ãƒ‡ãƒ¼ã‚¿å�–å¾—
         /// <summary>
         /// ã‚°ãƒªãƒƒãƒ‰ãƒ‡ãƒ¼ã‚¿å�–å¾—
@@ -1058,7 +1056,7 @@
         private string CreateSQL()
         {
             StringBuilder strSQL = new StringBuilder();
-            strSQL.Append(" Where DeleteFlg = 0");
+            strSQL.AppendFormat(" Where DeleteFlg = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
             try
             {
                 string[] strArray = new string[3];
@@ -1147,9 +1145,11 @@
                 cmbJapaneseSyllabary.Items.Clear();
                 cmbJapaneseSyllabary.Text = "";
 
-                string strSQL = "Select Distinct JapaneseSyllabary From SubContractorMaster WHERE DELETEFLG = 0 Order By JapaneseSyllabary";
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.Append("Select Distinct JapaneseSyllabary From SubContractorMaster");
+                strSQL.AppendFormat(" WHERE DELETEFLG = {0} Order By JapaneseSyllabary", (int)CommonDefine.DataRowDeleteDef.Exists);
                 ArrayList arData = new ArrayList();
-                if (!sbDB.ExecuteReader(strSQL, ref arData)) return;
+                if (!sbDB.ExecuteReader(strSQL.ToString(), ref arData)) return;
                 if (arData.Count == 0) return;
 
                 // ãƒ‡ãƒ¼ã‚¿ã‚»ãƒƒãƒˆ
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Suppliers/FrmSuppliers.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Suppliers/FrmSuppliers.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Suppliers/FrmSuppliers.cs	(revision 346)
@@ -336,7 +336,7 @@
                 }
                 // ãƒ‡ãƒ¼ã‚¿å‰Šé™¤ï¼ˆè«–ç�†å‰Šé™¤ï¼‰
                 //if (!supDB.DeleteAction(strWhere))
-                orData.DeleteFlg = 1;
+                orData.DeleteFlg = (int)CommonDefine.DataRowDeleteDef.Deleted;
                 if (!supDB.UpdateAction(strWhere, orData))
                 {
                     MessageBox.Show("å‰Šé™¤ã�«å¤±æ•—ã�—ã�¾ã�—ã�Ÿã€‚", "å‰Šé™¤ã‚¨ãƒ©ãƒ¼", MessageBoxButtons.OK, MessageBoxIcon.Error);
@@ -913,11 +913,12 @@
                 // ä»•å…¥å…ˆå�–å¾—ã‚¯ãƒ©ã‚¹é ˜åŸŸ
                 List<SuppliersMaster> wrk = new List<SuppliersMaster>();
                 // ä»•å…¥å…ˆå�–å¾—SQL
-                string strSql = " WHERE DeleteFlg = 0 Order By DisplayOrder ASC";
+                StringBuilder strSql = new StringBuilder();
+                strSql.AppendFormat(" WHERE DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // ã‚°ãƒªãƒƒãƒ‰ã�®è¡Œã‚’0ã�«æˆ»ã�™
                 dgvMaster.Rows.Clear();
                 // ãƒ‡ãƒ¼ã‚¿å�–å¾—
-                if (!supDB.SelectAction(strSql, ref wrk)) return false;
+                if (!supDB.SelectAction(strSql.ToString(), ref wrk)) return false;
 
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
                 int ino = 1;
Index: branches/src/ProcessManagement/ProcessManagement/Forms/Master/Vehicle/FrmVehicle.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/Master/Vehicle/FrmVehicle.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/Master/Vehicle/FrmVehicle.cs	(revision 346)
@@ -1494,7 +1494,7 @@
                 cmbVehicleAdministrator.DataSource = null;
                 List<DepartmentMaster> workList = new List<DepartmentMaster>();
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚’æ¤œç´¢ã�™ã‚‹
-                string strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                string strSQL = string.Format(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿èª­è¾¼
                 if (!dmDB.SelectAction(strSQL, ref workList)) return;
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmComponentDiag.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmComponentDiag.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmComponentDiag.cs	(revision 346)
@@ -330,7 +330,7 @@
                 dgvMaster.Rows.Clear();
 
                 // SQLä½œæˆ�
-                string strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                string strSQL = string.Format(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // å·¥ç¨®ãƒžã‚¹ã‚¿å�–å¾—
                 if (!cmpDB.SelectAction(strSQL, ref m_ciList)) return;
                 // ã‚¨ãƒ©ãƒ¼æ™‚
@@ -409,7 +409,7 @@
             {
                 List<ComponentMaster> ciList = new List<ComponentMaster>();
 
-                string strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                string strSQL = string.Format(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // å·¥ç¨®ãƒžã‚¹ã‚¿å�–å¾—
                 if (!cmpDB.SelectAction(strSQL, ref ciList)) return false;
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmConstructionItemDiag.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmConstructionItemDiag.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmConstructionItemDiag.cs	(revision 346)
@@ -335,30 +335,30 @@
         {
             try
             {
-                string strSQL = string.Empty;
+                StringBuilder strSQL = new StringBuilder(); ;
                 if (m_AllDisplayFlg)
                 {   // ----- å…¨è¡¨ç¤º
-                    strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                    strSQL.AppendFormat(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 }
                 else
                 {   // ----- å¤§é …ç›®ã‚­ãƒ¼ã�ŒæŒ‡å®šã�•ã‚Œã�¦ã‚‹å ´å�ˆ
                     // SQLä½œæˆ�
-                    strSQL = "SELECT";
-                    strSQL += "  B.ItemCode";
-                    strSQL += ", B.DisplayOrder";
-                    strSQL += ", B.ItemName";
-                    strSQL += ", B.SubitemsFlg";
-                    strSQL += ", B.MyExpensesFlg";
-                    strSQL += ", B.DeleteFlg";
-                    strSQL += ", DATE_FORMAT(B.EntryDate, '%Y/%m/%d %H:%i:%s')";
-                    strSQL += ", DATE_FORMAT(B.UpdateDate, '%Y/%m/%d %H:%i:%s')";
-                    strSQL += " FROM ComponentLinkMaster A, ConstructionItemMaster B";
-                    strSQL += " Where B.DeleteFlg = 0";
-                    strSQL += string.Format(" And A.ComponentCode = {0}", m_ComponentCode);
-                    strSQL += " And A.ItemCode = B.ItemCode";
-                    strSQL += " Order By A.DisplayOrder ASC";
+                    strSQL.Append("SELECT");
+                    strSQL.Append("  B.ItemCode");
+                    strSQL.Append(", B.DisplayOrder");
+                    strSQL.Append(", B.ItemName");
+                    strSQL.Append(", B.SubitemsFlg");
+                    strSQL.Append(", B.MyExpensesFlg");
+                    strSQL.Append(", B.DeleteFlg");
+                    strSQL.Append(", DATE_FORMAT(B.EntryDate, '%Y/%m/%d %H:%i:%s')");
+                    strSQL.Append(", DATE_FORMAT(B.UpdateDate, '%Y/%m/%d %H:%i:%s')");
+                    strSQL.Append(" FROM ComponentLinkMaster A, ConstructionItemMaster B");
+                    strSQL.AppendFormat(" Where B.DeleteFlg = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
+                    strSQL.AppendFormat(" And A.ComponentCode = {0}", m_ComponentCode);
+                    strSQL.Append(" And A.ItemCode = B.ItemCode");
+                    strSQL.Append(" Order By A.DisplayOrder ASC");
                 }
-                return strSQL;
+                return strSQL.ToString();
             }
             catch (Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmConstructionSpecDiag.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmConstructionSpecDiag.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmConstructionSpecDiag.cs	(revision 346)
@@ -337,24 +337,24 @@
         {
             try
             {
-                string strSQL = string.Empty;
-                    // SQLä½œæˆ�
-                    strSQL = "SELECT";
-                    strSQL += "  B.ItemCode";
-                    strSQL += ", B.DisplayOrder";
-                    strSQL += ", B.ItemName";
-                    strSQL += ", B.SubitemsFlg";
-                    strSQL += ", B.MyExpensesFlg";
-                    strSQL += ", B.DeleteFlg";  
-                    strSQL += ", DATE_FORMAT(B.EntryDate, '%Y/%m/%d %H:%i:%s')";
-                    strSQL += ", DATE_FORMAT(B.UpdateDate, '%Y/%m/%d %H:%i:%s')";
-                    strSQL += " FROM ComponentLinkMaster A, ConstructionItemMaster B";
-                    strSQL += " Where B.DeleteFlg = 0";
-                    strSQL += string.Format(" And A.ComponentCode = {0}", m_ComponentCode);
-                    strSQL += " And A.ItemCode = B.ItemCode";
-                    strSQL += " Order By A.DisplayOrder ASC";
+                StringBuilder strSQL = new StringBuilder();
+                // SQLä½œæˆ�
+                strSQL.Append("SELECT");
+                strSQL.Append("  B.ItemCode");
+                strSQL.Append(", B.DisplayOrder");
+                strSQL.Append(", B.ItemName");
+                strSQL.Append(", B.SubitemsFlg");
+                strSQL.Append(", B.MyExpensesFlg");
+                strSQL.Append(", B.DeleteFlg");
+                strSQL.Append(", DATE_FORMAT(B.EntryDate, '%Y/%m/%d %H:%i:%s')");
+                strSQL.Append(", DATE_FORMAT(B.UpdateDate, '%Y/%m/%d %H:%i:%s')");
+                strSQL.Append(" FROM ComponentLinkMaster A, ConstructionItemMaster B");
+                strSQL.AppendFormat(" Where B.DeleteFlg = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
+                strSQL.AppendFormat(" And A.ComponentCode = {0}", m_ComponentCode);
+                strSQL.Append(" And A.ItemCode = B.ItemCode");
+                strSQL.Append(" Order By A.DisplayOrder ASC");
 
-                return strSQL;
+                return strSQL.ToString();
             }
             catch (Exception ex)
             {
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmMessageBoardWriter.cs	(revision 346)
@@ -557,7 +557,7 @@
                 m_SenderList.Add(new KeyValuePair<int, string>(CommonDefine.s_AllMembersCode, CommonDefine.s_AllMembersString));
 
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚’è¿½åŠ 
-                string strSQL2 = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
+                string strSQL2 = String.Format(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿èª­è¾¼
                 if (!dmDB.SelectAction(strSQL2, ref dmList)) return false;
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
@@ -573,7 +573,7 @@
                 m_SenderList.Add(new KeyValuePair<int, string>(0, ""));
 
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿ã‚’è¿½åŠ 
-                string strSQL = string.Format(" Where DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC, PersonCode ASC", (int)PersonInChargeMaster.EmployeeClassFlgDef.Regular);
+                string strSQL = string.Format(" Where DeleteFlg = {0} Order By EmployeeClassFlg ASC, DisplayOrder ASC, PersonCode ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿èª­è¾¼
                 if (!picDB.SelectAction(strSQL, ref workList)) return false;
                 // ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
@@ -585,20 +585,6 @@
                     m_SenderList.Add(keyval);
                 }
 
-                //// å¸¸ç”¨è€…ãƒžã‚¹ã‚¿ã‚’è¿½åŠ 
-                //workList.Clear();
-                //strSQL = string.Format(" Where EmployeeClassFlg = {0} AND DeleteFlg = 0 Order By DisplayOrder ASC, PersonCode ASC", (int)CommonDefine.EmployeeClassFlg.OutSource);
-                //// æ‹…å½“è€…ãƒžã‚¹ã‚¿èª­è¾¼
-                //if (!picDB.SelectAction(strSQL, ref workList)) return false;
-                //// ãƒ‡ãƒ¼ã‚¿è¡¨ç¤º
-                //foreach (PersonInChargeMaster wrk in workList)
-                //{
-                //    KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(wrk.PersonCode, wrk.PersonName);
-
-                //    m_AllList.Add(keyval);
-                //    m_SenderList.Add(keyval);
-                //}
-
                 // æ›¸è¾¼ã�¿è€…åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbWriter, m_SenderList);
                 // å¯¾è±¡è€…åˆ�æœŸè¡¨ç¤º
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubConJobDiag.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubConJobDiag.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubConJobDiag.cs	(revision 346)
@@ -520,7 +520,7 @@
         private string CreateSQL()
         {
             StringBuilder strSQL = new StringBuilder();
-            strSQL.Append(" Where DeleteFlg = 0");
+            strSQL.AppendFormat(" Where DeleteFlg = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
             try
             {
                 string[] strArray = new string[3];
@@ -632,7 +632,7 @@
                     {
                         // å�”åŠ›ä¼šç¤¾ãƒžã‚¹ã‚¿å�–å¾—
                         strSQL = sbcDB.CreatePrimarykeyString(wrk.InputCode);
-                        strSQL += " AND DELETEFLG = 0";
+                        strSQL += string.Format(" AND DELETEFLG = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
                         if (!sbcDB.SelectAction(strSQL, ref sbcRec)) continue;
                     }
                     int iRows = dgvHistory.Rows.Add(++i,
@@ -679,7 +679,7 @@
 
                 // SQLä½œæˆ�
                 string strSQL = sbcDB.CreatePrimarykeyString(SubContractorCode);
-                strSQL += " AND DELETEFLG = 0";
+                strSQL += string.Format(" AND DELETEFLG = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // å�”åŠ›ä¼šç¤¾ãƒžã‚¹ã‚¿å�–å¾—
                 if (!sbcDB.SelectAction(strSQL, ref DataRec)) return false;
 
@@ -768,9 +768,11 @@
             IOMSubContractor sbDB = new IOMSubContractor();
             try
             {
-                string strSQL = "Select Distinct JapaneseSyllabary From SubContractorMaster WHERE DELETEFLG = 0 Order By JapaneseSyllabary";
+                StringBuilder strSQL = new StringBuilder(); ;
+                strSQL.Append("Select Distinct JapaneseSyllabary From SubContractorMaster");
+                strSQL.AppendFormat(" WHERE DELETEFLG = {0} Order By JapaneseSyllabary", (int)CommonDefine.DataRowDeleteDef.Exists);
                 ArrayList arData = new ArrayList();
-                if (!sbDB.ExecuteReader(strSQL, ref arData)) return;
+                if (!sbDB.ExecuteReader(strSQL.ToString(), ref arData)) return;
                 if (arData.Count == 0) return;
 
                 // ãƒ‡ãƒ¼ã‚¿ã‚»ãƒƒãƒˆ
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSubconstractorDiag.cs	(revision 346)
@@ -808,9 +808,11 @@
 
                 List<PersonInChargeMaster> personList = new List<PersonInChargeMaster>();
                 // SQLä½œæˆ�
-                string strSQL = string.Format(" Where EmployeeClassFlg = {0} And DeleteFlg = 0 Order By DisplayOrder ASC", (int)PersonInChargeMaster.EmployeeClassFlgDef.OutSource);
+                StringBuilder strSQL = new StringBuilder();
+                strSQL.AppendFormat(" Where EmployeeClassFlg = {0}", (int)PersonInChargeMaster.EmployeeClassFlgDef.OutSource);
+                strSQL.AppendFormat("  And DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // æ‹…å½“è€…ãƒžã‚¹ã‚¿å�–å¾—
-                if (!personDB.SelectAction(strSQL, ref personList)) return;
+                if (!personDB.SelectAction(strSQL.ToString(), ref personList)) return;
 
                 // è¦�ç´ è¡¨ç¤º
                 int i = 0;
@@ -941,7 +943,9 @@
                     PersonInChargeMaster personRec = new PersonInChargeMaster();
                     // SQLä½œæˆ�
                     strSQL = personDB.CreatePrimarykeyString(SubContractorCode);
-                    strSQL += string.Format(" AND EmployeeClassFlg = {0} And DeleteFlg = 0", (int)PersonInChargeMaster.EmployeeClassFlgDef.OutSource);
+                    strSQL += string.Format(" AND EmployeeClassFlg = {0} And DeleteFlg = {1}"
+                                            , (int)PersonInChargeMaster.EmployeeClassFlgDef.OutSource
+                                            , (int)CommonDefine.DataRowDeleteDef.Exists);
                     // æ‹…å½“è€…ãƒžã‚¹ã‚¿å�–å¾—
                     if (!personDB.SelectAction(strSQL, ref personRec)) return false;
                     DataRec.CompanyCode = personRec.PersonCode;
@@ -1251,7 +1255,7 @@
         private string CreateSQL()
         {
             StringBuilder strSQL = new StringBuilder();
-            strSQL.Append(" Where DeleteFlg = 0");
+            strSQL.AppendFormat(" Where DeleteFlg = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
             try
             {
                 string[] strArray = new string[3];
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSuppliersDiag.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSuppliersDiag.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmSuppliersDiag.cs	(revision 346)
@@ -305,7 +305,7 @@
             {
                 dgvSearch.Rows.Clear();
 
-                string strSearch = " WHERE DELETEFLG = 0 ORDER BY DISPLAYORDER ASC";
+                string strSearch = string.Format(" WHERE DELETEFLG = {0} ORDER BY DISPLAYORDER ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 List<SuppliersMaster> sbcList = new List<SuppliersMaster>();
                 
                 // SQLä½œæˆ�
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/Material/FrmMaterialList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/Material/FrmMaterialList.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/Material/FrmMaterialList.cs	(revision 346)
@@ -222,7 +222,8 @@
             try
             {
                 List<MaterialKindMaster> itemList = new List<MaterialKindMaster>();
-                if (!IoMt.SelectAction(" Where DeleteFlg = 0 Order By DisplayOrder ASC", ref itemList)) return;
+                string strsql = string.Format(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
+                if (!IoMt.SelectAction(strsql, ref itemList)) return;
                 if (itemList.Count == 0) return;
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
@@ -336,7 +337,7 @@
                 sql.AppendLine(" From MaterialItemMaster as Mim");
                 sql.AppendLine("      left join MaterialInfo as Mi on Mim.MATERIALITEMCODE = Mi.MATERIALITEMCODE ");
                 sql.AppendLine("      left join materialkindmaster as Mk on Mim.MATERIALKINDCODE = Mk.MATERIALKINDCODE ");
-                sql.AppendLine(" Where Mim.DELETEFLG <> 1 ");
+                sql.AppendLine(string.Format(" Where Mim.DELETEFLG <> {0} ", (int)CommonDefine.DataRowDeleteDef.Deleted));
 
                 // æ�¡ä»¶è¿½åŠ 
                 //if (strMaterialKindCode.Length == 1 && strMaterialKindCode != "0") 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/Material/FrmMaterialSelect.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/Material/FrmMaterialSelect.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/Material/FrmMaterialSelect.cs	(revision 346)
@@ -263,7 +263,8 @@
             try
             {
                 List<MaterialKindMaster> itemList = new List<MaterialKindMaster>();
-                if (!IoMt.SelectAction(" Where DeleteFlg = 0 Order By DisplayOrder ASC", ref itemList)) return;
+                string strsql = string.Format(" Where DeleteFlg = {0} Order By DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
+                if (!IoMt.SelectAction(strsql, ref itemList)) return;
                 if (itemList.Count == 0) return;
 
                 List<KeyValuePair<int, string>> DataList = new List<KeyValuePair<int, string>>();
@@ -327,7 +328,7 @@
 
                 strSQL.AppendLine(" Where");
                 strSQL.AppendFormat(" A.MaterialKindCode = {0}", strMaterialKindCode);
-                strSQL.AppendLine(" And A.DeleteFlg = 0");
+                strSQL.AppendLine(string.Format(" And A.DeleteFlg = {0}", (int)CommonDefine.DataRowDeleteDef.Exists));
                 strSQL.AppendLine(" And B.MATERIALITEMCODE = A.MATERIALITEMCODE");
                 strSQL.AppendLine(" And B.RENTCOUNT > 0");
                 strSQL.AppendLine(" And C.MATERIALKINDCODE = A.MATERIALKINDCODE");
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmLogin.cs	(revision 346)
@@ -319,7 +319,7 @@
 
                 //ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹ã�®ãƒ‡ãƒ¼ã‚¿ã‚’ã‚»ãƒƒãƒˆã�™ã‚‹
                 // SQLä½œæˆ�
-                string strSQL = " Where DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC";
+                string strSQL = string.Format(" Where DeleteFlg = {0} Order By EmployeeClassFlg ASC, DisplayOrder ASC", (int)CommonDefine.DataRowDeleteDef.Exists);
                 // å·¥ç¨®ãƒžã‚¹ã‚¿å�–å¾—
                 if (!picDB.SelectAction(strSQL, ref m_PersonList)) return;
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/ZMenu/FrmMenuAuxiliary.cs	(revision 346)
@@ -5978,13 +5978,8 @@
             IOMDepartment depDB = new IOMDepartment();
             try
             {
-                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
                 int nBeforeCode = CommonMotions.cnvInt(cmbDepartment.SelectedValue);
 
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
                 int nTargetCount = CommonMotions.cnvInt(SalseGraphNum.Value);
                 // éƒ¨ç½²ãƒžã‚¹ã‚¿ã‚’æ¤œç´¢ã�™ã‚‹
                 StringBuilder strSQL = new StringBuilder();
@@ -6005,6 +6000,12 @@
                     ConstructionDataList.Add(keyval);
                 }
 
+                cmbDepartment.SelectedIndexChanged -= new EventHandler(cmbDepartment_SelectedIndexChanged);
+
+                cmbDepartment.DataSource = null;
+                cmbDepartment.Items.Clear();
+                cmbDepartment.Text = "";
+
                 // ã‚³ãƒ³ãƒœãƒœãƒƒã‚¯ã‚¹åˆ�æœŸè¡¨ç¤º
                 ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
 
@@ -6645,7 +6646,7 @@
                 strSQL.Append(" Where A.ACTIONSCHEDULEFLG = 0");
                 strSQL.Append(" AND A.DEPARTMENTCODE = B.DEPARTMENTCODE");
                 strSQL.AppendFormat(" And B.EmployeeClassFlg = {0}", EmployeeClass);
-                strSQL.Append(" AND B.DELETEFLG = 0");
+                strSQL.AppendFormat(" AND B.DELETEFLG = {0}", (int)CommonDefine.DataRowDeleteDef.Exists);
                 strSQL.Append(" Order By A.DISPLAYORDER ASC, B.DISPLAYORDER ASC, DateC ASC, DateD ASC, D.SeqNo ASC");
             }
             catch (Exception ex)
@@ -7738,7 +7739,9 @@
                     if (ipicDisp != BaseConstructionPersonCode)
                     {
                         // ---------------æ‹…å½“è€…ã�®å�–å¾—
-                        string strPerson = string.Format(" Where PersonCode = {0} And DeleteFlg = 0", BaseConstructionPersonCode);
+                        string strPerson = string.Format(" Where PersonCode = {0} And DeleteFlg = {1}"
+                                                        , BaseConstructionPersonCode
+                                                        , (int)CommonDefine.DataRowDeleteDef.Exists);
                         if (!picDB.SelectAction(strPerson, ref picList)) continue;
                         if (picList.Count == 0) continue;
                         ipicDisp = BaseConstructionPersonCode;
@@ -7747,7 +7750,9 @@
                         if (idmDisp != picList[0].DepartmentCode)
                         {
                             // ---------------éƒ¨ç½²ã�®å�–å¾—
-                            string strDepartment = string.Format(" Where DepartmentCode = {0} And DeleteFlg = 0", picList[0].DepartmentCode);
+                            string strDepartment = string.Format(" Where DepartmentCode = {0} And DeleteFlg = {1}"
+                                                                    , picList[0].DepartmentCode
+                                                                    , (int)CommonDefine.DataRowDeleteDef.Exists);
                             if (!dmDB.SelectAction(strDepartment, ref dmList)) continue;
                             if (dmList.Count == 0) continue;
                             idmDisp = picList[0].DepartmentCode;
Index: branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 345)
+++ branches/src/ProcessManagement/ProcessManagement/Properties/AssemblyInfo.cs	(revision 346)
@@ -32,7 +32,7 @@
 // ã�™ã�¹ã�¦ã�®å€¤ã‚’æŒ‡å®šã�™ã‚‹ã�‹ã€�ä¸‹ã�®ã‚ˆã�†ã�« '*' ã‚’ä½¿ã�£ã�¦ãƒ“ãƒ«ãƒ‰ã�Šã‚ˆã�³ãƒªãƒ“ã‚¸ãƒ§ãƒ³ç•ªå�·ã‚’ 
 // æ—¢å®šå€¤ã�«ã�™ã‚‹ã�“ã�¨ã�Œã�§ã��ã�¾ã�™:
 // [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.1.196")]
-[assembly: AssemblyFileVersion("1.0.1.196")]
+[assembly: AssemblyVersion("1.0.1.197")]
+[assembly: AssemblyFileVersion("1.0.1.197")]
 // Log4netã‚’ä½¿ç”¨ã�™ã‚‹
 [assembly: log4net.Config.XmlConfigurator(ConfigFile = @"log4net.config", Watch = true)]
\ No newline at end of file
