Index: branches/src/ProcessManagement/ProcessManagement/Forms/CustomControls/MoveTextBox.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/CustomControls/MoveTextBox.cs	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/CustomControls/MoveTextBox.cs	(nonexistent)
@@ -1,585 +0,0 @@
-ï»¿using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using Microsoft.VisualBasic.PowerPacks;
-
-using ProcessManagement.Forms.ControlsAction;
-
-namespace ProcessManagement.Forms.CustomControls
-{
-    /// <summary>
-    /// ãƒ‰ãƒ©ãƒƒã‚¯ã‚¢ãƒ³ãƒ‰ãƒ‰ãƒ­ãƒƒãƒ—ã�«ã‚ˆã‚‹ç§»å‹•ãƒ»ã‚µã‚¤ã‚ºå¤‰æ›´ãƒ†ã‚­ã‚¹ãƒˆãƒœãƒƒã‚¯ã‚¹
-    /// </summary>
-    public class MoveTextBox : TextBox
-    {
-        #region å®šæ•°
-        /// <summary>
-        /// ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸
-        /// </summary>
-        const int WM_LBUTTONDOWN = 0x201;
-        #endregion
-
-        #region å¤‰æ•°
-        /// <summary>
-        /// å…¥åŠ›å€¤å¤‰æ›´æ™‚ä½¿ç”¨ã‚¨ãƒªã‚¢
-        /// </summary>
-        int selectionStart, selectionLength;
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ãƒ�ã‚¤ãƒ³ãƒˆ
-        /// </summary>
-        Point mouseDownPoint = new Point();
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ãƒ‰ãƒ©ãƒƒã‚°ãƒ•ãƒ©ã‚°
-        /// </summary>
-        bool dAndDMoveFlag = false;
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ç§»å‹•ãƒ•ãƒ©ã‚°
-        /// </summary>
-        bool isMoved = false;
-        /// <summary>
-        /// è¦ªã�®ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«
-        /// </summary>
-        private ShapeContainer m_ParentControl = null;
-        /// <summary>
-        /// ãƒ„ãƒ¼ãƒ«ãƒ�ãƒƒãƒ—ã�®æ–‡å­—åˆ—
-        /// </summary>
-        private string m_ToolTipString = string.Empty;
-        /// <summary>
-        /// ã��ã�®ä»–ä¿�ç®¡æ–‡å­—åˆ—
-        /// </summary>
-        private string m_ContinerString = string.Empty;
-        /// <summary>
-        /// ã��ã�®ä»–ä¿�ç®¡ã‚³ãƒ¼ãƒ‰
-        /// </summary>
-        private int m_ContinerCode = 0;
-        
-        /// <summary>
-        /// å¼•ã��å‡ºã�—ç·š
-        /// </summary>
-        private LineShape m_MyLine = null;
-
-        /// <summary>
-        /// ãƒ„ãƒ¼ãƒ«ãƒ�ãƒƒãƒ—
-        /// </summary>
-        private ToolTip m_MyToolTip = null;
-        /// <summary>
-        /// æ��ç”»è‰²
-        /// </summary>
-        private Color m_MyDrowColor = Color.White;
-
-        /// <summary>
-        /// è¦ªã�®ãƒ�ã‚¤ãƒ³ãƒˆ
-        /// </summary>
-        private Point m_ParentPoint = new Point(0, 0);
-        /// <summary>
-        /// è¦ªã�®ã‚µã‚¤ã‚º
-        /// </summary>
-        private Size m_ParentSize = new Size(1, 1);
-
-        /// <summary>
-        /// è‡ªåˆ†ã�®åˆ�æœŸãƒ�ã‚¤ãƒ³ãƒˆ
-        /// </summary>
-        private Point m_MyDrowPoint = new Point(0, 0);
-
-        /// <summary>
-        /// ãƒ•ã‚©ãƒ¼ã‚«ã‚¹ã‚’å�—ã�‘ã�Ÿãƒ•ãƒ©ã‚°
-        /// </summary>
-        private bool m_MyFocusFlg = false;
-        #endregion
-
-        #region ãƒ—ãƒ­ãƒ‘ãƒ†ã‚£
-
-        /// <summary>
-        /// è¦ªã�®ãƒ�ã‚¤ãƒ³ãƒˆ
-        /// </summary>
-        public Point ParentPoint
-        {
-            get { return m_ParentPoint; }
-            set { m_ParentPoint = value; }
-        }
-        /// <summary>
-        /// è¦ªã�®ã‚µã‚¤ã‚º
-        /// </summary>
-        public Size ParentSize
-        {
-            get { return m_ParentSize; }
-            set { m_ParentSize = value; }
-        }
-
-        /// <summary>
-        /// æ��ç”»è‰²
-        /// </summary>
-        public Color DrowColor
-        {
-            get { return m_MyDrowColor; }
-            set { m_MyDrowColor = value; }
-        }
-
-        /// <summary>
-        /// è‡ªåˆ†ã�®åˆ�æœŸãƒ�ã‚¤ãƒ³ãƒˆ
-        /// </summary>
-        public Point StartPoint
-        {
-            get { return m_MyDrowPoint; }
-            set { m_MyDrowPoint = value; }
-        }
-
-        /// <summary>
-        /// ãƒ„ãƒ¼ãƒ«ãƒ�ãƒƒãƒ—ã�®æ–‡å­—åˆ—
-        /// </summary>
-        public string ToolTipString
-        {
-            get { return m_ToolTipString; }
-            set { m_ToolTipString = value; }
-        }
-
-        /// <summary>
-        /// ã��ã�®ä»–ä¿�ç®¡æ–‡å­—åˆ—
-        /// </summary>
-        public string ContinerString
-        {
-            get { return m_ContinerString; }
-            set { m_ContinerString = value; }
-        }
-        /// <summary>
-        /// ã��ã�®ä»–ä¿�ç®¡ã‚³ãƒ¼ãƒ‰
-        /// </summary>
-        public int ContinerCode
-        {
-            get { return m_ContinerCode; }
-            set { m_ContinerCode = value; }
-        }
-
-        /// <summary>
-        /// ãƒ•ã‚©ãƒ¼ã‚«ã‚¹ã‚’å�—ã�‘ã�Ÿãƒ•ãƒ©ã‚°
-        /// </summary>
-        public bool MyFocusFlg
-        {
-            get { return m_MyFocusFlg; }
-            set { m_MyFocusFlg = value; }
-        }
-        #endregion
-
-        #region ã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿
-        /// <summary>
-        /// ã‚³ãƒ³ã‚¹ãƒˆãƒ©ã‚¯ã‚¿
-        /// </summary>
-        /// <param name="ParentPoint">è¡¨ç¤ºå§‹ç‚¹</param>
-        public MoveTextBox()
-            : base()
-        {
-            try
-            {
-                // ã‚µã‚¤ã‚ºå¤‰æ›´ã‚¯ãƒ©ã‚¹åˆ�æœŸåŒ–
-                m_sizeChanger = new DragAndDropSizeChange(this, this, DragAndDropArea.All, 8);
-                // ã‚¤ãƒ™ãƒ³ãƒˆè¿½åŠ 
-                this.DragAndDropMoving += new MoveTextBox.DAndDMovingEventHandler(dAndDMove_DAndDMoving);
-                // ã‚µã‚¤ã‚ºå¤‰æ›´ã�®ã�Ÿã‚�å¸¸ã�«ON
-                this.Multiline = true;
-                // è¦ªã�«é–¢ä¿‚ã�ªã��IMEã‚’ONã�«ã�™ã‚‹
-                this.ImeMode = System.Windows.Forms.ImeMode.On;
-                // è‡ªåˆ†ã‚’æœ€å‰�é�¢ã�¸
-                this.BringToFront();
-            }
-            catch (System.Exception ex)
-            {
-                Console.WriteLine(ex);
-            }
-        }
-        #endregion
-        #region ãƒ‡ã‚¹ãƒˆãƒ©ã‚¯ã‚¿
-        /// <summary>
-        /// ãƒ‡ã‚¹ãƒˆãƒ©ã‚¯ã‚¿
-        /// </summary>
-        protected override void OnHandleDestroyed(EventArgs e)
-        {
-            OnUnloadControl();
-            base.OnHandleDestroyed(e);
-        }
-        #endregion
-
-        #region ãƒžã‚¦ã‚¹ã‚¤ãƒ™ãƒ³ãƒˆå®šç¾©
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ã‚¤ãƒ™ãƒ³ãƒˆå®šç¾©
-        /// </summary>
-        public class DragAndDropMovingEventArgs : MouseEventArgs
-        {
-            public DragAndDropMovingEventArgs(MouseButtons button, int clicks, int x, int y, int delta, bool cancel)
-                : base(button, clicks, x, y, delta)
-            {
-
-                this.Cancel = cancel;
-            }
-            public bool Cancel { set; get; }
-        }
-        #endregion
-
-        #region ã‚¤ãƒ™ãƒ³ãƒˆãƒ�ãƒ³ãƒ‰ãƒ«
-        /// <summary>
-        /// ã‚¤ãƒ™ãƒ³ãƒˆå®šç¾©
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        public delegate void DAndDMovingEventHandler(object sender, DragAndDropMovingEventArgs e);
-        #endregion
-
-        #region ã‚¤ãƒ™ãƒ³ãƒˆã‚¨ãƒªã‚¢
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ã�®å·¦ãƒœã‚¿ãƒ³ã�ŒæŠ¼ä¸‹ã�•ã‚Œã€�ã��ã�®å¾Œã�«Drag&Dropã�•ã‚Œ
-        /// ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ã�Œç§»å‹•ã�•ã‚Œã‚‹ã�¨åˆ¤å®šã�•ã‚Œã�Ÿæ™‚ã�«ç™ºç”Ÿã�—ã�¾ã�™ã€‚
-        /// e.Cancelãƒ—ãƒ­ãƒ‘ãƒ†ã‚£ã�«trueã‚’ã‚»ãƒƒãƒˆã�™ã‚‹ã�¨ç§»å‹•ã‚’ã‚­ãƒ£ãƒ³ã‚»ãƒ«å‡ºæ�¥ã�¾ã�™ã€‚
-        /// </summary>
-        public event DAndDMovingEventHandler DragAndDropMoving;
-        #endregion
-
-        #region ã‚µã‚¤ã‚ºå¤‰æ›´ã‚¨ãƒªã‚¢
-        /// <summary>
-        /// ã‚µã‚¤ã‚ºå¤‰æ›´ã‚¨ãƒªã‚¢
-        /// </summary>
-        private DragAndDropSizeChange m_sizeChanger;
-        #endregion
-
-        #region çµ‚äº†æ™‚å‡¦ç�†
-        /// <summary>
-        /// çµ‚äº†æ™‚å‡¦ç�†
-        /// </summary>
-        private void OnUnloadControl()
-        {
-            try
-            {
-                if (m_MyLine != null)
-                {
-                    m_MyLine.Dispose();
-                    m_ParentControl.Parent.Refresh();
-                }
-                m_MyLine = null;
-            }
-            catch (Exception ex)
-            {
-                Console.WriteLine(ex);
-            }
-        }
-        #endregion
-
-        #region å¼•ã��å‡ºã�—ç·šã‚’å‰�é�¢ã�¸è¡¨ç¤ºã�™ã‚‹
-        /// <summary>
-        /// å¼•ã��å‡ºã�—ç·šã‚’å‰�é�¢ã�¸è¡¨ç¤ºã�™ã‚‹
-        /// </summary>
-        public void MyBringToFront()
-        {
-            try
-            {
-                m_MyLine.Refresh();
-                m_MyLine.BringToFront();
-
-                this.Refresh();
-                this.BringToFront();
-
-            }
-            catch (Exception ex)
-            {
-                Console.WriteLine(ex);
-            }
-        }
-        #endregion
-
-        #region MouseHoverã‚¤ãƒ™ãƒ³ãƒˆ
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ã�Œã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ä¸Šã�¸æ�¥ã�Ÿå ´å�ˆå†�æ��ç”»
-        /// </summary>
-        /// <param name="e"></param>
-        protected override void OnMouseHover(EventArgs e)
-        {
-            // ãƒ™ãƒ¼ã‚¹ã�®å‡¦ç�†
-            base.OnMouseHover(e);
-            // MoveTextBoxå‰�é�¢è¡¨ç¤º
-            MyBringToFront();
-        }
-        #endregion
-
-        #region OnMouseLeaveã‚¤ãƒ™ãƒ³ãƒˆ
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ã�Œã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ã‚ˆã‚ŠåŽ»ã�£ã�Ÿå ´å�ˆ
-        /// </summary>
-        /// <param name="e"></param>
-        protected override void OnMouseLeave(EventArgs e)
-        {
-            // ãƒ„ãƒ¼ãƒ«ãƒ�ãƒƒãƒ—ã�®é�žè¡¨ç¤º
-            m_MyToolTip.Active = false;
-            // ãƒ„ãƒ¼ãƒ«ãƒ�ãƒƒãƒ—ã�®è¡¨ç¤º
-            m_MyToolTip.Active = true;
-
-            base.OnMouseLeave(e);
-        }
-        #endregion
-
-        #region ç·šã‚’æ��ã��
-        /// <summary>
-        /// å¼•ã��å‡ºã�—ç·šã‚’æ��ã��
-        /// </summary>
-        private void DrowLeadLine()
-        {
-            try
-            {
-                // ç·šã‚’æ��ã��
-                m_MyLine = new LineShape();
-                m_MyLine.StartPoint = new Point(m_ParentPoint.X+(m_ParentSize.Width/2),
-                                                m_ParentPoint.Y + (m_ParentSize.Height / 2));
-                m_MyLine.EndPoint = this.Location;
-                m_MyLine.BorderColor = m_MyDrowColor;
-                m_MyLine.BorderWidth = 2;
-                m_ParentControl.Shapes.AddRange(new Shape[] { this.m_MyLine });
-                m_MyLine.BringToFront();
-            }
-            catch (Exception ex)
-            {
-                Console.WriteLine(ex);
-            }
-        }
-        #endregion
-
-        #region OnParentChangedã‚¤ãƒ™ãƒ³ãƒˆ
-        /// <summary>
-        /// ãƒ•ã‚©ãƒ¼ãƒ ã�«ç™»éŒ²ã�•ã‚Œã�Ÿæ™‚ç‚¹ã�®å‡¦ç�†
-        /// </summary>
-        /// <param name="e"></param>
-        protected override void OnParentChanged(EventArgs e)
-        {
-            try
-            {
-                // è¦ªã‚’å�–å¾—ã�™ã‚‹
-                m_ParentControl = (ShapeContainer)this.Parent;
-                
-                // è‡ªã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ã�®ãƒ—ãƒ­ãƒ‘ãƒ†ã‚£
-                this.BackColor = m_MyDrowColor;
-                this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-
-                // è‡ªåˆ†ã�®æ��ç”»ä½�ç½®
-                this.Location = m_MyDrowPoint;
-                if (m_MyDrowPoint.X == 0 && m_MyDrowPoint.Y == 0)
-                {
-                    this.Location = new Point(m_ParentPoint.X + 10, m_ParentPoint.Y + 10);
-                }
-
-                //ToolTipã‚’ä½œæˆ�ã�™ã‚‹
-                m_MyToolTip = new ToolTip();
-                //ToolTipã�®è¨­å®šã‚’è¡Œã�†
-                //ToolTipã�Œè¡¨ç¤ºã�•ã‚Œã‚‹ã�¾ã�§ã�®æ™‚é–“
-                m_MyToolTip.InitialDelay = 1000;
-                //ToolTipã�Œè¡¨ç¤ºã�•ã‚Œã�¦ã�„ã‚‹æ™‚ã�«ã€�åˆ¥ã�®ToolTipã‚’è¡¨ç¤ºã�™ã‚‹ã�¾ã�§ã�®æ™‚é–“
-                m_MyToolTip.ReshowDelay = 1000;
-                //ToolTipã‚’è¡¨ç¤ºã�™ã‚‹æ™‚é–“
-                m_MyToolTip.AutoPopDelay = 10000;
-                //ãƒ•ã‚©ãƒ¼ãƒ ã�Œã‚¢ã‚¯ãƒ†ã‚£ãƒ–ã�§ã�ªã�„æ™‚ã�§ã‚‚ToolTipã‚’è¡¨ç¤ºã�™ã‚‹
-                m_MyToolTip.ShowAlways = true;
-                //ToolTipæ–‡å­—è¨­å®š
-                m_MyToolTip.SetToolTip(this, m_ToolTipString);
-
-                // ç·šã‚’æ��ã��
-                DrowLeadLine();
-            }
-            catch (Exception ex)
-            {
-                Console.WriteLine(ex);
-            }
-        }
-        #endregion
-
-        #region ãƒ•ã‚©ãƒ¼ã‚«ã‚¹ã‚’å�—ã�‘å�–ã‚‹
-        /// <summary>
-        /// ãƒ•ã‚©ãƒ¼ã‚«ã‚¹ã‚’å�—ã�‘å�–ã‚‹
-        /// </summary>
-        /// <param name="e"></param>
-        protected override void OnEnter(EventArgs e)
-        {
-            // ãƒ™ãƒ¼ã‚¹å‡¦ç�†
-            base.OnEnter(e);
-
-            // å‰�é�¢è¡¨ç¤º
-            MyBringToFront();
-            // è¦ªã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«å†�æ��ç”»
-            m_ParentControl.Parent.Refresh();
-
-            foreach (Control wrkCtrl in this.Parent.Controls)
-            {
-                // è‡ªåˆ†ã�¨å�Œã�˜ã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«ã� ã�‘å‡¦ç�†ã�™ã‚‹
-                if (!wrkCtrl.GetType().Equals(typeof(MoveTextBox))) continue;
-                // è‡ªåˆ†ä»¥å¤–ã�¯ãƒ•ãƒ©ã‚°ã‚’Off
-                if (wrkCtrl != this)
-                {
-                    ((MoveTextBox)wrkCtrl).MyFocusFlg = false;
-                    continue;
-                }
-                // è‡ªåˆ†ã�¯ãƒ•ãƒ©ã‚°ã‚’Onã�«ã�™ã‚‹
-                ((MoveTextBox)wrkCtrl).MyFocusFlg = true;
-            }
-        }
-        #endregion
-
-        #region override for WndProc
-        /// <summary>
-        /// WndProcã�®ã‚ªãƒ¼ãƒ�ãƒ¼ãƒ©ã‚¤ãƒ‰
-        /// </summary>
-        /// <param name="m"></param>
-        protected override void WndProc(ref Message m)
-        {
-            switch (m.Msg)
-            {
-                case WM_LBUTTONDOWN:
-                    selectionStart = this.SelectionStart;
-                    selectionLength = this.SelectionLength;
-                    break;
-            }
-
-            base.WndProc(ref m);
-        }
-        #endregion
-
-        #region ãƒžã‚¦ã‚¹ãƒ€ã‚¦ãƒ³
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ãƒ€ã‚¦ãƒ³
-        /// </summary>
-        /// <param name="e"></param>
-        protected override void OnMouseDown(MouseEventArgs e)
-        {
-            try
-            {
-                if (e.Button == MouseButtons.Left)
-                {
-                    // ãƒžã‚¦ã‚¹ã‚¯ãƒªãƒƒã‚¯ãƒ�ã‚¤ãƒ³ãƒˆ
-                    mouseDownPoint = e.Location;
-                    bool flag = true;
-                    int charHeight = this.Font.Height;
-
-                    // ã‚µã‚¤ã‚ºå¤‰æ›´é ˜åŸŸã�®åˆ¤å®š
-                    for (int i = 0; i < this.Lines.Length; i++)
-                    {
-                        Point point = new Point(0, i * charHeight);
-                        Size size = TextRenderer.MeasureText(this.Lines[i], this.Font);
-                        Rectangle rect = new Rectangle(point, size);
-
-                        if (rect.Contains(e.Location))
-                        {
-                            flag = false;
-                            break;
-                        }
-                    }
-
-                    DragAndDropMovingEventArgs args = new DragAndDropMovingEventArgs(e.Button, e.Clicks, e.X, e.Y, e.Delta, false);
-
-                    if (DragAndDropMoving != null && flag)
-                    {
-                        DragAndDropMoving(this, args);
-
-                        if (args.Cancel) flag = false;
-                    }
-
-                    this.dAndDMoveFlag = flag;
-                    this.isMoved = false;
-                }
-
-                base.OnMouseDown(e);
-            }
-            catch (Exception ex)
-            {
-                Console.WriteLine(ex);
-            }
-        }
-        #endregion
-
-        #region ãƒžã‚¦ã‚¹ãƒ ãƒ¼ãƒ–
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ãƒ ãƒ¼ãƒ–
-        /// </summary>
-        /// <param name="e"></param>
-        protected override void OnMouseMove(MouseEventArgs e)
-        {
-            try
-            {
-                if (dAndDMoveFlag)
-                {
-                    //ç§»å‹•å‡¦ç�†
-                    this.Left += e.X - mouseDownPoint.X;
-                    this.Top += e.Y - mouseDownPoint.Y;
-
-                    // ç·šã‚‚å�Œæ™‚ã�«ç§»å‹•ã�™ã‚‹
-                    int LineX = this.Left;
-                    int LineY = this.Top;
-                    LineX += e.X - mouseDownPoint.X;
-                    LineY += e.Y - mouseDownPoint.Y;
-                    m_MyLine.EndPoint = new Point(LineX, LineY);
-
-                    // ç·šã�®å‰�é�¢åŒ–
-                    MyBringToFront();
-                    // è¦ªã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«å†�æ��ç”»
-                    m_ParentControl.Parent.Refresh();
-
-                    isMoved = true;
-                }
-
-                base.OnMouseMove(e);
-            }
-            catch (Exception ex)
-            {
-                Console.WriteLine(ex);
-            }
-        }
-        #endregion
-
-        #region ãƒžã‚¦ã‚¹ã‚¢ãƒƒãƒ—
-        /// <summary>
-        /// ãƒžã‚¦ã‚¹ã‚¢ãƒƒãƒ—
-        /// </summary>
-        /// <param name="mevent"></param>
-        protected override void OnMouseUp(MouseEventArgs mevent)
-        {
-            try
-            {
-                if (dAndDMoveFlag && isMoved)
-                {
-                    this.Select(selectionStart, selectionLength);
-                }
-
-                dAndDMoveFlag = false;
-                isMoved = false;
-
-                if (m_MyLine.EndPoint != this.Location)
-                {
-                    // ç·šã‚‚å�Œæ™‚ã�«ç§»å‹•ã�™ã‚‹
-                    m_MyLine.EndPoint = this.Location;
-
-                    // ç·šã�®å‰�é�¢åŒ–
-                    MyBringToFront();
-                    // è¦ªã‚³ãƒ³ãƒˆãƒ­ãƒ¼ãƒ«å†�æ��ç”»
-                    m_ParentControl.Parent.Refresh();
-                }
-
-                base.OnMouseUp(mevent);
-            }
-            catch (Exception ex)
-            {
-                Console.WriteLine(ex);
-            }
-        }
-        #endregion
-
-        #region ã‚µã‚¤ã‚ºå¤‰æ›´ç¢ºèª�
-        /// <summary>
-        /// ã‚µã‚¤ã‚ºå¤‰æ›´ç¢ºèª�
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void dAndDMove_DAndDMoving(object sender, MoveTextBox.DragAndDropMovingEventArgs e)
-        {
-            e.Cancel = m_sizeChanger.ContainsSizeChangeArea(e.Location);
-        }
-        #endregion
-
-    }
-}
Index: branches/src/ProcessManagement/ProcessManagement/Forms/CustomControls/DataGridViewEX.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/CustomControls/DataGridViewEX.cs	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/CustomControls/DataGridViewEX.cs	(revision 111)
@@ -6,7 +6,7 @@
 using System.Text;
 using System.Windows.Forms;
 
-using Microsoft.VisualBasic.PowerPacks;
+//using Microsoft.VisualBasic.PowerPacks;
 
 //*---------------------------- Šg’£DataGridViewƒR�[ƒh ------------------------*
 //  2015/07/14  Ver1.0.0.0      Create Source           
@@ -60,9 +60,9 @@
         {
             // ƒRƒ�ƒ“ƒg‚ÉƒtƒH�[ƒJƒX‚ª‚ ‚éŽž‚Í�ˆ—�‚µ‚È‚¢
             Form frmParent = FindForm();
-            if (frmParent.ActiveControl.GetType().Equals(typeof(MoveTextBox))
-                || frmParent.ActiveControl.GetType().Equals(typeof(ShapeContainer))
-                || frmParent.ActiveControl.GetType().Equals(typeof(LineShape))) return false;
+            //if (frmParent.ActiveControl.GetType().Equals(typeof(MoveTextBox))
+            //    || frmParent.ActiveControl.GetType().Equals(typeof(ShapeContainer))
+            //    || frmParent.ActiveControl.GetType().Equals(typeof(LineShape))) return false;
          
             //EnterƒL�[‚ª‰Ÿ‚³‚ê‚½Žž‚Í�ATabƒL�[‚ª‰Ÿ‚³‚ê‚½‚æ‚¤‚É‚·‚é
             if ((keyData & Keys.KeyCode) == Keys.Enter)
@@ -85,9 +85,9 @@
         {
             // ƒRƒ�ƒ“ƒg‚ÉƒtƒH�[ƒJƒX‚ª‚ ‚éŽž‚Í�ˆ—�‚µ‚È‚¢
             Form frmParent = FindForm();
-            if (frmParent.ActiveControl.GetType().Equals(typeof(MoveTextBox))
-                || frmParent.ActiveControl.GetType().Equals(typeof(ShapeContainer))
-                || frmParent.ActiveControl.GetType().Equals(typeof(LineShape))) return false;
+            //if (frmParent.ActiveControl.GetType().Equals(typeof(MoveTextBox))
+            //    || frmParent.ActiveControl.GetType().Equals(typeof(ShapeContainer))
+            //    || frmParent.ActiveControl.GetType().Equals(typeof(LineShape))) return false;
 
             //EnterƒL�[‚ª‰Ÿ‚³‚ê‚½Žž‚Í�ATabƒL�[‚ª‰Ÿ‚³‚ê‚½‚æ‚¤‚É‚·‚é
             if (e.KeyCode == Keys.Enter)
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.designer.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.designer.cs	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.designer.cs	(nonexistent)
@@ -1,1227 +0,0 @@
-ï»¿namespace ProcessManagement.Forms.DataEntry
-{
-    partial class FrmConstructionPersonList
-    {
-        /// <summary>
-        /// å¿…è¦�ã�ªãƒ‡ã‚¶ã‚¤ãƒŠå¤‰æ•°ã�§ã�™ã€‚
-        /// </summary>
-        private System.ComponentModel.IContainer components = null;
-
-        /// <summary>
-        /// ä½¿ç”¨ä¸­ã�®ãƒªã‚½ãƒ¼ã‚¹ã‚’ã�™ã�¹ã�¦ã‚¯ãƒªãƒ¼ãƒ³ã‚¢ãƒƒãƒ—ã�—ã�¾ã�™ã€‚
-        /// </summary>
-        /// <param name="disposing">ãƒžãƒ�ãƒ¼ã‚¸ ãƒªã‚½ãƒ¼ã‚¹ã�Œç ´æ£„ã�•ã‚Œã‚‹å ´å�ˆ trueã€�ç ´æ£„ã�•ã‚Œã�ªã�„å ´å�ˆã�¯ false ã�§ã�™ã€‚</param>
-        protected override void Dispose(bool disposing)
-        {
-            if (disposing && (components != null))
-            {
-                components.Dispose();
-            }
-            base.Dispose(disposing);
-        }
-
-        #region Windows ãƒ•ã‚©ãƒ¼ãƒ  ãƒ‡ã‚¶ã‚¤ãƒŠã�§ç”Ÿæˆ�ã�•ã‚Œã�Ÿã‚³ãƒ¼ãƒ‰
-
-        /// <summary>
-        /// ãƒ‡ã‚¶ã‚¤ãƒŠ ã‚µãƒ�ãƒ¼ãƒˆã�«å¿…è¦�ã�ªãƒ¡ã‚½ãƒƒãƒ‰ã�§ã�™ã€‚ã�“ã�®ãƒ¡ã‚½ãƒƒãƒ‰ã�®å†…å®¹ã‚’
-        /// ã‚³ãƒ¼ãƒ‰ ã‚¨ãƒ‡ã‚£ã‚¿ã�§å¤‰æ›´ã�—ã�ªã�„ã�§ã��ã� ã�•ã�„ã€‚
-        /// </summary>
-        private void InitializeComponent()
-        {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = 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();
-            this.btnEnd = new System.Windows.Forms.Button();
-            this.label1 = new System.Windows.Forms.Label();
-            this.groupBox1 = new System.Windows.Forms.GroupBox();
-            this.pnlPayroll = new System.Windows.Forms.Panel();
-            this.label54 = new System.Windows.Forms.Label();
-            this.label55 = new System.Windows.Forms.Label();
-            this.label56 = new System.Windows.Forms.Label();
-            this.label53 = new System.Windows.Forms.Label();
-            this.label52 = new System.Windows.Forms.Label();
-            this.label50 = new System.Windows.Forms.Label();
-            this.label51 = new System.Windows.Forms.Label();
-            this.label48 = new System.Windows.Forms.Label();
-            this.label49 = new System.Windows.Forms.Label();
-            this.label46 = new System.Windows.Forms.Label();
-            this.label47 = new System.Windows.Forms.Label();
-            this.label40 = new System.Windows.Forms.Label();
-            this.label41 = new System.Windows.Forms.Label();
-            this.label42 = new System.Windows.Forms.Label();
-            this.label43 = new System.Windows.Forms.Label();
-            this.label44 = new System.Windows.Forms.Label();
-            this.label45 = new System.Windows.Forms.Label();
-            this.label26 = new System.Windows.Forms.Label();
-            this.label30 = new System.Windows.Forms.Label();
-            this.label33 = new System.Windows.Forms.Label();
-            this.label34 = new System.Windows.Forms.Label();
-            this.label38 = new System.Windows.Forms.Label();
-            this.label39 = new System.Windows.Forms.Label();
-            this.label35 = new System.Windows.Forms.Label();
-            this.label36 = new System.Windows.Forms.Label();
-            this.label37 = new System.Windows.Forms.Label();
-            this.label31 = new System.Windows.Forms.Label();
-            this.label32 = new System.Windows.Forms.Label();
-            this.label28 = new System.Windows.Forms.Label();
-            this.label29 = new System.Windows.Forms.Label();
-            this.label27 = new System.Windows.Forms.Label();
-            this.label24 = new System.Windows.Forms.Label();
-            this.label25 = new System.Windows.Forms.Label();
-            this.label8 = new System.Windows.Forms.Label();
-            this.label23 = new System.Windows.Forms.Label();
-            this.label21 = new System.Windows.Forms.Label();
-            this.label22 = new System.Windows.Forms.Label();
-            this.label20 = new System.Windows.Forms.Label();
-            this.label13 = new System.Windows.Forms.Label();
-            this.label10 = new System.Windows.Forms.Label();
-            this.label16 = new System.Windows.Forms.Label();
-            this.label14 = new System.Windows.Forms.Label();
-            this.label17 = new System.Windows.Forms.Label();
-            this.label15 = new System.Windows.Forms.Label();
-            this.label11 = new System.Windows.Forms.Label();
-            this.label9 = new System.Windows.Forms.Label();
-            this.cmbDepartment = new System.Windows.Forms.ComboBox();
-            this.label5 = new System.Windows.Forms.Label();
-            this.label2 = new System.Windows.Forms.Label();
-            this.numUDConstPro = new System.Windows.Forms.NumericUpDown();
-            this.cmbConstructionPerson = new System.Windows.Forms.ComboBox();
-            this.label3 = new System.Windows.Forms.Label();
-            this.label4 = new System.Windows.Forms.Label();
-            this.label7 = new System.Windows.Forms.Label();
-            this.lblCellTotal = new System.Windows.Forms.Label();
-            this.dgvMaster = new ProcessManagement.Forms.CustomControls.DataGridViewEX();
-            this.ProgressBar = new System.Windows.Forms.ProgressBar();
-            this.Column1 = 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.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.SuspendLayout();
-            this.pnlPayroll.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).BeginInit();
-            this.SuspendLayout();
-            // 
-            // btnEnd
-            // 
-            this.btnEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.btnEnd.BackColor = System.Drawing.Color.Blue;
-            this.btnEnd.ForeColor = System.Drawing.Color.White;
-            this.btnEnd.Location = new System.Drawing.Point(1210, 619);
-            this.btnEnd.Name = "btnEnd";
-            this.btnEnd.Size = new System.Drawing.Size(120, 30);
-            this.btnEnd.TabIndex = 8;
-            this.btnEnd.Text = "çµ‚ã€€äº†";
-            this.btnEnd.UseVisualStyleBackColor = false;
-            this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
-            // 
-            // label1
-            // 
-            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Top;
-            this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
-            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label1.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label1.ForeColor = System.Drawing.Color.Black;
-            this.label1.Location = new System.Drawing.Point(420, 10);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(500, 20);
-            this.label1.TabIndex = 6;
-            this.label1.Text = "æ‹…ã€€å½“ã€€è€…ã€€åˆ¥ã€€å�°ã€€å¸³ã€€ä¸€ã€€è¦§";
-            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // groupBox1
-            // 
-            this.groupBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
-            this.groupBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
-            this.groupBox1.Controls.Add(this.pnlPayroll);
-            this.groupBox1.Controls.Add(this.cmbDepartment);
-            this.groupBox1.Controls.Add(this.label5);
-            this.groupBox1.Controls.Add(this.label2);
-            this.groupBox1.Controls.Add(this.numUDConstPro);
-            this.groupBox1.Controls.Add(this.cmbConstructionPerson);
-            this.groupBox1.Controls.Add(this.label3);
-            this.groupBox1.Controls.Add(this.label4);
-            this.groupBox1.Controls.Add(this.label7);
-            this.groupBox1.ForeColor = System.Drawing.Color.White;
-            this.groupBox1.Location = new System.Drawing.Point(5, 40);
-            this.groupBox1.Name = "groupBox1";
-            this.groupBox1.Size = new System.Drawing.Size(1330, 186);
-            this.groupBox1.TabIndex = 0;
-            this.groupBox1.TabStop = false;
-            // 
-            // pnlPayroll
-            // 
-            this.pnlPayroll.BackColor = System.Drawing.Color.Yellow;
-            this.pnlPayroll.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.pnlPayroll.Controls.Add(this.label54);
-            this.pnlPayroll.Controls.Add(this.label55);
-            this.pnlPayroll.Controls.Add(this.label56);
-            this.pnlPayroll.Controls.Add(this.label53);
-            this.pnlPayroll.Controls.Add(this.label52);
-            this.pnlPayroll.Controls.Add(this.label50);
-            this.pnlPayroll.Controls.Add(this.label51);
-            this.pnlPayroll.Controls.Add(this.label48);
-            this.pnlPayroll.Controls.Add(this.label49);
-            this.pnlPayroll.Controls.Add(this.label46);
-            this.pnlPayroll.Controls.Add(this.label47);
-            this.pnlPayroll.Controls.Add(this.label40);
-            this.pnlPayroll.Controls.Add(this.label41);
-            this.pnlPayroll.Controls.Add(this.label42);
-            this.pnlPayroll.Controls.Add(this.label43);
-            this.pnlPayroll.Controls.Add(this.label44);
-            this.pnlPayroll.Controls.Add(this.label45);
-            this.pnlPayroll.Controls.Add(this.label26);
-            this.pnlPayroll.Controls.Add(this.label30);
-            this.pnlPayroll.Controls.Add(this.label33);
-            this.pnlPayroll.Controls.Add(this.label34);
-            this.pnlPayroll.Controls.Add(this.label38);
-            this.pnlPayroll.Controls.Add(this.label39);
-            this.pnlPayroll.Controls.Add(this.label35);
-            this.pnlPayroll.Controls.Add(this.label36);
-            this.pnlPayroll.Controls.Add(this.label37);
-            this.pnlPayroll.Controls.Add(this.label31);
-            this.pnlPayroll.Controls.Add(this.label32);
-            this.pnlPayroll.Controls.Add(this.label28);
-            this.pnlPayroll.Controls.Add(this.label29);
-            this.pnlPayroll.Controls.Add(this.label27);
-            this.pnlPayroll.Controls.Add(this.label24);
-            this.pnlPayroll.Controls.Add(this.label25);
-            this.pnlPayroll.Controls.Add(this.label8);
-            this.pnlPayroll.Controls.Add(this.label23);
-            this.pnlPayroll.Controls.Add(this.label21);
-            this.pnlPayroll.Controls.Add(this.label22);
-            this.pnlPayroll.Controls.Add(this.label20);
-            this.pnlPayroll.Controls.Add(this.label13);
-            this.pnlPayroll.Controls.Add(this.label10);
-            this.pnlPayroll.Controls.Add(this.label16);
-            this.pnlPayroll.Controls.Add(this.label14);
-            this.pnlPayroll.Controls.Add(this.label17);
-            this.pnlPayroll.Controls.Add(this.label15);
-            this.pnlPayroll.Controls.Add(this.label11);
-            this.pnlPayroll.Controls.Add(this.label9);
-            this.pnlPayroll.Location = new System.Drawing.Point(5, 44);
-            this.pnlPayroll.Name = "pnlPayroll";
-            this.pnlPayroll.Size = new System.Drawing.Size(1320, 136);
-            this.pnlPayroll.TabIndex = 45;
-            this.pnlPayroll.Visible = false;
-            // 
-            // label54
-            // 
-            this.label54.BackColor = System.Drawing.Color.White;
-            this.label54.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label54.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label54.ForeColor = System.Drawing.Color.Black;
-            this.label54.Location = new System.Drawing.Point(1160, 81);
-            this.label54.Name = "label54";
-            this.label54.Size = new System.Drawing.Size(140, 25);
-            this.label54.TabIndex = 85;
-            this.label54.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label55
-            // 
-            this.label55.BackColor = System.Drawing.Color.DodgerBlue;
-            this.label55.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label55.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label55.ForeColor = System.Drawing.Color.Black;
-            this.label55.Location = new System.Drawing.Point(1040, 81);
-            this.label55.Name = "label55";
-            this.label55.Size = new System.Drawing.Size(120, 25);
-            this.label55.TabIndex = 84;
-            this.label55.Text = "äººä»¶è²»å·®é¡�å�ˆè¨ˆ";
-            this.label55.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label56
-            // 
-            this.label56.AutoSize = true;
-            this.label56.BackColor = System.Drawing.Color.Yellow;
-            this.label56.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label56.ForeColor = System.Drawing.Color.Black;
-            this.label56.Location = new System.Drawing.Point(998, 84);
-            this.label56.Name = "label56";
-            this.label56.Size = new System.Drawing.Size(30, 19);
-            this.label56.TabIndex = 83;
-            this.label56.Text = "ï¼�";
-            this.label56.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label53
-            // 
-            this.label53.AutoSize = true;
-            this.label53.BackColor = System.Drawing.Color.Yellow;
-            this.label53.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label53.ForeColor = System.Drawing.Color.Black;
-            this.label53.Location = new System.Drawing.Point(684, 84);
-            this.label53.Name = "label53";
-            this.label53.Size = new System.Drawing.Size(30, 19);
-            this.label53.TabIndex = 82;
-            this.label53.Text = "ï¼‹";
-            this.label53.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label52
-            // 
-            this.label52.AutoSize = true;
-            this.label52.BackColor = System.Drawing.Color.Yellow;
-            this.label52.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label52.ForeColor = System.Drawing.Color.Black;
-            this.label52.Location = new System.Drawing.Point(370, 84);
-            this.label52.Name = "label52";
-            this.label52.Size = new System.Drawing.Size(30, 19);
-            this.label52.TabIndex = 81;
-            this.label52.Text = "ï¼‹";
-            this.label52.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label50
-            // 
-            this.label50.BackColor = System.Drawing.Color.White;
-            this.label50.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label50.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label50.ForeColor = System.Drawing.Color.Black;
-            this.label50.Location = new System.Drawing.Point(846, 81);
-            this.label50.Name = "label50";
-            this.label50.Size = new System.Drawing.Size(140, 25);
-            this.label50.TabIndex = 80;
-            this.label50.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label51
-            // 
-            this.label51.BackColor = System.Drawing.Color.MistyRose;
-            this.label51.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label51.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label51.ForeColor = System.Drawing.Color.Black;
-            this.label51.Location = new System.Drawing.Point(726, 81);
-            this.label51.Name = "label51";
-            this.label51.Size = new System.Drawing.Size(120, 25);
-            this.label51.TabIndex = 79;
-            this.label51.Text = "æŒ‡å°Žå“¡å·®é¡�é‡‘é¡�";
-            this.label51.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label48
-            // 
-            this.label48.BackColor = System.Drawing.Color.White;
-            this.label48.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label48.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label48.ForeColor = System.Drawing.Color.Black;
-            this.label48.Location = new System.Drawing.Point(532, 81);
-            this.label48.Name = "label48";
-            this.label48.Size = new System.Drawing.Size(140, 25);
-            this.label48.TabIndex = 78;
-            this.label48.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label49
-            // 
-            this.label49.BackColor = System.Drawing.Color.Beige;
-            this.label49.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label49.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label49.ForeColor = System.Drawing.Color.Black;
-            this.label49.Location = new System.Drawing.Point(412, 81);
-            this.label49.Name = "label49";
-            this.label49.Size = new System.Drawing.Size(120, 25);
-            this.label49.TabIndex = 77;
-            this.label49.Text = "å‰¯æ‹…å½“è€…å·®é¡�é‡‘é¡�";
-            this.label49.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label46
-            // 
-            this.label46.BackColor = System.Drawing.Color.White;
-            this.label46.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label46.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label46.ForeColor = System.Drawing.Color.Black;
-            this.label46.Location = new System.Drawing.Point(218, 81);
-            this.label46.Name = "label46";
-            this.label46.Size = new System.Drawing.Size(140, 25);
-            this.label46.TabIndex = 76;
-            this.label46.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label47
-            // 
-            this.label47.BackColor = System.Drawing.Color.MediumAquamarine;
-            this.label47.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label47.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label47.ForeColor = System.Drawing.Color.Black;
-            this.label47.Location = new System.Drawing.Point(98, 81);
-            this.label47.Name = "label47";
-            this.label47.Size = new System.Drawing.Size(120, 25);
-            this.label47.TabIndex = 75;
-            this.label47.Text = "æ‹…å½“è€…å·®é¡�é‡‘é¡�";
-            this.label47.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label40
-            // 
-            this.label40.AutoSize = true;
-            this.label40.BackColor = System.Drawing.Color.Yellow;
-            this.label40.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label40.ForeColor = System.Drawing.Color.Black;
-            this.label40.Location = new System.Drawing.Point(370, 59);
-            this.label40.Name = "label40";
-            this.label40.Size = new System.Drawing.Size(30, 19);
-            this.label40.TabIndex = 74;
-            this.label40.Text = "ï¼�";
-            this.label40.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label41
-            // 
-            this.label41.BackColor = System.Drawing.Color.MistyRose;
-            this.label41.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label41.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label41.ForeColor = System.Drawing.Color.Black;
-            this.label41.Location = new System.Drawing.Point(412, 56);
-            this.label41.Name = "label41";
-            this.label41.Size = new System.Drawing.Size(120, 25);
-            this.label41.TabIndex = 72;
-            this.label41.Text = "æŒ‡å°Žå“¡çµŒé�Žçµ¦ä¸Ž";
-            this.label41.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label42
-            // 
-            this.label42.BackColor = System.Drawing.Color.White;
-            this.label42.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label42.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label42.ForeColor = System.Drawing.Color.Black;
-            this.label42.Location = new System.Drawing.Point(532, 56);
-            this.label42.Name = "label42";
-            this.label42.Size = new System.Drawing.Size(140, 25);
-            this.label42.TabIndex = 73;
-            this.label42.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label43
-            // 
-            this.label43.BackColor = System.Drawing.Color.White;
-            this.label43.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label43.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label43.ForeColor = System.Drawing.Color.Black;
-            this.label43.Location = new System.Drawing.Point(846, 56);
-            this.label43.Name = "label43";
-            this.label43.Size = new System.Drawing.Size(140, 25);
-            this.label43.TabIndex = 71;
-            this.label43.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label44
-            // 
-            this.label44.BackColor = System.Drawing.Color.MistyRose;
-            this.label44.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label44.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label44.ForeColor = System.Drawing.Color.Black;
-            this.label44.Location = new System.Drawing.Point(726, 56);
-            this.label44.Name = "label44";
-            this.label44.Size = new System.Drawing.Size(120, 25);
-            this.label44.TabIndex = 70;
-            this.label44.Text = "æŒ‡å°Žå“¡å·®é¡�é‡‘é¡�";
-            this.label44.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label45
-            // 
-            this.label45.AutoSize = true;
-            this.label45.BackColor = System.Drawing.Color.Yellow;
-            this.label45.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label45.ForeColor = System.Drawing.Color.Black;
-            this.label45.Location = new System.Drawing.Point(684, 59);
-            this.label45.Name = "label45";
-            this.label45.Size = new System.Drawing.Size(30, 19);
-            this.label45.TabIndex = 69;
-            this.label45.Text = "ï¼�";
-            this.label45.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label26
-            // 
-            this.label26.AutoSize = true;
-            this.label26.BackColor = System.Drawing.Color.Yellow;
-            this.label26.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label26.ForeColor = System.Drawing.Color.Black;
-            this.label26.Location = new System.Drawing.Point(370, 34);
-            this.label26.Name = "label26";
-            this.label26.Size = new System.Drawing.Size(30, 19);
-            this.label26.TabIndex = 68;
-            this.label26.Text = "ï¼�";
-            this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label30
-            // 
-            this.label30.BackColor = System.Drawing.Color.Beige;
-            this.label30.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label30.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label30.ForeColor = System.Drawing.Color.Black;
-            this.label30.Location = new System.Drawing.Point(412, 31);
-            this.label30.Name = "label30";
-            this.label30.Size = new System.Drawing.Size(120, 25);
-            this.label30.TabIndex = 66;
-            this.label30.Text = "å‰¯æ‹…å½“è€…çµŒé�Žçµ¦ä¸Ž";
-            this.label30.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label33
-            // 
-            this.label33.BackColor = System.Drawing.Color.White;
-            this.label33.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label33.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label33.ForeColor = System.Drawing.Color.Black;
-            this.label33.Location = new System.Drawing.Point(532, 31);
-            this.label33.Name = "label33";
-            this.label33.Size = new System.Drawing.Size(140, 25);
-            this.label33.TabIndex = 67;
-            this.label33.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label34
-            // 
-            this.label34.BackColor = System.Drawing.Color.White;
-            this.label34.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label34.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label34.ForeColor = System.Drawing.Color.Black;
-            this.label34.Location = new System.Drawing.Point(846, 31);
-            this.label34.Name = "label34";
-            this.label34.Size = new System.Drawing.Size(140, 25);
-            this.label34.TabIndex = 65;
-            this.label34.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label38
-            // 
-            this.label38.BackColor = System.Drawing.Color.Beige;
-            this.label38.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label38.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label38.ForeColor = System.Drawing.Color.Black;
-            this.label38.Location = new System.Drawing.Point(726, 31);
-            this.label38.Name = "label38";
-            this.label38.Size = new System.Drawing.Size(120, 25);
-            this.label38.TabIndex = 64;
-            this.label38.Text = "å‰¯æ‹…å½“è€…å·®é¡�é‡‘é¡�";
-            this.label38.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label39
-            // 
-            this.label39.AutoSize = true;
-            this.label39.BackColor = System.Drawing.Color.Yellow;
-            this.label39.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label39.ForeColor = System.Drawing.Color.Black;
-            this.label39.Location = new System.Drawing.Point(684, 34);
-            this.label39.Name = "label39";
-            this.label39.Size = new System.Drawing.Size(30, 19);
-            this.label39.TabIndex = 63;
-            this.label39.Text = "ï¼�";
-            this.label39.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label35
-            // 
-            this.label35.AutoSize = true;
-            this.label35.BackColor = System.Drawing.Color.Yellow;
-            this.label35.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label35.ForeColor = System.Drawing.Color.Black;
-            this.label35.Location = new System.Drawing.Point(370, 9);
-            this.label35.Name = "label35";
-            this.label35.Size = new System.Drawing.Size(30, 19);
-            this.label35.TabIndex = 62;
-            this.label35.Text = "ï¼�";
-            this.label35.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label36
-            // 
-            this.label36.BackColor = System.Drawing.Color.MediumAquamarine;
-            this.label36.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label36.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label36.ForeColor = System.Drawing.Color.Black;
-            this.label36.Location = new System.Drawing.Point(412, 6);
-            this.label36.Name = "label36";
-            this.label36.Size = new System.Drawing.Size(120, 25);
-            this.label36.TabIndex = 60;
-            this.label36.Text = "æ‹…å½“è€…çµŒé�Žçµ¦ä¸Ž";
-            this.label36.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label37
-            // 
-            this.label37.BackColor = System.Drawing.Color.White;
-            this.label37.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label37.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label37.ForeColor = System.Drawing.Color.Black;
-            this.label37.Location = new System.Drawing.Point(532, 6);
-            this.label37.Name = "label37";
-            this.label37.Size = new System.Drawing.Size(140, 25);
-            this.label37.TabIndex = 61;
-            this.label37.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label31
-            // 
-            this.label31.BackColor = System.Drawing.Color.MistyRose;
-            this.label31.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label31.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label31.ForeColor = System.Drawing.Color.Black;
-            this.label31.Location = new System.Drawing.Point(98, 56);
-            this.label31.Name = "label31";
-            this.label31.Size = new System.Drawing.Size(120, 25);
-            this.label31.TabIndex = 55;
-            this.label31.Text = "æŒ‡å°Žå“¡æŒ¯åˆ†çµ¦ä¸Ž";
-            this.label31.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label32
-            // 
-            this.label32.BackColor = System.Drawing.Color.White;
-            this.label32.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label32.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label32.ForeColor = System.Drawing.Color.Black;
-            this.label32.Location = new System.Drawing.Point(218, 56);
-            this.label32.Name = "label32";
-            this.label32.Size = new System.Drawing.Size(140, 25);
-            this.label32.TabIndex = 56;
-            this.label32.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label28
-            // 
-            this.label28.BackColor = System.Drawing.Color.White;
-            this.label28.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label28.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label28.ForeColor = System.Drawing.Color.Black;
-            this.label28.Location = new System.Drawing.Point(846, 6);
-            this.label28.Name = "label28";
-            this.label28.Size = new System.Drawing.Size(140, 25);
-            this.label28.TabIndex = 54;
-            this.label28.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label29
-            // 
-            this.label29.BackColor = System.Drawing.Color.MediumAquamarine;
-            this.label29.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label29.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label29.ForeColor = System.Drawing.Color.Black;
-            this.label29.Location = new System.Drawing.Point(726, 6);
-            this.label29.Name = "label29";
-            this.label29.Size = new System.Drawing.Size(120, 25);
-            this.label29.TabIndex = 53;
-            this.label29.Text = "æ‹…å½“è€…å·®é¡�é‡‘é¡�";
-            this.label29.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label27
-            // 
-            this.label27.AutoSize = true;
-            this.label27.BackColor = System.Drawing.Color.Yellow;
-            this.label27.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label27.ForeColor = System.Drawing.Color.Black;
-            this.label27.Location = new System.Drawing.Point(684, 9);
-            this.label27.Name = "label27";
-            this.label27.Size = new System.Drawing.Size(30, 19);
-            this.label27.TabIndex = 52;
-            this.label27.Text = "ï¼�";
-            this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label24
-            // 
-            this.label24.BackColor = System.Drawing.Color.Beige;
-            this.label24.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label24.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label24.ForeColor = System.Drawing.Color.Black;
-            this.label24.Location = new System.Drawing.Point(98, 31);
-            this.label24.Name = "label24";
-            this.label24.Size = new System.Drawing.Size(120, 25);
-            this.label24.TabIndex = 49;
-            this.label24.Text = "å‰¯æ‹…å½“è€…æŒ¯åˆ†çµ¦ä¸Ž";
-            this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label25
-            // 
-            this.label25.BackColor = System.Drawing.Color.White;
-            this.label25.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label25.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label25.ForeColor = System.Drawing.Color.Black;
-            this.label25.Location = new System.Drawing.Point(218, 31);
-            this.label25.Name = "label25";
-            this.label25.Size = new System.Drawing.Size(140, 25);
-            this.label25.TabIndex = 50;
-            this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label8
-            // 
-            this.label8.BackColor = System.Drawing.Color.White;
-            this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label8.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label8.ForeColor = System.Drawing.Color.Black;
-            this.label8.Location = new System.Drawing.Point(218, 6);
-            this.label8.Name = "label8";
-            this.label8.Size = new System.Drawing.Size(140, 25);
-            this.label8.TabIndex = 48;
-            this.label8.Text = "-999,999,999";
-            this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label23
-            // 
-            this.label23.BackColor = System.Drawing.Color.MediumAquamarine;
-            this.label23.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label23.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label23.ForeColor = System.Drawing.Color.Black;
-            this.label23.Location = new System.Drawing.Point(98, 6);
-            this.label23.Name = "label23";
-            this.label23.Size = new System.Drawing.Size(120, 25);
-            this.label23.TabIndex = 47;
-            this.label23.Text = "æ‹…å½“è€…æŒ¯åˆ†çµ¦ä¸Ž";
-            this.label23.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label21
-            // 
-            this.label21.BackColor = System.Drawing.Color.White;
-            this.label21.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label21.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label21.ForeColor = System.Drawing.Color.Black;
-            this.label21.Location = new System.Drawing.Point(218, 106);
-            this.label21.Name = "label21";
-            this.label21.Size = new System.Drawing.Size(140, 25);
-            this.label21.TabIndex = 46;
-            this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label22
-            // 
-            this.label22.AutoSize = true;
-            this.label22.BackColor = System.Drawing.Color.Yellow;
-            this.label22.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label22.ForeColor = System.Drawing.Color.Black;
-            this.label22.Location = new System.Drawing.Point(370, 109);
-            this.label22.Name = "label22";
-            this.label22.Size = new System.Drawing.Size(30, 19);
-            this.label22.TabIndex = 11;
-            this.label22.Text = "ï¼‹";
-            this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label20
-            // 
-            this.label20.BackColor = System.Drawing.Color.DarkOrange;
-            this.label20.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label20.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label20.ForeColor = System.Drawing.Color.Black;
-            this.label20.Location = new System.Drawing.Point(98, 106);
-            this.label20.Name = "label20";
-            this.label20.Size = new System.Drawing.Size(120, 25);
-            this.label20.TabIndex = 11;
-            this.label20.Text = "æŒ¯åˆ†æ¸ˆåˆ†ç´”åˆ©ç›Š";
-            this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label13
-            // 
-            this.label13.AutoSize = true;
-            this.label13.BackColor = System.Drawing.Color.Yellow;
-            this.label13.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label13.ForeColor = System.Drawing.Color.Black;
-            this.label13.Location = new System.Drawing.Point(998, 109);
-            this.label13.Name = "label13";
-            this.label13.Size = new System.Drawing.Size(30, 19);
-            this.label13.TabIndex = 3;
-            this.label13.Text = "ï¼�";
-            this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label10
-            // 
-            this.label10.AutoSize = true;
-            this.label10.BackColor = System.Drawing.Color.Yellow;
-            this.label10.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label10.ForeColor = System.Drawing.Color.Black;
-            this.label10.Location = new System.Drawing.Point(684, 109);
-            this.label10.Name = "label10";
-            this.label10.Size = new System.Drawing.Size(30, 19);
-            this.label10.TabIndex = 8;
-            this.label10.Text = "ï¼‹";
-            this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label16
-            // 
-            this.label16.BackColor = System.Drawing.Color.White;
-            this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label16.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label16.ForeColor = System.Drawing.Color.Black;
-            this.label16.Location = new System.Drawing.Point(532, 106);
-            this.label16.Name = "label16";
-            this.label16.Size = new System.Drawing.Size(140, 25);
-            this.label16.TabIndex = 7;
-            this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label14
-            // 
-            this.label14.BackColor = System.Drawing.Color.White;
-            this.label14.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label14.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label14.ForeColor = System.Drawing.Color.Black;
-            this.label14.Location = new System.Drawing.Point(1160, 106);
-            this.label14.Name = "label14";
-            this.label14.Size = new System.Drawing.Size(140, 25);
-            this.label14.TabIndex = 5;
-            this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label17
-            // 
-            this.label17.BackColor = System.Drawing.Color.DarkOrange;
-            this.label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label17.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label17.ForeColor = System.Drawing.Color.Black;
-            this.label17.Location = new System.Drawing.Point(412, 106);
-            this.label17.Name = "label17";
-            this.label17.Size = new System.Drawing.Size(120, 25);
-            this.label17.TabIndex = 6;
-            this.label17.Text = "æœªæŒ¯åˆ†ç²—åˆ©ç›Š";
-            this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label15
-            // 
-            this.label15.BackColor = System.Drawing.Color.DarkOrange;
-            this.label15.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label15.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label15.ForeColor = System.Drawing.Color.Black;
-            this.label15.Location = new System.Drawing.Point(1040, 106);
-            this.label15.Name = "label15";
-            this.label15.Size = new System.Drawing.Size(120, 25);
-            this.label15.TabIndex = 4;
-            this.label15.Text = "åˆ©ç›Šé‡‘é¡�";
-            this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label11
-            // 
-            this.label11.BackColor = System.Drawing.Color.White;
-            this.label11.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label11.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label11.ForeColor = System.Drawing.Color.Black;
-            this.label11.Location = new System.Drawing.Point(846, 106);
-            this.label11.Name = "label11";
-            this.label11.Size = new System.Drawing.Size(140, 25);
-            this.label11.TabIndex = 1;
-            this.label11.Text = "-999,999,999";
-            this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
-            // 
-            // label9
-            // 
-            this.label9.BackColor = System.Drawing.Color.DodgerBlue;
-            this.label9.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label9.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label9.ForeColor = System.Drawing.Color.Black;
-            this.label9.Location = new System.Drawing.Point(726, 106);
-            this.label9.Name = "label9";
-            this.label9.Size = new System.Drawing.Size(120, 25);
-            this.label9.TabIndex = 0;
-            this.label9.Text = "äººä»¶è²»å·®é¡�å�ˆè¨ˆ";
-            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // cmbDepartment
-            // 
-            this.cmbDepartment.BackColor = System.Drawing.Color.White;
-            this.cmbDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbDepartment.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbDepartment.FormattingEnabled = true;
-            this.cmbDepartment.Location = new System.Drawing.Point(408, 15);
-            this.cmbDepartment.Name = "cmbDepartment";
-            this.cmbDepartment.Size = new System.Drawing.Size(200, 23);
-            this.cmbDepartment.TabIndex = 1;
-            this.cmbDepartment.SelectedIndexChanged += new System.EventHandler(this.cmbDepartment_SelectedIndexChanged);
-            // 
-            // label5
-            // 
-            this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label5.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label5.ForeColor = System.Drawing.Color.Black;
-            this.label5.Location = new System.Drawing.Point(280, 14);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(120, 25);
-            this.label5.TabIndex = 40;
-            this.label5.Text = "æ‹…å½“éƒ¨ç½²";
-            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label2
-            // 
-            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label2.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label2.ForeColor = System.Drawing.Color.Black;
-            this.label2.Location = new System.Drawing.Point(6, 14);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(120, 25);
-            this.label2.TabIndex = 38;
-            this.label2.Text = "å–¶æ¥­æœŸ";
-            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // numUDConstPro
-            // 
-            this.numUDConstPro.BackColor = System.Drawing.Color.White;
-            this.numUDConstPro.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.numUDConstPro.ForeColor = System.Drawing.Color.Black;
-            this.numUDConstPro.Location = new System.Drawing.Point(159, 15);
-            this.numUDConstPro.Name = "numUDConstPro";
-            this.numUDConstPro.ReadOnly = true;
-            this.numUDConstPro.Size = new System.Drawing.Size(80, 23);
-            this.numUDConstPro.TabIndex = 0;
-            this.numUDConstPro.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.numUDConstPro.ValueChanged += new System.EventHandler(this.numUDConstPro_ValueChanged);
-            // 
-            // cmbConstructionPerson
-            // 
-            this.cmbConstructionPerson.BackColor = System.Drawing.Color.White;
-            this.cmbConstructionPerson.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.cmbConstructionPerson.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
-            this.cmbConstructionPerson.FormattingEnabled = true;
-            this.cmbConstructionPerson.Location = new System.Drawing.Point(752, 15);
-            this.cmbConstructionPerson.Name = "cmbConstructionPerson";
-            this.cmbConstructionPerson.Size = new System.Drawing.Size(200, 23);
-            this.cmbConstructionPerson.TabIndex = 2;
-            this.cmbConstructionPerson.SelectedIndexChanged += new System.EventHandler(this.cmbConstructionPerson_SelectedIndexChanged);
-            // 
-            // label3
-            // 
-            this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            this.label3.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label3.ForeColor = System.Drawing.Color.Black;
-            this.label3.Location = new System.Drawing.Point(624, 14);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(120, 25);
-            this.label3.TabIndex = 4;
-            this.label3.Text = "å·¥äº‹æ‹…å½“è€…";
-            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label4
-            // 
-            this.label4.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label4.ForeColor = System.Drawing.Color.Black;
-            this.label4.Location = new System.Drawing.Point(239, 18);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(25, 16);
-            this.label4.TabIndex = 0;
-            this.label4.Text = "æœŸ";
-            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // label7
-            // 
-            this.label7.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.label7.ForeColor = System.Drawing.Color.Black;
-            this.label7.Location = new System.Drawing.Point(134, 18);
-            this.label7.Name = "label7";
-            this.label7.Size = new System.Drawing.Size(25, 16);
-            this.label7.TabIndex = 0;
-            this.label7.Text = "ç¬¬";
-            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
-            // 
-            // lblCellTotal
-            // 
-            this.lblCellTotal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.lblCellTotal.AutoSize = true;
-            this.lblCellTotal.BackColor = System.Drawing.Color.Black;
-            this.lblCellTotal.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.lblCellTotal.ForeColor = System.Drawing.Color.White;
-            this.lblCellTotal.Location = new System.Drawing.Point(200, 628);
-            this.lblCellTotal.Name = "lblCellTotal";
-            this.lblCellTotal.Size = new System.Drawing.Size(0, 13);
-            this.lblCellTotal.TabIndex = 29;
-            // 
-            // dgvMaster
-            // 
-            this.dgvMaster.AllowUserToAddRows = false;
-            this.dgvMaster.AllowUserToDeleteRows = false;
-            this.dgvMaster.AllowUserToResizeColumns = false;
-            this.dgvMaster.AllowUserToResizeRows = false;
-            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
-            this.dgvMaster.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
-            this.dgvMaster.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.dgvMaster.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
-            this.dgvMaster.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
-            dataGridViewCellStyle2.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvMaster.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
-            this.dgvMaster.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
-            this.dgvMaster.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.Column1,
-            this.Column14,
-            this.Column2,
-            this.Column3,
-            this.Column5,
-            this.Column6,
-            this.Column7,
-            this.Column8,
-            this.Column9,
-            this.Column10,
-            this.Column12});
-            dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Window;
-            dataGridViewCellStyle14.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.ControlText;
-            dataGridViewCellStyle14.SelectionBackColor = System.Drawing.Color.LightSeaGreen;
-            dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvMaster.DefaultCellStyle = dataGridViewCellStyle14;
-            this.dgvMaster.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
-            this.dgvMaster.Location = new System.Drawing.Point(5, 232);
-            this.dgvMaster.Name = "dgvMaster";
-            this.dgvMaster.RowHeadersVisible = false;
-            this.dgvMaster.RowHeadersWidth = 20;
-            this.dgvMaster.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            this.dgvMaster.RowTemplate.Height = 21;
-            this.dgvMaster.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
-            this.dgvMaster.Size = new System.Drawing.Size(1330, 380);
-            this.dgvMaster.TabIndex = 5;
-            this.dgvMaster.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvMaster_CellDoubleClick);
-            this.dgvMaster.SelectionChanged += new System.EventHandler(this.dgvMaster_SelectionChanged);
-            this.dgvMaster.Leave += new System.EventHandler(this.dgvMaster_Leave);
-            this.dgvMaster.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgvMaster_MouseUp);
-            // 
-            // ProgressBar
-            // 
-            this.ProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.ProgressBar.Location = new System.Drawing.Point(5, 619);
-            this.ProgressBar.Name = "ProgressBar";
-            this.ProgressBar.Size = new System.Drawing.Size(388, 30);
-            this.ProgressBar.TabIndex = 30;
-            this.ProgressBar.Visible = false;
-            // 
-            // 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;
-            // 
-            // Column14
-            // 
-            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column14.DefaultCellStyle = dataGridViewCellStyle4;
-            this.Column14.Frozen = true;
-            this.Column14.HeaderText = "éƒ¨ç½²";
-            this.Column14.Name = "Column14";
-            this.Column14.ReadOnly = true;
-            this.Column14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.Column14.Width = 200;
-            // 
-            // Column2
-            // 
-            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column2.DefaultCellStyle = dataGridViewCellStyle5;
-            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 = 200;
-            // 
-            // Column3
-            // 
-            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            this.Column3.DefaultCellStyle = dataGridViewCellStyle6;
-            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;
-            // 
-            // Column5
-            // 
-            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle7.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.Column5.DefaultCellStyle = dataGridViewCellStyle7;
-            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
-            // 
-            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle8.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            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 = 120;
-            // 
-            // Column7
-            // 
-            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle9.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            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 = 120;
-            // 
-            // Column8
-            // 
-            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle10.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            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 = 120;
-            // 
-            // Column9
-            // 
-            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle11.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            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 = 120;
-            // 
-            // Column10
-            // 
-            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle12.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            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 = 120;
-            // 
-            // Column12
-            // 
-            dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
-            dataGridViewCellStyle13.Font = new System.Drawing.Font("ï¼­ï¼³ ï¼°æ˜Žæœ�", 9F, System.Drawing.FontStyle.Bold);
-            this.Column12.DefaultCellStyle = dataGridViewCellStyle13;
-            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 = 120;
-            // 
-            // FrmConstructionPersonList
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
-            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
-            this.BackColor = System.Drawing.Color.Black;
-            this.ClientSize = new System.Drawing.Size(1340, 657);
-            this.Controls.Add(this.ProgressBar);
-            this.Controls.Add(this.lblCellTotal);
-            this.Controls.Add(this.dgvMaster);
-            this.Controls.Add(this.groupBox1);
-            this.Controls.Add(this.label1);
-            this.Controls.Add(this.btnEnd);
-            this.Font = new System.Drawing.Font("ï¼­ï¼³ æ˜Žæœ�", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
-            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
-            this.KeyPreview = true;
-            this.MinimizeBox = false;
-            this.Name = "FrmConstructionPersonList";
-            this.ShowIcon = false;
-            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmConstructionPersonList_FormClosing);
-            this.Load += new System.EventHandler(this.FrmConstructionBaseInfoList_Load);
-            this.SizeChanged += new System.EventHandler(this.FrmConstructionPersonList_SizeChanged);
-            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FrmConstructionPersonList_KeyDown);
-            this.groupBox1.ResumeLayout(false);
-            this.pnlPayroll.ResumeLayout(false);
-            this.pnlPayroll.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.numUDConstPro)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.dgvMaster)).EndInit();
-            this.ResumeLayout(false);
-            this.PerformLayout();
-
-        }
-
-        #endregion
-
-        private System.Windows.Forms.Button btnEnd;
-        private System.Windows.Forms.Label label1;
-        private System.Windows.Forms.GroupBox groupBox1;
-        private System.Windows.Forms.Label label7;
-        private CustomControls.DataGridViewEX dgvMaster;
-        private System.Windows.Forms.ComboBox cmbConstructionPerson;
-        private System.Windows.Forms.Label label3;
-        private System.Windows.Forms.NumericUpDown numUDConstPro;
-        private System.Windows.Forms.Label label4;
-        private System.Windows.Forms.Label label2;
-        private System.Windows.Forms.ComboBox cmbDepartment;
-        private System.Windows.Forms.Label label5;
-        private System.Windows.Forms.Panel pnlPayroll;
-        private System.Windows.Forms.Label label9;
-        private System.Windows.Forms.Label label16;
-        private System.Windows.Forms.Label label17;
-        private System.Windows.Forms.Label label14;
-        private System.Windows.Forms.Label label15;
-        private System.Windows.Forms.Label label13;
-        private System.Windows.Forms.Label label11;
-        private System.Windows.Forms.Label lblCellTotal;
-        private System.Windows.Forms.Label label10;
-        private System.Windows.Forms.Label label21;
-        private System.Windows.Forms.Label label22;
-        private System.Windows.Forms.Label label20;
-        private System.Windows.Forms.ProgressBar ProgressBar;
-        private System.Windows.Forms.Label label35;
-        private System.Windows.Forms.Label label36;
-        private System.Windows.Forms.Label label37;
-        private System.Windows.Forms.Label label31;
-        private System.Windows.Forms.Label label32;
-        private System.Windows.Forms.Label label28;
-        private System.Windows.Forms.Label label29;
-        private System.Windows.Forms.Label label27;
-        private System.Windows.Forms.Label label24;
-        private System.Windows.Forms.Label label25;
-        private System.Windows.Forms.Label label8;
-        private System.Windows.Forms.Label label23;
-        private System.Windows.Forms.Label label54;
-        private System.Windows.Forms.Label label55;
-        private System.Windows.Forms.Label label56;
-        private System.Windows.Forms.Label label53;
-        private System.Windows.Forms.Label label52;
-        private System.Windows.Forms.Label label50;
-        private System.Windows.Forms.Label label51;
-        private System.Windows.Forms.Label label48;
-        private System.Windows.Forms.Label label49;
-        private System.Windows.Forms.Label label46;
-        private System.Windows.Forms.Label label47;
-        private System.Windows.Forms.Label label40;
-        private System.Windows.Forms.Label label41;
-        private System.Windows.Forms.Label label42;
-        private System.Windows.Forms.Label label43;
-        private System.Windows.Forms.Label label44;
-        private System.Windows.Forms.Label label45;
-        private System.Windows.Forms.Label label26;
-        private System.Windows.Forms.Label label30;
-        private System.Windows.Forms.Label label33;
-        private System.Windows.Forms.Label label34;
-        private System.Windows.Forms.Label label38;
-        private System.Windows.Forms.Label label39;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
-        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;
-    }
-}
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.cs	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.cs	(nonexistent)
@@ -1,579 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Text;
-using System.Windows.Forms;
-using System.Collections;
-
-using log4net;
-using log4net.Appender;
-using log4net.Repository.Hierarchy;
-
-using ProcessManagement.Common;
-using ProcessManagement.DB.IOAccess;
-using ProcessManagement.DataModel;
-using ProcessManagement.DB.Core;
-using ProcessManagement.Forms.CustomControls;
-using ProcessManagement.Forms.ControlsAction;
-//*---------------------------- ŒÂ�l�Ú�×‘ä’ ˆê——‰æ–Ê --------------------------*
-//  2016/05/11  Ver1.0.0.0      Create Source           
-//
-//
-//
-//*----------------------------------------------------------------------------*
-namespace ProcessManagement.Forms.DataEntry
-{
-    public partial class FrmConstructionPersonList : Form
-    {
-        #region Žg—p’è‹`
-        //log4netƒ�ƒO‚ðŽg—p‚·‚é
-        private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
-        #endregion
-
-        #region ’è�”
-        #region •\Ž¦ƒJƒ‰ƒ€
-        /// <summary>
-        /// •\Ž¦ƒJƒ‰ƒ€
-        /// </summary>
-        private enum DispColumn
-        {
-            /// <summary>
-            /// ‡‚
-            /// </summary>
-            No = 0,
-            /// <summary>
-            /// �Ïƒtƒ‰ƒO
-            /// </summary>
-            ComplateFlg,
-            /// <summary>
-            /// •”��
-            /// </summary>
-            Department,
-            /// <summary>
-            /// ’S“–ŽÒ–¼
-            /// </summary>
-            PersonName,
-            /// <summary>
-            /// �HŽ–ƒR�[ƒh
-            /// </summary>
-            ConstructionCode,
-            /// <summary>
-            /// �HŽ––¼�Ì
-            /// </summary>
-            ConstructionName,
-            /// <summary>
-            /// �HŽ–�i’»�ó‘Ô
-            /// </summary>
-            ConstructionStatus,
-            /// <summary>
-            /// Žó’�‹àŠz
-            /// </summary>
-            OrdersDecisionPrice,
-            /// <summary>
-            /// ‰ïŽÐŒo”ï
-            /// </summary>
-            CompanyExpenses,
-            /// <summary>
-            /// •”��Œo”ï
-            /// </summary>
-            DepartmentExpenses,
-            /// <summary>
-            /// ‰c‹ÆŒo”ï
-            /// </summary>
-            SalesExpenses,
-            /// <summary>
-            /// ‘�Žx•¥Šz
-            /// </summary>
-            TotalPayment,
-            /// <summary>
-            /// ‘e—˜
-            /// </summary>
-            GrossProfit,
-            /// <summary>
-            /// ‹‹—^
-            /// </summary>
-            Allowance,
-            /// <summary>
-            /// �ƒ—˜‰v
-            /// </summary>
-            NetProfit,
-        }
-        #endregion
-
-        #region �s‘I‘ð�F
-        /// <summary>
-        /// �s‘I‘ð�F
-        /// </summary>
-        private static Color s_RowSelectBackColor = Color.Blue;
-        private static Color s_RowSelectForeColor = Color.White;
-        #endregion
-
-        #region �‡Œv�s�F
-        /// <summary>
-        /// �‡Œv�s�F
-        /// </summary>
-        private static Color s_RowTotalBackColor = Color.Black;
-        private static Color s_RowTotalForeColor = Color.White;
-        #endregion
-
-        #region �sƒ^ƒCƒgƒ‹
-        /// <summary>
-        /// �sƒ^ƒCƒgƒ‹•À‚Ñ�‡
-        /// </summary>
-        private enum RowTitleNum
-        {
-            /// <summary>
-            /// Ž{�H’†�‡Œv�s
-            /// </summary>
-            Execution = 0,
-            /// <summary>
-            /// Š®—¹�Ï‚Ý
-            /// </summary>
-            Completed,
-            /// <summary>
-            /// Œo”ïŒv�s
-            /// </summary>
-            Expenses,
-            /// <summary>
-            /// •â�•�U•ª
-            /// </summary>
-            Auxiliary,
-            /// <summary>
-            /// ‘��‡Œv�s
-            /// </summary>
-            AllTotal,
-        }
-
-        /// <summary>
-        /// �‡Œv�sƒ^ƒCƒgƒ‹
-        /// </summary>
-        private static string[] s_TotalTitleArray = new string[] {  "�–Ž{�@�H�@’†�@�‡�@Œv�–",
-                                                                    "�–Š®�@—¹�@�Ï�@�‡�@Œv�–",
-                                                                    "�–�@Œo�@�@”ï�@�@Œv�@�–",
-                                                                    "�–�U�@•ª�@•â�@�•�@Œv�–",
-                                                                    "�–�–�@‘��@�‡�@Œv�@�–�–",
-                                                                };
-        #endregion
-
-        #region ƒOƒŠƒbƒh�€–Ú�sƒ^ƒCƒgƒ‹
-        /// <summary>
-        /// ƒOƒŠƒbƒh�€–Ú�sƒ^ƒCƒgƒ‹
-        /// </summary>
-        private static string[] s_GroupTitle = new string[] {"•› ’S “– ŽÒ ‹‹ —^"
-                                                            ,"Žw “± ˆõ ‹‹ —^"};
-        #endregion
-        #endregion
-
-        #region •Ï�”
-        /// <summary>
-        /// ƒtƒB�[ƒ‹ƒh’l•Ï‰»ƒtƒ‰ƒO
-        /// </summary>
-        //private bool m_bChengeAns = false;
-
-        /// <summary>
-        /// �‰ŠúŽžƒtƒ‰ƒO
-        /// </summary>
-        private bool m_initDataLoad = true;
-
-        /// <summary>
-        /// �‰Šú“Ç�žŽžƒf�[ƒ^ƒJƒEƒ“ƒg
-        /// </summary>
-        private int m_initDataCount = 0;
-
-        /// <summary>
-        /// ‹N“®ƒtƒ‰ƒO
-        /// </summary>
-        private int m_ExecuteFlg = 0;
-
-        /// <summary>
-        /// ƒf�[ƒ^’Ç‰Áƒ{ƒ^ƒ“•\Ž¦ƒtƒ‰ƒO
-        /// </summary>
-        private bool m_DataAddtionButton = false;
-        /// <summary>
-        /// �I—¹ƒ{ƒ^ƒ“‰Ÿ‰ºƒtƒ‰ƒO
-        /// </summary>
-        private bool m_CloseingProcessOff = false;
-
-        #region ƒOƒŠƒbƒhƒJƒ‰ƒ€ƒTƒCƒY
-        /// <summary>
-        /// ƒOƒŠƒbƒhƒJƒ‰ƒ€ƒTƒCƒY
-        /// </summary>
-        int[] m_CellSize = null;
-        #endregion
-
-        #region ƒtƒH�[ƒ€•�
-        /// <summary>
-        /// ƒtƒH�[ƒ€•�
-        /// </summary>
-        private int m_FormWidthSize = 0;
-        #endregion
-
-        #region ‘�ŒvƒOƒŠƒbƒh•�ƒTƒCƒY
-        /// <summary>
-        /// ‘�ŒvƒOƒŠƒbƒh•�ƒTƒCƒY
-        /// </summary>
-        private int m_GridWidthSize = 0;
-        #endregion
-        #endregion
-
-        #region ƒvƒ�ƒpƒeƒB
-        public int ExecuteFlg
-        {
-            get { return m_ExecuteFlg; }
-            set { m_ExecuteFlg = value; }
-        }
-        /// <summary>
-        /// ƒf�[ƒ^’Ç‰Áƒ{ƒ^ƒ“•\Ž¦
-        /// </summary>
-        public bool DataAddtionButton
-        {
-            get { return m_DataAddtionButton; }
-            set { m_DataAddtionButton = value; }
-        }
-        #endregion
-
-        #region ƒRƒ“ƒXƒgƒ‰ƒNƒ^
-        public FrmConstructionPersonList()
-        {
-            InitializeComponent();
-        }
-        #endregion
-        #region ƒfƒXƒgƒ‰ƒNƒ^
-        ~FrmConstructionPersonList()
-        {
-            try
-            {
-                GC.Collect();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region �~ƒ{ƒ^ƒ“
-        /// <summary>
-        /// �~ƒ{ƒ^ƒ“‰Ÿ‰º�ˆ—�
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmConstructionPersonList_FormClosing(object sender, FormClosingEventArgs e)
-        {
-            if (m_CloseingProcessOff) return;
-
-            // ‘Oƒvƒ�ƒZƒX‚É–ß‚é
-            ClsExcute.BackProcess();
-        }
-        #endregion
-
-        #region �I—¹ƒ{ƒ^ƒ“
-        /// <summary>
-        /// �I—¹ƒ{ƒ^ƒ“ƒNƒŠƒbƒN
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnEnd_Click(object sender, EventArgs e)
-        {
-            // ‘Oƒvƒ�ƒZƒX‚É–ß‚é
-            ClsExcute.BackProcess();
-
-            m_CloseingProcessOff = true;
-            
-            this.Close();
-        }
-        #endregion
-
-        #region ‘I‘ðƒ{ƒ^ƒ“
-        /// <summary>
-        /// �HŽ–‘I‘ðƒ{ƒ^ƒ“‰Ÿ‰º
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnDataSelect_Click(object sender, EventArgs e)
-        {
-            // ƒf�[ƒ^‚ª‚È‚¢�ê�‡‚Í”²‚¯‚é
-            if (dgvMaster.RowCount == 0) return;
-            if (CommonMotions.chkCellBlank(dgvMaster.CurrentRow.Cells[(int)DispColumn.ConstructionName].Value)) return;
-
-            // Še�ˆ—�‹N“®
-            SubProcessExecute(CommonMotions.cnvIntFromStringCode(dgvMaster.CurrentRow.Cells[(int)DispColumn.ConstructionCode].Value.ToString(), "-"));
-        }
-        #endregion
-
-        #region ƒtƒH�[ƒ€ƒ��[ƒh
-        /// <summary>
-        /// �‰ŠúƒtƒH�[ƒ€ƒ��[ƒh
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmConstructionBaseInfoList_Load(object sender, EventArgs e)
-        {
-
-            // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
-            InitcmbDepartment();
-            InitcmbPersons();
-            // ƒRƒ“ƒ{ƒ{ƒbƒNƒXƒZƒbƒg
-            m_initDataLoad = true;
-            SetcmbDepartment();
-            m_initDataLoad = true;
-            SetcmbPersons();
-
-            // ƒOƒŠƒbƒh�‰Šú�Ý’è
-            SetDisplayObject();
-
-            // �‰Šú•\Ž¦
-            InitDataLoad();
-
-            m_initDataLoad = false;
-        }
-        #endregion
-
-        #region ƒZƒ‹ƒ_ƒuƒ‹ƒNƒŠƒbƒN
-        /// <summary>
-        /// ƒZƒ‹ƒ_ƒuƒ‹ƒNƒŠƒbƒN
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void dgvMaster_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
-        {
-            if (e.RowIndex < 0) return;
-
-            DataGridView dgv = dgvMaster;
-            DataGridViewRow CurRow = dgv.CurrentRow;
-
-            // ƒf�[ƒ^‚ª‚È‚¢�ê�‡‚Í”²‚¯‚é
-            if (dgv.RowCount == 0) return;
-            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionCode].Value)) return;
-            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionName].Value)) return;
-            // –¾�×�sˆÈŠO‚Í�ˆ—�‚µ‚È‚¢
-            string strCode = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.ConstructionCode].Value);
-            if (CommonMotions.cnvInt(strCode.Replace("-", "")) == 0) return;
-
-            // Še�ˆ—�‹N“®
-            SubProcessExecute(CommonMotions.cnvIntFromStringCode(CurRow.Cells[(int)DispColumn.ConstructionCode].Value.ToString(), "-"));
-        }
-        #endregion
-
-        #region EntryƒL�[‚Å‚ÌˆÚ“®�ˆ—�
-        /// <summary>
-        /// EntryƒL�[‚Å‚ÌˆÚ“®�ˆ—�
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmConstructionPersonList_KeyDown(object sender, KeyEventArgs e)
-        {
-            //EnterƒL�[‚ª‰Ÿ‚³‚ê‚Ä‚¢‚é‚©Šm”F
-            //Alt‚©CtrlƒL�[‚ª‰Ÿ‚³‚ê‚Ä‚¢‚éŽž‚Í–³Ž‹‚·‚é
-            if ((e.KeyCode == Keys.Enter) && !e.Alt && !e.Control)
-            {
-                //‚ ‚½‚©‚àTabƒL�[‚ª‰Ÿ‚³‚ê‚½‚©‚Ì‚æ‚¤‚É‚·‚é
-                //Shift‚ª‰Ÿ‚³‚ê‚Ä‚¢‚éŽž‚Í‘O‚ÌƒRƒ“ƒgƒ��[ƒ‹‚ÌƒtƒH�[ƒJƒX‚ðˆÚ“®
-                this.ProcessTabKey(!e.Shift);
-
-                e.Handled = true;
-                //.NET Framework 2.0ˆÈ�~
-                e.SuppressKeyPress = true;
-            }
-        }
-        #endregion
-
-        #region ƒf�[ƒ^ƒRƒs�[
-        /// <summary>
-        /// ƒf�[ƒ^ƒRƒs�[‹@”\
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void btnDataCopy_Click(object sender, EventArgs e)
-        {
-            // ŽŸ‹N“®ƒvƒ�ƒZƒXƒZƒbƒg
-            int NowPoint = ClsExcute.NextProcess((int)ClsExcute.ProcessExecuteNo.ConstructionCopyList);
-            // Š®—¹�HŽ–ˆê——
-            ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(0);
-
-            // ƒNƒ��[ƒY�ˆ—�‚ðOFF‚É‚·‚é�B
-            m_CloseingProcessOff = true;
-            // ‰æ–ÊƒNƒ��[ƒY
-            this.Close();
-        }
-        #endregion
-
-        #region ‰c‹ÆŠúƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
-        /// <summary>
-        /// ‰c‹ÆŠú•Ï�X
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void numUDConstPro_ValueChanged(object sender, EventArgs e)
-        {
-            if (m_initDataLoad) return;
-            // ƒf�[ƒ^•\Ž¦
-            DataDisplay();
-        }
-        #endregion
-
-        #region ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
-        /// <summary>
-        /// ’S“–ŽÒ•Ï�X
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void cmbConstructionPerson_SelectedIndexChanged(object sender, EventArgs e)
-        {
-            if (m_initDataLoad) return;
-
-            // ’S“–ŽÒ‘I‘ðŽž•”��‘I‘ð‚ð�Ý’è‚·‚é
-            SetPerosonToDepartment();
-
-            // ƒf�[ƒ^•\Ž¦
-            DataDisplay();
-        }
-        #endregion
-
-        #region •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
-        /// <summary>
-        /// •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void cmbDepartment_SelectedIndexChanged(object sender, EventArgs e)
-        {
-            if (m_initDataLoad) return;
-            
-            // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX•Ï�X
-            SetcmbPersons();
-
-            // ƒf�[ƒ^•\Ž¦
-            DataDisplay();
-        }
-        #endregion
-
-        #region ƒtƒH�[ƒ€ƒTƒCƒY•Ï�X
-        /// <summary>
-        /// ƒtƒH�[ƒ€ƒTƒCƒY•Ï�X
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void FrmConstructionPersonList_SizeChanged(object sender, EventArgs e)
-        {
-            if (this.WindowState == FormWindowState.Minimized)
-            {
-                // �Å�¬‰»
-            }
-            else if (this.WindowState == FormWindowState.Maximized)
-            {
-                // �Å‘å‰»
-                CellSizeChangesWhenChangingScreenSize(false);
-            }
-            else if (this.WindowState == FormWindowState.Normal)
-            {
-                // •W�€‰»
-                CellSizeChangesWhenChangingScreenSize(true);
-            }
-        }
-        #endregion
-
-        #region ƒOƒŠƒbƒhƒ}ƒEƒXƒAƒbƒv
-        /// <summary>
-        /// ƒOƒŠƒbƒhƒ}ƒEƒXƒAƒbƒv
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void dgvMaster_MouseUp(object sender, MouseEventArgs e)
-        {
-            try
-            {
-                DataGridView dgv = (DataGridView)sender;
-
-                lblCellTotal.Text = string.Empty;
-
-                double dTotal = 0;
-                int DataCnt = 0;
-                int NumericCnt = 0;
-                foreach (DataGridViewCell c in dgv.SelectedCells)
-                {
-                    if (CommonMotions.chkObjectIsNull(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex])) continue;
-                    if (CommonMotions.chkCellBlank(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) continue;
-
-                    Console.WriteLine("{0}, {1}", c.ColumnIndex, c.RowIndex);
-                    DataCnt++;
-                    dTotal += CommonMotions.cnvDouble(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value);
-                    if (CommonMotions.chkNumeric(dgv.Rows[c.RowIndex].Cells[c.ColumnIndex].Value)) NumericCnt++;
-                }
-                if (DataCnt <= 1 || dTotal == 0 || NumericCnt == 0) return;
-                string strTotal = CommonMotions.cnvTruncate(dTotal).ToString("#,#");
-                if (dTotal - System.Math.Floor(dTotal) != 0) strTotal = dTotal.ToString("#,#.00");
-
-                string strwrkData = string.Format(CommonDefine.s_CalculateCellFormat,
-                                                    CommonMotions.cnvTruncate(dTotal / (double)NumericCnt).ToString("#,#"),
-                                                    DataCnt.ToString("#,#"),
-                                                    strTotal);
-                lblCellTotal.Text = strwrkData;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        // ƒZƒ‹‘I‘ð�s
-        int m_BeforeGridRow = -1;
-        #region ƒZƒ‹‘I‘ð•Ï�X
-        /// <summary>
-        /// ƒZƒ‹•Ï�XŽž�s‚Ì�F‚ð•Ï‚¦‚é
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void dgvMaster_SelectionChanged(object sender, EventArgs e)
-        {
-            DataGridView dgv = dgvMaster;
-            DataGridViewRow CurRow = dgv.CurrentRow;
-
-            // ƒf�[ƒ^‚ª‚È‚¢�ê�‡‚Í”²‚¯‚é
-            if (dgv.RowCount == 0) return;
-            if (CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionCode].Value) &&
-                CommonMotions.chkCellBlank(CurRow.Cells[(int)DispColumn.ConstructionName].Value))
-            {
-                return;
-            }
-            else
-            {
-                // �‡Œv�s‚Í�ˆ—�‚µ‚È‚¢
-                string strWork = CommonMotions.cnvString(CurRow.Cells[(int)DispColumn.ConstructionName].Value);
-                bool bTitle = false;
-                foreach (string strTitle in s_TotalTitleArray)
-                {
-                    if (strWork.Equals(strTitle))
-                    {
-                        bTitle = true;
-                        break;
-                    }
-                }
-                if (bTitle) return;
-            }
-            // �s‘I‘ð�F‚ðŒ³‚É–ß‚·
-            if (m_BeforeGridRow >= 0) DefaultRowChangeColor(m_BeforeGridRow);
-
-            // ‘I‘ð�s�”‚ð‘Þ”ð
-            m_BeforeGridRow = dgv.CurrentRow.Index;
-            // �s‘I‘ð�F‚ð�Ý’è
-            SelectRowChangeColor(m_BeforeGridRow);
-        }
-        #endregion
-
-        #region ƒOƒŠƒbƒh‚©‚çƒtƒH�[ƒJƒX‚ªŠO‚ê‚½�ê�‡
-        /// <summary>
-        /// ƒOƒŠƒbƒh‚©‚çƒtƒH�[ƒJƒX‚ªŠO‚ê‚½�ê�‡
-        /// </summary>
-        /// <param name="sender"></param>
-        /// <param name="e"></param>
-        private void dgvMaster_Leave(object sender, EventArgs e)
-        {
-            lblCellTotal.Text = string.Empty;
-        }
-        #endregion
-    }
-}
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonListAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonListAuxiliary.cs	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonListAuxiliary.cs	(nonexistent)
@@ -1,1719 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-using System.Collections;
-using System.Diagnostics;
-using System.Threading;
-
-using log4net;
-using log4net.Appender;
-using log4net.Repository.Hierarchy;
-
-using ProcessManagement.Common;
-using ProcessManagement.DB.IOAccess;
-using ProcessManagement.DataModel;
-using ProcessManagement.DB.Core;
-using ProcessManagement.Forms.CustomControls;
-using ProcessManagement.Forms.ControlsAction;
-//*---------------------------- �HŽ–�Ú�×‘ä’ ˆê——‰æ–Ê --------------------------*
-//  2016/05/11  Ver1.0.0.0      Create Source           
-//
-//
-//
-//*----------------------------------------------------------------------------*
-namespace ProcessManagement.Forms.DataEntry
-{
-    partial class FrmConstructionPersonList
-    {
-        #region ’è�”
-        private const string StaticSQL1 = "SELECT A.ConstructionCode, A.ConstructionPeriod, B.DetailString, A.SalesPersonCode, A.ConstructionPersonCode, A.ConstructionStatusFlg ";
-        private const string StaticSQL2 = "From ConstructionBaseInfo A, ConstructionBaseInfoDetail B";
-        #endregion
-
-        #region •Ï�”
-        #endregion
-
-        #region ƒvƒ�ƒpƒeƒB
-        #endregion
-
-        #region •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
-        /// <summary>
-        /// •\Ž¦ƒIƒuƒWƒFƒNƒg‚ÌŽæ“¾
-        /// </summary>
-        private void SetDisplayObject()
-        {
-            // ƒtƒH�[ƒ€ƒTƒCƒYŽæ“¾
-            m_FormWidthSize = this.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[wrkCell.Index] = wrkCell.Width;
-            }
-        }
-        #endregion
-
-        #region ŽŸƒvƒ�ƒZƒX‹N“®
-        /// <summary>
-        /// �HŽ–ˆê——‚æ‚è‹N“®‚·‚éƒvƒ�ƒZƒX‘I‘ð�ˆ—�
-        /// </summary>
-        /// <param name="para_ConstructionCode"></param>
-        private void SubProcessExecute(int para_ConstructionCode = 0)
-        {
-            try
-            {
-                int NowPoint = ClsExcute.GetNowProcessPoint();
-                // Œ»�Ý�Ý’è’lƒNƒŠƒA
-                ClsExcute.ClearSaveParameter(NowPoint);
-                // ----- ‰æ–Ê�î•ñ‘Þ”ð
-                // ŒŸ�õ”N
-                ClsExcute.ProcControlPara[NowPoint].StringSaveParameter.Add(numUDConstPro.Value.ToString());
-                // ŒŸ�õ•”��
-                ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(cmbDepartment.SelectedIndex);
-                // ŒŸ�õ’S“–ŽÒ
-                ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add(cmbConstructionPerson.SelectedIndex);
-                // ƒ\�[ƒg�ó‘Ô
-                if (dgvMaster.SortedColumn != null)
-                {
-                    ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add((int)dgvMaster.SortedColumn.Index);
-                    ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Add((int)dgvMaster.SortOrder);
-                }
-
-                // ŽŸ‹N“®ƒvƒ�ƒZƒXƒZƒbƒg
-                NowPoint = ClsExcute.NextProcess((int)(int)ClsExcute.ProcessExecuteNo.ConstructionLedger);
-                // ‘I‘ð�HŽ–”Ô�†ƒZƒbƒg
-                ClsExcute.ProcControlPara[NowPoint].IntExecParameter.Add(para_ConstructionCode);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // ƒNƒ��[ƒY�ˆ—�‚ðOFF‚É‚·‚é�B
-                m_CloseingProcessOff = true;
-                // ‰æ–ÊƒNƒ��[ƒY
-                this.Close();
-            }
-        }
-        #endregion
-
-        #region ŒŸ�õSQL‚ÌƒZƒLƒ…ƒŠƒeƒB”»’è•”•ª‚ð�ì�¬‚·‚é
-        /// <summary>
-        /// ŒŸ�õSQL‚ÌƒZƒLƒ…ƒŠƒeƒB”»’è•”•ª‚ð�ì�¬‚·‚é
-        /// </summary>
-        /// <param name="strSQL"></param>
-        private void CreateSecuritySQL(ref List<string> strSecurity)
-        {
-            string strSQL1 = string.Empty;
-            string strSQL2 = string.Empty;
-            try
-            {
-                // ‘�–±•”�Š‘®ŽÒ‚Íƒf�[ƒ^ŽQ�Æ�o—ˆ‚é�ˆ—�‚ª‚ ‚é
-                if (ClsSecurityPermission.PermitGeneralAffairsDevision(m_ExecuteFlg)) return;
-
-                // ƒVƒXƒeƒ€Œ ŒÀ‚É‚æ‚Á‚Äƒf�[ƒ^ƒAƒNƒZƒX‚É�§ŒÀ‚ª‚ ‚é
-                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement)
-                {
-                    // ƒVƒXƒeƒ€ŠÇ—�ŽÒ�i‚·‚×‚Ä‘Î�Û�j
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key)
-                {
-                    // �Å�‚‹@–§ŠÇ—�ŽÒ�i‚·‚×‚Ä‘Î�Û�j
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
-                {
-                    // “�Š‡‹@–§ŠÇ—�ŽÒ�i‹@”\�§ŒÀ�j
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
-                {
-                    // ‹@–§ŠÇ—�ŽÒ�iŽ©•”��‚Ì‚Ý�j
-                    strSQL1 = string.Format(" AND C.DepartmentCode = {0}", CommonMotions.LoginUserData.DepartmentCode);
-                    strSQL2 = string.Format(" AND (A.CREATORCODE = C.PERSONCODE AND C.DEPARTMENTCODE = {0})", CommonMotions.LoginUserData.DepartmentCode);
-                    strSecurity.Add(strSQL1);
-                    strSecurity.Add(strSQL2);
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
-                {
-                    // ˆê”ÊŽg—pŽÒ�iŽ©ƒf�[ƒ^‚Ì‚Ý�j
-                    //strSQL1 = string.Format(" AND C.PERSONCODE = {0}", CommonMotions.LoginUserData.PersonCode);
-                    strSQL1 = string.Format(" AND (A.CONSTRUCTIONPERSONCODE = {0} OR A.CONSTRUCTIONINSTRUCTOR = {0})"
-                                                                        , CommonMotions.LoginUserData.PersonCode);
-                    //strSQL2 = string.Format(" AND (A.CREATORCODE = C.PERSONCODE AND C.DEPARTMENTCODE = {0})", CommonMotions.LoginUserData.DepartmentCode);
-                    strSQL2 = " AND A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE";
-                    strSQL2 += string.Format(" AND (D.CONSTRUCTIONPERSONCODE = {0} OR D.CONSTRUCTIONINSTRUCTOR = {0} OR D.CONSTRSUBPERSONCODE = {0})"
-                                                                        , CommonMotions.LoginUserData.PersonCode);
-                    strSecurity.Add(strSQL1);
-                    strSecurity.Add(strSQL2);
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}�F{2}", ex.Message, strSQL1, strSQL2);
-            }
-        }
-        #endregion
-
-        #region •”��ƒRƒ“ƒ{‚æ‚è’S“–ŽÒƒR�[ƒh‚ðŽæ“¾‚·‚é
-        /// <summary>
-        /// •”��ƒRƒ“ƒ{‚æ‚è’S“–ŽÒƒR�[ƒh‚ðŽæ“¾‚·‚é
-        /// </summary>
-        /// <returns></returns>
-        private int GetDepartmentCode()
-        {
-            try
-            {
-                // •\Ž¦‚³‚ê‚Ä‚¢‚È‚¢�ê�‡‚Í‘I‘ð–³
-                //if (!cmbDepartment.Visible) return 0;
-
-                return CommonMotions.cnvInt(cmbDepartment.SelectedValue);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}", ex.Message);
-                return 0;
-            }
-        }
-        #endregion
-
-        #region ’S“–ŽÒƒRƒ“ƒ{‚æ‚è’S“–ŽÒƒR�[ƒh‚ðŽæ“¾‚·‚é
-        /// <summary>
-        /// ’S“–ŽÒƒRƒ“ƒ{‚æ‚è’S“–ŽÒƒR�[ƒh‚ðŽæ“¾‚·‚é
-        /// </summary>
-        /// <returns></returns>
-        private int GetConstructionPersonCode()
-        {
-            try
-            {
-                // •\Ž¦‚³‚ê‚Ä‚¢‚È‚¢�ê�‡‚Í‘I‘ð–³
-                //if (!cmbConstructionPerson.Visible) return 0;
-
-                return CommonMotions.cnvInt(cmbConstructionPerson.SelectedValue);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}", ex.Message);
-                return 0;
-            }
-        }
-        #endregion
-
-        #region ‚c‚aŽæ“¾�‡”Ô
-        /// <summary>
-        /// ‚c‚aŽæ“¾�‡”Ô
-        /// </summary>
-        private enum DBGetData
-        {
-            ConstructionCode,
-            CreatorCode,
-            CreatorName,
-            DetailString,
-            OrdersDecisionPrice,
-            CompanyExpenses,
-            DepartmentExpenses,
-            SalesExpenses,
-            TotalPayment,
-            GrossProfit,
-            Allowance,
-            NetProfit,
-            ComplateFlg,
-            DepartmentDisplayOrder,
-            PoersonDisplayOrder,
-            DepartmentCode,
-            DepartmentString,
-            ConstructionStatusflg
-        }
-        #endregion
-
-        #region ƒf�[ƒ^Žæ“¾SQL�ì�¬
-        /// <summary>
-        /// •\Ž¦—pƒf�[ƒ^Žæ“¾SQL�ì�¬
-        /// </summary>
-        private void CreateInitSQL(ref string strSQL)
-        {
-            try
-            {
-                // SQL‚ÉƒAƒNƒZƒX�§ŒÀ‚ð‚©‚¯‚é
-                List<string> strSecurity = new List<string>();
-                CreateSecuritySQL(ref strSecurity);
-
-                // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX’lŽæ“¾
-                int DepartmentCode = GetDepartmentCode();
-                // ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX’lŽæ“¾
-                int PersonCode = GetConstructionPersonCode();
-
-                int NotOrder = CommonDefine.ProjectsStatus.First(x => x.Value.Equals("”ñ Žó ’�")).Key;
-                // ----- ‚r‚p‚k�ì�¬
-                // ‘¶�Ý�Ú�×‘ä’ ƒf�[ƒ^ŒŸ�õ
-                //strSQL += " UNION";
-                strSQL = " SELECT A.CONSTRUCTIONCODE, A.CREATORCODE, A.CREATORNAME, B.DETAILSTRING, A.ORDERSDECISIONPRICE, A.COMPANYEXPENSES,";
-                strSQL += " A.DEPARTMENTEXPENSES, A.SALESEXPENSES, A.TOTALPAYMENT, A.GROSSPROFIT, A.ALLOWANCE, A.NETPROFIT, A.COMPLATEFLG,";
-                strSQL += " E.DISPLAYORDER, C.DISPLAYORDER, C.DEPARTMENTCODE, E.DepartmentString, F.CONSTRUCTIONSTATUSFLG";
-                strSQL += " FROM CONSTRUCTIONLEDGER A, CONSTRUCTIONBASEINFODETAIL B, PERSONINCHARGEMASTER C, CONSTRUCTIONBASEINFO D,";
-                strSQL += " DEPARTMENTMASTER E, CONSTRUCTIONBASEINFO F";
-                strSQL += " WHERE A.CONSTRUCTIONCODE = D.CONSTRUCTIONCODE";
-                strSQL += string.Format(" AND (A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE AND B.DETAILNO = {0})", (int)ConstructionBaseInfoDetail.DetailDataNo.ConstructionName);
-                strSQL += string.Format(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
-                strSQL += " AND D.CONSTRUCTIONPERSONCODE = C.PERSONCODE";
-                strSQL += " AND C.DEPARTMENTCODE = E.DEPARTMENTCODE";
-                strSQL += " AND A.CONSTRUCTIONCODE = F.CONSTRUCTIONCODE";
-                strSQL += string.Format(" AND D.CONSTRUCTIONSTATUSFLG != {0}", NotOrder);
-                strSQL += " AND A.CREATORCODE = C.PERSONCODE";
-                if (strSecurity.Count > 0) strSQL += strSecurity[1];
-                if (DepartmentCode != 0) strSQL += string.Format(" AND C.DEPARTMENTCODE = {0}", DepartmentCode);
-                if (PersonCode != 0)
-                {
-                    strSQL += string.Format(" AND (D.CONSTRUCTIONPERSONCODE = {0} OR D.CONSTRUCTIONINSTRUCTOR = {0} OR D.CONSTRSUBPERSONCODE = {0})", PersonCode);
-                }
-
-                strSQL += string.Format(" 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));
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", ex.Message, strSQL);
-            }
-        }
-        #endregion
-
-        #region ƒOƒŠƒbƒh�sƒf�[ƒ^ƒZƒbƒg
-        /// <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)
-        {
-            try
-            {
-                int diffCount = (int)DispColumn.OrdersDecisionPrice - (int)DBGetData.OrdersDecisionPrice;
-
-                // “ü—ÍŠ®—¹‚Íƒtƒ‰ƒO‚ðŽg‚¤
-                string FlgString = string.Empty;
-                if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) == 1) FlgString = "�Ï";
-
-                // ƒXƒe�[ƒ^ƒXƒtƒ‰ƒO‚ªˆá‚¦‚Î1�sŠJ‚¯‚é
-                if (StatusFlg != CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionStatusflg]))
-                {
-                    StatusFlg = CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionStatusflg]);
-                    if (!initFlg) dgvMaster.Rows.Add(1);
-                    initFlg = false;
-                }
-                string strStatus = CommonDefine.ProjectsStatus[CommonMotions.cnvInt(objwrk[(int)DBGetData.ConstructionStatusflg])];
-                dgvMaster.Rows.Add((ino++)
-                                    , FlgString
-                                    , CommonMotions.cnvString(objwrk[(int)DBGetData.DepartmentString])
-                                    , objwrk[(int)DBGetData.CreatorName].ToString()
-                                    , 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++)
-                {
-                    TotalArea[i] += CommonMotions.cnvInt(objwrk[i - diffCount]);
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}", ex.Message);
-            }
-        }
-        #endregion
-
-        #region ƒf�[ƒ^•\Ž¦�ˆ—�
-        /// <summary>
-        /// ˆê——ƒf�[ƒ^•\Ž¦�ˆ—�
-        /// </summary>
-        private void DataDisplay()
-        {
-            IOConstructionLedger LedgerDB = new IOConstructionLedger();
-            DataGridView dgv = dgvMaster;
-            ProgressBar prgber = ProgressBar;
-            try
-            {
-                dgv.SuspendLayout();
-
-                dgv.Rows.Clear();
-                pnlPayroll.Visible = false;
-
-                // Šú‚ÌƒZƒbƒg
-                prgber.Visible = true;
-                prgber.Minimum = 0;
-                prgber.Maximum = 10;
-                prgber.Value = 0;
-
-                string strSQL = "";
-                // SQL�ì�¬
-                CreateInitSQL(ref strSQL);
-
-                ArrayList arData = new ArrayList();
-                string FlgString = string.Empty;
-                // �HŽ–�Ú�×‘ä’ Žæ“¾
-                if (!LedgerDB.ExecuteReader(strSQL, ref arData)) return;
-
-                // “Ç�žŽžƒf�[ƒ^ƒJƒEƒ“ƒgŽæ“¾
-                m_initDataCount = arData.Count;
-                if (arData.Count == 0) return;
-
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value ++;
-                prgber.Update();
-
-                // �‡ŒvƒGƒŠƒA
-                int TotalColCnt = Enum.GetNames(typeof(DispColumn)).Length;
-                int[] TotalArea = new int[TotalColCnt];
-                Array.Clear(TotalArea, 0, TotalArea.Length);
-
-                // ƒf�[ƒ^•\Ž¦
-                int ino = 1;
-                int StatusFlg = -1;
-                bool initFlg = true;
-                string strStatus = string.Empty;
-                // ----- Ž{�H’†ƒf�[ƒ^•\Ž¦
-                foreach (object[] objwrk in arData)
-                {
-                    // “ü—ÍŠ®—¹‚Í•\Ž¦‚µ‚È‚¢
-                    if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) == 1) break;
-
-                    // ƒOƒŠƒbƒh‚Öƒf�[ƒ^•\Ž¦
-                    GridDataSet(objwrk, ref ino, ref TotalArea, ref initFlg, ref StatusFlg);
-                }
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
-
-                // ----- �‡Œv•\Ž¦
-                if (arData.Count != 0)
-                {
-                    dgv.Rows.Add();       // ‹ó�s
-
-                    // �‡Œv�s•\Ž¦
-                    int TotalRow = dgv.Rows.Add(1);
-                    dgv.Rows[TotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Execution];
-                    // �s‚Ì�F‚ð•Ï‚¦‚é
-                    SetRowColor(dgv.Rows[TotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
-
-                    // �”’l•\Ž¦
-                    for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
-                    {
-                        dgv.Rows[TotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
-                    }
-                    dgv.Rows.Add();       // ‹ó�s
-                }
-
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
-
-                // ----- �Ïƒf�[ƒ^•\Ž¦
-                bool bRowPrint = false;
-                int[] ComplateTotalArea = new int[TotalColCnt];
-                Array.Clear(ComplateTotalArea, 0, ComplateTotalArea.Length);
-                foreach (object[] objwrk in arData)
-                {
-                    // “ü—ÍŠ®—¹ˆÈŠO‚Í•\Ž¦‚µ‚È‚¢
-                    if (CommonMotions.cnvInt(objwrk[(int)DBGetData.ComplateFlg]) != 1) continue;
-
-                    // ƒOƒŠƒbƒh‚Öƒf�[ƒ^•\Ž¦
-                    GridDataSet(objwrk, ref ino, ref ComplateTotalArea, ref initFlg, ref StatusFlg);
-                    bRowPrint = true;
-                }
-                // �‡Œv‚ð‘��‡Œv‚É‘«‚·
-                for (int i = 0; i < ComplateTotalArea.Length;i++ )
-                {
-                    TotalArea[i] += ComplateTotalArea[i];
-                }
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
-
-                // �Ïƒf�[ƒ^‚ª‚ ‚ê‚Î•\Ž¦
-                if (bRowPrint)
-                {
-                    dgv.Rows.Add();       // ‹ó�s
-                    int CompTotalRow = dgv.Rows.Add(1);
-                    dgv.Rows[CompTotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Completed];
-                    // �s‚Ì�F‚ð•Ï‚¦‚é
-                    SetRowColor(dgv.Rows[CompTotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
-                    // �”’l•\Ž¦
-                    for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
-                    {
-                        dgv.Rows[CompTotalRow].Cells[i].Value = ComplateTotalArea[i].ToString("#,0");
-                    }
-                }
-                dgv.Rows.Add();       // ‹ó�s
-
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
-
-                // ----- Œo”ï‚ð•\Ž¦‚·‚é
-                int Expenses = SetOtherCost();
-
-                dgv.Rows.Add();       // ‹ó�s
-
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
-
-                // ------ •â�•�U•ª‚ð•\Ž¦‚·‚é
-                int Auxiliary = SetAuxiliaryCost();
-
-                dgv.Rows.Add();       // ‹ó�s
-
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
-
-                // Œo”ï�^•â�•�U•ª‚ðŽx•¥Šz‚Ö‘«‚µ‚Ä�A—˜‰v‚æ‚èˆø‚­
-                TotalArea[(int)DispColumn.TotalPayment] += Expenses;
-                TotalArea[(int)DispColumn.GrossProfit] -= Expenses;
-                TotalArea[(int)DispColumn.NetProfit] -= Expenses;
-                
-                // ----- ‘��‡Œv�s•\Ž¦
-                int AllTotalRow = dgv.Rows.Add(1);
-                dgv.Rows[AllTotalRow].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.AllTotal];
-                
-                // �s‚Ì�F‚ð•Ï‚¦‚é
-                SetRowColor(dgv.Rows[AllTotalRow], s_RowTotalBackColor, s_RowTotalForeColor);
-
-                // �”’l•\Ž¦
-                for (int i = (int)DispColumn.OrdersDecisionPrice; i <= (int)DispColumn.NetProfit; i++)
-                {
-                    dgv.Rows[AllTotalRow].Cells[i].Value = TotalArea[i].ToString("#,0");
-                }
-
-                dgv.Rows.Add();       // ‹ó�s
-
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
-
-                // ’S“–ŽÒ‚ð�i‚è�ž‚ñ‚¾Žž‚É–{�l‚©�ã’·‚ÍŒo‰ß‹‹—^‚ªŒ©‚¦‚é�iƒwƒbƒ_�[‚É•\Ž¦�j
-                SetPayrollData();
-
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value++;
-                prgber.Update();
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                // ƒf�[ƒ^‚ª‘½‚­‚È‚ê‚Îƒ\�[ƒg‚Å‚«‚é
-                if (CommonDefine.s_MaxInitLineCount < dgv.RowCount)
-                {
-                    foreach (DataGridViewColumn wrkCol in dgv.Columns)
-                        wrkCol.SortMode = DataGridViewColumnSortMode.Automatic;
-                }
-                else
-                {
-                    dgv.RowCount += (CommonDefine.s_MaxInitLineCount - m_initDataCount);
-                }
-
-                LedgerDB.close(); LedgerDB = null;
-                dgv.ResumeLayout();
-
-                // ProgressBar‚Ì’l‚ð•Ï�X‚·‚é
-                prgber.Value = prgber.Maximum;
-                prgber.Update();
-                prgber.Visible = false;
-            }
-        }
-        #endregion
-
-        #region �‰ŠúŽžƒf�[ƒ^Žæ“¾
-        /// <summary>
-        /// �‰ŠúŽžƒf�[ƒ^Žæ“¾
-        /// </summary>
-        private void InitDataLoad()
-        {
-            try
-            {
-                m_initDataLoad = true;
-                // ƒf�[ƒ^‚É‚ ‚éŽ–‹ÆŠú‚ÆŒ»�Ý‚ÌŽ–‹ÆƒZƒbƒg
-                int minval = 0;
-                int maxval = 0;
-                CommonMotions.GetPeriodYear(ref minval, ref maxval);
-                numUDConstPro.Minimum = minval;
-                numUDConstPro.Maximum = maxval;
-                numUDConstPro.Value = CommonMotions.SystemMasterData.BusinessPeriod;
-                m_initDataLoad = false;
-
-                // ----- ‘Þ”ðŒŸ�õƒf�[ƒ^‚ª‚ ‚Á‚½�ê�‡‚ÍƒZƒbƒg‚·‚é
-                int NowPoint = ClsExcute.GetNowProcessPoint();
-                if (ClsExcute.ProcControlPara[NowPoint].StringSaveParameter.Count > 0)
-                {
-                    // ”N“x
-                    numUDConstPro.Value = CommonMotions.cnvInt(ClsExcute.ProcControlPara[NowPoint].StringSaveParameter[0]);
-                }
-                // •”��’S“–ŽÒ
-                if (ClsExcute.ProcControlPara[NowPoint].IntSaveParameter.Count > 0)
-                {
-                    cmbDepartment.SelectedIndex = ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[0];
-                    cmbConstructionPerson.SelectedIndex = ClsExcute.ProcControlPara[NowPoint].IntSaveParameter[1];
-                }
-
-                // ˆê”ÊŽg—pŽÒ‚Í‹‹—^‚Ì—“‚ªŒ©‚¦‚È‚¢‚æ‚¤‚É‚·‚é
-                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
-                {
-                    dgvMaster.Columns[(int)DispColumn.Allowance].Visible = false;
-                    m_CellSize[(int)DispColumn.Allowance] = 0;
-                }
-
-                // ƒf�[ƒ^•\Ž¦
-                DataDisplay();
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
-        /// <summary>
-        /// •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
-        /// </summary>
-        private void InitcmbDepartment()
-        {
-            try
-            {
-                // ƒVƒXƒeƒ€Œ ŒÀ‚É‚æ‚Á‚Äƒf�[ƒ^ƒAƒNƒZƒX‚É�§ŒÀ‚ª‚ ‚é
-                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement
-                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key
-                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
-                {
-                    // ƒVƒXƒeƒ€ŠÇ—�ŽÒ
-                    // �Å�‚‹@–§ŠÇ—�ŽÒ
-                    // “�Š‡‹@–§ŠÇ—�ŽÒ
-                    // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
-                {
-                    // �Š‘®’·
-                    // •”��ƒRƒ“ƒ{”ñ•\Ž¦
-                    label5.Visible = false;
-                    cmbDepartment.Visible = false;
-                    label3.Location = label5.Location;
-                    cmbConstructionPerson.Location = cmbDepartment.Location;
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
-                {
-                    // ˆê”ÊŽg—pŽÒ�iŽ©•ª‚Ì‚ÝƒAƒNƒZƒX‰Â”\�j
-                    // •”���E’S“–ŽÒƒRƒ“ƒ{”ñ•\Ž¦
-                    label5.Visible = false;
-                    cmbDepartment.Visible = false;
-                    label3.Visible = false;
-                    cmbConstructionPerson.Visible = false;
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚ðƒZƒbƒg‚·‚é
-        /// <summary>
-        /// •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•¶Žš‚ðƒZƒbƒg‚·‚é
-        /// </summary>
-        private bool SetcmbDepartment()
-        {
-            IOMDepartment depDB = new IOMDepartment();
-            List<DepartmentMaster> workList = new List<DepartmentMaster>();
-            try
-            {
-                m_initDataLoad = true;
-
-                cmbDepartment.DataSource = null;
-                cmbDepartment.Items.Clear();
-                cmbDepartment.Text = "";
-
-                string strSQL = string.Empty;
-                // ƒVƒXƒeƒ€Œ ŒÀ‚É‚æ‚Á‚Äƒf�[ƒ^ƒAƒNƒZƒX‚É�§ŒÀ‚ª‚ ‚é
-                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement
-                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key
-                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
-                {
-                    // ƒVƒXƒeƒ€ŠÇ—�ŽÒ
-                    // �Å�‚‹@–§ŠÇ—�ŽÒ
-                    // “�Š‡‹@–§ŠÇ—�ŽÒ
-                    // •”��ƒ}ƒXƒ^‚ðŒŸ�õ‚·‚é
-                    strSQL = " Where DeleteFlg = 0 Order By DisplayOrder ASC";
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
-                {
-                    // �Š‘®’·
-                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By DisplayOrder ASC", CommonMotions.LoginUserData.DepartmentCode);
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
-                {
-                    // ˆê”ÊŽg—pŽÒ�iŽ©•ª‚Ì‚ÝƒAƒNƒZƒX‰Â”\�j
-                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By DisplayOrder ASC", CommonMotions.LoginUserData.DepartmentCode);
-                }
-
-                // •”��ƒ}ƒXƒ^“Ç�ž
-                if (!depDB.SelectAction(strSQL, ref workList)) return false;
-
-                List<KeyValuePair<int, string>> ConstructionDataList = new List<KeyValuePair<int, string>>();
-                ConstructionDataList.Add(new KeyValuePair<int, string>(0, ""));
-
-                foreach (DepartmentMaster work in workList)
-                {
-                    KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(work.DepartmentCode, work.DepartmentString);
-
-                    ConstructionDataList.Add(keyval);
-                }
-
-                // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
-                ComboBoxAction.InitDataSetCombBox(cmbDepartment, ConstructionDataList);
-
-                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key ||
-                    CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
-                {
-                    // �Š‘®’·
-                    // ˆê”ÊŽg—pŽÒ�iŽ©•ª‚Ì‚ÝƒAƒNƒZƒX‰Â”\�j
-                    cmbDepartment.SelectedValue = CommonMotions.LoginUserData.DepartmentCode;
-                }
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                depDB.close(); depDB = null;
-                m_initDataLoad = false;
-            }
-        }
-        #endregion
-
-        #region ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
-        /// <summary>
-        /// ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
-        /// </summary>
-        private void InitcmbPersons()
-        {
-            try
-            {
-                // ƒVƒXƒeƒ€Œ ŒÀ‚É‚æ‚Á‚Äƒf�[ƒ^ƒAƒNƒZƒX‚É�§ŒÀ‚ª‚ ‚é
-                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement
-                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key
-                || CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key)
-                {
-                    // ƒVƒXƒeƒ€ŠÇ—�ŽÒ
-                    // �Å�‚‹@–§ŠÇ—�ŽÒ
-                    // “�Š‡‹@–§ŠÇ—�ŽÒ
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key)
-                {
-                    // �Š‘®’·
-                    // •”��ƒRƒ“ƒ{”ñ•\Ž¦
-                    label5.Visible = false;
-                    cmbDepartment.Visible = false;
-                    label3.Location = label5.Location;
-                    cmbConstructionPerson.Location = cmbDepartment.Location;
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
-                {
-                    // ˆê”ÊŽg—pŽÒ�iŽ©•ª‚Ì‚ÝƒAƒNƒZƒX‰Â”\�j
-                    // •”���E’S“–ŽÒƒRƒ“ƒ{”ñ•\Ž¦
-                    label5.Visible = false;
-                    cmbDepartment.Visible = false;
-                    label3.Visible = false;
-                    cmbConstructionPerson.Visible = false;
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX‚ðƒZƒbƒg‚·‚é
-        /// <summary>
-        /// ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•¶Žš‚ðƒZƒbƒg‚·‚é
-        /// </summary>
-        private bool SetcmbPersons()
-        {
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
-            List<PersonInChargeMaster> workList = new List<PersonInChargeMaster>();
-            try
-            {
-                m_initDataLoad = true;
-                cmbConstructionPerson.DataSource = null;
-                cmbConstructionPerson.Items.Clear();
-                cmbConstructionPerson.Text = "";
-
-                string strSQL = string.Empty;
-                int DepartmentCode = GetDepartmentCode();
-                if (DepartmentCode == 0)
-                    strSQL = " WHERE DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC";
-                else
-                    strSQL = string.Format(" WHERE DEPARTMENTCODE = {0} AND DeleteFlg = 0 Order By EmployeeClassFlg ASC, DisplayOrder ASC", DepartmentCode);
-
-                // ’S“–ŽÒƒ}ƒXƒ^“Ç�ž
-                if (!picDB.SelectAction(strSQL, ref workList)) return false;
-
-                List<KeyValuePair<int, string>> ConstructionDataList = new List<KeyValuePair<int, string>>();
-                ConstructionDataList.Add(new KeyValuePair<int, string>(0, ""));
-
-                foreach (PersonInChargeMaster work in workList)
-                {
-                    KeyValuePair<int, string> keyval = new KeyValuePair<int, string>(work.PersonCode, work.PersonName);
-
-                    ConstructionDataList.Add(keyval);
-                }
-
-                // ƒRƒ“ƒ{ƒ{ƒbƒNƒX�‰Šú•\Ž¦
-                ComboBoxAction.InitDataSetCombBox(cmbConstructionPerson, ConstructionDataList);
-
-                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.UserAuthority].Key)
-                {
-                    cmbConstructionPerson.SelectedValue = CommonMotions.LoginUserData.PersonCode;
-                }
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                picDB.close(); picDB = null;
-                m_initDataLoad = false;
-            }
-        }
-        #endregion
-
-        #region ‰æ–ÊƒTƒCƒY•Ï�XŽž‚ÌƒZƒ‹ƒTƒCƒY•Ï�X
-        /// <summary>
-        /// ‰æ–ÊƒTƒCƒY•Ï�XŽž‚ÌƒZƒ‹ƒTƒCƒY•Ï�X
-        /// </summary>
-        private void CellSizeChangesWhenChangingScreenSize(bool bNormal)
-        {
-            try
-            {
-                DataGridView dgv = dgvMaster;
-                int idifference = 0;
-                // �Å‘å‰»‚Ì�ê�‡
-                if (!bNormal)
-                {
-                    // ƒJƒ‰ƒ€‚ÌƒTƒCƒY‚ð‹�‚ß‚é
-                    int ColumnCount = 0;
-                    int TotalWidth = 0;
-                    int NotVisibleSize = 0;
-                    for (int i = 0; i < m_CellSize.Length; i++)
-                    {
-                        TotalWidth += m_CellSize[i];
-                        if (dgv.Columns[i].Visible)
-                        {
-                            ColumnCount++;
-                        }
-                        else
-                        {
-                            NotVisibleSize += m_CellSize[i];
-                        }
-                    }
-
-                    // ‘å‚«‚­‚È‚Á‚½ƒTƒCƒY
-                    //int formdiff = (dgv.Width - (m_GridWidthSize - NotVisibleSize));
-                    int formdiff = (dgv.Width - m_GridWidthSize);
-
-                    idifference = formdiff / ColumnCount;
-                }
-
-                for (int i = 0; i < dgv.ColumnCount; i++)
-                {
-                    DataGridViewColumn wrkCol = dgv.Columns[i];
-                    wrkCol.Width = m_CellSize[i] + idifference;
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒXƒZƒbƒgŽž•”��‚ðƒZƒbƒg‚·‚é
-        /// <summary>
-        /// ’S“–ŽÒƒRƒ“ƒ{ƒ{ƒbƒNƒXƒZƒbƒgŽž•”��‚ðƒZƒbƒg‚·‚é
-        /// </summary>
-        /// <returns></returns>
-        private bool SetPerosonToDepartment()
-        {
-            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
-            try
-            {
-                // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
-                int PersonCode = GetConstructionPersonCode();
-                if (PersonCode < 1) return false;
-
-                int DepartmentCode = GetDepartmentCode();
-
-                string strSQL = PersonDB.CreatePrimarykeyString(PersonCode);
-                PersonInChargeMaster PersonRec = new PersonInChargeMaster();
-                PersonDB.SelectAction(strSQL, ref PersonRec);
-
-                // •”��ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚Ö•”��ƒR�[ƒhƒZƒbƒg
-                if (PersonRec.DepartmentCode > 0 && DepartmentCode != PersonRec.DepartmentCode)
-                {
-                    m_initDataLoad = true;
-                    cmbDepartment.SelectedValue = PersonRec.DepartmentCode;
-                    m_initDataLoad = false;
-                }
-
-                return true;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                PersonDB.close(); PersonDB = null;
-            }
-        }
-        #endregion
-
-        #region ‹‹—^ƒGƒŠƒAƒNƒŠƒA
-        /// <summary>
-        /// ‹‹—^ƒGƒŠƒAƒNƒŠƒA
-        /// </summary>
-        private void ClearSalary()
-        {
-            //lblPayroll.Text = "";
-            label11.Text = "";
-            label14.Text = "";
-            label16.Text = "";
-            label21.Text = "";
-        }
-        #endregion
-
-        #region �s�F�Ý’è
-        /// <summary>
-        /// �s‚ð‘I‘ð�F‚É‚·‚é
-        /// </summary>
-        /// <param name="CurrentRow"></param>
-        private void SetRowColor(DataGridViewRow CurRow, Color BackColor, Color ForeColor)
-        {
-            try
-            {
-                DataGridView dgv = dgvMaster;
-
-                // �s‚Ì�F‚ð•Ï‚¦‚é
-                for (int i = 0; i < dgv.ColumnCount; i++)
-                {
-                    CurRow.Cells[i].Style.BackColor = BackColor;
-                    CurRow.Cells[i].Style.ForeColor = ForeColor;
-                }
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
-        #region �s‘I‘ð�F
-        /// <summary>
-        /// �s‚ð‘I‘ð�F‚É‚·‚é
-        /// </summary>
-        /// <param name="CurrentRow"></param>
-        private void SelectRowChangeColor(int CurrentRow)
-        {
-            try
-            {
-                DataGridView dgv = dgvMaster;
-                DataGridViewRow CurRow = dgv.Rows[CurrentRow];
-
-                // �s‚Ì�F‚ð•Ï‚¦‚é
-                SetRowColor(CurRow, s_RowSelectBackColor, s_RowSelectForeColor);
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-
-        }
-        #endregion
-
-        #region �sƒfƒtƒHƒ‹ƒg�F
-        /// <summary>
-        /// �s‚ðƒfƒtƒHƒ‹ƒg�F‚É‚·‚é
-        /// </summary>
-        /// <param name="BeforeGridRow"></param>
-        private void DefaultRowChangeColor(int CurrentRow)
-        {
-            try
-            {
-                DataGridView dgv = dgvMaster;
-                DataGridViewRow CurRow = dgv.Rows[CurrentRow];
-
-                Color SetBackColor = Color.White;
-                Color SetForeColor = Color.Black;
-
-                if ((CurrentRow % 2) != 0)
-                {
-                    SetBackColor = dgv.AlternatingRowsDefaultCellStyle.BackColor;
-                    SetForeColor = dgv.AlternatingRowsDefaultCellStyle.ForeColor;
-                }
-                else
-                {
-                    SetBackColor = dgv.RowsDefaultCellStyle.BackColor;
-                    SetForeColor = dgv.RowsDefaultCellStyle.ForeColor;
-                }
-                // �s‚Ì�F‚ð•Ï‚¦‚é
-                // �s‚Ì�F‚ð•Ï‚¦‚é
-                SetRowColor(CurRow, SetBackColor, SetForeColor);
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region ƒfƒtƒHƒ‹ƒg‚ÌŠúŽñ“ú�EŠú––“ú‚ð‹�‚ß‚é
-        /// <summary>
-        /// ƒfƒtƒHƒ‹ƒg‚ÌŠúŽñ“ú�EŠú––“ú‚ð‹�‚ß‚é
-        /// </summary>
-        /// <param name="dtStart"></param>
-        /// <param name="dtEnd"></param>
-        private void CreateDefaultStartAndEndDate(ref DateTime dtStart,ref DateTime dtEnd)
-        {
-            try
-            {
-                // “–ŠúŠúŽñ”NŒŽ“ú‚ðŽæ“¾
-                int iYear = 0;
-                int month = 0;
-                int day = 0;
-                bool bPeriod = true;
-                if (CommonMotions.SystemMasterData.ConstructionNoBase == (int)CommonDefine.SystemConstructionNoBase.BusinessPeriod)
-                {   // ‰c‹ÆŠú
-                    iYear = CommonMotions.PeriodCountToYear(CommonMotions.cnvInt(numUDConstPro.Value));
-                    bPeriod = true;
-                }
-                CommonMotions.GetBeginningMonthDay(bPeriod, ref month, ref day);
-                dtStart = new DateTime(iYear, month, day);
-                dtEnd = dtStart.AddYears(1).AddDays(-1);     // �I—¹‚Í�{1”N�|1“ú
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region �HŽ–�î•ñ‚æ‚è‚ÌŠúŽñ“ú�EŠú––“ú‚ð‹�‚ß‚é
-        /// <summary>
-        /// �HŽ–�î•ñ‚æ‚è‚ÌŠúŽñ“ú�EŠú––“ú‚ð‹�‚ß‚é
-        /// </summary>
-        /// <param name="dtStart"></param>
-        /// <param name="dtEnd"></param>
-        private void CreateConstStartAndEndDate(ref DateTime dtStart, ref DateTime dtEnd, int PersonCode = 0)
-        {
-            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
-            try
-            {
-                string strSQL = "SELECT MIN(B.CONSTRUCTIONPERIODSTART) ,MAX(B.CONSTRUCTIONPERIODEND)";
-                strSQL += " FROM CONSTRUCTIONLEDGER A, CONSTRUCTIONBASEINFO B";
-                strSQL += " WHERE A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
-                strSQL += string.Format(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
-                if (PersonCode != 0) strSQL += string.Format(" AND B.CONSTRSUBPERSONCODE = {0}", PersonCode);
-                //strSQL += " AND TO_CHAR(B.CONSTRUCTIONPERIODSTART,'YYYY/MM/DD') != '0001/01/01'";
-                //strSQL += " AND TO_CHAR(B.CONSTRUCTIONPERIODEND,'YYYY/MM/DD') != '0001/01/01'";
-                strSQL += " AND DATE_FORMAT(B.CONSTRUCTIONPERIODSTART,'%Y/%m/%d') != '0001/01/01'";
-                strSQL += " AND DATE_FORMAT(B.CONSTRUCTIONPERIODEND,'%Y/%m/%d') != '0001/01/01'";
-                ArrayList arList = new ArrayList();
-                if (!BaseDB.ExecuteReader(strSQL, ref arList)) return;
-
-                object[] objList = (object[])arList[0];
-
-                dtStart = CommonMotions.cnvDate(objList[0]);
-                dtEnd = CommonMotions.cnvDate(objList[2]);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                BaseDB.close(); BaseDB = null;
-            }
-        }
-        #endregion
-
-        #region �HŽ–‚É‘®‚µ‚Ä‚¢‚È‚¢Œo”ï‚ð•\Ž¦‚·‚é
-        /// <summary>
-        /// �HŽ–‚É‘®‚µ‚Ä‚¢‚È‚¢Œo”ï‚ð•\Ž¦‚·‚é
-        /// </summary>
-        private int SetOtherCost()
-        {
-            try
-            {
-                // •”��ƒR�[ƒhŽæ“¾
-                int DepartmentCode = GetDepartmentCode();
-                // ’S“–ŽÒƒR�[ƒhŽæ“¾
-                int PersonCode = GetConstructionPersonCode();
-
-                // “–ŠúŠúŽñ“ú�EŠú––“ú‚ðŽæ“¾
-                DateTime dtDefaultStart = DateTime.MinValue;
-                DateTime dtDefaultEnd = DateTime.MinValue;
-                CreateDefaultStartAndEndDate(ref dtDefaultStart, ref dtDefaultEnd);
-
-                int ArrayCount = Common.CommonDefine.CostDataNoString.Length;
-                int[] CostValue = new int[ArrayCount];
-                // •\Ž¦ƒGƒŠƒAƒNƒŠƒA
-                Array.Clear(CostValue, 0, CostValue.Length);
-
-                // ’S“–ŽÒ‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚ê‚Î’S“–ŽÒ�AˆÈŠO‚Í‘Î�Û‘S‚Ä‚ð�WŒv‚·‚é
-                if (PersonCode != 0)
-                {
-                    // ’S“–ŽÒ‚ª‘I‘ð‚³‚ê‚Ä‚¢‚ê‚Î‚»‚ÌŒo”ï‚ðŽæ“¾‚·‚é
-                    GetPersonExpensesCostValue(PersonCode, dtDefaultStart, dtDefaultEnd, ref CostValue);
-                }
-                else
-                {
-                    // ’S“–‚ª‘I‘ð‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î�‡Œv‚ð�WŒv‚·‚é
-                    List<int> PersonArrsy = new List<int>(); ;
-                    if (GetPersonInDepartment(DepartmentCode, ref PersonArrsy) == 0) return 0;
-                    int[] OneCost = new int[ArrayCount];
-                    for (int ii = 0; ii < PersonArrsy.Count; ii++)
-                    {
-                        // �WŒvƒGƒŠƒAƒNƒŠƒA
-                        Array.Clear(OneCost, 0, OneCost.Length);
-
-                        // Œo”ïŽæ“¾
-                        GetPersonExpensesCostValue(PersonArrsy[ii], dtDefaultStart, dtDefaultEnd, ref OneCost);
-                        // �WŒv
-                        for (int iii = 0; iii < CostValue.Length; iii++)
-                        {
-                            CostValue[iii] += OneCost[iii];
-                        }
-                    }
-                }
-
-                // ----- Œo”ï‚Ì�WŒv
-                DataGridView dgv = dgvMaster;
-                int SumData = 0;
-                for (int i = 1; i < CommonDefine.CostDataNoString.Length; i++)
-                {
-                    // �s�ì�¬
-                    int RowCnt = dgv.Rows.Add(1);
-                    // Œo”ï–¼�Ì
-                    dgv.Rows[RowCnt].Cells[(int)DispColumn.ConstructionName].Value = CommonDefine.CostDataNoString[i];
-                    // ‹àŠzƒZƒbƒg
-                    dgv.Rows[RowCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = CostValue[i].ToString("#,0");
-                    SumData += CostValue[i];
-                }
-
-                dgv.Rows.Add();       // ‹ó�s
-                // ----- Œo”ï‚ÌŒv‚ð•\Ž¦‚·‚é
-                // �s�ì�¬
-                int ExpensesCnt = dgv.Rows.Add(1);
-                // Œo”ï–¼�Ì
-                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Expenses];
-                // ‹àŠzƒZƒbƒg
-                dgv.Rows[ExpensesCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = SumData.ToString("#,0");
-                // �s‚Ì�F‚ð•Ï‚¦‚é
-                SetRowColor(dgv.Rows[ExpensesCnt], s_RowTotalBackColor, s_RowTotalForeColor);
-
-                return SumData;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return 0;
-            }
-        }
-        #endregion
-
-        #region •›’S“–ŽÒ�^Žw“±ˆõ‚Ì‹‹—^‚ðŽæ“¾‚·‚é
-        /// <summary>
-        /// •›’S“–ŽÒ�^Žw“±ˆõ‚Ì‹‹—^‚ðŽæ“¾‚·‚é
-        /// </summary>
-        private int SetAuxiliaryCost()
-        {
-            try
-            {
-                // •”��ƒR�[ƒhŽæ“¾
-                int DepartmentCode = GetDepartmentCode();
-                // ’S“–ŽÒƒR�[ƒhŽæ“¾
-                int PersonCode = GetConstructionPersonCode();
-
-                int[] CostValue = new int[2];
-                // •\Ž¦ƒGƒŠƒAƒNƒŠƒA
-                Array.Clear(CostValue, 0, CostValue.Length);
-
-                DateTime dtStart = DateTime.MinValue;
-                DateTime dtEnd = DateTime.MinValue;
-                // ’S“–ŽÒ‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚ê‚Î’S“–ŽÒ�AˆÈŠO‚Í‘Î�Û‘S‚Ä‚ð�WŒv‚·‚é
-                if (PersonCode != 0)
-                {
-                    // ’S“–ŽÒ‚ª‘I‘ð‚³‚ê‚Ä‚¢‚ê‚Î‚»‚ÌŒo”ï‚ðŽæ“¾‚·‚é
-                    GetPersonAuxiliaryCostValue(PersonCode, ref CostValue);
-                }
-                else
-                {
-                    // ’S“–‚ª‘I‘ð‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î�‡Œv‚ð�WŒv‚·‚é
-                    List<int> PersonArrsy = new List<int>(); ;
-                    if (GetPersonInDepartment(DepartmentCode, ref PersonArrsy) == 0) return 0;
-                    int[] OneCost = new int[2];
-                    for (int i = 0; i < PersonArrsy.Count; i++)
-                    {
-                        // �WŒvƒGƒŠƒAƒNƒŠƒA
-                        Array.Clear(OneCost, 0, OneCost.Length);
-
-                        // Œo”ïŽæ“¾
-                        GetPersonAuxiliaryCostValue(PersonArrsy[i], ref OneCost);
-                        // �WŒv
-                        for (int ix = 0; ix < CostValue.Length; ix++)
-                        {
-                            CostValue[ix] += OneCost[ix];
-                        }
-                    }
-                }
-
-                // ----- •â�•�U•ª‚Ì�WŒv
-                DataGridView dgv = dgvMaster;
-
-                int SumData = 0;
-                for (int i = 0; i < CostValue.Length; i++)
-                {
-                    // �s�ì�¬
-                    int RowCnt = dgv.Rows.Add(1);
-                    // Œo”ï–¼�Ì
-                    dgv.Rows[RowCnt].Cells[(int)DispColumn.ConstructionName].Value = s_GroupTitle[i];
-                    // ‹àŠzƒZƒbƒg
-                    dgv.Rows[RowCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = CostValue[i].ToString("#,0");
-                    SumData += CostValue[i];
-                }
-
-
-                dgv.Rows.Add();       // ‹ó�s
-                // ----- •â�•�U•ª‚ÌŒv‚ð•\Ž¦‚·‚é
-                // �s�ì�¬
-                int AuxiliaryCnt = dgv.Rows.Add(1);
-                // Œo”ï–¼�Ì
-                dgv.Rows[AuxiliaryCnt].Cells[(int)DispColumn.ConstructionName].Value = s_TotalTitleArray[(int)RowTitleNum.Auxiliary];
-                // ‹àŠzƒZƒbƒg
-                dgv.Rows[AuxiliaryCnt].Cells[(int)DispColumn.OrdersDecisionPrice].Value = SumData.ToString("#,0");
-                // �s‚Ì�F‚ð•Ï‚¦‚é
-                SetRowColor(dgv.Rows[AuxiliaryCnt], s_RowTotalBackColor, s_RowTotalForeColor);
-
-                return (CostValue[0] + CostValue[1]);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return 0;
-            }
-        }
-        #endregion
-
-        #region ’S“–ŽÒ–ˆ‚ÌŽw’èŠú‚Ì�HŽ–ŠJŽn“ú‚ðŽæ“¾‚·‚é
-        /// <summary>
-        /// ’S“–ŽÒ–ˆ‚ÌŽw’èŠú‚Ì�HŽ–ŠJŽn“ú‚ðŽæ“¾‚·‚é
-        /// </summary>
-        /// <returns></returns>
-        private DateTime GetConstructionDate(int PersonCode, bool bStart = true)
-        {
-            IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
-            try
-            {
-                // ‹ó‚Ì�ê�‡‚Íƒ�ƒOƒCƒ“ƒ†�[ƒU�[
-                if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
-
-                // ŠJŽn“úŽæ“¾
-                string strSQL = string.Empty;
-                strSQL = "SELECT A.CONSTRUCTIONPERSONCODE, MIN(B.CONSTRUCTIONSTART) FROM CONSTRUCTIONBASEINFO A, CONSTRUCTIONBUDGET B";
-                // �I—¹Žw’è‚Í�I—¹‚ÌMAX‚É•Ï�X
-                if (!bStart) strSQL = strSQL.Replace("MIN(B.CONSTRUCTIONSTART)", "MAX(B.CONSTRUCTIONEND)");
-
-                strSQL += string.Format(" WHERE A.CONSTRUCTIONPERSONCODE = {0}", PersonCode);
-                strSQL += string.Format("  AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
-                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE GROUP BY A.CONSTRUCTIONPERSONCODE";
-                ArrayList ArrayList = new ArrayList();
-                if (!BaseDB.ExecuteReader(strSQL, ref ArrayList)) return DateTime.MinValue;
-                if (ArrayList.Count == 0) return DateTime.MinValue;
-
-                object[] objRec = (object[])ArrayList[0];
-
-                return CommonMotions.cnvDate(objRec[1]);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return DateTime.MinValue;
-            }
-            finally
-            {
-                BaseDB.close(); BaseDB = null;
-            }
-        }
-        #endregion
-
-        #region •”��“à‚Ì’S“–ŽÒƒR�[ƒh‚ðˆê——‚Å•Ô‚·
-        /// <summary>
-        /// •”��“à‚Ì’S“–ŽÒƒR�[ƒh‚ðˆê——‚Å•Ô‚·
-        /// </summary>
-        /// <param name="DepartmentCode">•”��ƒR�[ƒh</param>
-        /// <param name="PersonCode">’S“–ŽÒƒR�[ƒhˆê——</param>
-        /// <returns>ƒf�[ƒ^Œ��”</returns>
-        private int GetPersonInDepartment(int DepartmentCode,ref List<int> PersonCode)
-        {
-            IOMPersonInCharge PersonDB = new IOMPersonInCharge();
-            try
-            {
-                string strSQL = string.Format(" WHERE (PERSONCODE IN (SELECT SALESPERSONCODE FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0})", numUDConstPro.Value);
-                strSQL += string.Format(" OR PERSONCODE IN (SELECT CONSTRUCTIONPERSONCODE FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0})", numUDConstPro.Value);
-                strSQL += string.Format(" OR PERSONCODE IN (SELECT CONSTRSUBPERSONCODE FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0})", numUDConstPro.Value);
-                strSQL += string.Format(" OR PERSONCODE IN (SELECT CONSTRUCTIONINSTRUCTOR FROM CONSTRUCTIONBASEINFO WHERE CONSTRUCTIONPERIOD = {0}))", numUDConstPro.Value);
-                strSQL += " AND EMPLOYEECLASSFLG = 1";
-                if (DepartmentCode != 0)
-                    strSQL += string.Format(" AND DEPARTMENTCODE = {0}", DepartmentCode);
-                strSQL += " ORDER BY DISPLAYORDER ";
-                List<PersonInChargeMaster> PersonList = new List<PersonInChargeMaster>();
-                if (!PersonDB.SelectAction(strSQL, ref PersonList)) return 0;
-
-                foreach (PersonInChargeMaster wrkRec in PersonList)
-                {
-                    PersonCode.Add(wrkRec.PersonCode);
-                }
-                return PersonCode.Count;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return 0;
-            }
-            finally
-            {
-                PersonDB.close(); PersonDB = null;
-            }
-        }
-        #endregion
-
-        #region ’S“–ŽÒ–ˆ”ï–Ú–ˆ‚ÌŒo”ï‚ðŽæ“¾‚·‚é
-        /// <summary>
-        /// ’S“–ŽÒ–ˆ”ï–Ú–ˆ‚ÌŒo”ï‚ðŽæ“¾‚·‚é
-        /// </summary>
-        /// <param name="PersonCode">’S“–ŽÒƒR�[ƒh</param>
-        /// <param name="dtStart">ŠJŽn“ú•t</param>
-        /// <param name="dtEnd">�I—¹“ú•t</param>
-        /// <param name="CostValue">”ï–Ú–ˆŒo”ï</param>
-        private void GetPersonExpensesCostValue(int PersonCode, DateTime dtStart, DateTime dtEnd, ref int[] CostValue)
-        {
-            IOCostDataOfPerson CostDB = new IOCostDataOfPerson();
-            try
-            {
-                // ’S“–ŽÒ–ˆŒo”ïƒf�[ƒ^‚æ‚è‚Ç‚±‚Ì�HŽ–‚É‚à�Š‘®‚µ‚Ä‚¢‚È‚¢Œo”ï‚ðŽæ“¾‚·‚é
-                string strSQL = "SELECT PERSONCODE, DATATYPE, SUM(ENTRYPRICE) FROM COSTDATAOFPERSON";
-                strSQL += string.Format(" WHERE PERSONCODE = {0}", PersonCode);
-                //strSQL += string.Format(" AND ('{0}' <= TO_CHAR(ACTIONDATE,'YYYY/MM/DD')", dtStart.ToShortDateString());
-                //strSQL += string.Format(" AND TO_CHAR(ACTIONDATE,'YYYY/MM/DD') <= '{0}')", dtEnd.ToShortDateString());
-                strSQL += string.Format(" AND ('{0}' <= DATE_FORMAT(ACTIONDATE,'%Y/%m/%d')", dtStart.ToShortDateString());
-                strSQL += string.Format(" AND DATE_FORMAT(ACTIONDATE,'%Y/%m/%d') <= '{0}')", dtEnd.ToShortDateString());
-                strSQL += " AND CONSTRUCTIONCODE = 0";
-                strSQL += " GROUP BY PERSONCODE, DATATYPE";
-                strSQL += " ORDER BY PERSONCODE, DATATYPE";
-                ArrayList arList = new ArrayList();
-                if (!CostDB.ExecuteReader(strSQL, ref arList)) return;
-
-                // Žæ“¾Œ‹‰Ê‚ð�U‚è•ª‚¯‚é
-                foreach (object[] wrkobj in arList)
-                {
-                    for (int i = 1; i < CommonDefine.CostDataNoString.Length; i++)
-                    {
-                        if (CommonMotions.cnvInt(wrkobj[1]) == i)
-                        {
-                            CostValue[i] = CommonMotions.cnvInt(wrkobj[2]);
-                            break;
-                        }
-                    }
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                CostDB.close(); CostDB = null;
-            }
-        }
-        #endregion
-
-        #region ’S“–ŽÒ–ˆ‚Ì•â�•�U•ª‚ðŽæ“¾‚·‚é
-        /// <summary>
-        /// ’S“–ŽÒ–ˆ‚Ì•â�•�U•ª‚ðŽæ“¾‚·‚é
-        /// </summary>
-        /// <param name="PersonCode"></param>
-        /// <param name="CostValue"></param>
-        private void GetPersonAuxiliaryCostValue(int PersonCode, ref int[] CostValue)
-        {
-            IOConstructionLedgerDetail DetailDB = new IOConstructionLedgerDetail();
-            try
-            {
-                // �HŽ–�Ú�×‘ä’ ƒf�[ƒ^‚æ‚è•â�•�U•ª‚ðŽæ“¾‚·‚é
-                string strSQL = "SELECT A.COMPANYCODE, A.GROUPCOUNT, SUM(A.EXECUTIONAMOUNT)";
-                strSQL += " FROM CONSTRUCTIONLEDGERDETAIL A, CONSTRUCTIONBASEINFO B";
-                strSQL += string.Format(" WHERE (A.GROUPCOUNT = {0} OR A.GROUPCOUNT = {1})"
-                                        , (int)FrmConstructionLedger.DataGroup.Assistant, (int)FrmConstructionLedger.DataGroup.Instructor);
-                strSQL += string.Format(" AND A.COMPANYCODE = {0}", PersonCode);
-                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
-                strSQL += string.Format(" AND B.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
-                strSQL += " GROUP BY A.COMPANYCODE, A.GROUPCOUNT";
-                strSQL += " ORDER BY A.COMPANYCODE, A.GROUPCOUNT";
-                ArrayList arList = new ArrayList();
-                if (!DetailDB.ExecuteReader(strSQL, ref arList)) return;
-
-                // Žæ“¾Œ‹‰Ê‚ð�U‚è•ª‚¯‚é
-                foreach (object[] wrkobj in arList)
-                {
-                    if (CommonMotions.cnvInt(wrkobj[1]) == (int)FrmConstructionLedger.DataGroup.Assistant)
-                    {
-                        CostValue[0] = CommonMotions.cnvInt(wrkobj[2]);
-                    }
-                    else
-                    {
-                        CostValue[1] = CommonMotions.cnvInt(wrkobj[2]);
-                    }
-                }
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-            finally
-            {
-                DetailDB.close(); DetailDB = null;
-            }
-        }
-        #endregion
-
-        #region ‹‹—^ƒf�[ƒ^•\Ž¦”»’è
-        /// <summary>
-        /// ‹‹—^ƒf�[ƒ^•\Ž¦”»’è
-        /// </summary>
-        /// <returns></returns>
-        private bool SalaryDisplay()
-        {
-            IOMPersonInCharge personDB = new IOMPersonInCharge();
-            try
-            {
-                bool bRet = false;
-
-                // ‚Ü‚¸ƒf�[ƒ^”ñ•\Ž¦
-                pnlPayroll.Visible = false;
-
-                // ƒRƒ“ƒ{ƒ{ƒbƒNƒX‚æ‚è‘I‘ð’S“–ŽÒ‚ðŽæ“¾‚·‚é
-                int PersonCode = GetConstructionPersonCode();
-                if (!cmbConstructionPerson.Visible) PersonCode = CommonMotions.LoginUserData.PersonCode;
-
-                // ƒZƒLƒ…ƒŠƒeƒBƒŒƒxƒ‹Žæ“¾
-                int SecLevel1 = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.PresidentAuthority].Key;
-                int SecLevel2 = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SupervisorAuthority].Key;
-                int SecLevel3 = CommonDefine.SystemManageDiv[(int)CommonDefine.SysManaDivNo.SuperiorAuthority].Key;
-                // ƒVƒXƒeƒ€Œ ŒÀ‚É‚æ‚Á‚Äƒf�[ƒ^ƒAƒNƒZƒX‚É�§ŒÀ‚ª‚ ‚é
-                if (CommonMotions.LoginUserData.SecurityManagement == CommonDefine.AdminSecurityManagement)
-                {
-                    // ƒVƒXƒeƒ€ŠÇ—�ŽÒ�i‚·‚×‚Ä‘Î�Û�j
-                    bRet = true;
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == SecLevel1)
-                {
-                    // �Å�‚‹@–§ŠÇ—�ŽÒ�i‚·‚×‚Ä‘Î�Û�j
-                    bRet = true;
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == SecLevel2)
-                {
-                    // “�Š‡‹@–§ŠÇ—�ŽÒ�i‹@”\�§ŒÀ�j
-                    bRet = true;
-                }
-                else if (CommonMotions.LoginUserData.SecurityManagement == SecLevel3)
-                {
-                    // �Š‘®’·
-                    bRet = true;
-                }
-                else
-                {
-                    // ˆê”Êƒ†�[ƒU�[‚ÍŽ©•ª‚Ì‹‹—^‚ªŒ©‚¦‚é
-                    if (CommonMotions.LoginUserData.PersonCode == PersonCode)
-                        bRet = true;
-                    else
-                        bRet = false;
-                }
-                // ƒf�[ƒ^•\Ž¦
-                pnlPayroll.Visible = bRet;
-
-                // —ÌˆæƒNƒŠƒA
-                ClearSalary();
-
-                return bRet;
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                personDB.close(); personDB = null;
-            }
-        }
-        #endregion
-
-        #region Œo‰ß‹‹—^‚ðŒvŽZ‚·‚é
-        /// <summary>
-        /// Œo‰ß‹‹—^‚ðŒvŽZ‚·‚é
-        /// </summary>
-        /// <param name="dtStart"></param>
-        /// <param name="PersonCode"></param>
-        /// <returns></returns>
-        private int CalcElapsedSalary(DateTime dtStart, int PersonCode)
-        {
-            try
-            {
-                // ‰Ò“­“ú�”‚ðŽæ“¾‚·‚é
-                int WorkingDay = ClsCalendar.CalcOperatingDaysCount(dtStart, DateTime.Now);
-
-                // Œo‰ßŒŽ�”Žæ“¾
-                double dmounth = CommonMotions.DiffMounthTimes(dtStart, DateTime.Now);
-
-                // ‹‹—^—Ý�ÏŽæ“¾
-                int MonthlyPay = GetPersonMonthlySalary(PersonCode);
-                double DayPay = CommonMotions.cnvRound((double)MonthlyPay / CommonDefine.s_ManHourUnitMonth);
-                
-                return CommonMotions.cnvRound(WorkingDay * DayPay);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return 0;
-            }
-        }
-        #endregion
-
-        #region �¡Šú‚ÌŒo‰ß‹‹—^‚ð•\Ž¦‚·‚é
-        /// <summary>
-        /// �¡Šú‚ÌŒo‰ß‹‹—^‚ð•\Ž¦‚·‚é
-        /// </summary>
-        private void SetPayrollData()
-        {
-            try
-            {
-                // ‹‹—^‚Ì•\Ž¦”»’è
-                if (!SalaryDisplay()) return;
-
-                // •”��ƒR�[ƒhŽæ“¾
-                int DepartmentCode = GetDepartmentCode();
-                // ’S“–ŽÒƒR�[ƒhŽæ“¾
-                int PersonCode = GetConstructionPersonCode();
-
-                // “–ŠúŠúŽñ“ú�EŠú––“ú‚ðŽæ“¾
-                DateTime dtDefaultStart = DateTime.MinValue;
-                DateTime dtDefaultEnd = DateTime.MinValue;
-                CreateDefaultStartAndEndDate(ref dtDefaultStart, ref dtDefaultEnd);
-
-                int TotalSalary = 0;        // ‹‹—^—Ý�ÏŽæ“¾
-                int OnSalary = 0;           // �U•ª‹‹—^‹àŠzŽæ“¾
-                int NetIncome = 0;          // �ƒ—˜‰v‹àŠzŽæ“¾
-                int NonSalary = 0;          // ‘e—˜‰v‹àŠzŽæ“¾
-
-                DateTime dtStart = DateTime.MinValue;
-                DateTime dtEnd = DateTime.MinValue;
-                // ’S“–ŽÒ‚ªƒZƒbƒg‚³‚ê‚Ä‚¢‚ê‚Î’S“–ŽÒ�AˆÈŠO‚Í‘Î�Û‘S‚Ä‚ð�WŒv‚·‚é
-                if (PersonCode != 0)
-                {
-                    // ŠJŽn“úŽæ“¾
-                    dtStart = GetConstructionDate(PersonCode, true);
-                    // ƒf�[ƒ^‚ª–³‚¢�ê�‡‚ÍŠúŽñ“ú‚ðƒZƒbƒg‚·‚é
-                    if (dtStart == DateTime.MinValue) dtStart = dtDefaultStart;
-                    // �I—¹“úŽæ“¾
-                    dtEnd = GetConstructionDate(PersonCode, false);
-                    if (dtEnd == DateTime.MinValue) dtEnd = dtDefaultEnd;
-
-                    // ‹‹—^—Ý�ÏŽæ“¾
-                    TotalSalary = CalcElapsedSalary(dtStart, PersonCode);
-                    // �U•ª‹‹—^‹àŠzŽæ“¾
-                    OnSalary = GetPersonBudgetDetail(PersonCode, (int)FrmConstructionBudget.DataGroup.PayrollExpenses);
-                    // �ƒ—˜‰v‹àŠzŽæ“¾
-                    NetIncome = GetPersonBudgetDetail(PersonCode, (int)FrmConstructionBudget.DataGroup.NetIncome);
-                    // ‘e—˜‰v‹àŠzŽæ“¾
-                    NonSalary = GetPersonBudgetDetail(PersonCode, (int)FrmConstructionBudget.DataGroup.GrossProfit);
-                }
-                else
-                {
-                    // ’S“–‚ª‘I‘ð‚³‚ê‚Ä‚¢‚È‚¯‚ê‚Î�‡Œv‚ð�WŒv‚·‚é
-                    List<int> PersonArrsy = new List<int>(); ;
-                    if (GetPersonInDepartment(DepartmentCode, ref PersonArrsy) == 0) return;
-                    for (int ii = 0; ii < PersonArrsy.Count; ii++)
-                    {
-                        // ŠJŽn“úŽæ“¾
-                        dtStart = GetConstructionDate(PersonArrsy[ii], true);
-                        // ƒf�[ƒ^‚ª–³‚¢�ê�‡‚ÍŠúŽñ“ú‚ðƒZƒbƒg‚·‚é
-                        if (dtStart == DateTime.MinValue) dtStart = dtDefaultStart;
-                        // �I—¹“úŽæ“¾
-                        dtEnd = GetConstructionDate(PersonArrsy[ii], false);
-                        if (dtEnd == DateTime.MinValue) dtEnd = dtDefaultEnd;
-
-                        // ‹‹—^—Ý�ÏŽæ“¾
-                        int workSalary = CalcElapsedSalary(dtStart, PersonArrsy[ii]);
-                        if (workSalary > 0) TotalSalary += workSalary;
-                        // �U•ª‹‹—^‹àŠzŽæ“¾
-                        OnSalary += GetPersonBudgetDetail(PersonArrsy[ii], (int)FrmConstructionBudget.DataGroup.PayrollExpenses);
-                        // �ƒ—˜‰v‹àŠzŽæ“¾
-                        NetIncome += GetPersonBudgetDetail(PersonArrsy[ii], (int)FrmConstructionBudget.DataGroup.NetIncome);
-                        // ‘e—˜‰v‹àŠzŽæ“¾
-                        NonSalary += GetPersonBudgetDetail(PersonArrsy[ii], (int)FrmConstructionBudget.DataGroup.GrossProfit);
-                    }
-                }
-
-                // ‹‹—^—Ý�ÏŽæ“¾
-                //lblPayroll.Text = TotalSalary.ToString("#,0");
-
-                // �U•ª‹‹—^‹àŠzŽæ“¾
-                label11.Text = OnSalary.ToString("#,0");
-
-                // �ƒ—˜‰v‹àŠzŽæ“¾
-                label21.Text = NetIncome.ToString("#,0");
-
-                // ‘e—˜‰v‹àŠzŽæ“¾
-                label16.Text = NonSalary.ToString("#,0");
-
-                // �·ŠzŒvŽZ
-                label14.Text = ((OnSalary + NetIncome + NonSalary) - TotalSalary).ToString("#,0");
-
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
-        }
-        #endregion
-
-        #region ’S“–ŽÒƒ}ƒXƒ^‚æ‚èŒŽŠz‹‹—^Žæ“¾
-        /// <summary>
-        /// ’S“–ŽÒƒ}ƒXƒ^‚æ‚èŒŽŠz‹‹—^Žæ“¾
-        /// </summary>
-        /// <param name="PersonCode"></param>
-        /// <returns></returns>
-        private int GetPersonMonthlySalary(int PersonCode)
-        {
-            try
-            {
-                if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
-                double MonthryCost = 0;
-                double YearsCost = 0;
-                // ’S“–ŽÒ‹‹—^‹àŠzŽæ“¾�ˆ—��iƒZƒbƒVƒ‡ƒ“ƒRƒlƒNƒg–³�j
-                CommonMotions.GetSalaryValue(PersonCode, ref MonthryCost, ref YearsCost, DateTime.Today);
-
-                return CommonMotions.cnvRound(MonthryCost);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return 0;
-            }
-        }
-        #endregion
-
-        #region �HŽ–—\ŽZ�‘‚æ‚è�U•ª‹‹—^‹àŠz�E‘e—˜‰v‚ðŽæ“¾‚·‚é
-        /// <summary>
-        /// �HŽ–—\ŽZ�‘‚æ‚è�U•ª‹‹—^‹àŠz�E‘e—˜‰v‚ðŽæ“¾‚·‚é
-        /// </summary>
-        /// <returns></returns>
-        private int GetPersonBudgetDetail(int PersonCode, int GroupNo)
-        {
-            IOConstructionBudgetDetail DetailDB = new IOConstructionBudgetDetail();
-            try
-            {
-                if (PersonCode == 0) PersonCode = CommonMotions.LoginUserData.PersonCode;
-
-                string strSQL = "SELECT A.CONSTRUCTIONPERSONCODE, SUM(C.EXECUTIONAMOUNT)";
-                strSQL += " FROM CONSTRUCTIONBASEINFO A, CONSTRUCTIONBUDGET B, CONSTRUCTIONBUDGETDETAIL C ";
-                strSQL += string.Format(" WHERE A.CONSTRUCTIONPERSONCODE = {0}", PersonCode);
-                strSQL += string.Format(" AND A.CONSTRUCTIONPERIOD = {0}", numUDConstPro.Value);
-                strSQL += " AND A.CONSTRUCTIONCODE = B.CONSTRUCTIONCODE";
-                
-                switch(GroupNo)
-                {
-                    case (int)FrmConstructionBudget.DataGroup.PayrollExpenses:     // ‹‹—^Œo”ï
-                    case (int)FrmConstructionBudget.DataGroup.NetIncome:           // �ƒ—˜‰v
-                    strSQL += string.Format(" AND B.SALARYFLG != {0}", (int)CommonDefine.SalaryDevision.Noting);
-                        break;
-                    case (int)FrmConstructionBudget.DataGroup.GrossProfit:         // ‘e—˜‰v
-                        strSQL += string.Format(" AND B.SALARYFLG = {0}", (int)CommonDefine.SalaryDevision.Noting);
-                        break;
-                }
-                    
-                strSQL += " AND B.CONSTRUCTIONCODE = C.CONSTRUCTIONCODE";
-
-                strSQL += string.Format(" AND C.GROUPCOUNT = {0}", GroupNo);
-
-                strSQL += " GROUP BY A.CONSTRUCTIONPERSONCODE";
-
-                ArrayList ArrayList = new ArrayList();
-                if (!DetailDB.ExecuteReader(strSQL, ref ArrayList) || ArrayList.Count == 0) return 0;
-                object[] objRec = (object[])ArrayList[0];
-
-                return CommonMotions.cnvInt(objRec[1]);
-            }
-            catch (Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-                return 0;
-            }
-            finally
-            {
-                DetailDB.close(); DetailDB = null;
-            }
-        }
-        #endregion
-
-    }
-}
\ No newline at end of file
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.resx
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.resx	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/ConstructionPersonList/FrmConstructionPersonList.resx	(nonexistent)
@@ -1,153 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
-  <!-- 
-    Microsoft ResX Schema 
-    
-    Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
-    associated with the data types.
-    
-    Example:
-    
-    ... ado.net/XML headers & schema ...
-    <resheader name="resmimetype">text/microsoft-resx</resheader>
-    <resheader name="version">2.0</resheader>
-    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
-    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
-    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
-    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
-    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
-        <value>[base64 mime encoded serialized .NET Framework object]</value>
-    </data>
-    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
-        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
-        <comment>This is a comment</comment>
-    </data>
-                
-    There are any number of "resheader" rows that contain simple 
-    name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
-    mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
-    extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
-    read any of the formats listed below.
-    
-    mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
-            : and then encoded with base64 encoding.
-    
-    mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
-            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
-            : and then encoded with base64 encoding.
-
-    mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
-            : using a System.ComponentModel.TypeConverter
-            : and then encoded with base64 encoding.
-    -->
-  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
-    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
-    <xsd:element name="root" msdata:IsDataSet="true">
-      <xsd:complexType>
-        <xsd:choice maxOccurs="unbounded">
-          <xsd:element name="metadata">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" />
-              </xsd:sequence>
-              <xsd:attribute name="name" use="required" type="xsd:string" />
-              <xsd:attribute name="type" type="xsd:string" />
-              <xsd:attribute name="mimetype" type="xsd:string" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="assembly">
-            <xsd:complexType>
-              <xsd:attribute name="alias" type="xsd:string" />
-              <xsd:attribute name="name" type="xsd:string" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="data">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
-              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
-              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
-              <xsd:attribute ref="xml:space" />
-            </xsd:complexType>
-          </xsd:element>
-          <xsd:element name="resheader">
-            <xsd:complexType>
-              <xsd:sequence>
-                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
-              </xsd:sequence>
-              <xsd:attribute name="name" type="xsd:string" use="required" />
-            </xsd:complexType>
-          </xsd:element>
-        </xsd:choice>
-      </xsd:complexType>
-    </xsd:element>
-  </xsd:schema>
-  <resheader name="resmimetype">
-    <value>text/microsoft-resx</value>
-  </resheader>
-  <resheader name="version">
-    <value>2.0</value>
-  </resheader>
-  <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
-  </resheader>
-  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column14.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column9.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <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/EstimateInput/EstimateInputPage.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/EstimateInputPage.cs	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/EstimateInputPage.cs	(revision 111)
@@ -4,7 +4,7 @@
 using System.Text;
 using System.Windows.Forms;
 
-using Microsoft.VisualBasic.PowerPacks;
+//using Microsoft.VisualBasic.PowerPacks;
 
 using ProcessManagement.Common;
 using ProcessManagement.Forms.CustomControls;
@@ -73,7 +73,7 @@
         /// <summary>
         /// ç·šã�®ã‚³ãƒ³ãƒ†ãƒŠ
         /// </summary>
-        private ShapeContainer                  m_ShapeContainer = null;
+        //private ShapeContainer                  m_ShapeContainer = null;
 
         #endregion
 
@@ -193,11 +193,11 @@
         /// <summary>
         /// ç·šã�®ã‚³ãƒ³ãƒ†ãƒŠ
         /// </summary>
-        public ShapeContainer CommentShapeContainer
-        {
-            get { return m_ShapeContainer; }
-            set { m_ShapeContainer = value; }
-        }
+        //public ShapeContainer CommentShapeContainer
+        //{
+        //    get { return m_ShapeContainer; }
+        //    set { m_ShapeContainer = value; }
+        //}
         #endregion
     }
 }
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInput.cs	(revision 111)
@@ -9,7 +9,7 @@
 using System.Collections;
 using System.Linq;
 
-using Microsoft.VisualBasic.PowerPacks;
+//using Microsoft.VisualBasic.PowerPacks;
 
 using log4net;
 using log4net.Appender;
@@ -1666,10 +1666,10 @@
             work.EntryLabel[(int)PageLabelCount.ItemLabel] = label2;
 
             // ƒ‰ƒCƒ“ƒLƒƒƒ“ƒoƒX’Ç‰Á
-            work.CommentShapeContainer = new ShapeContainer();
-            work.CommentShapeContainer.Size = new Size(work.EntryDGV.Bounds.Width, work.EntryDGV.Bounds.Height);
-            work.EntryDGV.Controls.Add(work.CommentShapeContainer);
-            work.CommentShapeContainer.BringToFront();
+            //work.CommentShapeContainer = new ShapeContainer();
+            //work.CommentShapeContainer.Size = new Size(work.EntryDGV.Bounds.Width, work.EntryDGV.Bounds.Height);
+            //work.EntryDGV.Controls.Add(work.CommentShapeContainer);
+            //work.CommentShapeContainer.BringToFront();
 
             // ƒRƒ“ƒgƒ��[ƒ‹”z—ñ’Ç‰Á
             m_EntryPage.Add(work);
@@ -1864,33 +1864,33 @@
         /// <param name="e"></param>
         private void btnAddComment_Click(object sender, EventArgs e)
         {
-            try
-            {
-                // •`‰æˆÊ’uŽæ“¾
-                int TabCnt = TabCollections.SelectedIndex;
-                DataGridView dgv = m_EntryPage[TabCnt].EntryDGV;
-                DataGridViewCell CurCell = dgv.CurrentCell;
-                Rectangle rect = dgv.GetCellDisplayRectangle(CurCell.ColumnIndex, CurCell.RowIndex, false);
+            //try
+            //{
+            //    // •`‰æˆÊ’uŽæ“¾
+            //    int TabCnt = TabCollections.SelectedIndex;
+            //    DataGridView dgv = m_EntryPage[TabCnt].EntryDGV;
+            //    DataGridViewCell CurCell = dgv.CurrentCell;
+            //    Rectangle rect = dgv.GetCellDisplayRectangle(CurCell.ColumnIndex, CurCell.RowIndex, false);
 
-                // ƒRƒ�ƒ“ƒgƒ{ƒbƒNƒX’Ç‰Á
-                MoveTextBox NewComment = new MoveTextBox();
-                NewComment.ParentPoint = rect.Location;
-                NewComment.ParentSize = rect.Size;
-                NewComment.DrowColor = CommonMotions.getBackForeColor(CommonMotions.LoginUserData.MsgBackColor
-                                                                        , CommonDefine.PalceOfColor.BackColor);
+            //    // ƒRƒ�ƒ“ƒgƒ{ƒbƒNƒX’Ç‰Á
+            //    MoveTextBox NewComment = new MoveTextBox();
+            //    NewComment.ParentPoint = rect.Location;
+            //    NewComment.ParentSize = rect.Size;
+            //    NewComment.DrowColor = CommonMotions.getBackForeColor(CommonMotions.LoginUserData.MsgBackColor
+            //                                                            , CommonDefine.PalceOfColor.BackColor);
 
-                NewComment.ToolTipString = string.Format("Žw“EŽÒ�F{0}", CommonMotions.LoginUserData.PersonName);
-                NewComment.ContinerCode = CommonMotions.LoginUserData.PersonCode;
+            //    NewComment.ToolTipString = string.Format("Žw“EŽÒ�F{0}", CommonMotions.LoginUserData.PersonName);
+            //    NewComment.ContinerCode = CommonMotions.LoginUserData.PersonCode;
 
-                m_EntryPage[TabCnt].CommentShapeContainer.Controls.Add(NewComment);
+            //    m_EntryPage[TabCnt].CommentShapeContainer.Controls.Add(NewComment);
                 
-                // •Ï�Xƒtƒ‰ƒOON
-                m_bChengeAns = true;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
+            //    // •Ï�Xƒtƒ‰ƒOON
+            //    m_bChengeAns = true;
+            //}
+            //catch (System.Exception ex)
+            //{
+            //    logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            //}
         }
         #endregion
 
@@ -1902,40 +1902,40 @@
         /// <param name="e"></param>
         private void btnDelComment_Click(object sender, EventArgs e)
         {
-            try
-            {
-                int TabCnt = TabCollections.SelectedIndex;
-                DataGridView dgv = m_EntryPage[TabCnt].EntryDGV;
-                ShapeContainer sContaner = m_EntryPage[TabCnt].CommentShapeContainer;
+            //try
+            //{
+            //    int TabCnt = TabCollections.SelectedIndex;
+            //    DataGridView dgv = m_EntryPage[TabCnt].EntryDGV;
+            //    ShapeContainer sContaner = m_EntryPage[TabCnt].CommentShapeContainer;
 
-                for (int i = sContaner.Controls.Count - 1; 0 <= i; i--)
-                {
-                    // ƒRƒ�ƒ“ƒgƒeƒLƒXƒg‚ð’T‚·
-                    if (sContaner.Controls[i].GetType().Equals(typeof(MoveTextBox)))
-                    {
-                        MoveTextBox wrkMove = (MoveTextBox)sContaner.Controls[i];
-                        if (wrkMove.MyFocusFlg)
-                        {
-                            // �Å�‚�Ó”CŽÒˆÈŠO‚ÍŽ©•ª‚ÌƒRƒ�ƒ“ƒg‚µ‚©�í�œ‚Å‚«‚È‚¢
-                            if (!GetCommentEditPermission(wrkMove.ContinerCode))
-                            {
-                                MessageBox.Show("Ž©ŒÈ‚ÌƒRƒ�ƒ“ƒgˆÈŠO‚Í�í�œ‚Å‚«‚Ü‚¹‚ñ�B", "�í�œŒx��Šm”F", MessageBoxButtons.OK, MessageBoxIcon.Error);
-                                return;
-                            }
+            //    for (int i = sContaner.Controls.Count - 1; 0 <= i; i--)
+            //    {
+            //        // ƒRƒ�ƒ“ƒgƒeƒLƒXƒg‚ð’T‚·
+            //        if (sContaner.Controls[i].GetType().Equals(typeof(MoveTextBox)))
+            //        {
+            //            MoveTextBox wrkMove = (MoveTextBox)sContaner.Controls[i];
+            //            if (wrkMove.MyFocusFlg)
+            //            {
+            //                // �Å�‚�Ó”CŽÒˆÈŠO‚ÍŽ©•ª‚ÌƒRƒ�ƒ“ƒg‚µ‚©�í�œ‚Å‚«‚È‚¢
+            //                if (!GetCommentEditPermission(wrkMove.ContinerCode))
+            //                {
+            //                    MessageBox.Show("Ž©ŒÈ‚ÌƒRƒ�ƒ“ƒgˆÈŠO‚Í�í�œ‚Å‚«‚Ü‚¹‚ñ�B", "�í�œŒx��Šm”F", MessageBoxButtons.OK, MessageBoxIcon.Error);
+            //                    return;
+            //                }
                             
-                            // ƒRƒ“ƒgƒ��[ƒ‹‚Ì�í�œ
-                            sContaner.Controls[i].Dispose();
-                            break;
-                        }
-                    }
-                }
-                // •Ï�Xƒtƒ‰ƒOON
-                m_bChengeAns = true;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
-            }
+            //                // ƒRƒ“ƒgƒ��[ƒ‹‚Ì�í�œ
+            //                sContaner.Controls[i].Dispose();
+            //                break;
+            //            }
+            //        }
+            //    }
+            //    // •Ï�Xƒtƒ‰ƒOON
+            //    m_bChengeAns = true;
+            //}
+            //catch (System.Exception ex)
+            //{
+            //    logger.ErrorFormat("ƒVƒXƒeƒ€ƒGƒ‰�[�F{0}�F{1}", CommonMotions.GetMethodName(), ex.Message);
+            //}
         }
         #endregion
 
Index: branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/DataEntry/EstimateInput/FrmEstimateInputAuxiliary.cs	(revision 111)
@@ -6,7 +6,7 @@
 using System.Windows.Forms;
 using System.Drawing;
 
-using Microsoft.VisualBasic.PowerPacks;
+//using Microsoft.VisualBasic.PowerPacks;
 
 using ProcessManagement.Forms.ControlsAction;
 using ProcessManagement.Forms.CustomControls;
@@ -5619,57 +5619,57 @@
         /// æŒ‡æ‘˜äº‹é …ãƒ‡ãƒ¼ã‚¿æ›¸è¾¼ã�¿
         /// </summary>
         /// <returns></returns>
-        private bool WritePointOutComment(IOPointingOutComment CommentDB)
-        {
-            try
-            {
-                // æœ€åˆ�ã�«å‰Šé™¤
-                string strSQL = CommentDB.CreatePrimarykeyString(m_ConstructionCode);
-                CommentDB.DeleteAction(strSQL, false);
+        //private bool WritePointOutComment(IOPointingOutComment CommentDB)
+        //{
+            //try
+            //{
+            //    // æœ€åˆ�ã�«å‰Šé™¤
+            //    string strSQL = CommentDB.CreatePrimarykeyString(m_ConstructionCode);
+            //    CommentDB.DeleteAction(strSQL, false);
 
-                int SeqCount = 1;
-                int PageCnt = 1;
-                // è¡¨ç¤ºãƒšãƒ¼ã‚¸ã‚ˆã‚Šã‚³ãƒ¡ãƒ³ãƒˆã‚’æŠœã��å‡ºã�—ã�¦ç™»éŒ²ã‚’è¡Œã�†
-                foreach (EstimateInputPage CurEntryPage in m_EntryPage)
-                {
-                    foreach (Control wrkCtrl in CurEntryPage.CommentShapeContainer.Controls)
-                    {
-                        // ã‚³ãƒ¡ãƒ³ãƒˆã�®ã�¿ã‚’å¯¾è±¡ã�«ã�™ã‚‹
-                        if (!wrkCtrl.GetType().Equals(typeof(MoveTextBox))) continue;
+            //    int SeqCount = 1;
+            //    int PageCnt = 1;
+            //    // è¡¨ç¤ºãƒšãƒ¼ã‚¸ã‚ˆã‚Šã‚³ãƒ¡ãƒ³ãƒˆã‚’æŠœã��å‡ºã�—ã�¦ç™»éŒ²ã‚’è¡Œã�†
+            //    foreach (EstimateInputPage CurEntryPage in m_EntryPage)
+            //    {
+            //        foreach (Control wrkCtrl in CurEntryPage.CommentShapeContainer.Controls)
+            //        {
+            //            // ã‚³ãƒ¡ãƒ³ãƒˆã�®ã�¿ã‚’å¯¾è±¡ã�«ã�™ã‚‹
+            //            if (!wrkCtrl.GetType().Equals(typeof(MoveTextBox))) continue;
 
-                        PointingOutComment ComRec = new PointingOutComment();
-                        ComRec.ConstructionCode = m_ConstructionCode;
-                        ComRec.ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
-                        ComRec.SeqNo = SeqCount++;
-                        ComRec.PageCount = PageCnt;
-                        ComRec.PersonCode = ((MoveTextBox)wrkCtrl).ContinerCode;
-                        ComRec.DrowColor = String.Format("0x{0:X2}{1:X2}{2:X2}"
-                                        , wrkCtrl.BackColor.R, wrkCtrl.BackColor.G, wrkCtrl.BackColor.B);
-                        ComRec.CommentMessage = wrkCtrl.Text;
-                        ComRec.StartPointX = ((MoveTextBox)wrkCtrl).ParentPoint.X;
-                        ComRec.StartPointY = ((MoveTextBox)wrkCtrl).ParentPoint.Y;
-                        ComRec.CurrentPointX = ((MoveTextBox)wrkCtrl).Location.X;
-                        ComRec.CurrentPointY = ((MoveTextBox)wrkCtrl).Location.Y;
-                        ComRec.CurrentWidth = ((MoveTextBox)wrkCtrl).Width;
-                        ComRec.CurrentHeight = ((MoveTextBox)wrkCtrl).Height;
+            //            PointingOutComment ComRec = new PointingOutComment();
+            //            ComRec.ConstructionCode = m_ConstructionCode;
+            //            ComRec.ProcessNo = (int)ClsExcute.ProcessExecuteNo.EstimateInput;
+            //            ComRec.SeqNo = SeqCount++;
+            //            ComRec.PageCount = PageCnt;
+            //            ComRec.PersonCode = ((MoveTextBox)wrkCtrl).ContinerCode;
+            //            ComRec.DrowColor = String.Format("0x{0:X2}{1:X2}{2:X2}"
+            //                            , wrkCtrl.BackColor.R, wrkCtrl.BackColor.G, wrkCtrl.BackColor.B);
+            //            ComRec.CommentMessage = wrkCtrl.Text;
+            //            ComRec.StartPointX = ((MoveTextBox)wrkCtrl).ParentPoint.X;
+            //            ComRec.StartPointY = ((MoveTextBox)wrkCtrl).ParentPoint.Y;
+            //            ComRec.CurrentPointX = ((MoveTextBox)wrkCtrl).Location.X;
+            //            ComRec.CurrentPointY = ((MoveTextBox)wrkCtrl).Location.Y;
+            //            ComRec.CurrentWidth = ((MoveTextBox)wrkCtrl).Width;
+            //            ComRec.CurrentHeight = ((MoveTextBox)wrkCtrl).Height;
 
-                        // è¿½åŠ å‡¦ç�†
-                        if (!CommentDB.InsertAction(ComRec, false))
-                        {
-                            return false;
-                        }
-                    }
-                    PageCnt++;
-                }
+            //            // è¿½åŠ å‡¦ç�†
+            //            if (!CommentDB.InsertAction(ComRec, false))
+            //            {
+            //                return false;
+            //            }
+            //        }
+            //        PageCnt++;
+            //    }
 
-                return true;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-        }
+            //    return true;
+            //}
+            //catch (System.Exception ex)
+            //{
+            //    logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            //    return false;
+            //}
+        //}
         #endregion
 
         #region æŒ‡æ‘˜äº‹é …ãƒ‡ãƒ¼ã‚¿èª­è¾¼ã�¿
@@ -5677,59 +5677,59 @@
         /// æŒ‡æ‘˜äº‹é …ãƒ‡ãƒ¼ã‚¿èª­è¾¼ã�¿
         /// </summary>
         /// <returns></returns>
-        private bool ReadPointOutComment()
-        {
-            IOPointingOutComment CommentDB = new IOPointingOutComment();
-            IOMPersonInCharge picDB = new IOMPersonInCharge();
-            try
-            {
-                string strSQL = CommentDB.CreatePrimarykeyString(m_ConstructionCode);
-                strSQL += " ORDER BY PageCount";
-                List<PointingOutComment> CommentList = new List<PointingOutComment>();
-                if (!CommentDB.SelectAction(strSQL, ref CommentList)) return false;
-                if (CommentList.Count == 0) return true;
+        //private bool ReadPointOutComment()
+        //{
+            //IOPointingOutComment CommentDB = new IOPointingOutComment();
+            //IOMPersonInCharge picDB = new IOMPersonInCharge();
+            //try
+            //{
+            //    string strSQL = CommentDB.CreatePrimarykeyString(m_ConstructionCode);
+            //    strSQL += " ORDER BY PageCount";
+            //    List<PointingOutComment> CommentList = new List<PointingOutComment>();
+            //    if (!CommentDB.SelectAction(strSQL, ref CommentList)) return false;
+            //    if (CommentList.Count == 0) return true;
 
-                // ã‚³ãƒ¡ãƒ³ãƒˆã‚’æŠœã��å‡ºã�—ã�¦è¡¨ç¤ºã‚’è¡Œã�†
-                foreach (PointingOutComment ComRec in CommentList)
-                {
-                    int TabCnt = ComRec.PageCount - 1;
-                    ShapeContainer wrkCtrl = m_EntryPage[TabCnt].CommentShapeContainer;
+            //    // ã‚³ãƒ¡ãƒ³ãƒˆã‚’æŠœã��å‡ºã�—ã�¦è¡¨ç¤ºã‚’è¡Œã�†
+            //    foreach (PointingOutComment ComRec in CommentList)
+            //    {
+            //        int TabCnt = ComRec.PageCount - 1;
+            //        ShapeContainer wrkCtrl = m_EntryPage[TabCnt].CommentShapeContainer;
 
-                    // ã‚³ãƒ¡ãƒ³ãƒˆãƒœãƒƒã‚¯ã‚¹è¿½åŠ 
-                    MoveTextBox NewComment = new MoveTextBox();
-                    NewComment.ParentPoint = new Point(ComRec.StartPointX, ComRec.StartPointY);
-                    NewComment.StartPoint = new Point(ComRec.CurrentPointX, ComRec.CurrentPointY);
+            //        // ã‚³ãƒ¡ãƒ³ãƒˆãƒœãƒƒã‚¯ã‚¹è¿½åŠ 
+            //        MoveTextBox NewComment = new MoveTextBox();
+            //        NewComment.ParentPoint = new Point(ComRec.StartPointX, ComRec.StartPointY);
+            //        NewComment.StartPoint = new Point(ComRec.CurrentPointX, ComRec.CurrentPointY);
 
-                    NewComment.Width = ComRec.CurrentWidth;
-                    NewComment.Height = ComRec.CurrentHeight;
-                    NewComment.DrowColor = CommonMotions.getBackForeColor(ComRec.DrowColor, CommonDefine.PalceOfColor.BackColor);
-                    NewComment.Text = ComRec.CommentMessage;
+            //        NewComment.Width = ComRec.CurrentWidth;
+            //        NewComment.Height = ComRec.CurrentHeight;
+            //        NewComment.DrowColor = CommonMotions.getBackForeColor(ComRec.DrowColor, CommonDefine.PalceOfColor.BackColor);
+            //        NewComment.Text = ComRec.CommentMessage;
 
-                    NewComment.ContinerCode = ComRec.PersonCode;
-                    // æ¨©é™�ã�«ã‚ˆã‚Šå¤‰æ›´å�¯èƒ½ã�‹ã�©ã�†ã�‹ã‚’ç¢ºèª�ã�™ã‚‹
-                    if (!GetCommentEditPermission(ComRec.PersonCode)) NewComment.ReadOnly = true;
+            //        NewComment.ContinerCode = ComRec.PersonCode;
+            //        // æ¨©é™�ã�«ã‚ˆã‚Šå¤‰æ›´å�¯èƒ½ã�‹ã�©ã�†ã�‹ã‚’ç¢ºèª�ã�™ã‚‹
+            //        if (!GetCommentEditPermission(ComRec.PersonCode)) NewComment.ReadOnly = true;
 
-                    string strPerson = picDB.CreatePrimarykeyString(ComRec.PersonCode);
-                    PersonInChargeMaster picRec = new PersonInChargeMaster();
-                    picDB.SelectAction(strPerson, ref picRec);
-                    NewComment.ToolTipString = string.Format("æŒ‡æ‘˜è€…ï¼š{0}", picRec.PersonName);
+            //        string strPerson = picDB.CreatePrimarykeyString(ComRec.PersonCode);
+            //        PersonInChargeMaster picRec = new PersonInChargeMaster();
+            //        picDB.SelectAction(strPerson, ref picRec);
+            //        NewComment.ToolTipString = string.Format("æŒ‡æ‘˜è€…ï¼š{0}", picRec.PersonName);
 
-                    wrkCtrl.Controls.Add(NewComment);
-                }
+            //        wrkCtrl.Controls.Add(NewComment);
+            //    }
 
-                return true;
-            }
-            catch (System.Exception ex)
-            {
-                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
-                return false;
-            }
-            finally
-            {
-                CommentDB.close(); CommentDB = null;
-                picDB.close(); picDB = null;
-            }
-        }
+            //    return true;
+            //}
+            //catch (System.Exception ex)
+            //{
+            //    logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            //    return false;
+            //}
+            //finally
+            //{
+            //    CommentDB.close(); CommentDB = null;
+            //    picDB.close(); picDB = null;
+            //}
+        //}
         #endregion
 
         #region ã‚³ãƒ¡ãƒ³ãƒˆç·¨é›†åˆ¤å®š
Index: branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmPriceOfBudget.cs
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmPriceOfBudget.cs	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/Forms/SubForms/FrmPriceOfBudget.cs	(revision 111)
@@ -94,7 +94,7 @@
         private static string[] s_TotalTitleArray = new string[] {  "ï¼Šå�°å¸³ã€€æœªä½œæˆ�åˆ†  å�ˆè¨ˆï¼Š",
                                                                     "ï¼Šå�°å¸³ã€€ä½œæˆ�æ¸ˆã€€ã€€å�ˆè¨ˆï¼Š",
                                                                     "ï¼Šå�°å¸³ã€€å®Œäº†æ¸ˆã€€ã€€å�ˆè¨ˆï¼Š",
-                                                                    "ï¼Šï¼Šã€€ç·�ã€€ å�ˆ ã€€è¨ˆã€€ï¼Šï¼Š",
+                                                                    "ï¼Šï¼Šã€€ã€€ç·�ã€€ã€€å�ˆã€€ã€€è¨ˆã€€ã€€ï¼Šï¼Š",
                                                                 };
         #endregion
         #endregion
@@ -426,6 +426,11 @@
         {
             IOConstructionBaseInfo BaseDB = new IOConstructionBaseInfo();
             DataGridView dgv = dgvMain;
+
+            // å�ˆè¨ˆã‚¨ãƒªã‚¢åˆ�æœŸåŒ–
+            int TotalColCnt = Enum.GetNames(typeof(GridColumn)).Length;
+            int[] CurTotalArea = new int[TotalColCnt];
+            Array.Clear(CurTotalArea, 0, CurTotalArea.Length);
             try
             {
                 int SelectPeriod = (int)numUDConstPro.Value;
@@ -467,11 +472,6 @@
                 if (!BaseDB.ExecuteReader(strSQL, ref DatArList)) return;
                 if (DatArList.Count == 0) return;
 
-                // å�ˆè¨ˆã‚¨ãƒªã‚¢åˆ�æœŸåŒ–
-                int TotalColCnt = Enum.GetNames(typeof(GridColumn)).Length;
-                int[] CurTotalArea = new int[TotalColCnt];
-                Array.Clear(CurTotalArea, 0, CurTotalArea.Length);
-
                 int ino = 1;
                 bool FirstFlg = true;
                 string BreakKey = string.Empty;
@@ -508,9 +508,6 @@
                     CurTotalArea[(int)GridColumn.SaleseExpeses] += (int)(OrdersDecisionPrice * ExpensesRaito3);        // å–¶æ¥­çµŒè²»
                 }
 
-                // å�ˆè¨ˆè¡Œè¡¨ç¤º
-                DisplayTotalRow((int)RowTitleNum.DataType1, CurTotalArea, false);
-
                 m_TotalArea[(int)GridColumn.OrdersPrice] += CurTotalArea[(int)GridColumn.OrdersPrice];
                 m_TotalArea[(int)GridColumn.CompanyExpeses] += CurTotalArea[(int)GridColumn.CompanyExpeses];
                 m_TotalArea[(int)GridColumn.DepartmentExpeses] += CurTotalArea[(int)GridColumn.DepartmentExpeses];
@@ -523,6 +520,9 @@
             finally
             {
                 BaseDB.close(); BaseDB = null;
+
+                // å�ˆè¨ˆè¡Œè¡¨ç¤º
+                DisplayTotalRow((int)RowTitleNum.DataType1, CurTotalArea, false);
             }
         }
         #endregion
@@ -567,7 +567,6 @@
 
                 int CompFlg = -1;
                 int BreakKey = -1;
-                int ino = 1;
                 foreach (object[] objGetArry in DatArList)
                 {
                     CompFlg = CommonMotions.cnvInt(objGetArry[0]);
@@ -593,8 +592,9 @@
                     m_TotalArea[(int)GridColumn.SaleseExpeses] += CurTotalArea[(int)GridColumn.SaleseExpeses];
 
                     // å�ˆè¨ˆè¡Œè¡¨ç¤º
-                    DisplayTotalRow(ino++, CurTotalArea);
+                    DisplayTotalRow((CompFlg + 1), CurTotalArea);
                 }
+                // ãƒ‡ãƒ¼ã‚¿ã�Œç„¡ã�„å ´å�ˆã�¯è¶³ã‚Šã�ªã�„å�ˆè¨ˆã‚’è¡¨ç¤ºã�™ã‚‹
                 int ArrayCount = Enum.GetNames(typeof(CommonDefine.ComplateTitleNo)).Length;
                 if (DatArList.Count < ArrayCount)
                 {
@@ -602,13 +602,12 @@
                     switch (CompFlg)
                     {
                         case (int)CommonDefine.ComplateTitleNo.Operateing:
-                            ino = (int)RowTitleNum.DataType3;
+                            DisplayTotalRow((int)RowTitleNum.DataType3, CurTotalArea);
                             break;
                         case (int)CommonDefine.ComplateTitleNo.Complated:
-                            ino = (int)RowTitleNum.DataType2;
+                            InsertZeroTotalRow((int)RowTitleNum.DataType2, CurTotalArea);
                             break;
                     }
-                    DisplayTotalRow(ino, CurTotalArea);
                 }
             }
             catch (System.Exception ex)
@@ -653,6 +652,39 @@
         }
         #endregion
 
+        #region ï¼�ã�®å�ˆè¨ˆã‚’è¡¨ç¤º
+        /// <summary>
+        /// ï¼�ã�®å�ˆè¨ˆã‚’è¡¨ç¤ºã�™ã‚‹
+        /// </summary>
+        private void InsertZeroTotalRow(int TitleNo, int[] TotalArea)
+        {
+            try
+            {
+                DataGridView dgv = dgvMain;
+                int LastRowCnt = dgv.RowCount;
+
+                dgv.Rows.Insert((LastRowCnt - 2), 2);
+                int EditRowCnt = dgv.RowCount - 3;
+
+                // å�ˆè¨ˆè¡Œè¡¨ç¤º
+                dgv.Rows[EditRowCnt].Cells[(int)GridColumn.ConstrName].Value = s_TotalTitleArray[TitleNo];
+                dgv.Rows[EditRowCnt].Cells[(int)GridColumn.ConstrName].Style.Alignment = DataGridViewContentAlignment.MiddleCenter;
+                // è¡Œã�®è‰²ã‚’å¤‰ã�ˆã‚‹
+                SetRowColor(dgv.Rows[EditRowCnt], s_RowTotalBackColor, s_RowTotalForeColor);
+
+                // æ•°å€¤è¡¨ç¤º
+                for (int i = (int)GridColumn.OrdersPrice; i <= (int)GridColumn.SaleseExpeses; i++)
+                {
+                    dgv.Rows[EditRowCnt].Cells[i].Value = TotalArea[i].ToString("#,0");
+                }
+            }
+            catch (System.Exception ex)
+            {
+                logger.ErrorFormat("ã‚·ã‚¹ãƒ†ãƒ ã‚¨ãƒ©ãƒ¼ï¼š{0}ï¼š{1}", CommonMotions.GetMethodName(), ex.Message);
+            }
+        }
+        #endregion
+
         #region è¡Œè‰²è¨­å®š
         /// <summary>
         /// è¡Œã‚’é�¸æŠžè‰²ã�«ã�™ã‚‹
Index: branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj
===================================================================
--- branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 110)
+++ branches/src/ProcessManagement/ProcessManagement/ProcessManagement.csproj	(revision 111)
@@ -88,10 +88,6 @@
       <HintPath>lib\log4net.dll</HintPath>
     </Reference>
     <Reference Include="Microsoft.VisualBasic" />
-    <Reference Include="Microsoft.VisualBasic.PowerPacks, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
-      <SpecificVersion>False</SpecificVersion>
-      <HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v12.0\Microsoft.VisualBasic.PowerPacks.dll</HintPath>
-    </Reference>
     <Reference Include="MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
       <SpecificVersion>False</SpecificVersion>
       <HintPath>lib\MySql.Data.dll</HintPath>
@@ -262,15 +258,6 @@
     <Compile Include="Forms\DataEntry\ConstructionJoin\FrmJoinSelect.designer.cs">
       <DependentUpon>FrmJoinSelect.cs</DependentUpon>
     </Compile>
-    <Compile Include="Forms\DataEntry\ConstructionPersonList\FrmConstructionPersonList.cs">
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="Forms\DataEntry\ConstructionPersonList\FrmConstructionPersonList.designer.cs">
-      <DependentUpon>FrmConstructionPersonList.cs</DependentUpon>
-    </Compile>
-    <Compile Include="Forms\DataEntry\ConstructionPersonList\FrmConstructionPersonListAuxiliary.cs">
-      <SubType>Form</SubType>
-    </Compile>
     <Compile Include="Forms\DataEntry\ConstructionSplit\FrmConstructionSplitAuxiliary.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -474,9 +461,6 @@
     <Compile Include="Forms\CustomControls\ComboBoxEX.cs">
       <SubType>Component</SubType>
     </Compile>
-    <Compile Include="Forms\CustomControls\MoveTextBox.cs">
-      <SubType>Component</SubType>
-    </Compile>
     <Compile Include="Forms\CustomControls\TextBoxEX.cs">
       <SubType>Component</SubType>
     </Compile>
@@ -1298,9 +1282,6 @@
     <EmbeddedResource Include="Forms\DataEntry\ConstructionJoin\FrmJoinSelect.resx">
       <DependentUpon>FrmJoinSelect.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="Forms\DataEntry\ConstructionPersonList\FrmConstructionPersonList.resx">
-      <DependentUpon>FrmConstructionPersonList.cs</DependentUpon>
-    </EmbeddedResource>
     <EmbeddedResource Include="Forms\DataEntry\CostomerRegist\FrmCostomerRegist.resx">
       <DependentUpon>FrmCostomerRegist.cs</DependentUpon>
     </EmbeddedResource>
@@ -1708,15 +1689,6 @@
     <Content Include="rinen.jpg" />
   </ItemGroup>
   <ItemGroup>
-    <COMReference Include="Microsoft.Office.Core">
-      <Guid>{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}</Guid>
-      <VersionMajor>2</VersionMajor>
-      <VersionMinor>7</VersionMinor>
-      <Lcid>0</Lcid>
-      <WrapperTool>primary</WrapperTool>
-      <Isolated>False</Isolated>
-      <EmbedInteropTypes>True</EmbedInteropTypes>
-    </COMReference>
     <COMReference Include="Microsoft.Office.Interop.Excel">
       <Guid>{00020813-0000-0000-C000-000000000046}</Guid>
       <VersionMajor>1</VersionMajor>
@@ -1735,15 +1707,6 @@
       <Isolated>False</Isolated>
       <EmbedInteropTypes>True</EmbedInteropTypes>
     </COMReference>
-    <COMReference Include="VBIDE">
-      <Guid>{0002E157-0000-0000-C000-000000000046}</Guid>
-      <VersionMajor>5</VersionMajor>
-      <VersionMinor>3</VersionMinor>
-      <Lcid>0</Lcid>
-      <WrapperTool>primary</WrapperTool>
-      <Isolated>False</Isolated>
-      <EmbedInteropTypes>True</EmbedInteropTypes>
-    </COMReference>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
Index: branches/src/ProcessManagement/ProcessManagement.v12.suo
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
